:root {
  --bg: #eef3f8;
  --panel: #ffffff;
  --panel-soft: #f7fafc;
  --text: #142033;
  --muted: #6f7f90;
  --line: #dce5ee;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --cyan: #0891b2;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 48px rgba(25, 45, 70, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% -5%, rgba(37, 99, 235, 0.14), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 100vh;
}

.sidebar {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #0d1b2d;
  color: #d9e7f5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #fff;
}

.nav {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  color: #b9c8d8;
}

.nav a.active,
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.sidebar-note {
  margin-top: 36px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #adc0d4;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.06);
}

.content {
  min-width: 0;
  padding: 28px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.topline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.network-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.network-status::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}

.network-status[data-state="online"]::before {
  background: var(--green);
}

.network-status[data-state="offline"] {
  color: #b91c1c;
}

.network-status[data-state="offline"]::before {
  background: var(--red);
}

.pwa-install[hidden] {
  display: none;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #42556a;
  font-size: 13px;
}

.user-badge::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--green);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.metric-card:hover {
  border-color: #8db6ef;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.metric {
  color: var(--muted);
  font-size: 13px;
}

.metric-value {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-extra {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  min-width: 0;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #24364b;
  font-weight: 650;
  cursor: pointer;
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.btn.ghost {
  background: var(--panel-soft);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 190px));
  gap: 10px;
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: #42556a;
  font-size: 14px;
  font-weight: 650;
}

label small,
.form-help,
td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

legend {
  padding: 0 6px;
  color: #42556a;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #53667b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--panel-soft);
}

tr:hover td {
  background: #fbfdff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #155e75;
  font-size: 12px;
  font-weight: 700;
  background: #cffafe;
}

.pill.green {
  color: #065f46;
  background: #d1fae5;
}

.pill.orange {
  color: #92400e;
  background: #fef3c7;
}

.pill.gray {
  color: #475569;
  background: #e2e8f0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  padding: 13px;
  border-radius: 14px;
  background: var(--panel-soft);
}

.field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.field strong {
  display: block;
  margin-top: 5px;
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 230px;
  border: 1px dashed #b7c6d6;
  border-radius: 20px;
  background: #f8fbfe;
}

.qr-fake {
  display: grid;
  width: 140px;
  height: 140px;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px;
  border: 8px solid #111827;
  background: #fff;
}

.qr-fake i {
  background: #111827;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 15px;
  background: var(--panel-soft);
}

.muted {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.admin-card h3 {
  margin: 0 0 8px;
}

.admin-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.install-app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.install-app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 0;
}

.install-app-icon {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border-radius: 28px;
  background: #eaf2ff;
}

.install-app-icon img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

.install-app-card h2,
.install-app-qr h2 {
  margin-top: 4px;
}

.install-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.install-app-status {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.install-app-status[data-state="success"] {
  color: #047857;
}

.install-app-status[data-state="warning"] {
  color: #b45309;
}

.btn.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.install-web-fallback {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.install-web-fallback summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.install-web-fallback p {
  color: var(--muted);
}

.install-app-qr {
  display: grid;
  justify-items: center;
  align-content: start;
  margin: 0;
  text-align: center;
}

.install-app-qr .qr-box {
  width: 220px;
  max-width: 100%;
}

.install-app-url {
  max-width: 100%;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.app-update-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.app-update-banner[hidden] {
  display: none;
}

.app-update-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #1d4ed8;
}

.app-update-banner p {
  margin: 0;
  color: var(--muted);
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.install-steps article {
  padding: 18px;
  border-radius: 16px;
  background: var(--panel-soft);
}

.install-steps h3 {
  margin: 10px 0 8px;
}

.install-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.install-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.auth-card {
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-brand {
  margin-bottom: 28px;
  color: var(--text);
}

.form-stack {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.nomenclature-form-screen {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nomenclature-form-frame {
  width: min(440px, 100%);
  padding: 20px 20px 24px;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nomenclature-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.nomenclature-back {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #1e293b;
  font-size: 26px;
  text-decoration: none;
}

.nomenclature-heading {
  min-width: 0;
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.nomenclature-subhead {
  margin: 0 0 24px;
  padding-left: 2px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.nomenclature-type-note {
  margin: -4px 0 22px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.nomenclature-section {
  margin-bottom: 28px;
}

.nomenclature-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.nomenclature-section-title .material-icons {
  color: #2563eb;
  font-size: 22px;
}

.nomenclature-field {
  position: relative;
  display: block;
  margin-bottom: 22px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.nomenclature-field > span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0 4px;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 400;
  pointer-events: none;
  transition: all 0.2s ease;
}

.nomenclature-control {
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 16px 14px 8px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  outline: 0;
  background-color: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}

.nomenclature-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.nomenclature-control:focus + span,
.nomenclature-control:not(:placeholder-shown) + span,
.nomenclature-field select + span {
  top: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 500;
}

.nomenclature-control:not(:focus) + span {
  color: #94a3b8;
}

.nomenclature-field-wide {
  grid-column: 1 / -1;
}

.nomenclature-textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.35;
}

.nomenclature-check {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #1f2937;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}

.nomenclature-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1a73e8;
}

.nomenclature-check .material-icons {
  color: #1a73e8;
  font-size: 22px;
}

select.nomenclature-control {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.textarea-field .nomenclature-control {
  height: auto;
  min-height: 90px;
  padding-top: 20px;
  resize: vertical;
}

.nomenclature-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 22px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.nomenclature-toggle input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  height: 20px;
  padding: 0;
  accent-color: #2563eb;
}

.nomenclature-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.nomenclature-btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 16px;
  border: 0;
  border-radius: 40px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
}

.nomenclature-btn-secondary {
  color: #1e293b;
  background: #f1f5f9;
}

.nomenclature-btn-primary {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.advanced-fields {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.advanced-fields summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  color: #42556a;
  font-weight: 750;
  list-style: none;
}

.advanced-fields summary::-webkit-details-marker {
  display: none;
}

.advanced-fields summary::after {
  content: "+";
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}

.advanced-fields[open] summary::after {
  content: "−";
}

.advanced-fields summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.advanced-fields-body {
  padding: 4px 16px 16px;
}

.remembered-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.remembered-login small {
  color: var(--muted);
  line-height: 1.4;
}

.link-button {
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-action-hub {
  display: none;
}

.mobile-back-link {
  display: none;
}

.span-2 {
  grid-column: span 2;
}

.form-actions,
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.page-head {
  margin-bottom: 22px;
}

.full {
  width: 100%;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check-label input {
  width: auto;
  min-height: 0;
}

.alert {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 13px;
}

.alert.success {
  border-color: #a7f3d0;
  color: #065f46;
  background: #ecfdf5;
}

.alert.error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.notice {
  padding: 13px 15px;
  border: 1px solid #bae6fd;
  border-radius: 13px;
  color: #0c4a6e;
  background: #f0f9ff;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.apk-preview-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.apk-preview-note p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.55;
}

.apk-preview-stage {
  display: grid;
  min-height: 740px;
  padding: 24px;
  place-items: start center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(37, 99, 235, 0.13), transparent 24rem),
    #e7edf5;
}

.apk-preview-phone {
  overflow: hidden;
  width: min(390px, 100%);
  height: 760px;
  border: 10px solid #111827;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.apk-preview-phone iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.table-link {
  color: var(--blue-dark);
  font-weight: 750;
}

.catalog-head {
  margin-bottom: 18px;
}

.catalog-head h1 {
  margin-bottom: 6px;
}

.catalog-section {
  margin-top: 0;
}

.catalog-toolbar {
  grid-template-columns:
    minmax(260px, 1.4fr)
    minmax(132px, 0.72fr)
    minmax(132px, 0.72fr)
    minmax(150px, 0.9fr)
    minmax(150px, 0.9fr)
    auto;
  align-items: center;
}

.catalog-toolbar .btn {
  white-space: nowrap;
}

.catalog-table-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.catalog-table th {
  background: var(--panel-soft);
}

.catalog-table tr:last-child td {
  border-bottom: 0;
}

.catalog-mobile-list {
  display: none;
}

.catalog-mobile-row {
  color: inherit;
  text-decoration: none;
}

.no-margin {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.object-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.object-tabs a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #42556a;
}

.object-tabs a.active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.item-card-screen {
  display: block;
  width: 100%;
  min-height: 100%;
  background: #fff;
}

.item-card-frame {
  width: 100%;
  padding: 16px 18px 20px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.item-toolbar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.item-toolbar-back,
.item-toolbar-more {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #1f2937;
  background: transparent;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.item-toolbar-more {
  font-size: 28px;
}

.item-toolbar-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.item-toolbar-title strong {
  overflow-wrap: anywhere;
  color: #1f2937;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}

.item-toolbar-title span {
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}

.item-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 16px;
  border-radius: 20px;
  color: #fff;
  background: #4caf50;
  font-size: 14px;
  font-weight: 650;
}

.item-status-chip.warn {
  background: #f59e0b;
}

.item-status-chip.off {
  background: #64748b;
}

.item-status-chip.muted {
  background: #94a3b8;
}

.item-remain {
  color: #1f2937;
  font-size: 16px;
  font-weight: 550;
}

.item-remain b {
  font-weight: 800;
}

.item-action-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin-bottom: 20px;
  padding: 8px;
  border-radius: 16px;
  background: #f8f9fa;
  box-sizing: border-box;
}

.item-action-strip a {
  display: grid;
  min-width: 0;
  gap: 4px;
  justify-items: center;
  padding: 6px 4px;
  border-radius: 12px;
  color: #3c4043;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.item-action-strip a:active {
  background: #e8eaed;
}

.item-action-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a73e8;
  background: transparent;
  font-size: 26px;
  font-weight: 400;
}

.item-action-strip b {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-photo-card {
  padding-bottom: 16px;
}

.item-photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.item-photo-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  border-radius: 14px;
  background: #f1f5f9;
}

.item-photo-preview.empty {
  border: 1px dashed #cbd5e1;
}

.item-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-photo-preview > .material-icons {
  color: #94a3b8;
  font-size: 54px;
}

.item-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.item-photo-form {
  display: flex;
  flex: 1 1 230px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.item-photo-button {
  position: relative;
  display: inline-flex;
  flex: 1 1 180px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: #1a73e8;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.24);
  font: inherit;
  font-weight: 700;
}

.item-photo-button:disabled {
  background: #94a3b8;
  box-shadow: none;
}

.item-photo-button.is-disabled {
  color: #475569;
  background: #cbd5e1;
  box-shadow: none;
  pointer-events: none;
}

.item-photo-button.secondary {
  color: #0f172a;
  background: #e2e8f0;
  box-shadow: none;
}

.item-photo-button.secondary:disabled {
  color: #475569;
  background: #cbd5e1;
}

.item-photo-button .material-icons {
  font-size: 23px;
}

.item-photo-native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.item-photo-form small {
  flex: 1 1 100%;
  min-height: 18px;
  color: #64748b;
  font-size: 12px;
}

.item-photo-form small[data-state="error"] {
  color: #b91c1c;
}

.item-photo-form small[data-state="success"] {
  color: #15803d;
}

.item-photo-delete-form {
  margin: 0;
}

.item-photo-delete {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #b91c1c;
  background: #fee2e2;
}

.item-photo-delete .material-icons {
  font-size: 24px;
}

.item-camera-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  place-items: center;
  background: rgba(15, 23, 42, 0.82);
}

.item-camera-panel {
  display: grid;
  width: min(100%, 520px);
  max-height: 100%;
  gap: 14px;
}

.item-camera-video {
  width: 100%;
  max-height: min(70vh, 620px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
  object-fit: cover;
}

.item-camera-actions {
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  gap: 12px;
  align-items: center;
}

.item-camera-action,
.item-camera-shutter {
  min-height: 52px;
  border: 0;
  border-radius: 28px;
  font: inherit;
  font-weight: 800;
}

.item-camera-action.secondary {
  color: #0f172a;
  background: #fff;
}

.item-camera-shutter {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: #fff;
  background: #1a73e8;
  box-shadow: 0 8px 22px rgba(26, 115, 232, 0.36);
}

.item-camera-shutter .material-icons {
  font-size: 34px;
}

.item-info-card,
.item-empty-card {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.item-empty-card {
  display: grid;
  gap: 10px;
}

.item-empty-card strong {
  color: #1f2937;
  font-size: 18px;
}

.item-empty-card span {
  color: #6b7280;
}

.item-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.item-delete-form {
  display: flex;
  flex: 1 1 150px;
  margin: 0;
}

.item-delete-action {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 20px;
  border: 1px solid #fecaca;
  border-radius: 24px;
  background: #fff1f2;
  color: #be123c;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.item-card-title {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
  color: #5f6368;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.item-card-title .material-icons {
  color: #5f6368;
  font-size: 18px;
}

.item-info-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 15px;
  line-height: 1.4;
}

.item-info-row:last-child {
  border-bottom: 0;
}

.item-info-row span {
  flex: 0 0 auto;
  color: #5f6368;
}

.item-info-row strong {
  max-width: 65%;
  color: #1f2937;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-align: right;
}

.item-info-row strong.serial {
  color: #1a73e8;
  font-size: 18px;
  font-weight: 800;
}

.item-property-chip {
  display: inline-flex;
  justify-content: center;
  min-width: 160px;
  padding: 2px 12px;
  border-radius: 16px;
  color: #1a73e8;
  background: #e8f0fe;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.item-ownership-row strong {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  max-width: none;
  text-align: center;
}

.item-qr-block {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.item-qr-box {
  width: min(100%, 244px);
  min-height: 0;
  border: 0;
  border-radius: 12px;
  background: #f8f9fa;
}

.item-qr-box img,
.item-qr-box canvas {
  width: 180px !important;
  height: 180px !important;
}

.item-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.item-qr-actions .btn-icon,
.item-print-action {
  display: inline-flex;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #1f2937;
  background: #f1f3f4;
  cursor: pointer;
  text-decoration: none;
}

.item-qr-actions .btn-icon:active,
.item-print-action:active {
  background: #d2d5d8;
}

.item-print-action .material-icons {
  font-size: 28px;
}

.item-history-card {
  padding-top: 4px;
}

.item-history-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 4px;
  color: #1a73e8;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.item-history-card summary::-webkit-details-marker {
  display: none;
}

.item-history-card[open] summary {
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.item-history-list .timeline-item {
  grid-template-columns: 105px minmax(0, 1fr);
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
}

.item-history-link {
  color: inherit;
  text-decoration: none;
}

.item-history-link:active,
.item-history-link:hover {
  color: var(--blue);
}

.item-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-top: 16px;
}

.item-primary-action {
  display: inline-flex;
  flex: 1 1 190px;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 24px;
  color: #fff;
  background: #1a73e8;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
  font-size: 16px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.object-edit-screen {
  background: #fff;
}

.object-edit-frame {
  padding-bottom: 28px;
}

.object-edit-form {
  display: grid;
  width: 100%;
  gap: 0;
}

.object-edit-alert {
  margin-bottom: 12px;
}

.object-edit-status-row {
  margin-bottom: 12px;
}

.object-edit-card {
  display: grid;
  gap: 12px;
}

.object-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.object-edit-field {
  min-width: 0;
  margin: 0;
  gap: 6px;
  color: #5f6368;
  font-size: 13px;
  font-weight: 650;
}

.object-edit-field-wide {
  grid-column: 1 / -1;
}

.object-edit-field > span {
  color: #5f6368;
  font-size: 13px;
  line-height: 1.25;
}

.object-edit-field input,
.object-edit-field select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  outline: 0;
  background: #f8fafc;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.object-edit-field input:focus,
.object-edit-field select:focus {
  border-color: #1a73e8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.10);
}

.object-edit-field small {
  margin-top: -2px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
}

.object-edit-check {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #dadce0;
  border-radius: 22px;
  color: #3c4043;
  background: #f8f9fa;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.object-edit-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1a73e8;
}

.object-edit-check .material-icons {
  color: #1a73e8;
  font-size: 20px;
}

.object-edit-check b {
  overflow-wrap: anywhere;
  font-weight: 650;
}

.object-edit-contract {
  margin-top: 2px;
  border-color: #edf2f7;
  background: #f8fafc;
}

.object-edit-contract .advanced-fields-body {
  padding: 4px 14px 14px;
}

.object-edit-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 10px;
  width: 100%;
  margin: 4px 0 12px;
}

.object-edit-secondary-action,
.object-edit-primary-action {
  width: 100%;
  min-width: 0;
}

.object-edit-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 24px;
  color: #1f2937;
  background: #f1f5f9;
  font-size: 16px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.object-edit-primary-action {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.item-print-form,
.item-barcode-form {
  margin: 0;
}

.item-barcode-toggle,
.barcode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #dadce0;
  border-radius: 20px;
  color: #3c4043;
  background: #f8f9fa;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.item-barcode-toggle input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.item-barcode-toggle .material-icons {
  color: #16a34a;
  font-size: 20px;
}

.item-object-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  color: #9aa0a6;
  font-size: 11px;
}

.item-object-tabs a {
  color: #9aa0a6;
  text-decoration: none;
}

.item-object-tabs a.active {
  color: #1a73e8;
  font-weight: 800;
}

.qr-panel h2 {
  margin-top: 0;
}

.qr-box img,
.qr-box canvas,
.label-qr img,
.label-qr canvas {
  max-width: 100%;
  height: auto !important;
}

.qr-box,
.label-qr {
  box-sizing: border-box;
  padding: 10px;
  background: #fff;
}

.label-qr {
  padding: 2mm;
}

.scanner-frame {
  position: relative;
  display: grid;
  width: min(340px, 100%);
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px dashed #9fb1c5;
  border-radius: 18px;
  background: #0f172a;
}

.scanner-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  color: #fff;
  background: #0f172a;
}

.scanner-fallback video {
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  object-fit: cover;
}

.scanner-fallback img {
  display: none;
}

.scanner-placeholder {
  max-width: 360px;
  padding: 24px;
  color: #d7e3ef;
  text-align: center;
}

.scanner-actions {
  margin-top: 14px;
}

.scanner-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.scanner-status[data-state="active"] {
  color: #2563eb;
}

.scanner-status[data-state="success"] {
  color: #15803d;
  font-weight: 700;
}

.scanner-status[data-state="error"] {
  color: #b91c1c;
}

.label-page {
  display: grid;
  min-height: 100vh;
  padding: 18px;
  place-items: center;
  background: #f2f5f9;
}

.label-sheet {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.label-card {
  display: grid;
  box-sizing: border-box;
  width: 60mm;
  height: 50mm;
  grid-template-columns: 31mm minmax(0, 1fr);
  gap: 2.5mm;
  padding: 2.5mm;
  border: 1px solid #111827;
  color: #111827;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.label-qr {
  display: grid;
  place-items: center;
}

.label-qr img,
.label-qr canvas {
  width: 28mm !important;
  height: 28mm !important;
}

.label-data {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 1.5mm;
  font-size: 8px;
  line-height: 1.18;
}

.label-data strong {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.15;
}

.label-printer-note {
  max-width: 60mm;
  margin: 0;
  text-align: center;
}

.label-printer-tools {
  max-width: 60mm;
  color: var(--muted);
  text-align: center;
}

.label-printer-tools summary {
  cursor: pointer;
}

.qr-label-check {
  width: 100%;
  margin-top: 12px;
}

.qr-label-check .check-label {
  justify-content: center;
}

.admin-split {
  align-items: start;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

.directory-form {
  gap: 14px;
}

.directory-form input:not([type="checkbox"]),
.directory-form select {
  min-height: 38px;
  padding: 8px 10px;
}

.directory-form .field-short {
  max-width: 170px;
}

.compact-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 2px;
}

.compact-actions .btn {
  min-width: 112px;
  min-height: 38px;
  padding: 8px 14px;
}

.directory-tabs {
  margin-top: -6px;
}

.operation-switch,
.report-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.operation-switch a,
.report-tabs a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--panel);
}

.operation-switch a.active,
.report-tabs a.active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.operations-frame {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 16px 16px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.operations-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.operations-toolbar-main {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
}

.operations-toolbar-back {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #1a73e8;
  background: #eef4ff;
  text-decoration: none;
}

.operations-toolbar-title {
  color: #1e1e1e;
  font-size: 22px;
  font-weight: 500;
}

.operations-toolbar-action {
  color: #1a73e8;
  font-size: 28px;
  text-decoration: none;
}

.operations-subhead {
  margin-bottom: 16px;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.4;
}

.operations-filter-form {
  margin: 0;
}

.operations-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.operations-filter-select {
  min-width: 90px;
  width: auto;
  min-height: 36px;
  padding: 8px 32px 8px 14px;
  border: 0;
  border-radius: 20px;
  color: #1e1e1e;
  background-color: #f1f3f4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.operations-search-box {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 4px 16px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: #f1f3f4;
  transition: background 0.2s, border-color 0.2s;
}

.operations-search-box:focus-within {
  border-color: #1a73e8;
  background: #fff;
}

.operations-search-box .material-icons {
  color: #5f6368;
  font-size: 24px;
}

.operations-search-box input {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 8px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
}

.operations-info-hint {
  margin-bottom: 16px;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.4;
}

.operations-info-hint strong {
  color: #1e1e1e;
  font-weight: 500;
}

.operations-list {
  display: flex;
  flex-direction: column;
}

.operation-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #e8eaed;
  color: inherit;
  background: transparent;
  text-decoration: none;
  transition: background 0.15s;
}

.operation-item:first-child {
  border-top: 1px solid #e8eaed;
}

.quick-operation-item {
  border-radius: 0;
  text-align: left;
}

.quick-operation-item:first-child {
  border-top: 0;
}

.operation-item.active,
.operation-item:active {
  background: #f1f3f4;
}

.op-row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.op-number {
  overflow-wrap: anywhere;
  color: #1a73e8;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.op-item-name {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 5px;
  color: #1e1e1e;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.op-type,
.op-status {
  padding: 2px 12px;
  border-radius: 12px;
  color: #1e1e1e;
  background: #e8eaed;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.op-status {
  color: #1e7e34;
  background: #e6f4ea;
}

.op-status.pending {
  color: #b25e00;
  background: #fef7e0;
}

.op-status.void {
  color: #5f6368;
  background: #eceff1;
}

.op-row-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: #5f6368;
  font-size: 14px;
}

.op-date,
.op-author,
.op-recipient {
  display: flex;
  gap: 4px;
  align-items: center;
}

.op-date .material-icons,
.op-author .material-icons,
.op-recipient .material-icons {
  color: #5f6368;
  font-size: 16px;
}

.op-recipient .empty {
  color: #9aa0a6;
  font-style: italic;
}

.operations-detail-card {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #e8eaed;
  border-radius: 18px;
  background: #fff;
}

.operations-detail-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.operations-detail-head h2 {
  margin: 0 0 3px;
  color: #1e1e1e;
  font-size: 18px;
  font-weight: 500;
}

.operations-detail-head span:not(.op-status) {
  color: #5f6368;
  font-size: 14px;
}

.operations-field-list {
  margin-bottom: 12px;
}

.operations-lines-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid #e8eaed;
}

.operations-line-row {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #e8eaed;
}

.operations-line-row strong {
  color: #1e1e1e;
  font-size: 14px;
  font-weight: 500;
}

.operations-line-row span {
  color: #5f6368;
  font-size: 13px;
}

.operations-detail-actions {
  margin-top: 12px;
}

.operation-page {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 16px 16px 22px;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.operation-page-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.operation-page-back {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #1a73e8;
  background: #eef4ff;
  text-decoration: none;
}

.operation-page-title {
  min-width: 0;
}

.operation-page-title span {
  display: block;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.2;
}

.operation-page-title h1 {
  overflow: hidden;
  margin: 2px 0 0;
  color: #1e1e1e;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #f8fafc;
}

.operation-hero-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #1a73e8;
  background: #dbeafe;
  font-size: 26px;
}

.operation-hero strong,
.operation-hero span {
  display: block;
  min-width: 0;
}

.operation-hero strong {
  margin-bottom: 3px;
  color: #1e1e1e;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.operation-hero span {
  color: #5f6368;
  font-size: 13px;
  line-height: 1.35;
}

.operation-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.operation-summary-card,
.operation-card {
  border: 1px solid #e8eaed;
  border-radius: 18px;
  background: #fff;
}

.operation-summary-card {
  min-height: 76px;
  padding: 12px;
}

.operation-summary-card span,
.operation-field span,
.operation-route span,
.operation-note-grid span {
  display: block;
  margin-bottom: 4px;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.25;
}

.operation-summary-card strong,
.operation-field strong,
.operation-route strong,
.operation-note-grid strong {
  color: #1e1e1e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.operation-card {
  margin-bottom: 12px;
  padding: 14px;
}

.operation-card-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: #1e1e1e;
}

.operation-card-title .material-icons {
  color: #1a73e8;
  font-size: 22px;
}

.operation-card-title strong {
  font-size: 16px;
  font-weight: 600;
}

.operation-field-grid,
.operation-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.operation-note-grid {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8eaed;
}

.operation-note-grid .wide {
  grid-column: 1 / -1;
}

.operation-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.operation-route > .material-icons {
  color: #5f6368;
  font-size: 22px;
  text-align: center;
}

.operation-line-list {
  display: grid;
  gap: 8px;
}

.operation-line-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  color: inherit;
  background: #f8fafc;
  text-decoration: none;
}

.operation-line-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #1a73e8;
  background: #e8f0fe;
  font-size: 21px;
}

.operation-line-copy {
  min-width: 0;
}

.operation-line-copy strong,
.operation-line-copy small,
.operation-line-copy em {
  display: block;
  min-width: 0;
}

.operation-line-copy strong {
  color: #1e1e1e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.operation-line-copy small,
.operation-line-copy em {
  margin-top: 3px;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.3;
}

.operation-line-copy em {
  color: #1a73e8;
  font-style: normal;
}

.operation-line-next {
  color: #9aa0a6;
  font-size: 22px;
}

.operation-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operation-action-row form {
  margin: 0;
}

.operation-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 20px;
  color: #1a73e8;
  background: #eef4ff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.operation-action.primary {
  color: #fff;
  background: #1a73e8;
}

.operation-action.danger {
  color: #b3261e;
  background: #fce8e6;
}

.operation-action .material-icons {
  font-size: 20px;
}

.operations-empty {
  padding: 18px 0;
  color: #5f6368;
  text-align: center;
}

.report-frame {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 16px 16px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.report-toolbar-title,
.toolbar-title {
  color: #1e1e1e;
  font-size: 22px;
  font-weight: 500;
}

.report-toolbar-action {
  color: #1a73e8;
  font-size: 28px;
  text-decoration: none;
}

.report-subhead {
  margin-bottom: 16px;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.4;
}

.report-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.report-action-btn {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 16px;
  border: 0;
  border-radius: 20px;
  color: #1e1e1e;
  background: #f1f3f4;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.report-action-btn .material-icons {
  color: #5f6368;
  font-size: 20px;
}

.report-action-btn:active {
  background: #d2d5d8;
}

.report-action-btn.primary {
  color: #fff;
  background: #1a73e8;
}

.report-action-btn.primary .material-icons {
  color: #fff;
}

.report-action-btn.primary:active {
  background: #1557b0;
}

.report-row-count {
  margin-bottom: 12px;
  color: #5f6368;
  font-size: 14px;
  font-weight: 500;
}

.report-row-count strong {
  color: #1e1e1e;
}

.incomplete-items-list {
  display: flex;
  flex-direction: column;
}

.incomplete-item-row {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #e8eaed;
  color: inherit;
  background: transparent;
  text-decoration: none;
}

.incomplete-item-row:first-child {
  border-top: 1px solid #e8eaed;
}

.incomplete-item-row:active {
  background: #f1f3f4;
}

.incomplete-item-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}

.incomplete-item-code {
  min-width: 120px;
  color: #1a73e8;
  font-size: 15px;
  font-weight: 500;
}

.incomplete-item-name {
  flex: 1 1 160px;
  min-width: 100px;
  color: #1e1e1e;
  font-size: 15px;
  font-weight: 500;
}

.incomplete-item-object,
.incomplete-item-problem {
  padding: 0 10px;
  border-radius: 12px;
  color: #5f6368;
  background: #f1f3f4;
  font-size: 14px;
  white-space: nowrap;
}

.incomplete-item-problem {
  color: #d93025;
  background: #fce8e6;
}

.incomplete-item-problem.warning {
  color: #b25e00;
  background: #fef7e0;
}

.object-actions {
  margin-bottom: 20px;
}

.btn.danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.btn.danger:hover {
  color: #fff;
  background: #dc2626;
}

.btn.compact {
  min-height: auto;
  padding: 7px 10px;
  font-size: 13px;
}

.import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.import-summary .card {
  min-height: 120px;
}

.import-file {
  padding: 10px;
  border: 1px dashed #9fb1c5;
  border-radius: 12px;
  background: var(--panel-soft);
}

.top-gap {
  margin-top: 18px;
}

.create-panel summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 750;
}

.inventory-metrics {
  margin-bottom: 24px;
}

.result-matched {
  color: #047857;
  background: #d1fae5;
}

.result-pending {
  color: #475569;
  background: #e2e8f0;
}

.result-missing,
.result-discrepancy {
  color: #b91c1c;
  background: #fee2e2;
}

.result-extra,
.result-moved {
  color: #b45309;
  background: #fef3c7;
}

.report-section {
  min-height: 320px;
}

.no-qr-report {
  display: grid;
  gap: 12px;
  margin-right: -28px;
  margin-left: -28px;
}

.no-qr-report h1 {
  margin: 0;
  padding: 0 28px;
  color: #111827;
  font-size: 22px;
}

.no-qr-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 0;
}

.mobile-operation-row.no-qr-row {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #edf2f9;
  border-radius: 0;
  color: #1a1a2e;
  background: #fff;
  text-decoration: none;
  transition: none;
}

.mobile-operation-row.no-qr-row:hover,
.mobile-operation-row.no-qr-row:active {
  background: #fff;
}

.no-qr-code {
  display: block;
  flex: 0 0 60px;
  min-width: 60px;
  overflow: hidden;
  color: var(--blue-dark);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-qr-row .mobile-operation-copy {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 4px;
}

.no-qr-row .mobile-operation-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.no-qr-row .mobile-operation-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-qr-row .mobile-operation-next {
  flex: 0 0 92px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-list {
  display: grid;
  gap: 14px;
}

.notification-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.notification-card.warning {
  border-left-color: var(--orange);
}

.notification-card.danger {
  border-left-color: var(--red);
}

.notification-card.info {
  border-left-color: var(--blue);
}

.notification-card.is-read {
  opacity: 0.68;
}

.notification-card h2 {
  margin: 4px 0;
  font-size: 18px;
}

.notification-card p {
  margin: 0;
  color: var(--muted);
}

.notification-level {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-page {
  padding: 24px;
  background: #e5e7eb;
}

.document-sheet {
  width: min(210mm, 100%);
  min-height: 280mm;
  margin: 0 auto;
  padding: 18mm;
  color: #111827;
  background: #fff;
  box-shadow: var(--shadow);
}

.document-sheet.wide {
  width: min(297mm, 100%);
}

.document-brand,
.document-number {
  color: #64748b;
}

.document-sheet h1 {
  margin-bottom: 8px;
}

.document-sheet table {
  width: 100%;
  margin: 24px 0;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin: 50px 0 28px;
}

.mobile-nav {
  display: none;
}

.material-bottom-nav {
  display: none;
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 14px;
  }

  .brand,
  .sidebar-note {
    display: none;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .nav a {
    justify-content: center;
    padding: 10px 8px;
    min-width: 0;
    white-space: nowrap;
  }

  .grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .toolbar,
  .admin-split,
  .apk-preview-layout {
    grid-template-columns: 1fr;
  }

  .apk-preview-stage {
    min-height: 680px;
    padding: 14px;
  }

  .notification-card {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .sidebar {
    display: none;
  }

  body {
    background: #fff;
  }

  .app {
    display: block;
    width: 100%;
    min-width: 0;
    background: #fff;
  }

  .content {
    padding: 16px 18px 94px;
  }

  .page-catalog .content {
    padding-right: 8px;
    padding-left: 8px;
  }

  .page-operations .content,
  .page-report-incomplete .content {
    padding: 16px 0 94px;
  }

  .page-dashboard .content {
    padding-top: 18px;
    padding-right: 0;
    padding-left: 0;
    background: #fff;
  }

  .item-card-screen {
    width: auto;
    margin: -16px 0 -94px;
    padding: 12px 0 94px;
  }

  .item-card-frame {
    padding: 0;
  }

  .object-edit-frame {
    padding: 0 0 12px;
  }

  .object-edit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .object-edit-field-wide {
    grid-column: auto;
  }

  .object-edit-card {
    gap: 10px;
    padding: 12px 14px;
  }

  .object-edit-field input,
  .object-edit-field select {
    min-height: 48px;
    border-radius: 15px;
    font-size: 15px;
  }

  .object-edit-contract .advanced-fields-body {
    padding: 2px 12px 12px;
  }

  .object-edit-actions {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    padding: 0 2px;
  }

  .no-qr-report {
    margin-right: -18px;
    margin-left: -18px;
  }

  .no-qr-report h1 {
    padding: 0 18px;
  }

  .desktop-dashboard {
    display: none;
  }

  .mobile-action-hub {
    display: block;
  }

  .mobile-home-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 10px 18px 8px;
  }

  .mobile-user-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 800;
  }

  .mobile-home-title {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .mobile-home-title strong {
    font-size: 22px;
    line-height: 1.05;
  }

  .mobile-home-title span {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-network-inline {
    color: var(--green);
    font-style: normal;
    font-weight: 700;
  }

  .mobile-network-inline[data-state="offline"] {
    color: var(--red);
  }

  .mobile-header-action {
    position: relative;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--blue-dark);
    background: #eff6ff;
    font-size: 12px;
    font-weight: 750;
  }

  .mobile-header-action b {
    position: absolute;
    top: -7px;
    right: -6px;
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 10px;
  }

  .mobile-group-tabs {
    display: flex;
    gap: clamp(6px, 2.8vw, 14px);
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 5px 8px 0;
    overflow-x: auto;
    background: #fff;
  }

  .mobile-group-tabs button {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 44px;
    width: max-content;
    padding: 0 4px 8px;
    margin: 0;
    border: 0;
    border-radius: 0;
    color: #707070;
    background: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-decoration-thickness: 3px;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.15s, text-decoration-color 0.15s, border-color 0.15s;
    user-select: none;
  }

  .mobile-group-tabs button::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 2px;
    left: 4px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
  }

  .mobile-group-tabs button:active,
  .mobile-group-tabs button.active {
    color: var(--blue-dark, #1a3b6b);
    background: #fff;
  }

  .mobile-group-tabs button.active::after {
    background: var(--blue, #2a6bb0);
  }

  .mobile-operation-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
  }

  .mobile-operation-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #edf2f9;
    border-radius: 0;
    color: #1a1a2e;
    background: #f8faff;
    text-decoration: none;
    transition: background 0.15s;
  }

  .mobile-operation-row.is-hidden,
  .mobile-operation-row[hidden],
  .mobile-operation-empty.is-hidden,
  .mobile-operation-empty[hidden] {
    display: none !important;
  }

  .mobile-operation-row:last-child {
    border-bottom: 0;
  }

  .mobile-operation-row:active {
    background: #e9f0fa;
  }

  /* Fixed LabStock mobile marker size: do not shrink below 60x60 / r30. */
  .mobile-operation-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    border-radius: 30px;
    color: #fff;
    background: #dbeafe;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-operation-mark.blue {
    color: #1e3a5f;
    background: #dbeafe;
  }

  .mobile-operation-mark.cyan {
    color: #155e75;
    background: #cffafe;
  }

  .mobile-operation-mark.green {
    color: #065f46;
    background: #d1fae5;
  }

  .mobile-operation-mark.orange {
    color: #92400e;
    background: #fef3c7;
  }

  .mobile-operation-mark.violet {
    color: #5b21b6;
    background: #ede9fe;
  }

  .mobile-operation-mark.gray {
    color: #475569;
    background: #e2e8f0;
  }

  .mobile-operation-copy {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
  }

  .mobile-operation-copy strong {
    color: #111827;
    font-size: 16px;
  }

  .mobile-operation-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-operation-badge {
    display: grid;
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-operation-next {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 26px;
    line-height: 1;
  }

  .mobile-operation-empty {
    padding: 18px;
    color: var(--muted);
    text-align: center;
  }

  .topline {
    align-items: center;
    margin-bottom: 22px;
  }

  .page-operations .topline,
  .page-report-incomplete .topline {
    margin-right: 18px;
    margin-bottom: 12px;
    margin-left: 18px;
  }

  .page-dashboard .topline {
    display: none;
  }

  .topline-actions {
    flex: 0 0 auto;
  }

  .breadcrumbs {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-badge {
    display: none;
  }

  .pwa-install {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .network-status {
    font-size: 0;
  }

  .network-status::before {
    width: 10px;
    height: 10px;
  }

  .network-status[data-state="offline"] {
    gap: 6px;
    font-size: 11px;
  }

  .mobile-nav {
    display: none;
  }

  .material-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: block;
    padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border: 0;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .material-bottom-nav .footer-nav {
    display: flex;
    min-height: 62px;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .material-bottom-nav .footer-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 50px;
    gap: 0;
    padding: 6px 9px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0;
    font-weight: 700;
    line-height: 1;
  }

  .material-bottom-nav .footer-item .icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    font-family: "Material Symbols Rounded", "Material Icons", sans-serif;
    color: inherit;
    background: transparent;
    box-shadow: none;
    font-size: 36px;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
  }

  .material-bottom-nav .footer-item.active {
    color: #0f172a;
  }

  .material-bottom-nav .footer-item.active .icon {
    color: #334155;
    background: transparent;
    box-shadow: none;
  }

  .material-bottom-nav .footer-item.qr {
    color: #475569;
  }

  .material-bottom-nav .footer-item.qr .icon {
    display: grid;
    width: auto;
    height: auto;
    min-width: 58px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    color: #475569;
    background: transparent;
    box-shadow: none;
    font-size: 38px;
  }

  .material-bottom-nav .footer-item.qr.active .icon {
    color: #334155;
    background: transparent;
    box-shadow: none;
  }

  .subtitle {
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .section {
    overflow: hidden;
    padding: 18px;
  }

  .page-catalog .section {
    overflow: visible;
  }

  .nomenclature-form-screen {
    display: block;
  }

  .nomenclature-form-frame {
    width: 100%;
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
  }

  .nomenclature-heading {
    font-size: 16px;
  }

  .nomenclature-section-title {
    font-size: 14px;
  }

  .nomenclature-control {
    height: 54px;
    min-height: 54px;
    padding: 14px 12px 6px;
    font-size: 15px;
  }

  .nomenclature-field > span {
    top: 13px;
    left: 12px;
    font-size: 15px;
  }

  .nomenclature-control:focus + span,
  .nomenclature-control:not(:placeholder-shown) + span,
  .nomenclature-field select + span {
    top: 4px;
    font-size: 11px;
  }

  .nomenclature-btn {
    min-height: 50px;
    padding: 13px 14px;
    font-size: 15px;
  }

  .operations-frame {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 16px 20px;
    border-radius: 0;
    box-shadow: none;
  }

  .operation-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 18px 20px;
  }

  .operation-page-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .operation-page-head > .op-status {
    grid-column: 2;
    justify-self: start;
  }

  .operation-summary-grid,
  .operation-field-grid,
  .operation-note-grid {
    grid-template-columns: 1fr;
  }

  .operation-route {
    grid-template-columns: 1fr;
  }

  .operation-route > .material-icons {
    transform: rotate(90deg);
    text-align: left;
  }

  .operations-filter-select {
    min-width: 70px;
    font-size: 12px;
    padding: 6px 28px 6px 12px;
  }

  .operation-item {
    padding: 12px 16px;
  }

  .op-number {
    font-size: 14px;
  }

  .op-row-bottom {
    gap: 4px 10px;
    font-size: 13px;
  }

  .report-frame {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 16px 20px;
    border-radius: 0;
    box-shadow: none;
  }

  .report-action-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .report-action-btn .material-icons {
    font-size: 18px;
  }

  .incomplete-item-code {
    min-width: 90px;
    font-size: 14px;
  }

  .incomplete-item-name {
    min-width: 80px;
    font-size: 14px;
  }

  .incomplete-item-object,
  .incomplete-item-problem {
    padding: 0 8px;
    font-size: 12px;
  }

  .advanced-fields summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .advanced-fields summary small {
    margin-left: 0;
  }

  .advanced-fields summary::after {
    position: absolute;
    right: 16px;
  }

  .advanced-fields summary {
    position: relative;
    padding-right: 44px;
  }

  .remembered-login {
    align-items: flex-start;
    flex-direction: column;
  }

  .operation-switch {
    display: none;
  }

  .mobile-back-link {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 750;
  }

  .mobile-sticky-actions {
    position: sticky;
    bottom: 74px;
    z-index: 4;
    margin: 4px -8px -8px;
    padding: 12px 8px 8px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  .btn,
  input,
  select,
  textarea {
    min-height: 48px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions,
  .actions .btn {
    width: 100%;
  }

  .grid,
  .admin-grid,
  .install-app-layout,
  .install-steps,
  .import-summary,
  .field-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .install-app-card {
    grid-template-columns: 1fr;
  }

  .install-app-icon {
    width: 88px;
    height: 88px;
  }

  .install-app-icon img {
    width: 72px;
    height: 72px;
  }

  .install-app-actions,
  .install-app-actions .btn {
    width: 100%;
  }

  .apk-preview-head {
    display: grid;
    align-items: start;
  }

  .apk-preview-stage {
    min-height: 620px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .apk-preview-phone {
    width: 100%;
    height: 620px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-update-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .app-update-banner .btn {
    width: 100%;
  }

  .span-2 {
    grid-column: auto;
  }

  .page-head,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-head {
    margin-bottom: 14px;
  }

  .catalog-head h1 {
    margin: 0 0 4px;
  }

  .catalog-section {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .catalog-toolbar .btn {
    width: 100%;
  }

  .page-head .actions,
  .page-head .btn,
  .form-actions .btn {
    width: 100%;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .catalog-table-wrap {
    display: none;
  }

  .catalog-mobile-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #edf2f9;
    border-radius: 0;
    background: #fff;
  }

  .catalog-mobile-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 12px 8px;
    border-bottom: 1px solid #edf2f9;
    background: #fff;
  }

  .catalog-mobile-row:last-child {
    border-bottom: 0;
  }

  .catalog-mobile-row:active {
    background: #f8faff;
  }

  .catalog-mobile-code {
    flex: 0 0 78px;
    overflow-wrap: anywhere;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
  }

  .catalog-mobile-copy {
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    gap: 3px;
  }

  .catalog-mobile-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .catalog-mobile-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-mobile-meta {
    display: grid;
    flex: 0 0 74px;
    min-width: 0;
    gap: 3px;
    text-align: right;
  }

  .catalog-mobile-meta b {
    overflow: hidden;
    color: #1f2937;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-mobile-meta small {
    overflow: hidden;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .signature-grid {
    grid-template-columns: 1fr;
  }

  .document-page {
    padding: 0;
  }

  .document-sheet {
    min-height: 100vh;
    padding: 20px;
  }
}

.labstock-v110 {
  display: none;
}

@media (max-width: 620px) {
  .page-dashboard {
    background: #eef2f8;
  }

  .page-dashboard .content {
    min-height: 100vh;
    padding: 0;
    background: #eef2f8;
  }

  .page-dashboard .topline,
  .page-dashboard .mobile-nav,
  .page-dashboard .mobile-action-hub {
    display: none !important;
  }

  .labstock-v110 {
    display: flex;
    min-height: 100vh;
    padding: 12px 8px;
    justify-content: center;
    color: #111827;
    font-family: "Roboto", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #eef2f8;
  }

  .labstock-v110 .chat-app {
    position: relative;
    display: flex;
    width: min(440px, 100%);
    height: calc(100vh - 24px);
    min-height: 680px;
    max-height: 840px;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 14px 14px 18px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  }

  .labstock-v110 .screen,
  .labstock-v110 .chat-screen {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    background: #fff;
  }

  .labstock-v110 .app-brand {
    display: flex;
    min-height: 62px;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
  }

  .labstock-v110 .app-brand-mark {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .labstock-v110 .app-brand-title {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 3px;
  }

  .labstock-v110 .app-brand-title strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.05;
  }

  .labstock-v110 .app-brand-title span {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .labstock-v110 .app-brand-title i {
    color: #16a34a;
    font-style: normal;
    font-weight: 700;
  }

  .labstock-v110 .app-brand-action {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 16px;
    color: #64748b;
    background: #f8fafc;
  }

  .labstock-v110 .main-menu {
    display: grid;
    min-height: 58px;
    flex: 0 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    background: #fff;
    touch-action: pan-y;
  }

  .labstock-v110 .menu-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 2px 7px;
    border: 0;
    color: #64748b;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
  }

  .labstock-v110 .menu-item::after {
    position: absolute;
    right: 16%;
    bottom: 0;
    left: 16%;
    height: 3px;
    border-radius: 999px;
    content: "";
    background: transparent;
  }

  .labstock-v110 .menu-item .material-symbols-rounded {
    font-size: 23px;
    line-height: 1;
  }

  .labstock-v110 .menu-item.active {
    color: #2563eb;
  }

  .labstock-v110 .menu-item.active::after {
    background: #2563eb;
  }

  .labstock-v110 .app-pages {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #fff;
  }

  .labstock-v110 .app-page {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 2px 10px;
    scrollbar-width: none;
  }

  .labstock-v110 .app-page::-webkit-scrollbar {
    display: none;
  }

  .labstock-v110 .home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .labstock-v110 .home-stat-card {
    display: grid;
    min-height: 82px;
    gap: 3px;
    padding: 10px 9px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  }

  .labstock-v110 .home-stat-card span,
  .labstock-v110 .home-widget span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
  }

  .labstock-v110 .home-stat-card strong {
    color: #0f172a;
    font-size: 25px;
    line-height: 1;
  }

  .labstock-v110 .home-stat-card small,
  .labstock-v110 .home-widget small,
  .labstock-v110 .quick-card small,
  .labstock-v110 .movement-card small,
  .labstock-v110 .simple-row small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
  }

  .labstock-v110 .home-stat-card.attention strong {
    color: #f97316;
  }

  .labstock-v110 .quick-grid,
  .labstock-v110 .movement-grid,
  .labstock-v110 .home-widget-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .labstock-v110 .quick-card,
  .labstock-v110 .movement-card,
  .labstock-v110 .home-widget {
    display: grid;
    min-width: 0;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  }

  .labstock-v110 .quick-card .icon,
  .labstock-v110 .movement-card > .material-symbols-rounded {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
  }

  .labstock-v110 .quick-card .blue,
  .labstock-v110 .movement-card.receive > .material-symbols-rounded,
  .labstock-v110 .simple-mark.blue {
    background: #2563eb;
  }

  .labstock-v110 .quick-card .green,
  .labstock-v110 .movement-card.return > .material-symbols-rounded,
  .labstock-v110 .simple-mark.green {
    background: #10b981;
  }

  .labstock-v110 .quick-card .purple,
  .labstock-v110 .movement-card.issue > .material-symbols-rounded,
  .labstock-v110 .simple-mark.purple {
    background: #7c3aed;
  }

  .labstock-v110 .quick-card .amber,
  .labstock-v110 .movement-card.transfer > .material-symbols-rounded,
  .labstock-v110 .simple-mark.orange {
    background: #f59e0b;
  }

  .labstock-v110 .quick-card strong,
  .labstock-v110 .movement-card strong,
  .labstock-v110 .simple-row strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.2;
  }

  .labstock-v110 .home-widget-grid {
    margin-top: 12px;
  }

  .labstock-v110 .home-widget div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .labstock-v110 .home-widget strong {
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
  }

  .labstock-v110 .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .labstock-v110 .toolbar-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
  }

  .labstock-v110 .toolbar-counter {
    padding: 5px 9px;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
  }

  .labstock-v110 .simple-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .labstock-v110 .simple-row {
    display: grid;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: #fff;
  }

  .labstock-v110 .simple-row > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .labstock-v110 .simple-row b {
    color: #2563eb;
    font-size: 14px;
  }

  .labstock-v110 .simple-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: #0f172a;
    font-size: 13px;
    font-weight: 800;
  }

  .labstock-v110 .simple-row.muted {
    opacity: 0.86;
  }

  .labstock-v110 .app-footer {
    flex: 0 0 auto;
    padding-top: 10px;
    background: #fff;
  }

  .labstock-v110 .footer-nav {
    display: flex;
    min-height: 62px;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .labstock-v110 .footer-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 50px;
    gap: 0;
    padding: 6px 9px;
    color: #94a3b8;
    font-size: 0;
    font-weight: 700;
    line-height: 1;
  }

  .labstock-v110 .footer-item .material-symbols-rounded {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: inherit;
    background: transparent;
    box-shadow: none;
    font-size: 36px;
    line-height: 1;
  }

  .labstock-v110 .footer-item.active {
    color: #0f172a;
  }

  .labstock-v110 .footer-item.active .material-symbols-rounded {
    color: #334155;
    background: transparent;
    box-shadow: none;
  }

  .labstock-v110 .footer-item.qr {
    color: #475569;
  }

  .labstock-v110 .footer-item.qr .material-symbols-rounded {
    display: grid;
    width: auto;
    height: auto;
    min-width: 58px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    color: #475569;
    background: transparent;
    box-shadow: none;
    font-size: 38px;
  }

  .labstock-v110 .footer-item.qr.active .material-symbols-rounded {
    color: #334155;
    background: transparent;
    box-shadow: none;
  }
}

.page-admin {
  background: #ffffff;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-admin .content {
  background: #ffffff;
}

.page-admin .topline {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.page-admin .btn {
  border-radius: 8px;
}

.admin-workspace {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-bottom: 18px;
}

.admin-page-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  margin-bottom: 18px;
}

.admin-page-back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #1f2937;
  background: transparent;
  font-size: 25px;
}

.admin-page-back:hover {
  background: #f1f5f9;
}

.admin-page-title {
  min-width: 0;
}

.admin-page-title h1 {
  margin: 0;
  color: #172033;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.admin-page-title p {
  margin: 4px 0 0;
  overflow: hidden;
  color: #718096;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-page-count {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  place-items: center;
  border-radius: 17px;
  color: #475569;
  background: #eef2f7;
  font-size: 13px;
  font-weight: 700;
}

.admin-add-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  color: #ffffff;
  background: #2563eb;
  font-size: 14px;
  font-weight: 700;
}

.admin-add-button .material-symbols-rounded {
  font-size: 21px;
}

.admin-round-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 14px;
}

.admin-round-search {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #f1f5f9;
  box-shadow: none;
  transition: width .25s ease, max-width .25s ease, border-radius .25s ease;
}

.admin-round-search.expanded,
.admin-round-search:focus-within {
  width: auto;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  padding: 0 14px;
  border-color: #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
}

.admin-round-search-button {
  width: 48px;
  min-width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #334155;
  background: transparent;
  font-size: 24px;
}

.admin-round-search input {
  display: none;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.admin-round-search.expanded .admin-round-search-button,
.admin-round-search:focus-within .admin-round-search-button {
  display: none;
}

.admin-round-search.expanded input,
.admin-round-search:focus-within input {
  display: block;
}

.admin-round-add {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  display: inline-grid;
  flex: 0 0 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .24);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.admin-round-add:hover {
  color: #ffffff;
  background: #1d4ed8;
}

.admin-round-add:active {
  transform: scale(.94);
}

.admin-help {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #31516f;
  background: #edf6ff;
  font-size: 13px;
  line-height: 1.45;
}

.admin-help .material-symbols-rounded {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 20px;
}

.admin-tabs {
  display: flex;
  gap: 22px;
  margin: -4px 0 22px;
  padding: 0 2px;
  overflow-x: auto;
  border-bottom: 1px solid #e7edf4;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tabs a {
  position: relative;
  flex: 0 0 auto;
  padding: 11px 1px 12px;
  color: #718096;
  font-size: 14px;
  font-weight: 600;
}

.admin-tabs a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.admin-tabs a.active {
  color: #1d4ed8;
}

.admin-tabs a.active::after {
  background: #2563eb;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.admin-layout.list-only {
  grid-template-columns: minmax(0, 1fr);
}

.admin-editor-stack {
  display: grid;
  gap: 30px;
}

.admin-editor {
  display: grid;
  gap: 15px;
  min-width: 0;
  margin: 0;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid #e7edf4;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.admin-editor-stack .admin-editor:last-child {
  border-bottom: 0;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7edf4;
}

.admin-panel-head > .material-symbols-rounded {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eaf2ff;
  font-size: 23px;
}

.admin-panel-head h2 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  letter-spacing: 0;
}

.admin-panel-head small {
  display: block;
  margin-top: 3px;
  color: #718096;
  font-size: 12px;
  font-weight: 400;
}

.admin-editor input:not([type="checkbox"]),
.admin-editor select {
  min-height: 48px;
  padding: 10px 12px;
  border-color: #d9e2ec;
  border-radius: 8px;
  background: #ffffff;
  font-size: 15px;
}

.admin-editor input:focus,
.admin-editor select:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.10);
}

.admin-editor input[readonly] {
  color: #64748b;
  background: #f5f7fa;
}

.admin-choice-group {
  gap: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #e7edf4;
  border-bottom: 1px solid #e7edf4;
  border-radius: 0;
}

.admin-choice-group legend {
  padding: 14px 0 8px;
  color: #334155;
  font-size: 13px;
}

.admin-check-row,
.admin-toggle-row {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  padding: 9px 2px;
  color: #172033;
  font-weight: 400;
}

.admin-check-row + .admin-check-row,
.admin-toggle-row + .admin-toggle-row {
  border-top: 1px solid #edf2f7;
}

.admin-check-row input,
.admin-toggle-row input {
  width: 21px;
  height: 21px;
  min-height: 0;
  flex: 0 0 21px;
  padding: 0;
  accent-color: #2563eb;
}

.admin-check-row span,
.admin-toggle-row span {
  min-width: 0;
}

.admin-check-row b,
.admin-toggle-row b {
  display: block;
  font-size: 14px;
}

.admin-check-row small,
.admin-toggle-row small {
  display: block;
  margin-top: 2px;
  color: #718096;
  font-size: 12px;
  line-height: 1.35;
}

.admin-login-fields {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #f7f9fc;
}

.admin-form-actions {
  justify-content: flex-start;
  margin-top: 3px;
}

.admin-form-actions .btn {
  gap: 6px;
  min-height: 42px;
}

.admin-form-actions .material-symbols-rounded {
  font-size: 19px;
}

.admin-form-actions .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-form-note {
  color: #718096;
  font-size: 12px;
  line-height: 1.45;
}

.access-error-page {
  width: min(620px, 100%);
  margin: 28px auto;
  padding: 42px 28px;
  text-align: center;
}

.access-error-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  color: #b45309;
  background: #fff7e6;
  font-size: 29px;
}

.access-error-page h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.access-error-page p {
  margin: 10px auto 22px;
  color: #64748b;
  line-height: 1.55;
}

.access-error-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.access-error-back .material-symbols-rounded {
  font-size: 19px;
}

.role-permission-form {
  width: min(820px, 100%);
}

.role-permission-form .admin-panel-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.role-access-count {
  padding: 6px 9px;
  border-radius: 8px;
  color: #31516f;
  background: #edf6ff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.role-permission-list {
  margin: 0;
}

.role-permission-row {
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) 24px;
  gap: 12px;
  min-height: 72px;
}

.role-permission-row .role-permission-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eaf2ff;
  font-size: 22px;
}

.role-permission-row .role-permission-copy {
  min-width: 0;
}

.role-permission-row .role-permission-state {
  color: #94a3b8;
  font-size: 21px;
}

.role-permission-row:has(input:checked) .role-permission-state {
  color: #16a34a;
}

.role-permission-row.locked {
  cursor: default;
}

.role-permission-row.locked input {
  cursor: default;
}

.role-permission-lock-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #31516f;
  background: #f1f5f9;
  font-size: 13px;
}

.role-permission-lock-note .material-symbols-rounded {
  font-size: 19px;
}

.admin-records {
  min-width: 0;
}

.admin-layout.list-only .admin-records {
  width: min(820px, 100%);
}

.admin-record-list {
  display: grid;
}

.admin-record {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 14px 4px;
  border-bottom: 1px solid #e7edf4;
  color: #172033;
  background: #ffffff;
}

.admin-record:hover {
  background: #f8fafc;
}

.admin-record-avatar,
.admin-record-icon,
.admin-menu-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #ffffff;
  background: #2563eb;
  font-size: 15px;
  font-weight: 700;
}

.admin-record-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-record-icon,
.admin-menu-icon {
  border-radius: 8px;
  color: #1d4ed8;
  background: #eaf2ff;
  font-size: 24px;
  font-weight: 400;
}

.admin-record-body {
  display: block;
  min-width: 0;
}

.admin-record-body strong {
  display: block;
  overflow: hidden;
  color: #172033;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-record-body > small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #718096;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.admin-record-side {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: center;
  justify-items: end;
}

.admin-record-side .pill + .pill {
  grid-column: 1;
}

.admin-record-next {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #94a3b8;
  font-size: 24px;
}

.admin-menu-list {
  display: grid;
  width: min(760px, 100%);
  margin-top: 8px;
}

.admin-menu-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 14px 4px;
  border-bottom: 1px solid #e7edf4;
}

.admin-menu-row:hover {
  background: #f8fafc;
}

.admin-menu-copy {
  min-width: 0;
}

.admin-menu-copy strong,
.admin-menu-copy small {
  display: block;
}

.admin-menu-copy strong {
  color: #172033;
  font-size: 16px;
}

.admin-menu-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: #718096;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu-row .admin-record-next {
  grid-column: auto;
  grid-row: auto;
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .page-admin .topline {
    display: none;
  }

  .page-admin .content {
    padding: 8px 18px 94px;
  }

  .admin-workspace {
    width: 100%;
    padding-bottom: 0;
  }

  .admin-page-bar {
    position: sticky;
    top: 0;
    z-index: 8;
    min-height: 62px;
    margin: 0 -4px 12px;
    padding: 8px 4px;
    background: #ffffff;
  }

  .admin-page-title h1 {
    font-size: 21px;
  }

  .admin-page-title p {
    font-size: 12px;
  }

  .admin-page-count {
    display: none;
  }

  .admin-add-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .admin-add-button > span:last-child {
    display: none;
  }

  .admin-tabs {
    gap: 18px;
    margin-right: -18px;
    margin-left: -18px;
    padding: 0 18px;
  }

  .admin-help {
    margin-bottom: 18px;
  }

  .admin-layout,
  .admin-layout.list-only {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .admin-layout.list-only .admin-records {
    width: 100%;
  }

  .admin-editor {
    padding-bottom: 22px;
  }

  .admin-panel-head {
    min-height: 48px;
  }

  .admin-panel-head > .material-symbols-rounded {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .admin-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-form-actions .btn {
    width: 100%;
  }

  .admin-form-actions .btn.danger {
    grid-column: 1 / -1;
  }

  .role-permission-form .admin-panel-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .role-access-count {
    grid-column: 2;
    justify-self: start;
  }

  .role-permission-row {
    grid-template-columns: 22px 38px minmax(0, 1fr);
    gap: 10px;
  }

  .role-permission-row .role-permission-icon {
    width: 38px;
    height: 38px;
  }

  .role-permission-row .role-permission-state {
    display: none;
  }

  .admin-record {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 13px 0;
  }

  .admin-record-side .pill {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-record-meta {
    display: grid;
    gap: 2px;
  }

  .admin-menu-list {
    width: 100%;
    margin-top: 0;
  }

  .admin-menu-row {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 430px) {
  .admin-record-side .pill + .pill {
    display: none;
  }

  .admin-record-next {
    grid-row: 1;
  }
}

@page labstock-label {
  size: 60mm 50mm;
  margin: 0;
}

@media print {
  body {
    background: #fff;
  }

  .print-hide {
    display: none !important;
  }

  .label-page {
    width: 60mm;
    min-height: auto;
    padding: 0;
    margin: 0;
    page: labstock-label;
    place-items: start;
  }

  .label-sheet {
    gap: 0;
  }

  .label-card {
    width: 60mm;
    height: 50mm;
    border: 0;
    box-shadow: none;
  }

  .sidebar,
  .topline,
  .mobile-nav,
  .report-tabs,
  .page-head .actions,
  .notification-list .btn {
    display: none !important;
  }

  .content {
    padding: 0;
  }

  .document-page {
    padding: 0;
    background: #fff;
  }

  .document-sheet {
    width: 100%;
    min-height: auto;
    padding: 10mm;
    box-shadow: none;
  }

  .report-frame {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10mm;
    border-radius: 0;
    box-shadow: none;
  }

  .incomplete-item-row {
    break-inside: avoid;
  }
}
