.staff-body {
  -webkit-text-size-adjust: 100%;
  background: #eef1f6;
  overflow-x: clip;
}

/* OS: grid responsivo único (sem coluna fixa no mobile). */
.new-os-form .os-section-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.new-os-form .os-section-grid label,
.new-os-form .camera-box,
.new-os-form .new-os-checklist,
.new-os-form .signature-row,
.new-os-form .verbal-acceptance {
  max-width: 980px;
}

.new-os-form input,
.new-os-form select,
.new-os-form textarea {
  font-size: 16px;
  min-height: 52px;
}

.new-os-form textarea {
  min-height: 120px;
}

.new-os-form .os-form-section-head h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.new-os-form .camera-box video,
.camera-box video {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Refinamento final: Preços no admin e OS compacta sem espaços fantasmas. */
.prices-admin-panel {
  display: grid;
  gap: 18px;
}

.prices-admin-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.price-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-admin-tab-panel {
  display: grid;
  gap: 18px;
}

.admin-price-window {
  display: grid;
  gap: 18px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.price-index {
  align-content: start;
  display: grid;
  gap: 8px;
}

.price-index a,
.price-index span,
.price-index button {
  align-items: center;
  background: #f2f5fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 900;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.price-index button em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.price-index button strong {
  font-size: 14px;
}

.price-index a.active,
.price-index a:hover,
.price-index button.active,
.price-index button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.price-index button.active em,
.price-index button:hover em {
  color: rgba(255, 255, 255, .82);
}

.price-admin-search {
  display: grid;
  gap: 8px;
}

.pricing-table-admin .price-family-pill {
  background: #eef4ff;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  margin-right: 8px;
  padding: 4px 8px;
  vertical-align: middle;
}

.pricing-table-admin td small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.pricing-table-admin table {
  min-width: 860px;
  table-layout: auto;
  width: 100%;
}

.pricing-table-admin col.col-model {
  min-width: 190px;
  width: 24%;
}

.pricing-table-admin col.col-part {
  min-width: 320px;
  width: 46%;
}

.pricing-table-admin col.col-price {
  min-width: 128px;
  width: 12%;
}

.pricing-table-admin col.col-actions {
  min-width: 168px;
  width: 168px;
}

.pricing-table-admin th:nth-child(3),
.pricing-table-admin td:nth-child(3) {
  min-width: 128px;
  white-space: nowrap;
}

.pricing-table-admin .price-value-cell {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 96px;
  white-space: nowrap;
}

.pricing-table-admin th:last-child,
.pricing-table-admin td:last-child {
  min-width: 168px;
  width: 168px;
}

.pricing-table-admin th:nth-child(2),
.pricing-table-admin td:nth-child(2) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.price-table-area {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-price-category {
  display: grid;
  gap: 10px;
}

.compact-table small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

#staffContent .new-os-form {
  overflow: hidden;
}

#staffContent .new-os-form .os-form-section {
  display: grid;
  gap: 16px;
  overflow: hidden;
}

#staffContent .new-os-form .os-section-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

#staffContent .new-os-form .os-form-section-financeiro .os-section-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
}

#staffContent .new-os-form .os-form-section-financeiro label:first-child {
  grid-column: span 2;
}

#staffContent .os-parts-picker {
  max-width: 100%;
}

#staffContent .os-parts-results {
  max-height: 220px;
}

#staffContent .os-part-result {
  align-items: start;
  border: 1px solid transparent;
  display: grid;
  gap: 3px;
  line-height: 1.25;
}

#staffContent .os-part-result small {
  color: var(--muted);
  font-size: 13px;
}

#staffContent .os-part-result.in-stock small {
  color: #087a38;
}

#staffContent .os-part-result.out-stock {
  opacity: .72;
}

#staffContent .os-part-result.out-stock small {
  color: #b42318;
}

#staffContent .os-parts-empty {
  color: var(--muted);
  font-weight: 900;
  padding: 12px;
}

#staffContent .quick-part-form[hidden] {
  display: none !important;
}

#staffContent .quick-part-form {
  align-items: end;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) !important;
  max-width: 100%;
}

#staffContent .quick-part-form .button {
  min-height: 52px;
}

@media (max-width: 1180px) {
  #staffContent .new-os-form .os-form-section-financeiro .os-section-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .prices-admin-head {
    display: grid;
  }

  .admin-price-window {
    grid-template-columns: 1fr;
  }

  .price-index {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .price-index a,
  .price-index span,
  .price-index button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #staffContent .new-os-form .os-section-grid,
  #staffContent .new-os-form .os-form-section-financeiro .os-section-grid,
  #staffContent .quick-part-form {
    grid-template-columns: 1fr !important;
  }

  #staffContent .new-os-form .os-form-section-financeiro label:first-child {
    grid-column: auto;
  }
}

.report-filter-bar {
  align-items: end;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr) minmax(150px, .8fr) auto auto;
}

.report-filter-bar h2,
.report-filter-bar .form-help {
  grid-column: 1 / -1;
}

.report-filter-bar .button {
  min-height: 54px;
}

@media (max-width: 860px) {
  .report-filter-bar {
    grid-template-columns: 1fr;
  }
}

/* Ajustes finais de usabilidade: OS legível, estoque compacto e logo visível. */
#staffContent .new-os-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  align-items: stretch !important;
}

#staffContent .new-os-form > .os-form-section,
#staffContent .new-os-form > .camera-box,
#staffContent .new-os-form > .new-os-checklist,
#staffContent .new-os-form > .signature-row,
#staffContent .new-os-form > .verbal-acceptance,
#staffContent .new-os-form > .card-fee-calculator,
#staffContent .new-os-form > .os-voice-box,
#staffContent .new-os-form > .os-process-note {
  width: 100% !important;
  max-width: none !important;
}

#staffContent .new-os-form .os-section-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
}

#staffContent .new-os-form label,
#staffContent .staff-form-grid label {
  display: grid;
  gap: 8px;
  align-content: start;
}

#staffContent .new-os-form input,
#staffContent .new-os-form select,
#staffContent .new-os-form textarea,
#staffContent .staff-form-grid input,
#staffContent .staff-form-grid select,
#staffContent .staff-form-grid textarea {
  width: 100%;
  max-width: 100%;
}

#staffContent .os-parts-picker,
#staffContent .os-parts-results,
#staffContent .os-selected-parts {
  width: 100%;
}

#staffContent .os-parts-results button {
  text-align: left;
  white-space: normal;
}

.staff-sidebar .brand {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  justify-content: center;
}

.stock-search-box {
  margin: 12px 0 18px;
}

.stock-inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stock-inline-actions input {
  width: 74px;
  min-height: 38px;
  border: 1px solid #d7dde8;
  border-radius: 10px;
  padding: 8px;
  font-weight: 800;
  text-align: center;
}

.corporate-lead-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.4fr) minmax(220px, auto);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.corporate-lead-row .lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.corporate-lead-row p {
  margin: 0;
  line-height: 1.35;
}

.corporate-lead-row .lead-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  #staffContent .new-os-form .os-section-grid {
    grid-template-columns: 1fr !important;
  }

  .stock-inline-actions input {
    width: 64px;
  }

  .corporate-lead-row {
    grid-template-columns: 1fr;
  }

  .corporate-lead-row .lead-actions {
    justify-content: flex-start;
  }
}

.staff-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100svh;
}

.staff-body:not(.is-authenticated) .staff-shell {
  grid-template-columns: minmax(0, 1fr);
}

.staff-body:not(.is-authenticated) .staff-sidebar,
.staff-body:not(.is-authenticated) .staff-user,
.staff-body:not(.is-authenticated) .module-search,
.staff-body:not(.is-authenticated) .staff-header {
  display: none;
}

.staff-body:not(.is-authenticated) .staff-main {
  margin: 0;
  max-width: none;
  min-height: 100svh;
  padding: 0;
  width: 100%;
}

.staff-body:not(.is-authenticated) .staff-shell {
  min-height: 100svh;
}

.staff-body:not(.is-authenticated) .staff-login-shell {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(8, 16, 32, 0.72) 0%, rgba(8, 16, 32, 0.58) 42%, rgba(8, 16, 32, 0.82) 100%),
    url("assets/irepair-new/login-workbench-bg.png") center center / cover no-repeat;
  background-attachment: scroll, scroll;
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  justify-items: stretch;
  max-width: 100%;
  min-height: 100svh;
  overflow-x: clip;
  padding: calc(24px + env(safe-area-inset-top, 0px)) calc(18px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) calc(18px + env(safe-area-inset-left, 0px));
  width: 100%;
}

.staff-login-hero {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  margin-inline: auto;
  max-width: 560px;
  padding: 28px 30px;
  width: min(100%, 560px);
}

.staff-login-brand {
  display: block;
}

.staff-login-brand .eyebrow {
  color: var(--blue);
}

.staff-login-brand h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.staff-login-brand p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
  max-width: none;
}

.login-hint {
  color: var(--muted) !important;
  font-size: 13px;
  margin-top: 10px !important;
}

.staff-body:not(.is-authenticated) .staff-login,
.staff-body:not(.is-authenticated) .staff-login.reset-panel {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  margin-inline: auto;
  max-width: 560px;
  width: min(100%, 560px);
}

.staff-body.is-authenticated .staff-login-shell,
.staff-body.is-authenticated .staff-login-hero {
  display: none;
}

.staff-body:not(.is-authenticated) .locked-content {
  display: none;
}

.staff-sidebar {
  background: var(--night);
  color: white;
  display: grid;
  gap: 24px;
  align-content: start;
  min-height: 100svh;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 24px;
}

.staff-sidebar .nav-section-shortcuts {
  --section-color: #fbbf24;
  border-left-color: #fbbf24;
}

.staff-sidebar .nav-section-daily {
  --section-color: #fbbf24;
}

.nav-section-shortcuts-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.shortcut-edit-btn {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  color: #fde68a;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  min-height: 28px;
  padding: 0 10px;
  text-transform: uppercase;
}

.shortcut-edit-btn:hover {
  background: rgba(251, 191, 36, 0.22);
}

.staff-shortcut-editor {
  margin-top: 4px;
}

.shortcut-editor-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.shortcut-editor-card strong {
  color: #fff;
  font-size: 14px;
}

.shortcut-editor-card .form-help {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
}

.shortcut-editor-card label {
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
}

.shortcut-editor-card select {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  min-height: 38px;
  padding: 0 10px;
}

.shortcut-editor-actions {
  justify-content: flex-start;
}

.shortcut-empty {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

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

.staff-shortcut {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.staff-shortcut::before {
  display: none;
}

.staff-shortcut strong {
  font-size: 15px;
  line-height: 1.1;
}

.staff-shortcut small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.staff-shortcut-os {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.42);
}

.staff-shortcut-customers {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.42);
}

.staff-shortcut-appointments {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
}

.staff-shortcut-parts {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.42);
}

.staff-shortcut-generic,
.staff-shortcut-dashboard,
.staff-shortcut-sales,
.staff-shortcut-cash,
.staff-shortcut-naotemos,
.staff-shortcut-devices,
.staff-shortcut-warranties,
.staff-shortcut-products,
.staff-shortcut-invoices,
.staff-shortcut-reports,
.staff-shortcut-help,
.staff-shortcut-manuals,
.staff-shortcut-pegstore,
.staff-shortcut-management,
.staff-shortcut-aiops,
.staff-shortcut-operations,
.staff-shortcut-services,
.staff-shortcut-stores,
.staff-shortcut-users,
.staff-shortcut-settings,
.staff-shortcut-costs,
.staff-shortcut-seo,
.staff-shortcut-whatsapp {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.staff-shortcut.active,
.staff-shortcut:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.staff-shortcut.active {
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--section-color, #fbbf24) 16%, white));
  border-color: #fff;
  color: var(--ink);
}

.staff-shortcut.active small {
  color: var(--muted);
}

.staff-sidebar nav {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
}

.staff-sidebar .brand-mark {
  background: white;
  color: var(--ink);
}

.staff-menu-toggle {
  display: none;
}

.staff-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.staff-sidebar-user {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.staff-sidebar-footer .staff-logout-btn {
  justify-content: center;
  min-height: 44px;
  width: 100%;
}

.staff-body:not(.is-authenticated) .staff-sidebar-footer,
.staff-body:not(.is-authenticated) .staff-quick-actions {
  display: none;
}

.staff-sidebar .nav-section {
  border-left: 4px solid var(--section-color, rgba(255, 255, 255, 0.2));
  display: grid;
  gap: 7px;
  padding-left: 10px;
}

.staff-sidebar .nav-section > span {
  color: var(--section-color, rgba(255, 255, 255, 0.72));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-sidebar .nav-section-management {
  --section-color: #3b82f6;
}

.staff-sidebar .nav-section-technical {
  --section-color: #22c55e;
}

.staff-sidebar .nav-section-commercial {
  --section-color: #f59e0b;
}

.staff-sidebar .nav-section-finance {
  --section-color: #a855f7;
}

.staff-sidebar button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
  position: relative;
  text-align: left;
}

.staff-sidebar button::before {
  background: var(--section-color, rgba(255, 255, 255, 0.28));
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 8px;
  margin-right: 9px;
  vertical-align: 1px;
  width: 8px;
}

.staff-sidebar button.active {
  background: linear-gradient(90deg, white, color-mix(in srgb, var(--section-color, #3b82f6) 18%, white));
  border-color: var(--section-color, white);
  color: var(--ink);
}

.staff-main {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  padding: 28px;
}

.staff-body.is-authenticated .staff-main {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
}

.staff-panel-widget-host {
  align-self: end;
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  width: 100%;
}

.staff-panel-widget-host:empty {
  display: none;
}

.staff-body:not(.is-authenticated) .staff-panel-widget-host {
  display: none;
}

.desktop-app-widget {
  display: grid;
  gap: 8px;
  justify-items: end;
  max-width: min(420px, 100%);
  width: fit-content;
}

.staff-body:not(.is-authenticated) .desktop-app-widget {
  display: none;
}

.staff-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.staff-header h1 {
  font-size: 38px;
}

.module-search {
  display: none;
  min-width: min(420px, 100%);
  position: relative;
  width: clamp(260px, 34vw, 460px);
  z-index: 20;
}

.staff-body.is-authenticated .module-search {
  display: block;
  width: 100%;
}

.module-search label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.module-search-box {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
}

.module-search-box span {
  color: var(--blue);
  flex: 0 0 auto;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.module-search-box input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1 1 auto;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  min-height: 46px;
  min-width: 0;
  outline: 0;
  padding: 0;
}

.module-search-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 6px;
  left: 0;
  margin-top: 8px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  position: absolute;
  right: 0;
}

.module-search-results[hidden] {
  display: none;
}

.module-search-results button {
  align-items: center;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 10px 12px;
  text-align: left;
}

.module-search-results button:hover,
.module-search-results button:focus {
  background: #eef6ff;
  border-color: rgba(0, 113, 227, 0.35);
  outline: 0;
}

.module-search-results strong {
  font-size: 15px;
}

.module-search-results small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.staff-user {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-quick-actions {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-body.is-authenticated .staff-quick-actions {
  display: flex;
}

.staff-quick-chip {
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
}

.staff-quick-chip[data-module="serviceOrders"] {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #166534;
}

.staff-quick-chip[data-module="customers"] {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #1d4ed8;
}

.staff-quick-chip[data-module="appointments"] {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #b45309;
}

.staff-quick-chip[data-module="parts"] {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.28);
  color: #7e22ce;
}

.staff-quick-chip.active,
.staff-quick-chip:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.staff-logout-btn {
  background: transparent;
  border: 0;
  color: #be123c;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  white-space: nowrap;
  width: auto;
}

.staff-logout-btn:hover {
  color: #9f1239;
}

.is-authenticated .staff-user {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: none;
}

.is-authenticated .staff-user #staffUser {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  max-width: min(220px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-user-avatar-btn {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
}

.staff-user-avatar,
.user-avatar,
.user-card-avatar {
  border-radius: 999px;
  display: block;
  flex-shrink: 0;
  height: 40px;
  object-fit: cover;
  width: 40px;
}

.user-card-avatar {
  height: 48px;
  width: 48px;
}

.user-avatar-fallback,
.profile-photo-empty {
  align-items: center;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: #3730a3;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.user-card-avatar.user-avatar-fallback {
  font-size: 15px;
  height: 48px;
  width: 48px;
}

.profile-photo-picker {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 16px;
}

.profile-photo-picker legend {
  font-size: 16px;
  font-weight: 900;
}

.profile-photo-box {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-photo-preview {
  border-radius: 18px;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.profile-photo-empty {
  border-radius: 18px;
  font-size: 28px;
  height: 96px;
  width: 96px;
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-card-identity {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.user-card-identity > div {
  min-width: 0;
}

.staff-login,
.client-status-form {
  align-items: stretch;
  background: var(--panel);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  padding: 18px;
  width: 100%;
}

.staff-login > label,
.staff-login > .passkey-enable-line,
.staff-login > p,
.staff-login > .button {
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.staff-login > p#staffLoginStatus {
  color: #b45309;
  font-size: 14px;
  font-weight: 700;
  min-height: 1.4em;
}

.staff-login > p#staffLoginStatus.is-busy {
  color: #1d4ed8;
}
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.staff-login > label input,
.staff-login > label select,
.staff-login > label textarea {
  width: 100%;
}

.staff-login > .button {
  justify-content: center;
}

.staff-login p {
  margin: 0;
}

.staff-login .button.subtle {
  background: #eef5ff;
  border-color: rgba(0, 113, 227, 0.22);
  color: var(--blue);
}

.staff-login.reset-panel {
  grid-template-columns: minmax(0, 1fr);
}

.franchise-deck-actions {
  align-items: end;
  background: #111;
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.franchise-personalize {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  min-width: min(820px, 100%);
}

.franchise-personalize label {
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.franchise-personalize input {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #111;
  min-height: 48px;
  padding: 0 14px;
}

.franchise-deck-actions h2,
.franchise-deck-actions p {
  margin: 0;
}

.franchise-deck-actions p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

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

.franchise-application-card {
  gap: 16px;
}

.franchise-application-card header {
  display: grid;
  gap: 6px;
}

.franchise-application-card h2 {
  margin: 0;
}

.franchise-application-meta,
.franchise-approval {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.franchise-application-meta span,
.franchise-risk {
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.franchise-application-meta strong,
.franchise-risk strong {
  font-size: 12px;
  text-transform: uppercase;
}

.franchise-risk {
  grid-template-columns: 140px minmax(0, 1fr);
}

.risk-alert {
  background: #fff5f0;
  border-color: rgba(255, 88, 0, 0.24);
}

.franchise-documents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.franchise-quiz {
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 14px;
  padding: 12px;
}

.franchise-quiz summary {
  cursor: pointer;
  font-weight: 900;
}

.franchise-quiz form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.franchise-quiz label {
  display: grid;
  gap: 6px;
}

.franchise-quiz small,
.muted-text {
  color: var(--muted);
}

.franchise-approval {
  align-items: end;
}

.button.danger {
  background: #fff2f2;
  border-color: rgba(220, 38, 38, 0.22);
  color: #b42318;
}

.button.success {
  background: #12b76a;
  border-color: #12b76a;
  color: #fff;
}

.button.success:hover {
  background: #0e9f5c;
}

.franchise-deck {
  display: grid;
  gap: 18px;
}

.deck-slide {
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 58px rgba(16, 16, 16, 0.06);
  display: grid;
  gap: 22px;
  min-height: 520px;
  overflow: hidden;
  padding: 28px;
}

.deck-slide {
  page-break-inside: avoid;
}

.deck-slide h2 {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.deck-slide p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.48;
  margin: 0;
}

.deck-hero,
.deck-before-after {
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.deck-hero img,
.before-after-grid img {
  border-radius: 18px;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  width: 100%;
}

.deck-metrics,
.margin-grid,
.system-grid,
.seo-stack,
.revenue-grid,
.implementation-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deck-metrics div,
.margin-grid div,
.system-grid span,
.seo-stack div,
.revenue-grid div,
.implementation-steps span {
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
}

.deck-metrics strong {
  color: var(--blue);
  font-size: 58px;
  line-height: 1;
}

.deck-metrics span,
.margin-grid span,
.system-grid span,
.seo-stack div,
.revenue-grid div,
.implementation-steps span {
  font-weight: 900;
}

.deck-system-overview {
  gap: 24px;
}

.deck-system-overview .system-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.deck-system-overview .system-grid span {
  align-content: start;
  display: grid;
  gap: 8px;
  line-height: 1.32;
  min-height: 126px;
}

.deck-system-overview .system-grid strong {
  display: block;
  font-size: 18px;
}

.deck-system-overview .system-grid em {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

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

.before-after-grid figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.before-after-grid figcaption {
  color: var(--muted);
  font-weight: 900;
}

.margin-grid strong,
.margin-grid em,
.margin-grid b {
  display: block;
  font-style: normal;
}

.margin-grid b {
  color: var(--blue);
  font-size: 32px;
}

.projection-table {
  overflow-x: auto;
}

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

.projection-table th,
.projection-table td {
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  padding: 13px 10px;
  text-align: left;
  white-space: nowrap;
}

.projection-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.projection-table .positive {
  color: #0b7a3a;
  font-weight: 900;
}

.projection-table .negative {
  color: #b42318;
  font-weight: 900;
}

.deck-close {
  align-content: center;
  background: linear-gradient(135deg, #111, #16324e);
  color: #fff;
}

.deck-close p {
  color: rgba(255, 255, 255, 0.74);
}

.investor-radar-panel {
  gap: 16px;
}

.investor-radar-list {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.investor-radar-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1.2fr) 72px minmax(280px, 1.4fr) minmax(260px, 1fr);
  padding: 14px 16px;
}

.investor-radar-row + .investor-radar-row {
  border-top: 1px solid rgba(16, 16, 16, 0.08);
}

.investor-radar-row strong,
.investor-radar-row span {
  display: block;
}

.investor-radar-row span,
.investor-radar-row p {
  color: var(--muted);
  margin: 0;
}

.investor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.investor-phone-form {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0;
  padding: 10px;
  background: #f6f8fb;
  border-radius: 12px;
  border: 1px solid rgba(16, 16, 16, 0.06);
}

.investor-phone-form label {
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.investor-phone-form button {
  align-self: end;
}

.pill.success {
  background: rgba(18, 183, 106, 0.12);
  color: #067647;
}

.investor-score {
  background: #e8f3ff;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 900;
  padding: 8px 10px;
  text-align: center;
}

.investor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.staff-login[hidden] {
  display: none;
}

.passkey-setup-banner {
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  display: grid;
  gap: 10px;
}

.passkey-setup-actions {
  display: grid;
  gap: 8px;
}

@media (min-width: 640px) {
  .passkey-setup-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
}

.passkey-enable-line {
  align-items: flex-start !important;
  display: flex !important;
  flex-direction: row !important;
  font-size: 14px !important;
  font-weight: 700;
  gap: 10px !important;
  line-height: 1.35 !important;
  text-align: left;
}

.passkey-enable-line input {
  flex: 0 0 auto;
  margin-top: 2px;
  min-height: 18px;
  width: 18px;
}

.is-authenticated .staff-header {
  align-items: end;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  display: grid;
  gap: 12px 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr) auto;
  padding: 14px 16px;
}

.is-authenticated .staff-header-copy {
  grid-column: 1;
  min-width: 0;
}

.is-authenticated .module-search {
  grid-column: 2;
  max-width: none;
  min-width: 0;
  width: 100%;
}

.is-authenticated .staff-user {
  align-self: end;
  grid-column: 3;
}

.is-authenticated .staff-header h1 {
  font-size: clamp(30px, 4vw, 44px);
}

@media (max-width: 1280px) {
  .is-authenticated .staff-header {
    grid-template-areas:
      "copy user"
      "search search";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .is-authenticated .staff-header-copy {
    grid-area: copy;
  }

  .is-authenticated .module-search {
    grid-area: search;
    grid-column: 1 / -1;
    max-width: none;
  }

  .is-authenticated .staff-user {
    grid-area: user;
    justify-self: end;
  }

  .is-authenticated .staff-header h1 {
    font-size: clamp(24px, 3.2vw, 36px);
  }

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

.staff-content {
  align-content: start;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.locked-content {
  opacity: 0.55;
  pointer-events: none;
}

.staff-empty,
.staff-card,
.client-result {
  background: var(--panel);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  padding: 20px;
}

.ai-ops-hero {
  align-items: stretch;
  background: linear-gradient(135deg, #101014, #1d2939);
  border-radius: var(--radius);
  color: #fff;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  padding: 26px;
}

.ai-ops-hero h2,
.ai-ops-hero p {
  margin: 0;
}

.ai-ops-hero h2 {
  font-size: clamp(30px, 5vw, 54px);
  max-width: 920px;
}

.ai-ops-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  margin-top: 10px;
}

.ai-ops-status {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.ai-ops-status strong {
  font-size: 24px;
}

.ai-ops-status small {
  color: rgba(255, 255, 255, 0.7);
}

.ai-ops-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.ai-module-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  margin-top: 14px;
}

.ai-module-grid article {
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.ai-module-grid span {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  display: inline-grid;
  font-weight: 900;
  height: 30px;
  place-items: center;
  width: 30px;
}

.ai-module-grid h3,
.ai-module-grid p {
  margin: 0;
}

.ai-module-grid p {
  color: var(--muted);
  line-height: 1.42;
}

.ai-config-form h2,
.ai-config-form p {
  grid-column: 1 / -1;
  margin: 0;
}

.ai-actions {
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.ai-actions h2,
.ai-actions p {
  margin: 0;
}

.ai-insights {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.ai-insight {
  display: grid;
  gap: 8px;
}

.ai-insight span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-insight.alta {
  border-color: rgba(255, 59, 48, 0.35);
}

.ai-insight.média,
.ai-insight.media {
  border-color: rgba(255, 159, 10, 0.35);
}

.ai-insight h3,
.ai-insight p {
  margin: 0;
}

.ai-insight p,
.ai-insight small {
  color: var(--muted);
  line-height: 1.45;
}

.ai-analysis pre,
.ai-chat-result pre {
  background: #101014;
  border-radius: 16px;
  color: #fff;
  line-height: 1.5;
  margin: 12px 0 0;
  overflow-x: auto;
  padding: 16px;
  white-space: pre-wrap;
}

.ai-chat-form {
  display: grid;
  gap: 12px;
}

.ai-chat-form textarea {
  min-height: 120px;
}

.ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.ai-chat-history {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.ai-chat-entry {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ai-chat-q p,
.ai-chat-answer {
  line-height: 1.5;
  margin: 4px 0 0;
}

.ai-chat-entry small {
  color: var(--muted);
}

.staff-table {
  background: var(--panel);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.button.mini {
  font-size: 13px;
  min-height: 34px;
  padding-inline: 12px;
}

.button.danger {
  background: #fff2f2;
  border-color: rgba(255, 59, 48, 0.28);
  color: #b42318;
}

.edit-form {
  border-color: rgba(10, 132, 255, 0.32);
}

.edit-form h2 {
  grid-column: 1 / -1;
  margin: 0;
}

.seo-url-list {
  display: grid;
  gap: 8px;
}

.seo-url-list a {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.module-toolbar {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.module-toolbar h2,
.module-toolbar p {
  margin: 0;
}

.module-toolbar p {
  color: var(--muted);
}

.module-toolbar label {
  max-width: 260px;
  min-width: 220px;
}

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

.storage-grid div {
  background: #f5f8fc;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.storage-grid strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.storage-grid span {
  color: var(--muted);
  font-weight: 800;
}

.os-search-card {
  display: grid;
  gap: 14px;
}

.os-search-card h2,
.os-search-card p {
  margin: 0;
}

.os-search-card p,
.search-count {
  color: var(--muted);
}

.search-field {
  position: relative;
}

.search-field span {
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
  left: 14px;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.search-field input {
  font-size: 17px;
  min-height: 54px;
  padding-left: 48px;
}

.search-count {
  font-size: 13px;
  font-weight: 800;
}

.os-filter-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) minmax(180px, 260px);
}

.os-filter-grid label {
  min-width: 0;
}

.os-filter-grid select {
  min-height: 54px;
}

.admin-priority-panel {
  background: linear-gradient(135deg, #101014, #182738);
  color: #fff;
}

.dashboard-collapsible {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.dashboard-collapsible-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 12px;
  justify-content: space-between;
  padding: 18px 20px;
  text-align: left;
  width: 100%;
}

.dashboard-collapsible-head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-collapsible-head strong {
  font-size: 18px;
  line-height: 1.2;
}

.dashboard-collapsible-head small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-appointments-panel.dashboard-collapsible .dashboard-collapsible-head small {
  color: var(--muted);
}

.admin-appointments-panel.dashboard-collapsible {
  background: var(--panel);
  color: var(--ink);
}

.dashboard-collapsible-meta {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.dashboard-collapsible-badge {
  background: #f04438;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  min-width: 28px;
  padding: 6px 10px;
  text-align: center;
}

.dashboard-collapsible-badge.is-clear {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.admin-appointments-panel .dashboard-collapsible-badge.is-clear {
  background: #eef2f7;
  color: var(--muted);
}

.dashboard-collapsible-icon {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.admin-appointments-panel .dashboard-collapsible-icon {
  color: var(--muted);
}

.dashboard-collapsible.is-open .dashboard-collapsible-icon {
  transform: rotate(180deg);
}

.dashboard-collapsible-body {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 12px;
  padding: 0 20px 18px;
}

.admin-appointments-panel .dashboard-collapsible-body {
  border-top-color: rgba(16, 16, 16, 0.08);
}

.dashboard-collapsible-intro {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
  margin: 14px 0 0;
}

.admin-appointments-panel .dashboard-collapsible-intro {
  color: var(--muted);
}

.admin-priority-panel h2,
.admin-priority-panel p {
  margin: 0;
}

.admin-priority-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-priority-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px;
}

.admin-priority-item strong,
.admin-priority-item span,
.admin-priority-item small {
  min-width: 0;
}

.admin-priority-item small {
  color: rgba(255, 255, 255, 0.72);
}

.priority-pill {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.priority-critical .priority-pill {
  background: #f04438;
}

.priority-medium .priority-pill {
  background: #f79009;
}

.store-goal-panel {
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  display: grid;
  gap: 18px;
}

.store-goal-panel h2,
.store-goal-panel p {
  margin: 0;
}

.store-goal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.store-goal-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.store-goal-grid article.achieved {
  border-color: rgba(18, 183, 106, 0.45);
  box-shadow: 0 16px 40px rgba(18, 183, 106, 0.14);
}

.store-goal-grid strong {
  font-size: 20px;
  margin: 0;
}

.store-goal-grid span,
.store-goal-grid small {
  color: var(--muted);
}

.store-goal-grid b {
  color: #027a48;
}

.store-goal-grid progress {
  accent-color: var(--blue);
  height: 12px;
  width: 100%;
}

.goal-celebration-overlay {
  align-items: center;
  background: rgba(5, 9, 18, 0.66);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  z-index: 9999;
}

.goal-celebration-overlay section {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 12px;
  max-width: 560px;
  padding: 28px;
  position: relative;
  text-align: center;
  width: min(100%, 560px);
  z-index: 1;
}

.goal-celebration-overlay span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.goal-celebration-overlay h2 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: .98;
  margin: 0;
}

.goal-celebration-overlay p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.goal-fireworks {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.goal-fireworks i {
  animation: goalFirework 1.4s ease-out infinite;
  background: radial-gradient(circle, #fff 0 10%, transparent 12%),
    conic-gradient(from 90deg, #0a84ff, #12b76a, #f79009, #f04438, #0a84ff);
  border-radius: 50%;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, .65));
  height: 140px;
  opacity: 0;
  position: absolute;
  width: 140px;
}

.goal-fireworks i:nth-child(1) { left: 12%; top: 18%; }
.goal-fireworks i:nth-child(2) { animation-delay: .18s; right: 14%; top: 12%; }
.goal-fireworks i:nth-child(3) { animation-delay: .36s; left: 22%; bottom: 18%; }
.goal-fireworks i:nth-child(4) { animation-delay: .54s; right: 22%; bottom: 16%; }
.goal-fireworks i:nth-child(5) { animation-delay: .72s; left: 48%; top: 8%; }
.goal-fireworks i:nth-child(6) { animation-delay: .9s; left: 46%; bottom: 9%; }

@keyframes goalFirework {
  0% {
    opacity: 0;
    transform: scale(.12) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.18) rotate(60deg);
  }
}

.priority-low .priority-pill {
  background: #12b76a;
}

.manual-intro,
.manual-attribution {
  display: grid;
  gap: 10px;
}

.manual-intro h2,
.manual-intro p,
.manual-attribution h2,
.manual-attribution p {
  margin: 0;
}

.manual-intro p,
.manual-attribution p {
  color: var(--muted);
  line-height: 1.55;
}

.manual-search {
  align-items: end;
}

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

.manual-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.manual-card {
  background: var(--panel);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.manual-card h3,
.manual-card p {
  margin: 0;
}

.manual-card p {
  color: var(--muted);
  line-height: 1.45;
}

.manual-role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.manual-section-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.manual-timeline {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.manual-timeline-step {
  align-items: center;
  background: linear-gradient(145deg, rgba(52, 199, 89, 0.16), rgba(10, 132, 255, 0.12));
  border-radius: 14px;
  color: #137333;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 52px;
  justify-content: center;
}

.manual-timeline-body {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 16, 16, 0.06);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.manual-timeline-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-timeline-top strong {
  font-size: 16px;
}

.badge.soft {
  background: rgba(16, 16, 16, 0.06);
  color: rgba(16, 16, 16, 0.62);
}

.manual-role-card,
.manual-video-card,
.manual-franchise-card,
.manual-timeline-card {
  margin-bottom: 14px;
}

.manual-role-head h2,
.manual-video-card h2,
.manual-franchise-card h2 {
  margin: 8px 0;
}

.manual-role-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.manual-role-grid h3,
.manual-franchise-block h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.manual-bullet-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.manual-store-routines {
  border-color: rgba(34, 197, 94, 0.25);
  margin-bottom: 14px;
}

.manual-store-principles {
  margin: 12px 0 0;
}

.manual-store-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: 14px;
}

.manual-store-block {
  background: rgba(16, 16, 16, 0.03);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.manual-store-block-head h3 {
  font-size: 15px;
  margin: 6px 0 4px;
}

.manual-store-steps {
  margin: 8px 0 0;
  padding-left: 18px;
}

.manual-store-steps li {
  margin-bottom: 4px;
}

.manual-routine {
  background: rgba(16, 16, 16, 0.03);
  border: 1px solid rgba(16, 16, 16, 0.06);
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 8px 10px;
}

.manual-routine summary {
  cursor: pointer;
  font-weight: 700;
}

.manual-routine ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

.manual-role-modules {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.manual-video-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.manual-video-wrap iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

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

.manual-franchise-block {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 16, 16, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
}

.manual-franchise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ifixit-viewer-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(18, 183, 106, 0.35);
  box-shadow: 0 12px 40px rgba(18, 183, 106, 0.08);
}

.ifixit-viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ifixit-viewer-head h2 {
  margin: 4px 0 0;
}

.ifixit-viewer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ifixit-viewer-frame-wrap {
  min-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.ifixit-viewer-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 72vh;
  border: 0;
  background: #fff;
}

.ifixit-viewer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.manual-card-compact h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.doc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cost-insights {
  background: #f5f9ff;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
}

.cost-insights p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.help-hero {
  display: grid;
  gap: 12px;
}

.help-hero h2,
.help-hero p {
  margin: 0;
}

.help-hero p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 900px;
}

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

.help-card {
  background: var(--panel);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.help-card h3 {
  margin: 10px 0 0;
}

.help-card ol {
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.45;
  margin: 0;
  padding-left: 20px;
}

.help-card .button {
  justify-self: start;
}

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

.help-actions .button {
  min-height: 42px;
}

.staff-table th,
.staff-table td {
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.staff-table table {
  min-width: 920px;
  table-layout: fixed;
  width: 100%;
}

.staff-table th {
  background: #f7f8fb;
  color: var(--muted);
  font-size: 13px;
}

.staff-table th:last-child,
.staff-table td:last-child {
  background: inherit;
  position: sticky;
  right: 0;
  width: 220px;
  z-index: 2;
}

.staff-table th:last-child {
  background: #f7f8fb;
}

.staff-table td:last-child {
  background: var(--panel);
}

.cell-value {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.action-cell {
  min-width: 220px;
}

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

.staff-mini-metrics {
  align-items: center;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto auto;
  min-width: 180px;
}

.staff-mini-metrics strong {
  color: var(--blue);
  font-size: 28px;
}

.staff-mini-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.message-template-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.compact-form {
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.compact-table td small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.compact-table .badge {
  margin: 2px 2px 2px 0;
}

.badge.success {
  background: #dff8e8;
  color: #087b37;
}

.badge.muted {
  background: #edf1f7;
  color: #5f6673;
}

.button.danger {
  border-color: #ffd3d3;
  color: #b42318;
}

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

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

.settings-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
}

.settings-card.is-locked {
  background: #f8fafc;
  opacity: 0.68;
}

.settings-card h3,
.settings-disclosure h2 {
  margin: 0;
}

.settings-card p,
.settings-logo-preview p {
  color: var(--muted);
  margin: 0;
}

.settings-disclosure {
  display: grid;
  gap: 18px;
}

.settings-disclosure summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  list-style: none;
}

.settings-disclosure summary::-webkit-details-marker {
  display: none;
}

.settings-disclosure summary p {
  color: var(--muted);
  margin: 6px 0 0;
}

.settings-disclosure summary strong {
  background: #eaf4ff;
  border-radius: 999px;
  color: var(--blue);
  flex: 0 0 auto;
  padding: 10px 14px;
}

.company-settings-form {
  display: grid;
  gap: 18px;
}

.locked-module {
  min-height: 240px;
  place-content: center;
  text-align: center;
}

.settings-logo-preview {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 18px;
  padding: 14px;
}

.settings-logo-preview img {
  height: 64px;
  max-width: 180px;
  object-fit: contain;
}

.settings-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-form-grid textarea {
  min-height: 130px;
  resize: vertical;
}

.settings-form-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.staff-card strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.management-map {
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  display: grid;
  gap: 18px;
}

.management-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.management-head h2 {
  font-size: clamp(24px, 3vw, 38px);
  margin: 0;
}

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

.management-area {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 132, 255, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.management-area-top {
  align-items: center;
  display: flex;
  gap: 10px;
}

.management-area-top span {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  flex: 0 0 32px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.management-area h3,
.management-area p,
.management-area ul {
  margin: 0;
}

.management-area h3 {
  font-size: 18px;
}

.management-area p,
.management-area li {
  color: var(--muted);
  line-height: 1.45;
}

.management-area ul {
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

.management-map.compact .management-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.corporate-radar {
  overflow: visible;
}

.corporate-lead-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  margin-top: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.corporate-lead-row {
  align-items: center;
  background: #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(190px, 0.9fr) minmax(250px, 1fr) minmax(260px, 1.1fr) minmax(270px, auto);
  min-width: 980px;
  padding: 10px 12px;
}

.corporate-lead-row + .corporate-lead-row {
  border-top: 1px solid var(--line);
}

.corporate-lead-row:hover {
  background: #f8fbff;
}

.corporate-lead-row strong {
  font-size: 18px;
  line-height: 1.15;
  margin: 0;
}

.corporate-lead-row span,
.corporate-lead-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.lead-main,
.lead-meta,
.lead-actions {
  min-width: 0;
}

.lead-main {
  display: grid;
  gap: 3px;
}

.lead-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lead-meta span,
.lead-meta b,
.lead-phone-empty {
  background: #eef4fb;
  border-radius: 999px;
  color: #4f5661;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 10px;
}

.lead-meta b {
  background: rgba(10, 132, 255, 0.12);
  color: var(--blue);
}

.lead-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  min-width: 0;
}

.lead-actions .button.mini {
  border-radius: 999px;
  min-height: 36px;
  padding-inline: 12px;
  white-space: nowrap;
}

.lead-actions .whatsapp-lookup {
  background: #25d366;
  border-color: rgba(37, 211, 102, 0.42);
  color: #062b14;
}

.lead-actions .whatsapp-ready {
  background: #128c7e;
  border-color: rgba(18, 140, 126, 0.42);
  color: #fff;
}

.lead-phone-empty {
  white-space: nowrap;
}

.store-form h2,
.store-form p {
  grid-column: 1 / -1;
  margin: 0;
}

.store-form p {
  color: var(--muted);
  line-height: 1.45;
}

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

.store-card {
  background: var(--panel);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.store-photos {
  background: #eef1f6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 150px;
}

.store-photos img,
.store-photo-empty {
  height: 150px;
  object-fit: cover;
  width: 100%;
}

.store-photo-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 900;
  grid-column: 1 / -1;
  justify-content: center;
}

.product-media-picker legend {
  font-weight: 800;
  margin-bottom: 4px;
}

.product-media-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  margin: 8px 0 12px;
}

.product-media-thumb {
  background: #eef1f6;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  margin: 0;
  overflow: hidden;
  padding: 6px;
}

.product-media-thumb img,
.product-media-thumb video {
  border-radius: 8px;
  height: 120px;
  object-fit: cover;
  width: 100%;
}

.product-media-thumb.video video {
  background: #111;
}

.store-card-body,
.store-photo-form {
  display: grid;
  gap: 10px;
}

.store-card-body {
  padding: 16px;
}

.store-card h3,
.store-card p {
  margin: 0;
}

.store-card p {
  color: var(--muted);
  line-height: 1.45;
}

.store-photo-form input {
  min-height: auto;
}

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

.improvement-card h2 {
  margin: 0;
}

.improvement-card ul {
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.5;
  margin: 0;
  padding-left: 20px;
}

.report-section {
  display: grid;
  gap: 12px;
}

.report-section h2,
.whatsapp-status h2,
.whatsapp-status p {
  margin: 0;
}

.report-table table {
  min-width: 760px;
}

.report-charts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.report-chart {
  display: grid;
  gap: 12px;
}

.report-chart h2 {
  margin: 0;
}

.chart-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.9fr) minmax(120px, 1.4fr) auto;
}

.chart-row span,
.chart-row strong {
  font-size: 0.92rem;
}

.chart-row div {
  background: #edf1f7;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.chart-row i {
  background: linear-gradient(90deg, #0a84ff, #34c759);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.new-os-panel {
  border-color: rgba(10, 132, 255, 0.35);
  display: grid;
  gap: 16px;
}

.new-os-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.new-os-head h2,
.new-os-head p {
  margin: 0;
}

.new-os-head p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px;
}

.new-os-panel .staff-form-grid {
  border-top: 1px solid rgba(16, 16, 16, 0.08);
  padding-top: 16px;
}

.os-auto-code,
.os-voice-box,
.card-fee-calculator {
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  padding: 14px;
}

.card-fee-calculator {
  align-items: end;
  grid-column: 1 / -1;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 0.6fr) minmax(220px, 1fr);
}

.card-fee-calculator > strong,
.card-fee-calculator > span {
  grid-column: 1 / -1;
}

.card-fee-calculator p {
  color: var(--blue);
  font-weight: 900;
  margin: 0 0 12px;
}

.new-os-form > .os-voice-box {
  grid-column: 1 / -1;
}

.os-auto-code strong {
  font-size: 14px;
}

.os-auto-code span,
.os-voice-box span,
.card-fee-calculator span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.os-voice-box {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.os-voice-box::before {
  color: var(--blue);
  content: "Robô iRepair OS";
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.voice-copy {
  display: grid;
  gap: 8px;
}

.os-voice-box .button {
  justify-self: start;
}

.voice-robot {
  height: 108px;
  position: relative;
  width: 92px;
}

.robot-head {
  animation: robotFloat 2.8s ease-in-out infinite;
  background: linear-gradient(145deg, #fff, #dfe7f2);
  border: 2px solid rgba(10, 132, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.18);
  height: 54px;
  left: 18px;
  position: absolute;
  top: 0;
  width: 58px;
}

.robot-head i {
  animation: robotGlow 1.5s ease-in-out infinite alternate;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.9);
  height: 9px;
  position: absolute;
  top: 20px;
  width: 9px;
}

.robot-head i:first-child { left: 15px; }
.robot-head i:nth-child(2) { right: 15px; }

.robot-head b {
  border-bottom: 3px solid #1f9d55;
  border-radius: 0 0 999px 999px;
  bottom: 12px;
  height: 10px;
  left: 20px;
  position: absolute;
  width: 18px;
}

.voice-robot.speaking .robot-head b {
  animation: robotMouth 0.22s ease-in-out infinite alternate;
}

.robot-body {
  align-content: center;
  background: #111;
  border-radius: 24px 24px 18px 18px;
  color: #fff;
  display: grid;
  height: 50px;
  justify-items: center;
  left: 12px;
  position: absolute;
  top: 50px;
  width: 68px;
}

.robot-body span {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.robot-body small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.robot-arm {
  background: linear-gradient(145deg, #fff, #cbd6e4);
  border-radius: 999px;
  height: 40px;
  position: absolute;
  top: 56px;
  width: 12px;
}

.robot-arm.left {
  left: 0;
  transform: rotate(24deg);
}

.robot-arm.right {
  animation: robotWave 1.2s ease-in-out infinite;
  right: 0;
  transform-origin: bottom center;
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes robotGlow {
  from { opacity: 0.65; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.12); }
}

@keyframes robotWave {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(-50deg); }
}

@keyframes robotMouth {
  from {
    border-bottom-width: 3px;
    height: 7px;
    transform: translateY(0) scaleX(0.82);
  }
  to {
    border-bottom-width: 5px;
    height: 15px;
    transform: translateY(2px) scaleX(1.18);
  }
}

.voice-robot {
  filter: drop-shadow(0 18px 28px rgba(10, 132, 255, 0.18));
  height: 132px;
  isolation: isolate;
  position: relative;
  width: 116px;
}

.voice-robot::before,
.voice-robot::after {
  background: linear-gradient(180deg, #f8fbff, #cfd9e7);
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 22px;
  position: absolute;
  width: 13px;
  z-index: 0;
}

.voice-robot::before {
  left: 36px;
  transform: rotate(7deg);
}

.voice-robot::after {
  right: 36px;
  transform: rotate(-7deg);
}

.robot-head {
  animation: robotFloat 2.8s ease-in-out infinite;
  background:
    radial-gradient(circle at 34% 36%, #58aaff 0 6px, transparent 7px),
    radial-gradient(circle at 66% 36%, #58aaff 0 6px, transparent 7px),
    linear-gradient(145deg, #ffffff 0%, #eef6ff 68%, #dbe8f6 100%);
  border: 2px solid rgba(10, 132, 255, 0.22);
  border-radius: 48% 48% 50% 50%;
  box-shadow: inset 0 -10px 22px rgba(10, 132, 255, 0.08);
  height: 56px;
  left: 30px;
  position: absolute;
  top: 0;
  width: 56px;
  z-index: 4;
}

.robot-head::after {
  background: linear-gradient(135deg, #49d17c, #15803d);
  border-radius: 0 80% 0 80%;
  content: "";
  height: 12px;
  position: absolute;
  right: -3px;
  top: -4px;
  transform: rotate(-28deg);
  width: 22px;
}

.robot-head i {
  display: none;
}

.robot-head b {
  border: 0;
  background: #159957;
  border-radius: 0 0 999px 999px;
  bottom: 12px;
  height: 7px;
  left: 18px;
  position: absolute;
  width: 21px;
  z-index: 5;
}

.voice-robot.speaking .robot-head b {
  animation: robotMouth 0.22s ease-in-out infinite alternate;
}

.robot-body {
  align-content: center;
  background: #09090a;
  border-radius: 52% 48% 44% 44% / 56% 56% 46% 46%;
  color: #fff;
  display: grid;
  height: 72px;
  justify-items: center;
  left: 18px;
  padding-top: 12px;
  position: absolute;
  top: 50px;
  width: 80px;
  z-index: 2;
}

.robot-body::before {
  background: #09090a;
  border-radius: 55% 45% 42% 42% / 64% 64% 36% 36%;
  content: "";
  height: 34px;
  left: 11px;
  position: absolute;
  top: -10px;
  width: 58px;
  z-index: -1;
}

.robot-body::after {
  background: #ffffff;
  border-radius: 50%;
  content: "";
  height: 17px;
  position: absolute;
  right: -5px;
  top: 9px;
  width: 17px;
}

.robot-body span {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.robot-body small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 850;
}

.robot-arm {
  background: linear-gradient(145deg, #ffffff, #cad5e3);
  border-radius: 999px;
  height: 44px;
  position: absolute;
  top: 64px;
  width: 13px;
  z-index: 1;
}

.robot-arm.left {
  left: 8px;
  transform: rotate(31deg);
}

.robot-arm.right {
  animation: robotWave 1.2s ease-in-out infinite;
  right: 8px;
  transform-origin: bottom center;
}

.voice-robot {
  align-items: center;
  background: transparent !important;
  display: flex;
  filter: drop-shadow(0 18px 28px rgba(10, 132, 255, 0.16));
  height: 148px;
  justify-content: center;
  width: 148px;
}

.voice-robot img {
  animation: none !important;
  border: 0;
  display: block;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  width: 100%;
}

.voice-robot::before,
.voice-robot::after,
.robot-head,
.robot-body,
.robot-arm {
  display: none !important;
}

.os-voice-narrative {
  background: #fff;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px;
}

.os-voice-timeline {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.os-voice-timeline li {
  align-items: center;
  background: white;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
}

.os-voice-timeline span {
  align-items: center;
  background: #e9eef6;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 26px;
  font-size: 12px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
}

.os-voice-timeline b {
  font-size: 12px;
  line-height: 1.1;
}

.os-voice-timeline li.done {
  background: #e9f9ef;
  color: #0b7a3a;
}

.os-voice-timeline li.done span {
  background: #22c55e;
  color: white;
}

.os-voice-timeline li.active {
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
  color: var(--ink);
}

.os-voice-timeline li.confirming {
  background: #fff7e6;
  border-color: rgba(255, 159, 10, 0.5);
}

.new-os-checklist {
  background: #fff8dc;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.os-form-section {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.os-form-section-cliente {
  background: #edf6ff;
}

.os-form-section-aparelho {
  background: #edfdf5;
}

.os-form-section-servico {
  background: #fff8e8;
}

.os-form-section-financeiro {
  background: #f7f3ff;
}

.os-form-section-fotos {
  background: #f7f8fb;
}

.os-form-section-head h3,
.os-form-section-head p {
  margin: 0;
}

.os-form-section-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.os-section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.new-os-form {
  grid-template-columns: 1fr;
}

.new-os-form .full-span,
.new-os-form > button[type="submit"] {
  grid-column: 1;
}

.os-form-section {
  width: 100%;
}

.os-parts-picker {
  display: grid;
  gap: 10px;
}

.os-parts-tools {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 52px;
}

.os-parts-tools .button.mini {
  border-radius: 999px;
  min-height: 52px;
  padding: 0;
  width: 52px;
}

.os-selected-parts {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  padding: 8px;
}

.os-selected-parts em {
  color: var(--muted);
  font-style: normal;
}

.os-part-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px;
}

.os-part-chip button {
  align-items: center;
  background: #eef1f6;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.os-parts-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(16, 16, 16, 0.08);
  display: grid;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
}

.os-parts-results button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 10px;
  text-align: left;
}

.os-parts-results button:hover {
  background: #eef5ff;
}

.os-customer-picker {
  display: grid;
  gap: 8px;
  position: relative;
}

#staffContent .new-os-form label:has(.os-customer-picker),
#staffContent .new-os-form .os-form-section-cliente .os-section-grid label:first-child {
  overflow: visible;
  position: relative;
  z-index: 4;
}

.os-customer-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(16, 16, 16, 0.08);
  display: grid;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  width: 100%;
}

.os-customer-result {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.os-customer-result strong {
  font-size: 14px;
}

.os-customer-result small {
  color: var(--muted);
  font-size: 12px;
}

.os-customer-result:hover {
  background: #eef5ff;
}

.quick-part-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 12px;
}

.quick-part-form strong {
  grid-column: 1 / -1;
}

.quick-part-form .button {
  align-self: end;
}

.module-back {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-self: start;
  margin: 0;
  min-height: 34px;
  padding: 6px 12px;
  width: auto;
}

.module-back:hover {
  background: #f8fafc;
  border-color: rgba(16, 16, 16, 0.16);
  color: var(--ink);
}

.new-os-form label,
.os-section-grid label {
  min-width: 0;
}

.new-os-form input,
.new-os-form select,
.new-os-form textarea {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.new-os-form textarea {
  min-height: 110px;
}

.new-os-checklist h3,
.new-os-checklist p {
  margin: 0;
}

.os-card {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.os-card h2,
.os-card h3 {
  margin: 0;
}

.os-card-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.os-list-toolbar {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.os-row-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: visible;
}

.os-row {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.os-row.is-delivered {
  background: #f0fbf5;
  border-left: 5px solid #12b76a;
}

.os-row.is-delivered summary .badge {
  background: #dcfae6;
  color: #027a48;
}

.os-row.is-pending-delivery {
  background: #fff8f6;
  border-left: 5px solid #f04438;
}

.os-row.is-pending-delivery summary .badge {
  background: #fee4e2;
  color: #b42318;
}

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

.os-row summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px minmax(132px, 190px) minmax(118px, 150px) minmax(180px, 1.25fr) minmax(160px, 1fr) minmax(96px, 120px);
  list-style: none;
  min-height: 52px;
  padding: 8px 12px;
}

.os-row summary .os-row-flags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.os-row summary::-webkit-details-marker {
  display: none;
}

.os-row summary::before {
  color: var(--muted);
  content: "+";
  font-weight: 900;
  justify-self: center;
}

.os-row[open] summary::before {
  content: "-";
}

.os-row summary .badge {
  justify-self: start;
}

.badge.danger {
  background: #fff1f0;
  color: #b42318;
}

.os-row summary b {
  justify-self: end;
  text-align: right;
}

.os-row summary span:not(.os-row-flags),
.os-row summary strong,
.os-row summary b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-row-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  overflow: visible;
  padding: 12px;
}

.os-sticky-actions {
  background: #fff;
  border-bottom: 1px solid var(--line);
  margin: -12px -12px 0;
  padding: 10px 12px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.os-row-body h3,
.os-row-body p {
  margin: 0;
}

.wrap {
  flex-wrap: wrap;
}

.os-step-list {
  display: grid;
  gap: 10px;
}

.os-step-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 220px) minmax(180px, 1fr) minmax(120px, auto) auto auto;
}

.os-step-row input,
.os-step-row select {
  min-height: 42px;
  width: 100%;
}

.customer-search-results h2,
.customer-search-results p {
  margin: 0 0 10px;
}

.customer-search-results-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.customer-search-result {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.customer-search-result strong {
  display: block;
}

.customer-search-result span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.customer-history-box {
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 7px;
  padding: 14px;
}

.customer-history-box span,
.customer-history-box small,
.customer-history-box li {
  color: var(--muted);
  font-size: 14px;
}

.customer-history-box ul {
  margin: 0;
  padding-left: 18px;
}

.customer-history-panel {
  display: grid;
  gap: 14px;
}

.customer-history-panel h2,
.customer-history-panel p {
  margin: 0;
}

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

.customer-history-grid article {
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 7px;
  padding: 14px;
}

.customer-history-grid span,
.customer-history-grid small,
.customer-history-grid li {
  color: var(--muted);
  font-size: 14px;
}

.customer-history-grid ul {
  margin: 0;
  padding-left: 18px;
}

.customer-profile-panel {
  display: grid;
  gap: 18px;
}

.customer-profile-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.customer-profile-head h2,
.customer-profile-head p {
  margin: 0;
}

.customer-profile-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-profile-stats article {
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.customer-profile-stats span,
.customer-profile-stats small {
  color: var(--muted);
  font-size: 13px;
}

.customer-profile-stats strong {
  font-size: 28px;
  line-height: 1;
}

.customer-profile-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.customer-profile-block {
  display: grid;
  gap: 12px;
}

.customer-profile-block h3 {
  margin: 0;
}

.customer-device-grid {
  display: grid;
  gap: 10px;
}

.customer-device-card {
  background: #f6f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.customer-device-card span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .customer-profile-head,
  .customer-profile-grid,
  .customer-profile-stats {
    grid-template-columns: 1fr;
  }

  .customer-profile-head {
    display: grid;
  }
}

.stock-summary {
  margin-bottom: 0;
}

.stock-map,
.stock-actions,
.stock-history {
  display: grid;
  gap: 14px;
}

.stock-map h2,
.stock-actions h2,
.stock-actions p,
.stock-history h2 {
  margin: 0;
}

.stock-actions p {
  color: var(--muted);
}

.stock-store-grid,
.stock-history-list {
  display: grid;
  gap: 10px;
}

.stock-store-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-store-board {
  align-items: stretch;
}

.stock-store-card {
  align-content: start;
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.stock-store-card header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.stock-tone-1 {
  background: #eef6ff;
}

.stock-tone-2 {
  background: #ecfdf3;
}

.stock-tone-3 {
  background: #fff8e5;
}

.stock-tone-4 {
  background: #f7f3ff;
}

.stock-store-card.drag-over {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.16);
}

.stock-store-search {
  display: grid;
  gap: 6px;
}

.stock-store-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-store-search input {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  min-height: 44px;
  padding: 0 12px;
}

.stock-drop-zone {
  background: rgba(255, 255, 255, 0.72);
  border: 2px dashed rgba(10, 132, 255, 0.35);
  border-radius: 12px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
  text-align: center;
}

.stock-store-card.drag-over .stock-drop-zone,
.stock-drop-zone.drag-over {
  background: rgba(10, 132, 255, 0.12);
  border-color: var(--blue);
  color: #0a4ea4;
}

.stock-category {
  align-content: start;
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.stock-category > strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stock-item-table {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  display: grid;
  overflow: hidden;
}

.stock-item-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(140px, 1.5fr) minmax(100px, 1fr) 52px minmax(210px, 1.2fr);
  min-height: 52px;
  padding: 8px 10px;
}

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

.stock-item-row.stock-item-head {
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-height: 36px;
  text-transform: uppercase;
}

.stock-item-card {
  cursor: default;
}

.stock-item-card.stock-item-dragging {
  opacity: 0.55;
}

.stock-drag-handle {
  align-items: center;
  background: #eef4ff;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 10px;
  color: #1d4ed8;
  cursor: grab;
  display: inline-flex;
  font-size: 16px;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.stock-drag-handle:active {
  cursor: grabbing;
}

.stock-drag-handle:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.stock-item-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.stock-item-main strong,
.stock-item-compat {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-item-main small,
.stock-item-compat {
  color: var(--muted);
  font-size: 12px;
}

.stock-item-qty {
  align-self: center;
  background: #111;
  border-radius: 999px;
  color: #fff;
  justify-self: center;
  min-width: 34px;
  padding: 6px 8px;
  text-align: center;
}

.stock-inline-actions {
  display: grid;
  gap: 4px;
  grid-column: auto;
  grid-template-columns: 34px 34px minmax(62px, 1fr) auto;
  width: 100%;
}

.stock-item-empty {
  padding: 12px;
}

@media (max-width: 1180px) {
  .stock-item-table {
    overflow-x: auto;
  }

  .stock-item-row {
    min-width: 760px;
  }
}

.stock-inline-actions .button {
  min-height: 34px;
  min-width: 34px;
  padding-inline: 10px;
}

.muted-line {
  color: var(--muted);
  margin: 0;
}

.customer-search-box {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 1fr) auto;
}

.customer-search-box span {
  color: var(--muted);
  font-weight: 800;
}

.stock-store-grid article,
.stock-history-list article {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.stock-store-grid span,
.stock-store-grid small,
.stock-history-list span,
.stock-history-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.stock-store-grid .stock-tone-1 { background: #eef6ff; }
.stock-store-grid .stock-tone-2 { background: #ecfdf3; }
.stock-store-grid .stock-tone-3 { background: #fff8e5; }
.stock-store-grid .stock-tone-4 { background: #f7f3ff; }

.stock-store-grid .stock-item-card {
  background: rgba(255, 255, 255, 0.72);
  grid-template-columns: minmax(0, 1fr) auto;
}

.moderation-panel {
  display: grid;
  gap: 14px;
}

.moderation-panel h2,
.moderation-panel p {
  margin: 0;
}

.moderation-panel p,
.moderation-panel small {
  color: var(--muted);
}

.moderation-grid {
  display: grid;
  gap: 12px;
}

.moderation-grid article {
  align-items: start;
  background: #fff8e8;
  border: 1px solid #f5c16c;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 160px 1fr;
  padding: 14px;
}

.moderation-grid img,
.moderation-empty {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.moderation-empty {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-weight: 800;
  justify-items: center;
}

.moderation-grid h3,
.moderation-grid p {
  margin: 6px 0;
}

.whatsapp-status {
  display: grid;
  gap: 10px;
}

.whatsapp-status p {
  color: var(--muted);
  line-height: 1.5;
}

.whatsapp-status.connected {
  border-color: rgba(37, 211, 102, 0.34);
}

.whatsapp-config {
  align-items: end;
}

.staff-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .staff-form-grid:not(.report-filter-bar):not(.store-form) {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

#staffContent .staff-form-grid.report-filter-bar {
  align-items: end;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr) minmax(150px, .8fr) auto auto;
}

@media (max-width: 860px) {
  #staffContent .staff-form-grid.report-filter-bar {
    grid-template-columns: 1fr;
  }
}

#staffContent .staff-form-grid.store-form {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  #staffContent .staff-form-grid.store-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.form-actions .button {
  min-height: 44px;
  width: auto;
}

.full-span {
  grid-column: 1 / -1;
}

.new-os-form {
  grid-template-columns: minmax(0, 1fr);
}

.new-os-form > .button {
  justify-self: start;
}

.permission-box {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 440px;
  overflow: auto;
  padding: 16px;
}

.permission-box legend {
  font-weight: 900;
  padding: 0 8px;
}

.permission-box p {
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: 0;
}

.permission-box .check-line {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px 1fr;
  margin: 0;
  min-height: 48px;
  padding: 10px;
}

.permission-box input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.permission-kit-box {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 18px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}

.permission-kit-box legend {
  font-size: 18px;
  font-weight: 900;
}

.permission-kit-head {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.permission-kit-head .form-help {
  grid-column: auto;
  margin: 4px 0 0;
}

.permission-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-chip {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 36px;
  padding: 8px 14px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.permission-chip:hover {
  border-color: rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

.permission-chip.active {
  background: #101010;
  border-color: #101010;
  color: #fff;
}

.user-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.user-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.user-card-inactive {
  opacity: 0.72;
}

.user-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.user-card-head strong {
  display: block;
  font-size: 17px;
}

.user-card-head span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 2px;
  word-break: break-word;
}

.user-role-badge {
  background: #f3f4f6;
  border-radius: 999px;
  color: #111827;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.user-card-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 14px;
}

.user-status.active {
  color: #047857;
  font-weight: 700;
}

.user-status.inactive {
  color: #b45309;
  font-weight: 700;
}

.user-access-block {
  display: grid;
  gap: 8px;
}

.user-access-block small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.user-access-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-chip {
  background: #eef2ff;
  border-radius: 999px;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 9px;
}

.access-chip.muted {
  background: #f3f4f6;
  color: #6b7280;
}

.user-card-actions {
  justify-content: flex-start;
  margin-top: 2px;
}

.form-help {
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.55;
  margin: 0;
}

.os-process-note {
  background: #f7f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  padding: 14px;
}

.os-process-note strong {
  font-size: 16px;
}

.os-process-note span {
  color: var(--muted);
  line-height: 1.35;
}

.staff-form-grid > .button,
.staff-form-grid > .form-actions {
  align-self: end;
  grid-column: 1 / -1;
  justify-self: start;
}

.staff-form-grid > .button {
  border-radius: var(--radius);
  min-height: 44px;
  width: auto;
}

.staff-import textarea {
  min-height: 220px;
  resize: vertical;
}

.staff-import label:nth-of-type(4) {
  grid-column: 1 / -1;
}

.cash-form h2 {
  grid-column: 1 / -1;
  margin: 0;
}

.sale-form h2,
.sale-form p,
.cost-form h2,
.cost-form p {
  grid-column: 1 / -1;
  margin: 0;
}

.sale-form p,
.cost-form p {
  color: var(--muted);
  line-height: 1.45;
}

.cash-form label:has(textarea) {
  grid-column: span 2;
}

.cash-form textarea {
  min-height: 92px;
}

.os-inspection {
  display: grid;
  gap: 16px;
}

.os-inspection textarea {
  min-height: 110px;
  resize: vertical;
}

.os-quick-grid {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.os-quick-grid p {
  margin: 0;
}

.os-workspace {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
}

.os-outsourcing-card {
  grid-column: 1 / -1;
}

.outsourcing-history {
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.os-inline-card {
  background: #f7f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.os-inline-card h3 {
  margin: 0;
}

.os-inline-card textarea {
  min-height: 74px;
  resize: vertical;
}

.os-inline-card > .button {
  border-radius: 999px;
  justify-self: start;
  min-height: 42px;
  padding-inline: 16px;
  width: auto;
}

.operation-timeline {
  display: grid;
  gap: 16px;
}

.operation-timeline h2 {
  margin: 0;
}

.operation-timeline > div {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 4px;
}

.operation-timeline article {
  align-content: start;
  background: #f7f9fc;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  min-height: 150px;
  min-width: 0;
  padding: 14px;
}

.operation-timeline b {
  align-items: center;
  background: #0a84ff;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.operation-timeline p,
.supplier-quote-box p,
.feedback-panel p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.operation-timeline strong {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.05;
  margin: 0;
  overflow-wrap: normal;
}

.audit-form .signature-box {
  min-height: 260px;
}

.audit-form .signature-box canvas {
  min-height: 190px;
}

.audit-toolbar {
  align-items: center;
}

.audit-prune-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audit-prune-actions label {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.list-pager {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 10px 0;
  padding: 10px 12px;
}

.list-pager span {
  color: var(--muted);
  font-weight: 800;
}

.camera-box,
.signature-box,
.verbal-acceptance {
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.new-os-form > .camera-box,
.new-os-form > .signature-row,
.new-os-form > .verbal-acceptance {
  grid-column: 1 / -1;
}

.signature-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.camera-head,
.signature-box > div,
.verbal-acceptance > div {
  display: grid;
  gap: 3px;
}

.camera-head span,
.signature-box span,
.verbal-acceptance span,
.verbal-acceptance p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.camera-step-guide {
  background: #f4f8ff;
  border: 1px solid #d7e6ff;
  border-radius: 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  padding: 12px 14px;
}

.camera-step-guide strong {
  color: #1d4ed8;
}

.camera-preview figcaption {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.camera-box video {
  aspect-ratio: 1;
  background: #111;
  border-radius: 12px;
  height: auto;
  max-height: 360px;
  max-width: 360px;
  object-fit: cover;
  width: 100%;
}

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

.camera-file-field {
  display: grid;
  gap: 8px;
}

.camera-file-field input {
  background: #f8fafc;
}

.camera-preview {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.camera-preview figure {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 6px;
}

.camera-preview img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.camera-preview video {
  aspect-ratio: 1;
  background: #111;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.camera-preview figcaption,
.camera-retention-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.signature-box canvas {
  background: #fff;
  border: 1px dashed rgba(16, 16, 16, 0.28);
  border-radius: 12px;
  height: 260px;
  touch-action: none;
  width: 100%;
}

.signature-saved {
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 12px;
  display: block;
  height: 160px;
  object-fit: contain;
  width: 100%;
}

.verbal-acceptance {
  background: #f7f8fb;
}

.checklist-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}

.checklist-grid.compact {
  gap: 6px;
}

.check-row {
  background: #f7f8fb;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 0.85fr) minmax(230px, 1.45fr) minmax(120px, 0.9fr);
  align-items: center;
  padding: 7px 9px;
}

.check-row.compact {
  padding: 7px 9px;
}

.check-row strong {
  font-size: 13px;
  line-height: 1.15;
  margin: 0;
}

.check-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.check-row label {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 999px;
  display: flex;
  font-size: 12px;
  gap: 4px;
  margin: 0;
  min-height: 30px;
  padding: 4px 8px;
  white-space: nowrap;
}

.check-row input[type="radio"] {
  height: 14px;
  width: 14px;
}

.check-row input[type="radio"] {
  accent-color: var(--blue);
  height: 14px;
  min-height: 0;
  width: 14px;
}

.os-phase-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(90px, auto) 1fr;
  padding: 10px 12px;
}

.os-phase-row strong {
  font-size: 14px;
  font-weight: 900;
}

.os-phase-row .check-options label:has(input:checked) {
  background: #dbeafe;
  border-color: #3b82f6;
  font-weight: 800;
}

#staffContent .os-inline-bundle .os-phase-row,
#staffContent .os-inspection .os-phase-row {
  grid-column: 1 / -1;
}

.check-row input[type="text"],
.check-row input:not([type]) {
  font-size: 13px;
  min-height: 32px;
  padding: 6px 9px;
}

.invoice-issuer h2,
.invoice-issuer p {
  grid-column: 1 / -1;
  margin: 0;
}

.invoice-issuer p {
  color: var(--muted);
  line-height: 1.45;
}

.invoice-issuer label:has(textarea) {
  grid-column: 1 / -1;
}

.invoice-issuer textarea {
  min-height: 110px;
  resize: vertical;
}

.client-track-page h1 {
  font-size: clamp(40px, 6vw, 76px);
}

.client-result {
  margin-top: 18px;
}

.status-steps {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.status-steps div {
  background: #eef1f6;
  border-radius: var(--radius);
  padding: 12px;
}

.loyalty-card {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(37, 211, 102, 0.14));
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 16px;
}

.loyalty-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.loyalty-card strong {
  font-size: 30px;
}

.loyalty-card p,
.loyalty-card small {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1280px) {
  .ai-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .corporate-lead-row {
    align-items: start;
    grid-template-columns: minmax(190px, 0.8fr) minmax(230px, 1fr) minmax(240px, 1fr) minmax(250px, auto);
    min-width: 0;
  }

  .lead-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .ai-module-grid {
    grid-template-columns: 1fr;
  }

  .staff-body {
    overflow-x: hidden;
  }

  .staff-shell,
  .staff-login,
  .staff-login-hero,
  .staff-login-brand,
  .client-status-form,
  .staff-grid,
  .settings-grid,
  .settings-form-grid,
  .management-grid,
  .management-map.compact .management-grid,
  .store-grid,
  .customer-history-grid,
  .customer-search-box,
  .stock-store-grid,
  .moderation-grid article,
  .ai-ops-hero,
  .ai-ops-grid,
  .ai-insights,
  .os-quick-grid,
  .os-workspace,
  .os-section-grid,
  .report-charts-grid,
  .staff-form-grid,
  .checklist-grid,
  .manual-grid,
  .manual-role-grid,
  .manual-franchise-grid,
  .manual-timeline-item,
  .help-grid,
  .os-step-row,
  .franchise-application-meta,
  .franchise-approval,
  .franchise-risk {
    grid-template-columns: 1fr;
  }

  .franchise-approval .button,
  .franchise-documents .button {
    width: 100%;
  }

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

  .card-fee-calculator {
    grid-template-columns: 1fr;
  }

  .permission-box {
    grid-template-columns: 1fr;
  }

  .check-row {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 1fr;
  }

  .operation-timeline > div {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .franchise-deck-actions,
  .franchise-personalize,
  .deck-hero,
  .deck-before-after,
  .investor-radar-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .franchise-deck-actions {
    align-items: stretch;
  }

  .deck-slide {
    min-height: 0;
    padding: 22px;
  }

  .deck-metrics,
  .margin-grid,
  .system-grid,
  .seo-stack,
  .revenue-grid,
  .implementation-steps,
  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .investor-actions {
    justify-content: flex-start;
  }

  .deck-slide h2 {
    font-size: clamp(30px, 12vw, 48px);
  }

  .deck-hero img,
  .before-after-grid img {
    max-height: 320px;
  }

  .os-voice-box {
    grid-template-columns: 1fr;
  }

  .voice-robot {
    justify-self: center;
  }

  .staff-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .staff-sidebar {
    align-items: center;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
    padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) 12px calc(12px + env(safe-area-inset-left, 0px));
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 40;
  }

  .staff-sidebar.menu-open {
    grid-template-rows: auto auto auto;
  }

  .staff-sidebar .brand {
    grid-column: 1;
    justify-self: start;
  }

  .staff-sidebar .brand-logo {
    max-height: 42px;
    max-width: 138px;
    object-fit: contain;
  }

  .staff-menu-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 900;
    grid-column: 2;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 14px;
    width: auto;
  }

  .staff-menu-toggle strong {
    font-size: 20px;
    line-height: 1;
  }

  .staff-sidebar nav {
    background: var(--night);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    display: none;
    gap: 10px;
    grid-column: 1 / -1;
    max-height: min(70dvh, 620px);
    overflow-y: auto;
    padding: 8px 2px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .staff-sidebar.menu-open nav {
    display: grid;
  }

  .staff-sidebar button {
    border-radius: 14px;
    min-height: 38px;
    padding: 0 13px;
    white-space: normal;
  }

  .staff-sidebar .nav-section {
    background: rgba(255, 255, 255, 0.035);
    border-radius: 14px;
    gap: 7px;
    padding: 10px 10px 10px 12px;
  }

  .staff-main {
    gap: 12px;
    min-width: 0;
    padding: 12px calc(12px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
  }

  .staff-body.is-authenticated .staff-main {
    min-height: 0;
  }

  .staff-shell {
    min-height: 100dvh;
  }

  .module-search {
    min-width: 0;
    width: 100%;
  }

  .staff-header-copy {
    min-width: 0;
    width: 100%;
  }

  .is-authenticated .staff-header {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .is-authenticated .staff-header-copy,
  .is-authenticated .module-search,
  .is-authenticated .staff-quick-actions,
  .is-authenticated .staff-user {
    grid-column: auto;
    width: 100%;
  }

  .staff-header {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .staff-quick-actions {
    width: 100%;
  }

  .staff-quick-chip {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    text-align: center;
  }

  .staff-sidebar-footer {
    grid-column: 1 / -1;
  }

  .staff-sidebar.menu-open .staff-sidebar-footer {
    display: grid;
  }

  .staff-sidebar:not(.menu-open) .staff-sidebar-footer {
    display: none;
  }

  .staff-header h1 {
    font-size: clamp(28px, 10vw, 38px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .staff-user {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
  }

  .is-authenticated .staff-user #staffUser {
    flex: 1 1 auto;
    max-width: none;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .module-search {
    width: 100%;
  }

  .module-search-results {
    position: static;
  }

  .staff-login .button,
  .staff-form-grid > .button,
  .staff-form-grid > .form-actions .button,
  .os-inline-card > .button,
  .module-toolbar .button,
  .button.primary {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
  }

  .staff-user .staff-logout-btn {
    width: auto;
  }

  .staff-empty,
  .staff-card,
  .client-result {
    border-radius: 14px;
    padding: 12px;
  }

  .staff-content {
    gap: 12px;
  }

  .staff-login {
    align-items: stretch;
  }

  .staff-body:not(.is-authenticated) .staff-login-shell {
    background-attachment: scroll;
    min-height: 100dvh;
    padding: calc(24px + env(safe-area-inset-top, 0px)) calc(18px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) calc(18px + env(safe-area-inset-left, 0px));
  }

  .staff-login-hero,
  .staff-login,
  .staff-login.reset-panel {
    max-width: 100%;
    width: 100%;
  }

  .staff-form-grid,
  .form-grid,
  .settings-form-grid {
    gap: 10px;
  }

  .os-filter-grid,
  .admin-priority-item {
    grid-template-columns: 1fr;
  }

  .staff-body input,
  .staff-body select,
  .staff-body textarea {
    border-radius: 12px;
    font-size: 16px;
    min-height: 42px;
    padding-inline: 11px;
  }

  .staff-body textarea,
  .os-inspection textarea,
  .os-inline-card textarea,
  .staff-import textarea,
  .invoice-issuer textarea,
  .settings-form-grid textarea {
    min-height: 84px;
  }

  .full-span,
  .staff-form-grid > h2,
  .staff-form-grid > p,
  .ai-config-form h2,
  .ai-config-form p,
  .cash-form h2,
  .sale-form h2,
  .sale-form p,
  .cost-form h2,
  .cost-form p {
    grid-column: 1 / -1;
  }

  .button {
    min-height: 42px;
    padding-inline: 14px;
  }

  .button.mini {
    min-height: 34px;
    padding-inline: 10px;
  }

  .staff-table,
  .report-table,
  .projection-table {
    border-radius: 14px;
    margin-inline: -2px;
    max-width: 100%;
    overflow-x: auto;
  }

  .staff-table table,
  .report-table table,
  .projection-table table {
    min-width: 720px;
  }

  .staff-table th,
  .staff-table td,
  .report-table th,
  .report-table td,
  .projection-table th,
  .projection-table td {
    font-size: 13px;
    padding: 10px 9px;
    vertical-align: top;
  }

  .edit-form {
    margin-inline: -2px;
  }

  .settings-logo-preview {
    align-items: start;
    flex-direction: column;
  }

  .corporate-lead-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    padding: 12px;
  }

  .lead-actions {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }

  .lead-actions .button {
    width: auto;
  }

  .new-os-head,
  .management-head,
  .os-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .os-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .module-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .module-toolbar label {
    max-width: none;
    min-width: 0;
  }

  .os-row summary {
    align-items: start;
    gap: 6px 10px;
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .os-row summary .os-row-flags,
  .os-row summary .badge,
  .os-row summary strong,
  .os-row summary span,
  .os-row summary b {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .os-workspace,
  .os-card {
    gap: 10px;
  }

  .os-inline-card {
    border-radius: 14px;
    padding: 10px;
  }

  .os-quick-grid {
    gap: 6px;
  }

  .permission-box {
    border-radius: 14px;
    padding: 12px;
  }

  .permission-box .check-line {
    grid-template-columns: 22px 1fr;
  }

  .camera-box,
  .signature-box,
  .verbal-acceptance {
    border-radius: 14px;
    padding: 10px;
  }

  .camera-box video {
    max-height: min(320px, 84vw);
    max-width: min(320px, 84vw);
  }

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

  .camera-actions .button,
  .signature-box .button {
    width: 100%;
  }

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

  .signature-box canvas {
    height: 180px;
  }

  .settings-disclosure summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-ops-hero {
    border-radius: 14px;
    padding: 16px;
  }

  .ai-ops-hero h2 {
    font-size: clamp(26px, 9vw, 38px);
  }

  .ai-actions,
  .ai-ops-status {
    border-radius: 14px;
    padding: 12px;
  }

  .ai-analysis pre,
  .ai-chat-result pre {
    border-radius: 12px;
    font-size: 13px;
    max-width: 100%;
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .staff-main {
    padding: 10px;
  }

  .is-authenticated .staff-header h1,
  .staff-header h1 {
    font-size: clamp(26px, 11vw, 34px);
  }

  .staff-sidebar {
    padding: 10px;
  }

  .staff-sidebar .brand-logo {
    max-height: 38px;
    max-width: 126px;
  }

  .staff-sidebar button {
    font-size: 13px;
    min-height: 36px;
    padding-inline: 11px;
  }

  .staff-empty,
  .staff-card,
  .client-result,
  .new-os-checklist,
  .os-inline-card,
  .camera-box,
  .signature-box,
  .verbal-acceptance {
    padding: 10px;
  }

  .staff-body label {
    font-size: 12px;
    gap: 6px;
  }

  .staff-body input,
  .staff-body select,
  .staff-body textarea {
    min-height: 40px;
  }

  .staff-table,
  .report-table,
  .projection-table {
    max-width: 100%;
  }

  .staff-table table {
    min-width: 720px;
  }

  .staff-table th,
  .staff-table td {
    font-size: 13px;
    padding: 9px;
  }

  .staff-table .button,
  .staff-table button,
  .row-actions .button,
  .row-actions button {
    min-height: 34px;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .check-row {
    gap: 6px;
    padding: 8px;
  }

  .check-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .check-row label {
    justify-content: center;
    min-height: 32px;
    padding: 4px 5px;
    text-align: center;
    white-space: normal;
  }

  .camera-actions {
    grid-template-columns: 1fr;
  }

  .camera-preview {
    grid-template-columns: 1fr 1fr;
  }

.signature-box canvas {
  height: 160px;
}
}

/* OS aberta: layout de trabalho compacto e claro para atendimento diário. */
.os-workspace {
  align-items: start !important;
  grid-template-columns: 1fr !important;
}

.os-inline-card {
  align-content: start !important;
  align-self: start !important;
  min-height: 0 !important;
}

.os-inline-card label {
  align-content: start;
  display: grid;
  gap: 7px;
}

.os-inline-card input,
.os-inline-card select,
.os-inline-card textarea {
  min-height: 46px;
}

.os-inline-card textarea {
  min-height: 96px;
}

.os-inline-card > .button,
.os-inline-card > button[type="submit"] {
  align-self: start !important;
  border-radius: 999px !important;
  justify-self: start !important;
  min-height: 42px !important;
  min-width: 150px;
  padding: 9px 18px !important;
  width: auto !important;
}

.os-inline-card .camera-box,
.os-inline-card .signature-box,
.os-inline-card .verbal-acceptance {
  padding: 12px;
}

.os-inline-card .signature-box canvas {
  height: 190px;
}

.os-inline-card .checklist-grid.compact {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.os-inline-card[data-os-update] {
  align-items: end !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) auto !important;
}

.os-inline-card[data-os-update] h3 {
  grid-column: 1 / -1;
}

.os-inline-card[data-os-update] label {
  margin: 0;
}

.os-inline-card[data-os-update] textarea,
.os-inline-card[data-os-update] input,
.os-inline-card[data-os-update] select {
  min-height: 46px !important;
}

.os-inline-card[data-os-update] > .button {
  min-width: 132px;
  white-space: nowrap;
}

.os-inline-card[data-os-inspection] {
  max-width: 1280px;
  width: 100%;
}

.os-list-toolbar .button[disabled],
.os-list-toolbar button[disabled] {
  cursor: not-allowed;
  opacity: .42;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .os-workspace {
    grid-template-columns: 1fr !important;
  }

  .os-inline-card[data-os-update] {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .os-inline-card[data-os-update] {
    grid-template-columns: 1fr !important;
  }

  .os-inline-card > .button,
  .os-inline-card > button[type="submit"] {
    justify-self: stretch !important;
    width: 100% !important;
  }

  .os-inline-card .check-row {
    grid-template-columns: 1fr;
  }

  .os-inline-card .check-options {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 8mm;
    size: A4 landscape;
  }

  .staff-body {
    background: #fff;
  }

  .staff-sidebar,
  .staff-header,
  .staff-login,
  .franchise-deck-actions,
  .investor-radar-panel,
  .staff-status {
    display: none !important;
  }

  .staff-shell,
  .staff-main,
  .staff-content {
    display: block;
    margin: 0;
    padding: 0;
  }

  .franchise-deck {
    display: block;
    margin: 0;
  }

  .deck-slide {
    border: 0;
    border-radius: 0;
    break-after: page;
    box-shadow: none;
    gap: 10mm;
    min-height: auto;
    overflow: visible;
    padding: 0;
    page-break-after: always;
    page-break-inside: avoid;
  }

  .deck-slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .deck-slide h2 {
    font-size: 34px;
    line-height: 1.02;
  }

  .deck-slide p {
    font-size: 13px;
    line-height: 1.36;
  }

  .deck-hero,
  .deck-before-after {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .deck-hero img,
  .before-after-grid img {
    border-radius: 10px;
    max-height: 120mm;
  }

  .deck-metrics div,
  .margin-grid div,
  .system-grid span,
  .seo-stack div,
  .revenue-grid div,
  .implementation-steps span {
    border-radius: 10px;
    min-height: 0;
    padding: 9px;
  }

  .deck-metrics strong {
    font-size: 34px;
  }

  .projection-table th,
  .projection-table td {
    font-size: 10px;
    padding: 7px 6px;
  }
}

/* Prioridade final da OS após todos os media queries. */
#staffContent .new-os-form .os-section-grid {
  align-items: start !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

#staffContent .new-os-form .os-form-section {
  align-content: start !important;
  justify-self: start;
  max-width: 1180px;
  width: 100%;
}

#staffContent .new-os-form .os-form-section-financeiro {
  max-width: 1120px;
}

#staffContent .new-os-form .os-form-section-financeiro .os-section-grid {
  grid-template-columns: minmax(280px, 430px) repeat(2, minmax(220px, 1fr)) !important;
}

#staffContent .new-os-form .os-form-section-financeiro label:first-child {
  grid-column: auto !important;
}

#staffContent .new-os-form .os-section-grid label,
#staffContent .new-os-form .camera-box,
#staffContent .new-os-form .new-os-checklist,
#staffContent .new-os-form .signature-row,
#staffContent .new-os-form .verbal-acceptance {
  max-width: 100%;
}

#staffContent .new-os-form label {
  align-content: start;
  display: grid;
  gap: 7px;
}

#staffContent .new-os-form input,
#staffContent .new-os-form select,
#staffContent .new-os-form textarea {
  font-size: 16px;
  min-height: 50px;
}

#staffContent .new-os-form textarea {
  min-height: 96px;
}

#staffContent .new-os-form .os-parts-results {
  max-height: 260px;
}

#staffContent .new-os-form .os-customer-results {
  max-height: 280px;
}

#staffContent .new-os-form .quick-part-form {
  align-items: end;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 430px;
  padding: 12px;
}

#staffContent .new-os-form .quick-part-form strong {
  font-size: 18px;
  line-height: 1.15;
}

#staffContent .new-os-form .quick-part-form input {
  min-height: 44px;
}

#staffContent .new-os-form .quick-part-form .button {
  grid-column: 1 / -1;
  min-height: 44px;
}

#staffContent .new-os-form .camera-box video,
.camera-box video {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 900px) {
  #staffContent .new-os-form .os-form-section-financeiro .os-section-grid,
  #staffContent .new-os-form .quick-part-form {
    grid-template-columns: 1fr !important;
  }
}

/* Camada final de revisão geral: OS aberta e abertura de OS precisam ficar
   legíveis antes de qualquer estética. */
#staffContent .os-workspace {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: 1fr !important;
}

#staffContent .os-inline-bundle {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  display: grid !important;
  gap: 14px !important;
  padding: 14px 14px 92px !important;
  width: 100% !important;
}

#staffContent .os-inline-savebar {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22) !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: space-between !important;
  left: 50% !important;
  max-width: min(920px, calc(100vw - 32px)) !important;
  padding: 12px 14px !important;
  position: fixed !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  z-index: 80 !important;
}

#staffContent .os-inline-savebar div {
  display: grid !important;
  gap: 3px !important;
}

#staffContent .os-inline-savebar span {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
}

#staffContent .os-inline-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

#staffContent .os-inline-bundle.new-os-form .os-form-section {
  margin: 0 !important;
}

/* Mantém as cores de setor na edição (os-inline-card não pode sobrescrever). */
#staffContent .os-inline-bundle .os-form-section-cliente,
#staffContent .os-inline-bundle .os-form-section.os-form-section-cliente {
  background: #edf6ff !important;
}

#staffContent .os-inline-bundle .os-form-section-aparelho,
#staffContent .os-inline-bundle .os-form-section.os-form-section-aparelho {
  background: #edfdf5 !important;
}

#staffContent .os-inline-bundle .os-form-section-servico,
#staffContent .os-inline-bundle .os-form-section.os-form-section-servico {
  background: #fff8e8 !important;
}

#staffContent .os-inline-bundle .os-form-section-financeiro,
#staffContent .os-inline-bundle .os-form-section.os-form-section-financeiro {
  background: #f7f3ff !important;
}

#staffContent .os-inline-bundle .os-inline-status-card {
  background: #fff1e6 !important;
  border-color: #fdba74 !important;
}

#staffContent .os-inline-bundle .os-inline-inspection-card {
  background: #f0f4f8 !important;
}

#staffContent .os-inline-bundle .os-outsourcing-card {
  background: #eefaf6 !important;
}

#staffContent .os-inline-bundle .os-status-field,
#staffContent .os-inline-card[data-os-update] .os-status-field {
  font-weight: 800;
}

#staffContent .os-inline-bundle .os-status-field > span,
#staffContent .os-inline-card[data-os-update] .os-status-field > span {
  color: #9a3412;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

#staffContent .os-inline-bundle .os-status-field select,
#staffContent .os-inline-card[data-os-update] .os-status-field select {
  border: 2px solid #ea580c !important;
  font-weight: 800 !important;
}

#staffContent .os-inline-bundle .os-section-grid {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#staffContent .os-inline-bundle .os-section-grid label.full-span,
#staffContent .os-inline-bundle .os-section-grid label:has(textarea),
#staffContent .os-inline-bundle .os-form-section-financeiro .os-section-grid label:first-child {
  grid-column: 1 / -1 !important;
}

@media (max-width: 760px) {
  #staffContent .os-inline-bundle .os-section-grid {
    grid-template-columns: 1fr !important;
  }

  #staffContent .os-inline-savebar span {
    font-size: 0.85rem !important;
  }
}

#staffContent .os-inline-card {
  box-sizing: border-box;
  display: grid !important;
  gap: 12px !important;
  min-height: 0 !important;
  width: 100% !important;
}

#staffContent .os-inline-status-card,
#staffContent .os-inline-card[data-os-update] {
  align-items: end !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) auto !important;
}

#staffContent .os-inline-status-card h3,
#staffContent .os-inline-card[data-os-update] h3 {
  grid-column: 1 / -1 !important;
}

#staffContent .os-inline-card[data-os-update] > .button,
#staffContent .os-inline-card[data-os-inspection] > .button,
#staffContent .os-inline-card[data-outsourcing] > .button {
  border-radius: 999px !important;
  height: auto !important;
  justify-self: start !important;
  min-height: 42px !important;
  min-width: 150px !important;
  padding: 9px 18px !important;
  width: auto !important;
}

#staffContent .os-inline-card label,
#staffContent .new-os-form label {
  align-content: start !important;
  display: grid !important;
  gap: 7px !important;
  line-height: 1.2 !important;
  min-width: 0 !important;
}

#staffContent .os-inline-card input,
#staffContent .os-inline-card select,
#staffContent .os-inline-card textarea,
#staffContent .new-os-form input,
#staffContent .new-os-form select,
#staffContent .new-os-form textarea {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-height: 48px !important;
  min-width: 0 !important;
  width: 100% !important;
}

#staffContent .os-inline-card textarea,
#staffContent .new-os-form textarea {
  min-height: 92px !important;
}

#staffContent .os-inline-card .checklist-grid.compact {
  display: grid !important;
  gap: 8px !important;
  max-height: 520px !important;
  overflow: auto !important;
}

#staffContent .os-inline-card .check-row.compact,
#staffContent .check-row.compact {
  align-items: center !important;
  grid-template-columns: minmax(170px, 1fr) minmax(250px, auto) minmax(180px, 300px) !important;
  min-height: 52px !important;
  padding: 8px 10px !important;
}

#staffContent .os-parts-results {
  max-height: 230px !important;
}

#staffContent .os-part-result {
  line-height: 1.25 !important;
  padding: 10px 12px !important;
}

#staffContent .quick-part-form {
  align-items: end !important;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
  max-width: 100% !important;
}

#staffContent .quick-part-form strong,
#staffContent .quick-part-form .button {
  grid-column: 1 / -1 !important;
}

#staffContent .new-os-form .os-form-section-financeiro .os-section-grid {
  align-items: start !important;
  grid-template-columns: minmax(280px, 420px) repeat(3, minmax(180px, 1fr)) !important;
}

#staffContent .new-os-form .os-form-section-financeiro {
  max-width: none !important;
}

@media (max-width: 1180px) {
  #staffContent .os-inline-savebar {
    bottom: 14px !important;
  }

  #staffContent .os-inline-savebar .button {
    min-width: 220px !important;
  }

  #staffContent .os-inline-status-card,
  #staffContent .os-inline-card[data-os-update],
  #staffContent .new-os-form .os-form-section-financeiro .os-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #staffContent .os-inline-card .check-row.compact,
  #staffContent .check-row.compact {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  #staffContent .os-inline-savebar {
    align-items: stretch !important;
    display: grid !important;
    left: 12px !important;
    right: 12px !important;
    transform: none !important;
    width: auto !important;
  }

  #staffContent .os-inline-savebar .button {
    min-width: 0 !important;
    width: 100% !important;
  }

  #staffContent .os-inline-status-card,
  #staffContent .os-inline-card[data-os-update],
  #staffContent .new-os-form .os-section-grid,
  #staffContent .new-os-form .os-form-section-financeiro .os-section-grid,
  #staffContent .quick-part-form {
    grid-template-columns: 1fr !important;
  }

  #staffContent .os-inline-card[data-os-update] > .button,
  #staffContent .os-inline-card[data-os-inspection] > .button,
  #staffContent .os-inline-card[data-outsourcing] > .button {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

.desktop-app-widget-bar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(7, 17, 31, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px 6px 6px;
}

.desktop-app-widget-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 10px;
}

.desktop-app-widget-toggle[aria-expanded="true"] .desktop-app-widget-icon {
  transform: rotate(180deg);
}

.desktop-app-widget-icon {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.desktop-app-widget-title {
  white-space: nowrap;
}

.desktop-app-widget-bar .button.mini {
  min-height: 32px;
  padding: 0 10px;
}

.desktop-app-widget-panel {
  backdrop-filter: blur(12px);
  background: rgba(7, 17, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
  padding: 12px 14px;
}

.desktop-app-widget-panel[hidden] {
  display: none;
}

.desktop-app-status {
  margin: 0 0 8px;
}

.desktop-app-notes {
  color: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.desktop-app-notes:empty {
  display: none;
}

.desktop-app-card {
  align-items: center;
  background: linear-gradient(135deg, #07111f, #12263f);
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
}

.desktop-app-card::after {
  background: radial-gradient(circle, rgba(22, 135, 248, .35), transparent 65%);
  content: "";
  height: 220px;
  position: absolute;
  right: -70px;
  top: -90px;
  width: 220px;
}

.desktop-app-card > * {
  position: relative;
  z-index: 1;
}

.desktop-app-card h2 {
  color: #fff;
  margin-bottom: 8px;
}

.desktop-app-card p {
  color: rgba(255, 255, 255, .78);
  margin: 0;
}

.desktop-app-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.desktop-app-status {
  grid-column: 1 / -1;
}

.desktop-app-notes {
  color: rgba(255, 255, 255, .86);
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 20px;
}

.desktop-release-modal {
  align-items: center;
  background: rgba(8, 14, 24, .62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 9999;
}

.desktop-release-dialog {
  color: #111;
  max-height: min(760px, calc(100vh - 44px));
  max-width: 760px;
  overflow: auto;
  position: relative;
  width: 100%;
}

.desktop-release-dialog > [data-close-desktop-release] {
  position: absolute;
  right: 18px;
  top: 18px;
}

.desktop-release-dialog h2 {
  font-size: clamp(30px, 5vw, 56px);
  margin: 10px 0;
}

.desktop-release-platforms {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.desktop-release-platforms article {
  border: 1px solid #d8dee8;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.desktop-release-platforms a {
  color: #1687f8;
  font-weight: 800;
}

@media (max-width: 860px) {
  .desktop-app-widget {
    width: 100%;
  }

  .desktop-app-widget-bar {
    justify-content: space-between;
    width: 100%;
  }

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

  .desktop-app-actions {
    justify-content: flex-start;
  }

  .desktop-app-actions .button {
    width: 100%;
  }

  .desktop-release-platforms {
    grid-template-columns: 1fr;
  }
}

/* OS: anexos de andamento e proteção visual contra cartões gigantes. */
#staffContent .os-inline-card .os-status-media {
  border: 1px dashed #d8dee8;
  border-radius: 14px;
  grid-column: 1 / -1;
  padding: 12px;
}

#staffContent .os-inline-card .os-status-media summary {
  cursor: pointer;
  font-weight: 900;
}

#staffContent .os-inline-card .os-status-media .camera-box {
  border: 0;
  margin-top: 12px;
  padding: 0;
}

#staffContent .os-step-row {
  align-items: center;
}

#staffContent .os-step-media {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  margin-top: 8px;
}

#staffContent .os-step-media img,
#staffContent .os-step-media video {
  aspect-ratio: 1 / 1;
  background: #f4f7fb;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

#staffContent .os-total-field {
  align-items: center;
  background: #ecfdf3;
  border: 2px solid #21c76a;
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

#staffContent .os-total-field span {
  align-items: center;
  align-self: stretch;
  background: #21c76a;
  color: #fff;
  display: flex;
  font-size: 1.08rem;
  font-weight: 1000;
  justify-content: center;
  min-width: 58px;
  padding: 0 14px;
}

#staffContent .os-total-field input {
  background: #fff;
  border: 0;
  border-radius: 0;
  color: #11843f;
  font-size: 1.08rem;
  font-weight: 1000;
  min-width: 0;
  outline: 0;
}

#staffContent .os-total-field input:focus {
  box-shadow: inset 0 0 0 2px rgba(33, 199, 106, .28);
}

.nao-temos-intro h2 {
  margin: 8px 0;
}

.nao-temos-toolbar {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  margin-bottom: 16px;
}

.nao-temos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.nao-temos-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.nao-temos-card header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.nao-temos-card header strong {
  display: block;
  font-size: 1.05rem;
}

.nao-temos-card header small,
.nao-temos-card time {
  color: var(--muted);
  font-size: 12px;
}

.nao-temos-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nao-temos-update {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.nao-temos-status-aberto,
.nao-temos-status-pesquisando {
  background: #fff7e5;
  color: #9a6700;
}

.nao-temos-status-comprado {
  background: #eef5ff;
  color: #1d4ed8;
}

.nao-temos-status-recebido,
.nao-temos-status-entregue {
  background: #ecfdf3;
  color: #047857;
}

.nao-temos-status-cancelado {
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 760px) {
  .nao-temos-toolbar {
    grid-template-columns: 1fr;
  }
}

.admin-appointments-panel,
.appointment-list,
.appointment-rows-shell {
  display: grid;
  gap: 12px;
}

.appointment-rows {
  display: grid;
  gap: 6px;
}

.appointment-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 10px;
}

.appointment-row.is-today {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.06);
}

.appointment-row.is-no-show {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.06);
}

.button.mini.orange {
  background: #f97316;
  border-color: #ea580c;
  color: #fff;
}

.appointment-row-head {
  background: rgba(148, 163, 184, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.appointment-row-main {
  align-items: center;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: 110px minmax(120px, 1.1fr) minmax(90px, 0.8fr) minmax(160px, 1.6fr) 72px;
  min-width: 0;
}

.appointment-row-when,
.appointment-row-client,
.appointment-row-store,
.appointment-row-device,
.appointment-row-code {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.appointment-row-when strong,
.appointment-row-client strong,
.appointment-row-device strong {
  font-size: 13px;
}

.appointment-row-when span,
.appointment-row-client span,
.appointment-row-device span,
.appointment-row-code,
.appointment-row-store {
  color: rgba(16, 16, 16, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.appointment-row-device span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.appointment-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.appointment-row-status {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.appointment-row-status select {
  font-size: 12px;
  max-width: 130px;
  padding: 6px 8px;
}

.appointment-no-phone {
  color: rgba(16, 16, 16, 0.45);
  font-size: 11px;
}

.appointment-empty {
  margin: 0;
  padding: 8px 4px;
}

.admin-appointment-list,
.appointment-list {
  grid-template-columns: 1fr;
}

.admin-appointment-item,
.appointment-card {
  display: grid;
  gap: 8px;
}

.appointment-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.appointment-complaint {
  color: rgba(16, 16, 16, 0.72);
  line-height: 1.45;
}

.badge.urgent {
  background: #fef2f2;
  color: #b91c1c;
}

.appointment-alert-host {
  inset: auto 16px 16px auto;
  position: fixed;
  z-index: 120;
}

.appointment-alert-card {
  background: #fff;
  border: 1px solid rgba(30, 79, 191, 0.25);
  border-left: 4px solid #2563eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 10px;
  max-width: 360px;
  opacity: 0;
  padding: 14px 16px;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.appointment-alert-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.appointment-alert-card strong {
  display: block;
  margin-bottom: 4px;
}

.appointment-alert-card p {
  margin: 0 0 2px;
}

.appointment-alert-card small {
  color: rgba(16, 16, 16, 0.62);
  display: block;
  margin-bottom: 8px;
}

.pickup-overdue-alert-host {
  inset: auto 16px 16px auto;
  max-width: min(420px, calc(100vw - 32px));
  position: fixed;
  z-index: 121;
}

.pickup-overdue-alert-card {
  background: #fff;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-left: 4px solid #dc2626;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 12px;
  max-height: min(70vh, 520px);
  opacity: 0;
  overflow: auto;
  padding: 14px 16px;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pickup-overdue-alert-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pickup-overdue-alert-row {
  border-top: 1px solid rgba(16, 16, 16, 0.08);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.pickup-overdue-alert-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.pickup-overdue-alert-row strong {
  display: block;
  font-size: 14px;
  margin: 0;
}

.pickup-overdue-alert-row span,
.pickup-overdue-alert-row small {
  color: rgba(16, 16, 16, 0.68);
  display: block;
  font-size: 12px;
}

.pickup-overdue-panel {
  margin-bottom: 16px;
}

.pickup-overdue-head h2,
.pickup-overdue-head p {
  margin: 0;
}

.pickup-overdue-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.pickup-overdue-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.pickup-overdue-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pickup-overdue-main strong {
  display: block;
  font-size: 15px;
  margin: 0;
}

.pickup-overdue-main span,
.pickup-overdue-main small {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .appointment-row,
  .appointment-row-head {
    grid-template-columns: 1fr;
  }

  .appointment-row-main {
    grid-template-columns: 1fr 1fr;
  }

  .appointment-row-code {
    grid-column: 1 / -1;
  }

  .appointment-row-actions {
    justify-content: flex-start;
  }
}

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

.stock-create-panel {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.stock-create-form {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
  width: min(720px, 100%);
}

.stock-create-form .full-span {
  grid-column: 1 / -1;
}

.stock-item-card.stock-search-hidden {
  display: none !important;
}

.stock-store-card.stock-search-empty {
  display: none !important;
}

@media (max-width: 900px) {
  #staffContent .os-inline-savebar {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    max-width: calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) !important;
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    transform: none !important;
    width: auto !important;
  }

  #staffContent .os-inline-bundle {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .staff-panel-widget-host {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .is-authenticated .staff-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 30;
  }
}

@media (display-mode: standalone) {
  .staff-body {
    overscroll-behavior-y: none;
  }

  .staff-sidebar {
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }
}

.os-primary-actions {
  align-items: center;
  gap: 8px;
}

.os-more-actions {
  display: inline-block;
  position: relative;
}

.os-more-actions [data-os-more-actions-toggle] {
  background: #fff;
}

.os-more-actions [data-os-more-actions-toggle][aria-expanded="true"] {
  background: #f2f5fa;
}

.os-more-actions-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 6px;
  min-width: min(280px, 88vw);
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: fixed;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  visibility: hidden;
  z-index: 99999;
}

.os-more-actions.is-open .os-more-actions-menu,
.os-more-actions:hover .os-more-actions-menu,
.os-more-actions:focus-within .os-more-actions-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.os-row.is-menu-open {
  position: relative;
  z-index: 120;
}

.os-row.is-menu-open .os-sticky-actions {
  z-index: 130;
}

.os-primary-actions {
  overflow: visible;
}

.os-more-actions-menu .button {
  justify-content: center;
  text-align: center;
  width: 100%;
}

#staffContent .os-inline-meta-card {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#staffContent .os-inline-meta-card h3 {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .os-more-actions-menu {
    max-width: calc(100vw - 16px);
  }
}

.dashboard-period-filter {
  margin-bottom: 14px;
}

.dashboard-period-head,
.dashboard-section-head {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.dashboard-period-controls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-finance-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.dashboard-finance-card {
  border-radius: 18px;
  color: #fff;
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
}

.dashboard-finance-card.receive {
  background: linear-gradient(135deg, #16a34a, #059669);
}

.dashboard-finance-card.pay {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.dashboard-finance-card.balance {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.dashboard-finance-card.overdue {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--ink);
}

.dashboard-finance-card strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.dashboard-finance-card small {
  opacity: 0.88;
}

.dashboard-finance-subgrid,
.dashboard-overdue-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-finance-subgrid strong,
.dashboard-overdue-grid strong {
  display: block;
  font-size: 18px;
}

.dashboard-management-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  margin-bottom: 14px;
}

.dashboard-cashflow,
.dashboard-calendar,
.dashboard-ai-panel {
  margin-bottom: 0;
}

.dashboard-flow-chart {
  align-items: end;
  display: flex;
  gap: 4px;
  min-height: 180px;
  overflow-x: auto;
  padding: 8px 0 4px;
}

.dashboard-flow-day {
  align-items: center;
  display: grid;
  flex: 0 0 22px;
  gap: 6px;
  justify-items: center;
}

.dashboard-flow-bars {
  align-items: end;
  display: flex;
  gap: 2px;
  height: 120px;
  width: 100%;
}

.dashboard-flow-bars i {
  border-radius: 4px 4px 0 0;
  display: block;
  width: 8px;
}

.dashboard-flow-bars i.receipt {
  background: #22c55e;
}

.dashboard-flow-bars i.payment {
  background: #f97316;
}

.dashboard-flow-day span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.dashboard-flow-totals {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  padding-top: 12px;
}

.dashboard-flow-totals strong {
  display: block;
  font-size: 18px;
}

.dashboard-calendar-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dashboard-calendar-grid > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.dashboard-calendar-day {
  align-items: center;
  aspect-ratio: 1;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 4px;
  position: relative;
}

.dashboard-calendar-day.today {
  background: #eff6ff;
  border-color: #2563eb;
}

.dashboard-calendar-day strong {
  font-size: 12px;
}

.dashboard-calendar-day .dot,
.dashboard-calendar-legend .dot {
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.dashboard-calendar-day .dot.receive,
.dashboard-calendar-legend .dot.receive {
  background: #22c55e;
}

.dashboard-calendar-day .dot.pay,
.dashboard-calendar-legend .dot.pay {
  background: #f97316;
}

.dashboard-calendar-legend .dot.today {
  background: #2563eb;
}

.dashboard-calendar-legend {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 12px;
  margin: 12px 0;
}

.dashboard-insight-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.dashboard-insight-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.dashboard-insight-card.revenue {
  border-left: 4px solid #16a34a;
}

.dashboard-insight-card.profit {
  border-left: 4px solid #2563eb;
}

.dashboard-insight-card.operations {
  border-left: 4px solid #f59e0b;
}

.dashboard-insight-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.dashboard-insight-head .impact {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-insight-head .type {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-insight-card h3 {
  font-size: 16px;
  margin: 0;
}

.dashboard-insight-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.dashboard-analysis pre {
  background: #0f172a;
  border-radius: 14px;
  color: #e2e8f0;
  margin-top: 12px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.dashboard-metrics-grid {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .dashboard-finance-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-management-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-store-chart .dashboard-period-controls {
  align-items: end;
}

.dashboard-store-chart .dashboard-period-controls label {
  font-size: 12px;
}

.seo-checklist {
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.5;
  margin: 12px 0;
  padding-left: 18px;
}

.seo-checklist code {
  font-size: 12px;
}

@media (max-width: 900px) {
  .dashboard-store-chart .dashboard-section-head,
  .dashboard-period-head {
    flex-direction: column;
  }
}

.works-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.works-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.works-code {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

.works-progress {
  height: 8px;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  overflow: hidden;
}

.works-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #22c55e);
}

.works-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.works-qr {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.works-stages {
  display: grid;
  gap: 8px;
}

.works-stage-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
}

.works-stage-row small {
  grid-column: 2;
  color: var(--muted);
}

.works-stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}

.works-stage-dot.status-concluida { background: #22c55e; }
.works-stage-dot.status-em_andamento,
.works-stage-dot.status-aguardando { background: #eab308; }

.works-evidence-list {
  display: grid;
  gap: 12px;
}

.works-evidence-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.works-evidence-item header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.works-evidence-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.works-evidence-photos img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
}

.works-hash {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.staff-instance-badge {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #94a3b8;
  max-width: 42rem;
}

.store-goals-panel {
  margin-bottom: 16px;
}

.store-goals-head {
  display: grid;
  gap: 8px;
}

.store-goals-head h2,
.store-goals-head p {
  margin: 0;
}

.store-goals-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: 14px;
}

.store-goal-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.store-goal-card.is-ok {
  border-color: rgba(34, 197, 94, 0.45);
}

.store-goal-card.is-debt {
  border-color: rgba(59, 130, 246, 0.45);
}

.store-goal-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.store-goal-card header > strong {
  display: block;
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
}

.goal-pill-group {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 100%;
}

.goal-pill {
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.goal-pill.ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.goal-pill.warn {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.goal-staff-roles-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.goal-staff-roles-picker .permission-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.store-goal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-goal-metrics > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.store-goal-metrics small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.store-goal-metrics strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.store-goal-metrics progress {
  width: 100%;
  height: 8px;
}

.store-goal-card .store-goal-debt,
.store-goal-card .store-goal-commission,
.store-goal-card .muted {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.store-goal-debt {
  font-size: 13px;
  margin: 0;
}

.store-goal-commission.ok {
  color: #86efac;
}

.store-goal-card.is-month-ok {
  border-color: rgba(34, 197, 94, 0.35);
}

.store-goal-commission-send {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.store-goal-commission-send strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.store-goal-send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

@media (max-width: 640px) {
  .store-goal-card header {
    flex-direction: column;
    align-items: stretch;
  }

  .goal-pill-group {
    justify-content: flex-start;
  }

  .store-goal-metrics {
    grid-template-columns: 1fr;
  }
}

.sj-license-banner {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  margin: 12px 16px;
  padding: 16px;
}

.sj-license-banner .stack-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  max-width: 420px;
}

.sj-license-history {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  margin: 12px 16px;
  padding: 12px 16px;
}

.sj-license-history summary {
  cursor: pointer;
  font-weight: 700;
}

.sj-license-history .table-scroll {
  margin-top: 10px;
}

.sj-license-history table {
  width: 100%;
  border-collapse: collapse;
}

.sj-license-history th,
.sj-license-history td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.sj-proof-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.sj-proof-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.sj-proof-card img {
  display: block;
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.sj-proof-card > div {
  display: grid;
  gap: 6px;
  padding: 0 12px 12px;
}

/* Barra de progresso 0-100% do fluxo de OS (criacao e atualizacao de ordem). */
.os-progress {
  display: grid;
  gap: 6px;
  margin: 4px 0 2px;
}
.os-progress[hidden] {
  display: none;
}
.os-progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.os-progress-bar span {
  background: linear-gradient(90deg, #10b981, #047857);
  display: block;
  height: 100%;
  transition: width 0.2s ease;
  width: 0;
}
.os-progress.is-done .os-progress-bar span {
  background: #047857;
}
.os-progress-label {
  color: #676b73;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}
