/* Gerado por tools/build-main-css-bundle.mjs; edite os arquivos de origem. */
/* Origem: styles.css */
:root {
  --ink: #17243a;
  --muted: #53627a;
  --line: #e2e6ef;
  --panel: #ffffff;
  --soft: #f7f8fc;
  --brand: #6d4ce8;
  --brand-2: #6040ce;
  --brand-soft: #f0edff;
  --success: #237a57;
  --warning: #9b6618;
  --danger: #a83d48;
  --shadow: 0 18px 48px rgba(36, 31, 75, .12);
  --preview-scale: .75;
  --app-background: #eff1f7;
  --sidebar-background: #17243a;
  --ui-space: 1;
}

/* v123 — conferência operacional por QR Code */
.checklist-shell {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  background: #f4f6fa;
}

.checklist-header {
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #eef2ff 0%, #fff 72%);
}

.checklist-header span { color: #6842e8; font-size: 12px; }
.checklist-header h2 { color: #17243d; font-size: clamp(22px, 2.3vw, 29px); line-height: 1.15; }
.checklist-header p { color: #687792; font-size: 13px; }
.checklist-header__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }

.checklist-phase-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid #dce3ef;
  background: #fff;
}

.checklist-phase-tabs > button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border: 1px solid #dce3ef;
  border-radius: 12px;
  background: #fff;
  color: #53627a;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.checklist-phase-tabs > button:hover { border-color: #bfaeff; background: #faf8ff; }
.checklist-phase-tabs > button:focus-visible { outline: 0; border-color: #7c5cfc; box-shadow: 0 0 0 3px rgba(108, 75, 246, .12); }
.checklist-phase-tabs > button.is-active { border-color: #8d72f5; background: #f3efff; box-shadow: 0 4px 14px rgba(74, 51, 157, .08); color: #4e2fc9; }
.checklist-phase-tabs i { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border-radius: 10px; background: #f1edff; color: #6842e8; font-size: 14px; font-style: normal; font-weight: 800; }
.checklist-phase-tabs .is-active i { background: #6842e8; color: #fff; }
.checklist-phase-tabs span { min-width: 0; display: grid; gap: 2px; }
.checklist-phase-tabs strong { color: inherit; font-size: 15px; }
.checklist-phase-tabs small { overflow: hidden; color: #7888a3; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.checklist-phase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 24px 10px;
}

.checklist-phase-heading h3 { margin: 0 0 3px; color: #17243d; font-size: 18px; }
.checklist-phase-heading p { margin: 0; color: #687792; font-size: 14px; }
.checklist-phase-heading > span { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #ccebdc; border-radius: 999px; background: #f2fbf7; color: #177553; font-size: 12px; font-weight: 700; }

.checklist-summary { padding: 8px 24px 14px; border-bottom: 1px solid #dce3ef; background: #f4f6fa; }
.checklist-summary > div { min-height: 64px; padding: 10px 13px; border-color: #dde3ed; background: #fff; box-shadow: 0 2px 6px rgba(42, 35, 100, .035); }
.checklist-summary span { color: #687792; font-size: 11px; }
.checklist-summary strong { color: #6842e8; font-size: 22px; }
.checklist-summary small { color: #7888a3; font-size: 11px; }
.checklist-summary .has-issues { border-color: #f0c0c5; background: #fff8f8; }
.checklist-summary .has-issues strong { color: #c43c4b; }

.checklist-list { padding: 14px 24px 22px; }
.checklist-row.checklist-row--scan {
  grid-template-columns: minmax(240px, 1fr) 180px minmax(260px, auto);
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 15px 16px;
  border-left-width: 5px;
  border-radius: 13px;
  box-shadow: 0 2px 7px rgba(24, 35, 58, .035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.checklist-row.checklist-row--scan:hover { border-color: #cfc5f7; box-shadow: 0 5px 15px rgba(45, 36, 94, .07); transform: translateY(-1px); }
.checklist-row.checklist-row--scan.is-complete { border-left-color: #28a778; }
.checklist-row.checklist-row--scan.has-pending { border-left-color: #e2a23a; }
.checklist-row.checklist-row--scan.has-issues { border-left-color: #d84955; }
.checklist-item-name span, .checklist-progress > span { color: #687792; font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.checklist-item-name strong { color: #17243d; font-size: 16px; line-height: 1.32; }
.checklist-item-name small { color: #7888a3; font-size: 13px; }

.checklist-progress { min-width: 0; display: grid; gap: 5px; }
.checklist-progress strong { color: #25324a; font-size: 16px; }
.checklist-progress progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: #e7ebf2; accent-color: #6842e8; }
.checklist-progress progress::-webkit-progress-bar { border-radius: 999px; background: #e7ebf2; }
.checklist-progress progress::-webkit-progress-value { border-radius: 999px; background: #6842e8; }

.checklist-scan-actions { display: grid; grid-template-columns: minmax(86px, 1fr) minmax(105px, 1fr); gap: 8px; }
.checklist-scan-actions .button { min-height: 44px; padding: 9px 14px; font-size: 14px; font-weight: 800; }
.checklist-ok { border: 1px solid #24a777; background: #19a66f; color: #fff; }
.checklist-ok:hover:not(:disabled) { border-color: #14845a; background: #148d61; }
.checklist-damaged { border: 1px solid #efa5ad; background: #fff3f4; color: #bd3543; }
.checklist-damaged:hover:not(:disabled) { border-color: #dc7681; background: #ffe8ea; }
.checklist-undo { grid-column: 1 / -1; justify-self: center; padding: 2px 8px; border: 0; background: transparent; color: #687792; font-size: 12px; font-weight: 700; cursor: pointer; }
.checklist-undo:hover:not(:disabled) { color: #6842e8; text-decoration: underline; }
.checklist-undo:disabled { opacity: .42; cursor: default; }

.checklist-issues { grid-column: 1 / -1; display: grid; gap: 7px; padding-top: 3px; }
.checklist-issues > div { position: relative; display: grid; grid-template-columns: minmax(120px, auto) 1fr auto; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid #f1c7cc; border-radius: 10px; background: #fff7f8; }
.checklist-issues span { color: #a82f3c; font-size: 13px; }
.checklist-issues p { min-width: 0; margin: 0; color: #3a4558; font-size: 14px; overflow-wrap: anywhere; }
.checklist-issues small { grid-column: 1 / 3; color: #7888a3; font-size: 12px; }
.checklist-issues button { grid-column: 3; grid-row: 1 / 3; align-self: center; padding: 6px 8px; border: 0; background: transparent; color: #b23240; font-size: 12px; font-weight: 700; cursor: pointer; }
.checklist-issues button:hover { text-decoration: underline; }

.checklist-footer { padding: 13px 24px; }
.checklist-footer .button { min-height: 42px; }

.checklist-qr-dialog, .checklist-issue-dialog {
  width: min(510px, calc(100vw - 24px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce3ef;
  border-radius: 18px;
  background: #fff;
  color: #17243d;
  box-shadow: 0 28px 80px rgba(15, 27, 47, .32);
}

.checklist-issue-dialog { width: min(600px, calc(100vw - 24px)); }
.checklist-qr-dialog::backdrop, .checklist-issue-dialog::backdrop { background: rgba(16, 29, 48, .68); backdrop-filter: blur(4px); }
.checklist-qr-shell, .checklist-issue-shell { display: grid; gap: 16px; padding: 22px; }
.checklist-qr-shell header span, .checklist-issue-shell header span { color: #6842e8; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.checklist-qr-shell h2, .checklist-issue-shell h2 { margin: 5px 0 4px; color: #17243d; font-size: 23px; }
.checklist-qr-shell header p, .checklist-issue-shell header p { margin: 0; color: #687792; font-size: 14px; }
.checklist-qr-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 5px; border-radius: 11px; background: #f1f3f8; }
.checklist-qr-phases button { min-height: 39px; border: 0; border-radius: 8px; background: transparent; color: #53627a; font-size: 13px; font-weight: 750; cursor: pointer; }
.checklist-qr-phases button.is-active { background: #fff; color: #6842e8; box-shadow: 0 2px 8px rgba(37, 43, 69, .1); }
.checklist-qr-code { width: 240px; min-height: 240px; display: grid; place-items: center; justify-self: center; padding: 12px; border: 1px solid #dce3ef; border-radius: 16px; background: #fff; }
.checklist-qr-code img, .checklist-qr-code canvas { max-width: 216px; height: auto; }
.checklist-qr-shell > p { margin: -5px 0 0; color: #53627a; font-size: 14px; line-height: 1.5; text-align: center; }
.checklist-qr-link { display: grid; gap: 6px; }
.checklist-qr-link span { color: #53627a; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.checklist-qr-link input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #dce3ef; border-radius: 9px; background: #f8f9fc; color: #53627a; font-size: 13px; }
.checklist-qr-shell footer, .checklist-issue-shell footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }

.checklist-issue-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 13px; }
.checklist-issue-grid .field > span { color: #53627a; font-size: 13px; font-weight: 750; }
.checklist-issue-grid input, .checklist-issue-grid select, .checklist-issue-grid textarea { min-height: 43px; border-color: #dce3ee; border-radius: 9px; color: #25324a; font-size: 15px; }
.checklist-issue-note { grid-column: 1 / -1; }
.checklist-issue-note textarea { min-height: 112px; resize: vertical; }
.checklist-issue-grid input:focus, .checklist-issue-grid select:focus, .checklist-issue-grid textarea:focus { outline: 0; border-color: #7c5cfc; box-shadow: 0 0 0 3px rgba(108, 75, 246, .1); }
.checklist-issue-shell .form-error { min-height: 18px; margin: -6px 0 0; color: #b52e3d; font-size: 13px; }

html[data-theme="dark"] .checklist-shell, html[data-theme="dark"] .checklist-phase-heading, html[data-theme="dark"] .checklist-summary { background: #111b29; }
html[data-theme="dark"] .checklist-header, html[data-theme="dark"] .checklist-phase-tabs, html[data-theme="dark"] .checklist-footer { background: #172538; border-color: #34465b; }
html[data-theme="dark"] .checklist-header h2, html[data-theme="dark"] .checklist-phase-heading h3, html[data-theme="dark"] .checklist-item-name strong { color: #f3f6fb; }
html[data-theme="dark"] .checklist-phase-tabs > button, html[data-theme="dark"] .checklist-summary > div, html[data-theme="dark"] .checklist-row.checklist-row--scan { border-color: #34465b; background: #19283a; color: #cdd7e6; }
html[data-theme="dark"] .checklist-phase-tabs > button.is-active { border-color: #8065ea; background: #2a2151; color: #d8ceff; }
html[data-theme="dark"] .checklist-progress strong, html[data-theme="dark"] .checklist-issues p { color: #e8edf5; }
html[data-theme="dark"] .checklist-issues > div { border-color: #74434b; background: #351f24; }
html[data-theme="dark"] .checklist-qr-dialog, html[data-theme="dark"] .checklist-issue-dialog, html[data-theme="dark"] .checklist-qr-shell, html[data-theme="dark"] .checklist-issue-shell { background: #172538; color: #f3f6fb; }
html[data-theme="dark"] .checklist-qr-shell h2, html[data-theme="dark"] .checklist-issue-shell h2 { color: #f3f6fb; }

@media (max-width: 760px) {
  .checklist-header { align-items: flex-start; padding: 16px 13px; }
  .checklist-header__actions { flex-direction: column; align-items: stretch; }
  .checklist-header__actions .button { min-height: 38px; }
  .checklist-phase-tabs { gap: 6px; padding: 10px; }
  .checklist-phase-tabs > button { min-height: 54px; gap: 7px; padding: 7px; }
  .checklist-phase-tabs i { width: 29px; height: 29px; flex-basis: 29px; }
  .checklist-phase-tabs strong { font-size: 13px; }
  .checklist-phase-tabs small { font-size: 10px; }
  .checklist-phase-heading { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px 11px 8px; }
  .checklist-phase-heading h3 { font-size: 17px; }
  .checklist-phase-heading p { font-size: 14px; }
  .checklist-phase-heading > span { font-size: 11px; }
  .checklist-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px 10px 11px; }
  .checklist-summary > div { min-height: 58px; }
  .checklist-list { padding: 10px 10px 18px; }
  .checklist-row.checklist-row--scan { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 0; padding: 14px 12px; }
  .checklist-progress { grid-template-columns: 1fr auto; }
  .checklist-progress progress { grid-column: 1 / -1; }
  .checklist-scan-actions { grid-template-columns: 1fr 1fr; }
  .checklist-scan-actions .button { min-height: 48px; }
  .checklist-issues { grid-column: 1; }
  .checklist-issues > div { grid-template-columns: 1fr auto; }
  .checklist-issues p, .checklist-issues small { grid-column: 1 / -1; }
  .checklist-issues button { grid-column: 2; grid-row: 1; }
  .checklist-footer { align-items: stretch; flex-direction: column; padding: 11px 10px; }
  .checklist-footer > div { grid-template-columns: 1fr 1fr; }
  .checklist-footer #finishChecklistPhase { grid-column: 1 / -1; }
  .checklist-qr-shell, .checklist-issue-shell { padding: 18px 15px; }
  .checklist-issue-grid { grid-template-columns: minmax(0, 1fr); }
  .checklist-issue-note { grid-column: 1; }
}

/* Recuperação protegida do acervo após conversão incompleta de registros. */
.inventory-recovery {
  width: min(720px, calc(100% - 32px));
  min-height: 108px;
  margin: 28px auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  color: #17243d;
  border: 1px solid #cfc3ff;
  border-radius: 12px;
  background: #faf8ff;
  box-shadow: 0 6px 20px rgba(61, 46, 126, .07);
}

.inventory-recovery > i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #6842e8;
  border-radius: 11px;
  background: #eee9ff;
}

.inventory-recovery > i svg { width: 22px; height: 22px; }
.inventory-recovery > div { min-width: 0; display: grid; gap: 5px; }
.inventory-recovery strong { font-size: 16px; line-height: 1.25; }
.inventory-recovery span { color: #687792; font-size: 13px; line-height: 1.45; }
.inventory-recovery .button { min-height: 42px; white-space: nowrap; }
.inventory-recovery--warning { border-color: #edc66b; background: #fffaf0; }
.inventory-recovery--warning > i { color: #9a6500; font-style: normal; font-weight: 800; background: #fff0c9; }

html[data-theme="dark"] .inventory-recovery { color: #f3f6fb; border-color: #65579a; background: #272433; box-shadow: none; }
html[data-theme="dark"] .inventory-recovery > i { background: #3a315b; }
html[data-theme="dark"] .inventory-recovery span { color: #b4bfd0; }
html[data-theme="dark"] .inventory-recovery--warning { border-color: #806a37; background: #302a1f; }

@media (max-width: 650px) {
  .inventory-recovery { width: calc(100% - 20px); grid-template-columns: 40px minmax(0, 1fr); padding: 15px; }
  .inventory-recovery > i { width: 40px; height: 40px; }
  .inventory-recovery .button { grid-column: 1 / -1; width: 100%; }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html.modal-background-locked { overflow: hidden !important; overscroll-behavior: none; }
body.modal-background-locked {
  position: fixed;
  top: var(--modal-scroll-offset, 0);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}
dialog[open] {
  overscroll-behavior: contain;
  touch-action: pan-y;
}

body {
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
  background: var(--app-background);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(109, 76, 232, .12), transparent 34%),
    #f3f5fa;
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}

.app-loading.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loading__card {
  width: min(390px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 34px 36px 30px;
  border: 1px solid rgba(205, 213, 228, .82);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(24, 36, 58, .14);
  text-align: center;
}

.app-loading__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #17243a;
  text-align: left;
}

.app-loading__brand img { width: 66px; height: 66px; object-fit: contain; }
.app-loading__brand span { display: grid; gap: 2px; }
.app-loading__brand strong { font-size: 21px; line-height: 1.1; }
.app-loading__brand small { color: var(--muted); font-size: 13px; }

.app-loading__indicator { display: flex; align-items: center; justify-content: center; gap: 7px; height: 18px; }
.app-loading__indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d4ce8;
  animation: app-loading-pulse 1.15s ease-in-out infinite;
}
.app-loading__indicator i:nth-child(2) { animation-delay: .14s; }
.app-loading__indicator i:nth-child(3) { animation-delay: .28s; }

.app-loading__copy { min-height: 48px; display: grid; gap: 5px; }
.app-loading__copy strong { color: #17243a; font-size: 16px; }
.app-loading__copy span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.app-loading__bar { width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: #e9e6fb; }
.app-loading__bar i { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7653ed, #8b6df2); animation: app-loading-slide 1.25s ease-in-out infinite; }
.app-loading__retry { min-height: 42px; padding: 0 18px; border: 1px solid #d7d0fa; border-radius: 10px; background: #f5f2ff; color: #5e3bd8; cursor: pointer; font-weight: 750; }
.app-loading__retry:hover { background: #ece7ff; }

html[data-theme="dark"] .app-loading { background: radial-gradient(circle at 50% 38%, rgba(129, 96, 238, .15), transparent 35%), #171717; }
html[data-theme="dark"] .app-loading__card { border-color: #37373d; background: #212123; box-shadow: 0 28px 90px rgba(0, 0, 0, .34); }
html[data-theme="dark"] .app-loading__brand,
html[data-theme="dark"] .app-loading__copy strong { color: #f4f4f5; }
html[data-theme="dark"] .app-loading__brand small,
html[data-theme="dark"] .app-loading__copy span { color: #a1a1aa; }

@keyframes app-loading-pulse {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-5px); }
}

@keyframes app-loading-slide {
  0% { transform: translateX(-115%); }
  55%, 100% { transform: translateX(240%); }
}

@media (max-width: 480px) {
  .app-loading { padding: 16px; }
  .app-loading__card { padding: 28px 24px 25px; border-radius: 18px; }
  .app-loading__brand img { width: 60px; height: 60px; }
  .app-loading__brand strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading,
  .app-loading__indicator i,
  .app-loading__bar i { animation: none; transition-duration: .01ms; }
  .app-loading__indicator i { opacity: .75; }
  .app-loading__bar i { width: 65%; transform: none; }
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  -webkit-tap-highlight-color: transparent;
}

.app-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 26px;
  border-bottom: 1px solid #dce3eb;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 12px rgba(22, 44, 70, .05);
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  cursor: pointer;
}
.brand:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; border-radius: 10px; }

.brand img {
  width: 106px;
  height: auto;
}

.brand div {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-size: 16px;
}

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

.brand > .online-status { display: flex; align-items: center; gap: 7px; min-width: 128px; padding: 6px 9px; border: 1px solid #d6e0e9; border-radius: 9px; background: #f7f9fb; }
.online-status > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #7a8794; box-shadow: 0 0 0 3px rgba(122, 135, 148, .13); }
.online-status > span { display: grid; gap: 1px; min-width: 0; }
.online-status strong { font-size: 9px; line-height: 1.1; }
.online-status span span { overflow: hidden; color: var(--muted); font-size: 7px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.online-status[data-mode="saved"] > i { background: #2a9a5b; box-shadow: 0 0 0 3px rgba(42, 154, 91, .13); }
.online-status[data-mode="saving"] > i { background: #d89b24; animation: sync-pulse 1s infinite alternate; }
.online-status[data-mode="readonly"] > i { background: #6d4ce8; box-shadow: 0 0 0 3px rgba(109, 76, 232, .16); }
.online-status[data-mode="error"] > i,
.online-status[data-mode="conflict"] > i { background: #c94a4a; box-shadow: 0 0 0 3px rgba(201, 74, 74, .13); }
@keyframes sync-pulse { to { opacity: .35; } }

html[data-theme="dark"] .brand > .online-status { border-color: #3b4b5d; background: #223041; }

.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-view-actions,
.header-menus,
.header-quick-actions { display: flex; align-items: center; gap: 6px; }
.header-view-actions { padding-right: 3px; border-right: 1px solid #dce3eb; }
.header-icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #41566e; cursor: pointer; }
.header-icon-button:hover { border-color: #cfdae5; background: #f3f6f9; }
.header-icon-button span { font-size: 17px; line-height: 1; }
.header-icon-button b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header-menus { position: relative; }
.header-menu { position: relative; }
.header-menu.is-open::after { content: ""; position: absolute; top: 100%; right: 0; width: 100%; height: 10px; }
.header-menu__trigger { min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #41566e; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; user-select: none; }
.header-menu__trigger:hover,
.header-menu.is-open .header-menu__trigger { border-color: #cfdae5; background: #f3f6f9; color: var(--brand); }
.header-menu__panel { position: absolute; top: calc(100% + 9px); right: 0; z-index: 80; width: 300px; max-height: calc(100vh - 96px); display: none; overflow: auto; padding: 8px; border: 1px solid #d6e0ea; border-radius: 13px; background: #fff; box-shadow: 0 18px 48px rgba(18, 39, 63, .2); scrollbar-gutter: stable; }
.header-menu.is-open .header-menu__panel { display: block; }
.header-menu__heading { padding: 7px 9px 8px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.header-menu__item { width: 100%; min-height: 53px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; padding: 8px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; text-decoration: none; }
.header-menu__item:hover,
.header-menu__item:focus-visible { background: #f0f5fa; outline: 0; }
.header-menu__item > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #eaf1f9; color: var(--brand); font-size: 13px; font-style: normal; font-weight: 850; }
.header-menu__item > i svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-menu__item > i svg :is(path, rect, circle, ellipse, line, polyline, polygon) {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-menu__item > span { min-width: 0; display: grid; gap: 3px; }
.header-menu__item strong,
.header-menu__item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-menu__item strong { font-size: 11px; }
.header-menu__item small { color: var(--muted); font-size: 9px; font-weight: 500; }
.header-menu__separator { height: 1px; margin: 6px 8px; background: #e1e7ed; }
.header-menu__item--danger > i { background: #fbeaec; color: var(--danger); }
.header-menu__item--danger strong { color: var(--danger); }
.header-quick-actions { padding-left: 9px; border-left: 1px solid #dce3eb; }
.header-quick-actions .button { min-height: 36px; padding: 7px 11px; font-size: 11px; white-space: nowrap; }

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.button--primary {
  color: white;
  border-color: var(--brand);
  background: linear-gradient(135deg, #7a58ef, #6542dc);
  box-shadow: 0 7px 18px rgba(109, 76, 232, .25);
}

.button--primary:hover {
  background: linear-gradient(135deg, #6e4ce3, #5937ca);
}

.button--quiet {
  color: #344a63;
  border-color: #d7dfe8;
  background: white;
}

.button--quiet:hover,
.button--small:hover {
  border-color: #aebed0;
  background: #f8fafc;
}

.contract-editor-back.button:hover,
.contract-editor-back.button:focus-visible {
  border-color: #344a63;
  background: #344a63;
  color: #fff;
  outline: none;
}

.theme-toggle span {
  font-size: 18px;
  line-height: 1;
}

.theme-toggle b { font-size: 12px; }

.preview-toggle span { font-size: 16px; line-height: 1; }
.preview-toggle b { font-size: 12px; }

.button--small {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--brand);
  border-color: #bfd0e4;
  background: #f7faff;
  font-size: 12px;
}

.workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(440px, 36vw) minmax(0, 1fr);
}

body.preview-collapsed .workspace {
  grid-template-columns: minmax(440px, 900px);
  justify-content: center;
  overflow: auto;
  background: #dce2e9;
}

body.preview-collapsed .editor-panel {
  width: 100%;
  border-right: 0;
  box-shadow: 0 0 30px rgba(22, 44, 70, .08);
}

body.preview-collapsed .preview-panel { display: none; }

.editor-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 22px 24px 48px;
  border-right: 1px solid #d9e1ea;
  background: #fbfcfe;
}

.progress-card {
  padding: 15px 16px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: white;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.progress-copy strong {
  color: var(--ink);
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef4;
}

.progress-track progress {
  width: 100%;
  height: 100%;
  display: block;
  appearance: none;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.progress-track progress::-webkit-progress-bar { background: transparent; }
.progress-track progress::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--brand), #75a5d8); transition: width .25s ease; }
.progress-track progress::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--brand), #75a5d8); transition: width .25s ease; }

.draft-library {
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px solid #d5e0eb;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7f5ff, #ffffff);
}

.draft-library__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}

.draft-library.is-collapsed .draft-library__heading { margin-bottom: 0; }
.draft-library.is-collapsed .draft-library__body { display: none; }

.draft-library__heading > div:first-child {
  display: grid;
  gap: 2px;
}

.draft-library__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.library-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #c8d5e2;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
}

.library-toggle:hover,
.library-toggle:focus-visible {
  border-color: var(--brand-2);
  background: #f4f8fc;
}

.library-toggle span {
  width: 17px;
  height: 17px;
  position: relative;
  display: block;
  border: 2.3px solid currentColor;
  border-radius: 50%;
}
.library-toggle span::after {
  content: "";
  width: 8px;
  height: 2.3px;
  position: absolute;
  right: -6px;
  bottom: -3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}
.library-toggle.is-expanded { background: var(--brand-soft); }

.draft-library__heading span {
  color: var(--brand-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.draft-library__heading strong {
  font-size: 14px;
}

.draft-library__heading small {
  max-width: 155px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

.draft-library__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin-bottom: 8px;
}

.draft-library__filters label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.draft-library__filters label > span {
  color: #596e84;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.draft-library__filters .library-search { grid-column: 1 / -1; }
.draft-library__filters .library-type-filter { grid-column: 1; grid-row: 2; }
.draft-library__filters #clearContractFilters { grid-column: 2; grid-row: 2; }
.draft-library__filters .library-date-from { grid-column: 1; grid-row: 3; }
.draft-library__filters .library-date-to { grid-column: 2; grid-row: 3; }

.draft-library__filters input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #c5d3e1;
  border-radius: 8px;
  outline: 0;
  background: white;
  color: #29425d;
}

.draft-library__filters input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(81, 127, 183, .13);
}

.draft-library__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.draft-library select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid #c5d3e1;
  border-radius: 8px;
  outline: 0;
  background: white;
  color: #29425d;
  font: inherit;
}

.draft-library select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(81, 127, 183, .13);
}

.draft-library__body > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.library-results {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.button--danger {
  border-color: #e4c7cc;
  background: #fffafb;
  color: var(--danger);
}

.button--danger:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.step-nav {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 17px 0 26px;
}

.step-nav__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 7px 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.step-nav__item span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #ccd6e1;
  border-radius: 50%;
  background: white;
  color: #63748a;
  font-size: 12px;
}

.step-nav__item.is-active {
  color: var(--brand);
}

.step-nav__item.is-active span {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.step-nav__item.is-complete span {
  border-color: #7cb49d;
  background: #e8f5ef;
  color: var(--success);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: step-in .18s ease-out;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.section-heading p {
  margin: 0 0 3px;
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -.02em;
}

.section-help {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.subsection-title {
  margin: 24px 0 13px;
  padding-top: 20px;
  border-top: 1px solid #e1e7ee;
}

.subsection-title h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.subsection-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.field {
  display: grid;
  align-content: start;
  gap: 6px;
}

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

.client-lookup-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
  gap: 13px;
}

.client-lookup { position: relative; min-width: 0; }
.client-lookup__input { position: relative; }
.client-lookup__input::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #71849a;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}
.client-lookup__input::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 23px;
  top: 24px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #71849a;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}
.client-lookup .client-lookup__input input { width: 100%; padding-left: 40px; }
.client-lookup__results {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  right: 0;
  width: min(520px, calc(100vw - 44px));
  max-height: 330px;
  overflow: auto;
  padding: 7px;
  border: 1px solid #ced9e6;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(34, 50, 71, .18);
}
.client-lookup__results[hidden] { display: none; }
.client-lookup__results button {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.client-lookup__results button:hover,
.client-lookup__results button:focus-visible { outline: none; background: var(--brand-soft); }
.client-lookup__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.client-lookup__person { min-width: 0; display: grid; gap: 2px; }
.client-lookup__person strong,
.client-lookup__person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-lookup__person strong { font-size: 11px; }
.client-lookup__person small { color: var(--muted); font-size: 9px; }
.client-lookup__history { color: var(--brand); font-size: 9px; font-weight: 750; white-space: nowrap; }
.client-lookup__empty,
.client-lookup__more { margin: 0; padding: 10px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.client-lookup__more { border-top: 1px solid var(--line); }

.field > span {
  color: #40556d;
  font-size: 12px;
  font-weight: 650;
}

.field b {
  color: var(--danger);
}

.document-field__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
}

.document-field__heading > span {
  color: #40556d;
  font-size: 12px;
  font-weight: 650;
}

.document-type-choice {
  display: flex;
  align-items: center;
  gap: 12px;
}

.document-type-option {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.document-type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.document-type-option span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #40556d;
  font-size: 11px;
  font-weight: 750;
}

.document-type-option span::before {
  content: "";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid #9fb2c7;
  border-radius: 3px;
  background: #fff;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.document-type-option input:checked + span::before {
  content: "✓";
  border-color: var(--brand);
  background: var(--brand);
}

.document-type-option input:focus-visible + span::before {
  box-shadow: 0 0 0 3px rgba(81, 127, 183, .2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  outline: 0;
  background: white;
  color: var(--ink);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(81, 127, 183, .13);
}

.field input[readonly] {
  cursor: not-allowed;
  border-color: #d9e1e9;
  background: #eef2f6;
  color: #52657a;
}

.field-hint {
  margin-top: -1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.field-hint.is-valid { color: var(--success); font-weight: 700; }
.field-hint.is-error { color: var(--danger); font-weight: 700; }

.field input.is-invalid {
  border-color: #d28a92;
  background: #fffafb;
}

.password-input {
  position: relative;
  display: block;
  width: 100%;
}

.password-input > input { padding-right: 48px; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  outline: 0;
  background: transparent;
  color: #65778b;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible { background: #eef2f7; color: var(--brand); }
.password-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(109, 76, 232, .16); }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .password-eye-slash { display: none; }
.password-toggle.is-showing .password-eye-slash { display: block; }

.input-suffix {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  background: white;
}

.input-suffix:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(81, 127, 183, .13);
}

.input-suffix input {
  border: 0;
  box-shadow: none !important;
}

.input-suffix span {
  padding: 0 11px;
  color: var(--muted);
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 12px;
  color: #40556d;
  cursor: pointer;
  font-weight: 650;
}

.toggle-field input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
}

.toggle-field--inline {
  margin: -2px 0 1px;
  padding: 9px 11px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f6f9fd;
  font-size: 12px;
}

.conditional {
  display: none;
  padding: 15px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #f6f9fd;
}

.conditional.is-visible {
  display: grid;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e1e7ee;
}

.step-actions--split {
  justify-content: space-between;
}

.step-actions__forward {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

.availability-summary {
  display: grid;
  gap: 3px;
  margin: 10px 0 14px;
  padding: 11px 13px;
  border: 1px solid #d5e0ea;
  border-radius: 9px;
  background: #f7fafc;
}

.availability-summary:empty { display: none; }
.availability-summary strong { font-size: 12px; }
.availability-summary span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.availability-summary.is-available { border-color: #b9dfcf; background: #eff9f5; }
.availability-summary.is-available strong { color: #176a50; }
.availability-summary.is-conflict { border-color: #edc3c3; background: #fff4f4; }
.availability-summary.is-conflict strong { color: #a22d35; }
.tables-consumption-summary { gap: 7px; }
.tables-consumption-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 6px; margin-top: 3px; }
.availability-summary .tables-consumption-item { display: grid; gap: 2px; padding: 7px 9px; border: 1px solid rgba(63,91,119,.18); border-radius: 7px; background: rgba(255,255,255,.62); }
.tables-consumption-item b { color: var(--ink); font-size: 10px; }
.tables-consumption-item em { color: var(--muted); font-size: 9px; font-style: normal; }
.availability-summary .tables-consumption-item.is-short { border-color: #e2a9ad; background: #fff0f1; }

.repeat-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 112px 34px;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: white;
}

.item-availability {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.item-availability.is-available { color: #22715a; }
.item-availability.is-conflict { color: #b1323a; }
.item-availability__reservation { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 3px 5px; }
.item-availability__reservation-link { min-height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--brand); cursor: pointer; font: inherit; font-weight: 800; line-height: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.item-availability__reservation-link:hover { color: #4f2bc7; }
.item-availability__reservation-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.item-availability__separator { color: var(--muted); }

.repeat-card--service {
  grid-template-columns: minmax(0, 1fr) 130px 34px;
}

.repeat-card--catalog {
  grid-template-columns: minmax(150px, 1.25fr) 70px minmax(130px, .9fr) 112px 34px;
}

.catalog-item-name {
  min-width: 0;
  display: grid;
  align-self: center;
  gap: 4px;
}

.catalog-item-name span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.catalog-item-name strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.catalog-item-name small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.repeat-card--catalog.is-virtual-kit { border-left: 3px solid var(--brand); background: color-mix(in srgb, var(--brand-soft) 32%, white); }

.repeat-card .field > span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.repeat-card .field input {
  min-height: 38px;
  padding: 7px 9px;
}

.icon-button {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e3cbd0;
  border-radius: 7px;
  background: #fffafb;
  color: var(--danger);
  cursor: pointer;
  font-size: 18px;
}

.empty-state {
  display: none;
  justify-items: center;
  gap: 5px;
  padding: 30px 18px;
  border: 1px dashed #c4d0dd;
  border-radius: 11px;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: grid;
}

.empty-state strong {
  color: #42576f;
}

.totals-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid #d8e2ed;
  border-radius: 11px;
  background: white;
}

.totals-card div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-right: 1px solid #e2e8ef;
}

.totals-card div:last-child {
  border-right: 0;
}

.totals-card span {
  color: var(--muted);
  font-size: 11px;
}

.totals-card strong {
  font-size: 16px;
}

.totals-card__balance {
  background: var(--brand-soft);
  color: var(--brand);
}

.installments-card {
  margin: 19px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.installments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #f6f9fc;
}
.installments-heading { cursor: pointer; list-style: none; user-select: none; }
.installments-heading::-webkit-details-marker { display: none; }
.installments-heading::marker { display: none; content: ""; }
.installments-card:not([open]) .installments-heading { border-bottom-color: transparent; }
.installments-heading:hover { background: #f1f5fa; }
.installments-heading > div { min-width: 0; }
.installments-heading span { color: var(--brand-2); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.installments-heading h3 { margin: 3px 0; font-size: 16px; }
.installments-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.installments-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; color: var(--brand) !important; letter-spacing: 0 !important; text-transform: none !important; }
.installments-toggle b { font-size: 10px; }
.installments-toggle b::before { content: "Expandir"; }
.installments-toggle i { display: grid; place-items: center; width: 36px; height: 32px; border: 1px solid #cbd8e7; border-radius: 9px; background: #fff; font-size: 21px; font-style: normal; font-weight: 500; line-height: 1; transition: transform .18s ease, background .18s ease; }
.installments-card[open] .installments-toggle b::before { content: "Recolher"; }
.installments-card[open] .installments-toggle i { transform: rotate(45deg); background: var(--brand-soft); }
.installments-body { animation: installments-reveal .18s ease-out; }
@keyframes installments-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.installments-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.installments-actions p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.installments-actions .button { flex: 0 0 auto; }

.installment-planner {
  display: grid;
  grid-template-columns: 105px minmax(170px, 230px) auto;
  align-items: end;
  gap: 11px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.installments-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.installments-summary > div { min-width: 0; display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #dce4ec; border-radius: 9px; background: #f8fafc; }
.installments-summary span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.installments-summary strong { color: var(--brand); font-size: 12px; }
.installments-summary .has-overdue { border-color: #dfaaaa; background: #fff1f1; }
.installments-summary .has-overdue strong,
.installments-summary .is-overplanned strong { color: #a33f48; }
.installments-summary .has-unplanned { border-color: #e2c681; background: #fff8e6; }

.installments-list { display: grid; gap: 9px; padding: 12px 18px 17px; }
.installment-row { overflow: hidden; border: 1px solid #d9e2eb; border-left: 4px solid #d3a146; border-radius: 10px; background: #fff; }
.installment-row.status-paid { border-left-color: #3f9a6c; }
.installment-row.status-overdue { border-left-color: #c45058; }
.installment-row__heading { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #e3e8ee; background: #f7f9fc; }
.installment-row__heading strong { margin-right: auto; font-size: 11px; }
.installment-row__heading .icon-button { width: 28px; height: 28px; }
.installment-status { padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.installment-status--pending { background: #fff2d7; color: #7b5915; }
.installment-status--paid { background: #e3f5eb; color: #256d4a; }
.installment-status--overdue { background: #fbe5e7; color: #923940; }
.installment-row__fields { display: grid; grid-template-columns: minmax(145px, 1.2fr) minmax(125px, .8fr); align-items: end; gap: 9px; padding: 11px; }
.installment-paid { min-height: 38px; align-self: end; padding: 8px 9px; border: 1px solid #d4dde6; border-radius: 8px; background: #f8fafc; }
.installment-note { grid-column: 1 / -1; }
.installment-message { grid-column: 1 / -1; min-height: 38px; justify-self: start; }
.installments-empty { margin: 0 18px 17px; }

.payment-installments-contract { margin: 1.2mm 0 0; font-size: 7.2pt; line-height: 1.3; }

.notice {
  display: none;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #edd2a8;
  border-radius: 8px;
  background: #fff8ec;
  color: #815616;
  font-size: 12px;
  line-height: 1.45;
}

.notice.is-visible {
  display: block;
}

.notice--static {
  display: block;
  margin-bottom: 14px;
  border-color: #cadceb;
  background: #eef5fb;
  color: #3e617f;
}

.pix-settings {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #d8e2ed;
  border-radius: 12px;
  background: #fff;
}

.pix-settings__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #f6f9fc;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.pix-settings__summary::-webkit-details-marker { display: none; }
.pix-settings__summary::marker { display: none; content: ""; }
.pix-settings:not([open]) .pix-settings__summary { border-bottom-color: transparent; }
.pix-settings__summary:hover { background: #f1f5fa; }
.pix-settings__summary > div { min-width: 0; }
.pix-settings[open] .installments-toggle b::before { content: "Recolher"; }
.pix-settings[open] .installments-toggle i { transform: rotate(45deg); background: var(--brand-soft); }
.pix-settings__body { animation: installments-reveal .18s ease-out; }
.pix-settings__help {
  margin: 0;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.pix-settings__copy span {
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pix-settings__copy h3 { margin: 3px 0 5px; font-size: 16px; }
.pix-settings__copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.pix-settings__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 158px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 18px;
}

.pix-settings__fields { display: grid; gap: 12px; }

.pix-editor-preview {
  min-height: 158px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px dashed #b9c9d9;
  border-radius: 10px;
  background: #fff;
}

.pix-editor-preview img,
.pix-editor-preview canvas {
  width: 138px !important;
  height: 138px !important;
  object-fit: contain;
}

.pix-disabled-message { color: var(--muted); font-size: 11px; text-align: center; }

.company-settings {
  margin-top: 20px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: white;
}

.manual-date-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #cddceb;
  border-radius: 8px;
  background: #f3f7fb;
  color: #48627d;
  font-size: 11px;
  line-height: 1.45;
}

.company-settings summary {
  padding: 14px;
  cursor: pointer;
  color: #40556d;
  font-weight: 700;
}

.company-settings .form-grid {
  padding: 4px 14px 16px;
}

.company-logo-settings {
  margin: 0 14px 16px;
  padding: 14px;
  border: 1px solid #d8e2ed;
  border-radius: 10px;
  background: #f8fafc;
}
.company-logo-settings__copy { display: grid; gap: 3px; }
.company-logo-settings__copy strong { font-size: 12px; }
.company-logo-settings__copy span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.company-logo-settings__layout { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 14px; margin-top: 12px; }
.company-logo-settings__fields { min-width: 0; display: grid; gap: 10px; }
.company-logo-settings__actions { display: flex; flex-wrap: wrap; gap: 7px; }
.company-logo-settings__actions .button { cursor: pointer; }
.company-logo-preview {
  min-height: 105px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px dashed #c6d4e2;
  border-radius: 9px;
  background: #fff;
}
.company-logo-preview img { width: 100%; max-width: 130px; max-height: 82px; object-fit: contain; }

.validation-summary {
  display: grid;
  gap: 8px;
}

.validation-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e8cbd0;
  border-radius: 8px;
  background: #fffafb;
  color: #87414a;
  font-size: 12px;
}

.validation-item::before {
  content: "!";
  width: 18px;
  height: 18px;
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
  background: #f2dfe2;
  font-size: 11px;
  font-weight: 800;
}

.validation-ok {
  padding: 14px;
  border: 1px solid #bcdcca;
  border-radius: 9px;
  background: #f0faf5;
  color: var(--success);
  font-weight: 650;
}

.review-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 17px 0 22px;
  overflow: hidden;
  border: 1px solid #d8e2ed;
  border-radius: 10px;
}

.review-card div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-right: 1px solid #e1e8ef;
  background: white;
}

.review-card div:last-child {
  border-right: 0;
}

.review-card span {
  color: var(--muted);
  font-size: 11px;
}

.review-card strong {
  font-size: 17px;
}

.calendar-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 58, .28);
}

.calendar-dialog::backdrop {
  background: rgba(20, 35, 52, .58);
  backdrop-filter: blur(3px);
}

.financial-dialog {
  width: min(1240px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f3f6fa;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 58, .32);
}

.financial-dialog::backdrop { background: rgba(20, 35, 52, .65); backdrop-filter: blur(4px); }
.financial-shell { height: calc(100vh - 32px); display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; }
.financial-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px 17px; border-bottom: 1px solid #d8e1ea; background: linear-gradient(135deg, #e7f2fb, #fff); }
.financial-header > div:first-child { min-width: 0; }
.financial-header > div:first-child > span { color: var(--brand-2); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.financial-header h2 { margin: 3px 0 4px; font-size: 24px; }
.financial-header p { margin: 0; color: var(--muted); font-size: 11px; }
.financial-header__actions { display: flex; align-items: center; gap: 8px; }

.financial-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 20px; border-bottom: 1px solid #dce4ec; background: #fff; }
.financial-period-nav { display: flex; align-items: center; gap: 8px; }
.financial-period-nav > button:not(.button) { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #d2dce6; border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; font-size: 22px; }
.financial-period-nav > strong { min-width: 155px; font-size: 13px; text-align: center; text-transform: capitalize; }
.financial-period-fields { display: flex; align-items: end; gap: 7px; margin-left: auto; }
.financial-period-fields label { display: grid; gap: 2px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; transition: opacity .18s ease; }
.financial-period-fields label.is-disabled { opacity: .48; }
.financial-period-fields select,
.financial-period-fields input { min-height: 34px; padding: 6px 8px; border: 1px solid #d2dce6; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.financial-period-fields select { min-width: 118px; text-transform: capitalize; }
.financial-period-fields input { width: 82px; }
.financial-view-toggle { display: flex; padding: 3px; border: 1px solid #d5dee8; border-radius: 9px; background: #f1f4f7; }
.financial-view-toggle button { min-width: 68px; padding: 7px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.financial-view-toggle button.is-active { background: #fff; color: var(--brand); box-shadow: 0 2px 7px rgba(21, 43, 67, .12); }

.financial-content { min-height: 0; overflow: auto; padding: 16px 20px 22px; scrollbar-gutter: stable; }
.financial-kpis { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 10px; margin-bottom: 12px; }
.financial-kpi { min-width: 0; display: grid; gap: 5px; padding: 14px; border: 1px solid #dce4ec; border-radius: 12px; background: #fff; box-shadow: 0 5px 15px rgba(25, 49, 75, .04); }
.financial-kpi span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.financial-kpi strong { overflow: hidden; font-size: clamp(16px, 1.55vw, 21px); text-overflow: ellipsis; white-space: nowrap; }
.financial-kpi small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.financial-kpi--income { border-top: 3px solid #2b8a62; }
.financial-kpi--income strong { color: #237a57; }
.financial-kpi--expense { border-top: 3px solid #bd5861; }
.financial-kpi--expense strong { color: #a83d48; }
.financial-kpi--result { border-top: 3px solid var(--brand); }
.financial-kpi--action { cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.financial-kpi--action:hover,
.financial-kpi--action:focus-visible { border-color: #8fb3d8; box-shadow: 0 8px 20px rgba(35, 78, 121, .12); outline: 0; transform: translateY(-1px); }
.financial-kpi--overdue.has-value { border-color: #e1b0b4; background: #fff6f6; }
.financial-kpi--overdue.has-value strong,
.financial-kpi--payable-overdue.has-value strong { color: var(--danger); }
.financial-kpi--payable-overdue.has-value { border-color: #e1b0b4; background: #fff6f6; }

.financial-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 12px; }
.financial-panel { min-width: 0; overflow: hidden; border: 1px solid #dce4ec; border-radius: 13px; background: #fff; box-shadow: 0 5px 16px rgba(25, 49, 75, .04); }
.financial-panel > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border-bottom: 1px solid #e3e9ef; }
.financial-panel > header > div:first-child { min-width: 0; display: grid; gap: 3px; }
.financial-panel > header strong { font-size: 12px; }
.financial-panel > header span { color: var(--muted); font-size: 9px; }
.financial-legend { display: flex !important; grid-auto-flow: column; align-items: center; gap: 5px !important; color: var(--muted); font-size: 9px; white-space: nowrap; }
.financial-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.financial-legend .is-income { background: #3b9b73; }
.financial-legend .is-expense { margin-left: 5px; background: #cc6971; }
.financial-legend .is-contracted { background: #557fbb; }
.financial-legend small { margin-left: 5px; color: var(--muted); font-size: 8px; font-weight: 500; }
.financial-chart-controls { display: flex !important; align-items: flex-end; flex-direction: column; gap: 6px !important; }
.financial-chart-toggle { display: flex; padding: 2px; border: 1px solid #d5dee8; border-radius: 7px; background: #f1f4f7; }
.financial-chart-toggle button { padding: 5px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; }
.financial-chart-toggle button.is-active { background: #fff; color: var(--brand); box-shadow: 0 1px 5px rgba(21, 43, 67, .12); }

.financial-chart { min-height: 225px; display: grid; grid-template-columns: repeat(12, minmax(32px, 1fr)); gap: 5px; overflow-x: auto; padding: 17px 14px 12px; }
.financial-chart-month { min-width: 32px; display: grid; grid-template-rows: 165px auto; align-items: end; gap: 7px; text-align: center; }
.financial-chart-bars { height: 165px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid #dce4ec; background: repeating-linear-gradient(to top, transparent 0, transparent 40px, #eef2f6 41px); }
.financial-chart-bar { width: min(13px, 38%); height: 165px; overflow: visible; }
.financial-chart-bar.is-income rect { fill: #27845f; }
.financial-chart-bar.is-expense rect { fill: #b64e58; }
.financial-chart-bar.is-contracted { width: 100%; }
.financial-chart-bar.is-contracted rect { fill: #426fae; }
.financial-chart-contracted { position: relative; width: min(24px, 62%); height: 165px; display: block; }
.financial-chart-contracted > b { position: absolute; top: -15px; left: 50%; z-index: 1; color: #466b99; font-size: 8px; transform: translateX(-50%); }
.financial-chart-month > span { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.financial-chart-empty { grid-column: 1 / -1; min-height: 190px; display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
.financial-chart-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e3e9ef; }
.financial-chart-summary > div { min-width: 0; display: grid; gap: 3px; padding: 10px 12px; border-right: 1px solid #e3e9ef; }
.financial-chart-summary > div:last-child { border-right: 0; }
.financial-chart-summary span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.financial-chart-summary strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.financial-segments { display: grid; gap: 16px; padding: 18px 16px; }
.financial-segment { width: 100%; display: grid; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.financial-segment:hover .financial-segment__heading span { color: var(--brand); }
.financial-segment__heading { display: flex; justify-content: space-between; gap: 12px; }
.financial-segment__heading span { color: var(--muted); font-size: 10px; }
.financial-segment__heading strong { font-size: 11px; }
.financial-segment__track { height: 9px; overflow: hidden; border-radius: 999px; background: #e8edf2; }
.financial-segment__track progress { width: 100%; height: 100%; display: block; appearance: none; border: 0; background: transparent; }
.financial-segment__track progress::-webkit-progress-bar { background: transparent; }
.financial-segment__track progress::-webkit-progress-value { border-radius: 999px; background: var(--brand); }
.financial-segment__track progress::-moz-progress-bar { border-radius: 999px; background: var(--brand); }
.financial-segment:nth-child(2) .financial-segment__track progress::-webkit-progress-value { background: #7b65ad; }
.financial-segment:nth-child(2) .financial-segment__track progress::-moz-progress-bar { background: #7b65ad; }
.financial-segment:nth-child(3) .financial-segment__track progress::-webkit-progress-value { background: #c59038; }
.financial-segment:nth-child(3) .financial-segment__track progress::-moz-progress-bar { background: #c59038; }
.financial-segment small { color: var(--muted); font-size: 8px; }

.financial-receivables-actions { display: flex !important; align-items: center; gap: 6px !important; }
.financial-receivables-actions select { min-height: 30px; padding: 5px 8px; border: 1px solid #d2dce6; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 9px; }

.financial-receivables-panel,
.financial-activity-panel,
.financial-payables-panel { min-height: 260px; }
.financial-payables-panel,
.financial-manual-panel { grid-column: 1 / -1; }
.financial-transaction-list { max-height: 300px; overflow: auto; padding: 4px 15px 10px; scrollbar-gutter: stable; }
.financial-transaction { width: 100%; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 0; border: 0; border-bottom: 1px solid #e7ecf1; background: transparent; color: var(--ink); font: inherit; text-align: left; }
button.financial-transaction { cursor: pointer; }
button.financial-transaction:hover { background: #f7faff; }
.financial-transaction time { color: var(--brand); font-size: 10px; font-weight: 800; }
.financial-transaction > span { min-width: 0; display: grid; gap: 3px; }
.financial-transaction > span strong,
.financial-transaction > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.financial-transaction > span strong { font-size: 11px; }
.financial-transaction > span small { color: var(--muted); font-size: 9px; }
.financial-transaction > strong { font-size: 11px; white-space: nowrap; }
.financial-transaction.is-overdue time,
.financial-transaction.is-overdue > strong { color: var(--danger); }
.financial-empty { min-height: 160px; display: grid; place-items: center; padding: 20px; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; }

.financial-manual-filters { display: flex; align-items: center; gap: 7px; }
.financial-manual-filters select { min-height: 32px; padding: 6px 9px; border: 1px solid #d2dce6; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.financial-manual-list { max-height: 320px; overflow: auto; padding: 4px 15px 12px; scrollbar-gutter: stable; }
.financial-manual-row { display: grid; grid-template-columns: 82px minmax(180px, 1.4fr) minmax(110px, .7fr) auto auto auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e7ecf1; }
.financial-manual-row > span { min-width: 0; display: grid; gap: 3px; }
.financial-manual-row > span strong,
.financial-manual-row > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.financial-manual-row > span strong { font-size: 11px; }
.financial-manual-row > span small { color: var(--muted); font-size: 9px; }
.financial-manual-row time { color: var(--brand); font-size: 10px; font-weight: 800; }
.financial-manual-value { display: grid; justify-items: end; gap: 3px; }
.financial-manual-value strong { font-size: 11px; }
.financial-manual-value small { color: var(--muted); font-size: 9px; }
.financial-manual-value.is-income strong { color: var(--success); }
.financial-manual-value.is-expense strong { color: var(--danger); }
.financial-manual-status { width: fit-content; padding: 4px 7px; border: 1px solid #d8c27f; border-radius: 999px; background: #fff6da; color: #785b17; font-size: 9px; font-weight: 800; }
.financial-manual-status.is-realized { border-color: #abd2bb; background: #e8f6ee; color: #27704f; }
.financial-manual-actions { display: flex; justify-content: flex-end; gap: 6px; }

.financial-entry-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 58, .36);
}
.financial-entry-dialog::backdrop { background: rgba(11, 24, 39, .7); backdrop-filter: blur(4px); }
.financial-entry-shell { max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.financial-entry-body { overflow: auto; padding: 18px 22px 14px; scrollbar-gutter: stable; }
.financial-entry-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 15px; }
.financial-entry-choice label { cursor: pointer; }
.financial-entry-choice input { position: absolute; opacity: 0; pointer-events: none; }
.financial-entry-choice span { min-height: 42px; display: grid; place-items: center; border: 1px solid #cfd9e4; border-radius: 9px; background: #f7f9fb; color: var(--muted); font-weight: 800; }
.financial-entry-choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 2px rgba(54, 95, 145, .1); }
.financial-entry-choice label:last-child input:checked + span { border-color: #bd6a71; background: #fff0f1; color: var(--danger); box-shadow: 0 0 0 2px rgba(168, 61, 72, .08); }
.financial-entry-body .form-grid { margin-bottom: 13px; }
.financial-entry-body textarea { resize: vertical; }
.financial-entry-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 22px; border-top: 1px solid #dfe6ed; background: #fff; }

.financial-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px; border: 1px solid #bcd2e8; border-radius: 11px; background: #edf5fc; color: #365b80; }
.financial-notice > span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; font-weight: 900; }
.financial-notice p { margin: 1px 0 0; font-size: 10px; line-height: 1.5; }

.receivables-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 1px solid #cbd6e1; border-radius: 16px; background: #f3f6f9; color: var(--ink); box-shadow: 0 25px 70px rgba(10, 25, 43, .3); }
.receivables-dialog::backdrop { background: rgba(10, 23, 38, .7); backdrop-filter: blur(5px); }
.receivables-shell { height: calc(100vh - 32px); display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; overflow: hidden; }
.receivables-toolbar { display: grid; grid-template-columns: 145px 145px minmax(190px, 1fr) 135px 160px auto; align-items: end; gap: 9px; padding: 13px 18px; border-bottom: 1px solid #dce4ec; background: #fff; }
.receivables-toolbar .field { margin: 0; }
.receivables-toolbar .field > span { font-size: 9px; }
.receivables-toolbar input,
.receivables-toolbar select { min-height: 36px; }
.receivables-toolbar > .button { min-height: 36px; white-space: nowrap; }
.receivables-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 13px 18px; }
.receivables-summary article { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid #dce4ec; border-radius: 10px; background: #fff; }
.receivables-summary span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.receivables-summary strong { font-size: 17px; }
.receivables-summary .is-overdue strong { color: var(--danger); }
.receivables-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-block: 1px solid #dce4ec; background: #fff; }
.receivables-list-heading strong { font-size: 12px; }
.receivables-list-heading span { color: var(--muted); font-size: 9px; }
.receivables-list { min-height: 0; overflow: auto; padding: 0 18px 12px; background: #fff; scrollbar-gutter: stable; }
.receivable-row { width: 100%; display: grid; grid-template-columns: 92px minmax(150px, 1.15fr) minmax(150px, 1fr) 82px 105px auto; align-items: center; gap: 12px; min-height: 62px; padding: 9px 0; border: 0; border-bottom: 1px solid #e4eaf0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.receivable-row:hover,
.receivable-row:focus-visible { background: #f7faff; outline: 0; }
.receivable-row time,
.receivable-row > span { min-width: 0; display: grid; gap: 3px; }
.receivable-row time span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.receivable-row time strong,
.receivable-row > span strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.receivable-row > span small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.receivable-row em { width: fit-content; padding: 4px 7px; border-radius: 999px; background: #e8f1fa; color: #38668f; font-size: 8px; font-style: normal; font-weight: 850; white-space: nowrap; }
.receivable-row.is-overdue em { background: #fdebec; color: var(--danger); }
.receivable-row.is-today em { background: #fff2ce; color: #7b5b12; }
.receivable-row__amount { font-size: 11px; text-align: right; white-space: nowrap; }
.receivable-row__action { color: var(--brand); font-size: 9px; font-weight: 800; text-align: right; white-space: nowrap; }
.receivables-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 18px; border-top: 1px solid #dce4ec; background: #f8fafc; }
.receivables-footer span { color: var(--muted); font-size: 9px; }

.contracted-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 1px solid #cbd6e1; border-radius: 16px; background: #f3f6f9; color: var(--ink); box-shadow: 0 25px 70px rgba(10, 25, 43, .3); }
.contracted-dialog::backdrop { background: rgba(10, 23, 38, .7); backdrop-filter: blur(5px); }
.contracted-shell { height: calc(100vh - 32px); display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; overflow: hidden; }
.contracted-toolbar { display: grid; grid-template-columns: 145px 145px minmax(180px, 1fr) 190px 155px auto; align-items: end; gap: 9px; padding: 13px 18px; border-bottom: 1px solid #dce4ec; background: #fff; }
.contracted-toolbar .field { margin: 0; }
.contracted-toolbar .field > span { font-size: 9px; }
.contracted-toolbar input,
.contracted-toolbar select { min-height: 36px; }
.contracted-toolbar > .button { min-height: 36px; white-space: nowrap; }
.contracted-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 13px 18px; }
.contracted-summary article { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid #dce4ec; border-radius: 10px; background: #fff; }
.contracted-summary span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.contracted-summary strong { font-size: 17px; }
.contracted-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-block: 1px solid #dce4ec; background: #fff; }
.contracted-list-heading strong { font-size: 12px; }
.contracted-list-heading span { color: var(--muted); font-size: 9px; }
.contracted-list { min-height: 0; overflow: auto; padding: 0 18px 12px; background: #fff; scrollbar-gutter: stable; }
.contracted-row { display: grid; grid-template-columns: 92px minmax(180px, 1fr) 125px 105px 95px auto; align-items: center; gap: 11px; min-height: 62px; padding: 9px 0; border-bottom: 1px solid #e4eaf0; }
.contracted-row time,
.contracted-row > span { min-width: 0; display: grid; gap: 3px; }
.contracted-row time span,
.contracted-row__money small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.contracted-row time strong,
.contracted-row__client strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.contracted-row__client small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.contracted-row__money { justify-items: end; }
.contracted-row__money strong { font-size: 10px; white-space: nowrap; }
.contracted-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 18px; border-top: 1px solid #dce4ec; background: #f8fafc; }
.contracted-footer span { color: var(--muted); font-size: 9px; }

.revenue-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 1px solid #cbd6e1; border-radius: 16px; background: #f3f6f9; color: var(--ink); box-shadow: 0 25px 70px rgba(10, 25, 43, .3); }
.revenue-dialog::backdrop { background: rgba(10, 23, 38, .7); backdrop-filter: blur(5px); }
.revenue-shell { height: calc(100vh - 32px); display: grid; grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto; overflow: hidden; }
.revenue-toolbar { display: grid; grid-template-columns: 145px 145px minmax(210px, 1fr) 165px auto; align-items: end; gap: 9px; padding: 13px 18px; border-bottom: 1px solid #dce4ec; background: #fff; }
.revenue-toolbar .field { margin: 0; }
.revenue-toolbar .field > span { font-size: 9px; }
.revenue-toolbar input,
.revenue-toolbar select { min-height: 36px; }
.revenue-toolbar > .button { min-height: 36px; white-space: nowrap; }
.revenue-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 13px 18px; }
.revenue-summary article { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid #dce4ec; border-top: 3px solid var(--brand); border-radius: 10px; background: #fff; }
.revenue-summary article.is-decoration { border-top-color: #487cb5; }
.revenue-summary article.is-tables { border-top-color: #8065ad; }
.revenue-summary span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.revenue-summary strong { font-size: 17px; }
.revenue-summary small { color: var(--muted); font-size: 8px; }
.revenue-comparison { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px 13px; }
.revenue-comparison button { min-width: 0; display: grid; grid-template-columns: minmax(95px, .8fr) minmax(100px, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #dce4ec; border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.revenue-comparison button:hover { border-color: #9db9d5; }
.revenue-comparison button > span { overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.revenue-comparison button > div { height: 7px; overflow: hidden; border-radius: 999px; background: #e8edf2; }
.revenue-comparison progress { width: 100%; height: 100%; display: block; appearance: none; border: 0; background: transparent; }
.revenue-comparison progress::-webkit-progress-bar { background: transparent; }
.revenue-comparison progress::-webkit-progress-value { border-radius: 999px; background: #487cb5; }
.revenue-comparison progress::-moz-progress-bar { border-radius: 999px; background: #487cb5; }
.revenue-comparison progress.is-mesas::-webkit-progress-value { background: #8065ad; }
.revenue-comparison progress.is-mesas::-moz-progress-bar { background: #8065ad; }
.revenue-comparison progress.is-outros::-webkit-progress-value { background: #c59038; }
.revenue-comparison progress.is-outros::-moz-progress-bar { background: #c59038; }
.revenue-comparison button > strong { font-size: 9px; white-space: nowrap; }
.revenue-comparison button small { color: var(--muted); font-size: 8px; }
.revenue-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-block: 1px solid #dce4ec; background: #fff; }
.revenue-list-heading strong { font-size: 12px; }
.revenue-list-heading span { color: var(--muted); font-size: 9px; }
.revenue-list { min-height: 0; overflow: auto; padding: 0 18px 12px; background: #fff; scrollbar-gutter: stable; }
.revenue-row { display: grid; grid-template-columns: 92px minmax(170px, 1.1fr) minmax(150px, 1fr) 105px auto; align-items: center; gap: 12px; min-height: 62px; padding: 9px 0; border-bottom: 1px solid #e4eaf0; }
.revenue-row time,
.revenue-row > span { min-width: 0; display: grid; gap: 3px; }
.revenue-row time span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.revenue-row time strong,
.revenue-row > span strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.revenue-row > span small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.revenue-row__amount { font-size: 11px; text-align: right; white-space: nowrap; }
.revenue-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 18px; border-top: 1px solid #dce4ec; background: #f8fafc; }
.revenue-footer span { color: var(--muted); font-size: 9px; }

.income-history-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 1px solid #cbd6e1; border-radius: 16px; background: #f3f6f9; color: var(--ink); box-shadow: 0 25px 70px rgba(10, 25, 43, .3); }
.income-history-dialog::backdrop { background: rgba(10, 23, 38, .7); backdrop-filter: blur(5px); }
.income-history-shell { height: calc(100vh - 32px); display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; overflow: hidden; }
.income-history-toolbar { display: grid; grid-template-columns: 190px 130px 90px 150px minmax(190px, 1fr) 155px 170px auto; align-items: end; gap: 8px; padding: 12px 18px; border-bottom: 1px solid #dce4ec; background: #fff; }
.income-history-toolbar .field { margin: 0; }
.income-history-toolbar .field > span { font-size: 8px; }
.income-history-toolbar input,
.income-history-toolbar select { min-height: 36px; }
.income-history-toolbar .field.is-disabled { opacity: .48; }
.income-history-period-nav { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 5px; }
.income-history-period-nav button { width: 32px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid #d2dce6; border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; font-size: 20px; }
.income-history-period-nav strong { overflow: hidden; font-size: 10px; text-align: center; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.income-history-view button { min-width: 66px; }
.income-history-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 13px 18px; }
.income-history-summary article { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid #dce4ec; border-top: 3px solid #3b9b73; border-radius: 10px; background: #fff; }
.income-history-summary span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.income-history-summary strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.income-history-summary small { color: var(--muted); font-size: 8px; }
.income-history-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-block: 1px solid #dce4ec; background: #fff; }
.income-history-list-heading strong { font-size: 12px; }
.income-history-list-heading span { color: var(--muted); font-size: 9px; }
.income-history-list { min-height: 0; overflow: auto; padding: 0 18px 12px; background: #fff; scrollbar-gutter: stable; }
.income-history-row { width: 100%; display: grid; grid-template-columns: 92px minmax(150px, 1.05fr) minmax(160px, 1.1fr) 115px 70px auto; align-items: center; gap: 11px; min-height: 62px; padding: 9px 0; border: 0; border-bottom: 1px solid #e4eaf0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.income-history-row:hover { background: #f7faff; }
.income-history-row time,
.income-history-row > span { min-width: 0; display: grid; gap: 3px; }
.income-history-row time span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.income-history-row time strong,
.income-history-row > span strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.income-history-row > span small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.income-history-row em,
.income-history-row__source { width: fit-content; padding: 4px 7px; border-radius: 999px; background: #e8f1fa; color: #38668f; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.income-history-row__source { background: #e9f5ee; color: #27704f; }
.income-history-row__amount { font-size: 11px; text-align: right; white-space: nowrap; }
.income-history-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 18px; border-top: 1px solid #dce4ec; background: #f8fafc; }
.income-history-footer span { color: var(--muted); font-size: 9px; }

.work-center-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f7f9fc;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 58, .3);
}

.work-center-dialog::backdrop {
  background: rgba(20, 35, 52, .62);
  backdrop-filter: blur(4px);
}

.work-center-shell {
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.work-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 25px 18px;
  border-bottom: 1px solid #d8e1ea;
  background: linear-gradient(135deg, #eaf2fa, #fff);
}

.work-center-header > div:first-child { min-width: 0; }
.work-center-header > div:first-child > span {
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.work-center-header h2 { margin: 3px 0 4px; font-size: 24px; }
.work-center-header p { margin: 0; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.work-center-header__actions { display: flex; align-items: center; gap: 8px; }

.work-center-cards {
  display: grid;
  grid-template-columns: repeat(8, minmax(115px, 1fr));
  gap: 9px;
  padding: 15px 20px;
  overflow-x: auto;
  border-bottom: 1px solid #dfe6ee;
  background: #fff;
}

.work-center-card {
  min-width: 115px;
  min-height: 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 5px 8px;
  padding: 12px;
  border: 1px solid #d5e0ea;
  border-radius: 11px;
  background: #f9fbfd;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-center-card:hover,
.work-center-card:focus-visible { border-color: var(--brand-2); background: #f1f6fb; }
.work-center-card.is-active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(54, 95, 145, .12); }
.work-center-card span { align-self: center; font-size: 11px; font-weight: 800; line-height: 1.25; }
.work-center-card strong { color: var(--brand); font-size: 23px; line-height: 1; }
.work-center-card small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; line-height: 1.35; }

.work-center-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 250px) auto;
  align-items: end;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #dfe6ee;
  background: #f3f6f9;
}

.work-center-toolbar .inventory-search input,
.work-center-toolbar .inventory-search select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.work-center-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 20px;
  border-bottom: 1px solid #dfe6ee;
  background: #fff;
}
.work-center-list-heading > div { display: flex; align-items: baseline; gap: 9px; }
.work-center-list-heading strong { font-size: 13px; }
.work-center-list-heading small,
.work-center-list-heading > span { color: var(--muted); font-size: 10px; }

.work-center-list {
  min-height: 210px;
  overflow: auto;
  padding: 12px 20px 22px;
  scrollbar-gutter: stable;
}

.work-center-contract {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: stretch;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #d7e0e9;
  border-radius: 11px;
  background: #fff;
}

.work-center-contract__open {
  min-width: 0;
  display: grid;
  grid-template-columns: 100px minmax(190px, 1fr) minmax(120px, auto) 100px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.work-center-contract__open:hover { background: #f7faff; }
.work-center-contract__open time { color: var(--brand); font-size: 11px; font-weight: 800; }
.work-center-contract__client { min-width: 0; display: grid; gap: 3px; }
.work-center-contract__client strong,
.work-center-contract__client small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-center-contract__client strong { font-size: 12px; }
.work-center-contract__client small { color: var(--muted); font-size: 9px; }
.work-center-contract__balance { display: grid; justify-items: end; gap: 2px; }
.work-center-contract__balance small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.work-center-contract__balance strong { font-size: 12px; }

.work-center-contract__status {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 13px;
  border-left: 1px solid #e0e7ee;
  background: #f8fafc;
}
.work-center-contract__status > span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.work-center-contract__status select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #ccd7e2;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #cbd7e2;
  border-radius: 999px;
  background: #edf2f7;
  color: #40566d;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
}
.status-rascunho { background: #f1f3f5; border-color: #d5dadd; color: #59636d; }
.status-aguardando { background: #fff4d7; border-color: #e8cf83; color: #7c5a13; }
.status-confirmado { background: #e7f2ff; border-color: #a9caec; color: #275d94; }
.status-parcial { background: #fff0d9; border-color: #e5bd7c; color: #825616; }
.status-quitado { background: #e4f6ed; border-color: #a8d8bd; color: #216f4d; }
.status-separacao { background: #efe9ff; border-color: #c5b2ef; color: #5d4494; }
.status-retirado { background: #e8f5f5; border-color: #abd4d2; color: #236b68; }
.status-devolvido { background: #e9f4ec; border-color: #b6d5bf; color: #376e47; }
.status-concluido { background: #e5f4e8; border-color: #9fcbaa; color: #256a39; }
.status-cancelado { background: #fbe8ea; border-color: #e4b4ba; color: #913944; }

.work-center-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
}
.work-center-empty strong { color: var(--ink); font-size: 14px; }

.client-history-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f7f9fc;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 58, .3);
}

.client-history-dialog::backdrop {
  background: rgba(20, 35, 52, .62);
  backdrop-filter: blur(4px);
}

.client-history-shell {
  height: min(790px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.client-history-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 250px) minmax(180px, 230px) auto;
  align-items: end;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #dfe6ee;
  background: #f3f6f9;
}

.client-history-toolbar input,
.client-history-toolbar select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

@media (max-width: 960px) and (min-width: 641px) {
  .client-history-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .client-history-toolbar .button { width: 100%; }
}

.client-history-content {
  min-height: 0;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  overflow: hidden;
}

.client-history-list-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid #dce4ec;
  background: #f5f8fb;
}

.client-history-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #dce4ec;
  background: #fff;
}
.client-history-list-heading strong { font-size: 12px; }
.client-history-list-heading small { color: var(--muted); font-size: 10px; font-weight: 800; }

.client-history-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  scrollbar-gutter: stable;
}

.client-history-person {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  padding: 10px;
  border: 1px solid #d7e0e9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.client-history-person:hover,
.client-history-person:focus-visible { border-color: var(--brand-2); background: #f6faff; }
.client-history-person.is-active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(54, 95, 145, .1); }
.client-history-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.client-history-person__main { min-width: 0; display: grid; gap: 3px; }
.client-history-person__main strong,
.client-history-person__main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-history-person__main strong { font-size: 11px; }
.client-history-person__main small { color: var(--muted); font-size: 9px; }
.client-history-person__meta { display: grid; justify-items: end; gap: 3px; }
.client-history-person__meta b { color: var(--brand); font-size: 14px; }
.client-history-person__meta small { color: var(--muted); font-size: 8px; }

.client-history-detail {
  min-height: 0;
  overflow: auto;
  padding: 20px;
  scrollbar-gutter: stable;
  background: #fff;
}

.client-history-empty,
.client-history-list-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}
.client-history-empty strong,
.client-history-list-empty strong { color: var(--ink); font-size: 14px; }
.client-history-empty span,
.client-history-list-empty span { font-size: 10px; }

.client-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}
.client-profile-header > div:first-child { min-width: 0; }
.client-profile-header span { color: var(--brand-2); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.client-profile-header h3 { overflow: hidden; margin: 3px 0; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.client-profile-header small { color: var(--muted); font-size: 10px; }
.client-next-event { flex: 0 0 auto; display: grid; justify-items: end; gap: 3px; padding: 9px 12px; border: 1px solid #b9d0e7; border-radius: 9px; background: #edf5fd; }
.client-next-event strong { color: var(--brand); font-size: 13px; }

.client-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 13px;
  border: 1px solid #d9e2eb;
  border-radius: 11px;
}
.client-contact-grid > div { min-width: 0; display: grid; gap: 4px; padding: 11px 12px; border-right: 1px solid #e2e8ee; }
.client-contact-grid > div:nth-child(3) { border-right: 0; }
.client-contact-grid .client-contact-address { grid-column: 1 / -1; border-top: 1px solid #e2e8ee; border-right: 0; }
.client-contact-grid span,
.client-value-summary span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.client-contact-grid strong { overflow-wrap: anywhere; font-size: 10px; font-weight: 650; }

.client-value-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 19px;
}
.client-value-summary > div { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid #d8e1ea; border-radius: 10px; background: #f7f9fc; }
.client-value-summary strong { color: var(--brand); font-size: 15px; }
.client-value-summary .has-balance { border-color: #e2b7b7; background: #fff4f4; }
.client-value-summary .has-balance strong { color: #a44444; }

.client-recurring-section {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 15px;
  border: 1px solid #d8e1ea;
  border-radius: 13px;
  background: #f8f9ff;
}
.client-recurring-section > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.client-recurring-section > header > div { display: grid; gap: 2px; }
.client-recurring-section > header span { color: var(--brand-2); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.client-recurring-section > header strong { font-size: 15px; }
.client-recurring-section > header small { color: var(--muted); font-size: 9px; }
.client-recurring-list { display: grid; gap: 8px; }
.client-recurring-empty { min-height: 92px; display: grid; place-content: center; gap: 4px; border: 1px dashed #cbd7e4; border-radius: 10px; color: var(--muted); text-align: center; }
.client-recurring-empty strong { color: var(--ink); font-size: 12px; }
.client-recurring-empty span { font-size: 9px; }
.client-recurring-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 126px auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid #d8e1ec;
  border-radius: 11px;
  background: #fff;
}
.client-recurring-card.is-paused { opacity: .72; }
.client-recurring-card > time { width: 52px; height: 52px; display: grid; place-content: center; justify-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); text-transform: uppercase; }
.client-recurring-card > time b { font-size: 19px; line-height: 1; }
.client-recurring-card > time span { font-size: 9px; font-weight: 850; }
.client-recurring-card__main { min-width: 0; display: grid; gap: 3px; }
.client-recurring-card__main strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.client-recurring-card__main span,
.client-recurring-card__main small { color: var(--muted); font-size: 9px; }
.client-recurring-card__main p { margin: 3px 0 0; color: var(--ink-soft); font-size: 9px; overflow-wrap: anywhere; }
.client-recurring-card__next { display: grid; justify-items: end; gap: 2px; }
.client-recurring-card__next span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.client-recurring-card__next strong { color: var(--brand); font-size: 11px; }
.client-recurring-card__next em { color: #168459; font-size: 8px; font-style: normal; font-weight: 800; }
.client-recurring-card.is-paused .client-recurring-card__next em { color: var(--muted); }
.client-recurring-card__actions { display: flex; gap: 5px; }
.icon-button--danger { color: #b54450; }
.client-recurring-form { display: grid; gap: 13px; padding: 14px; border: 1px solid #bbaeff; border-radius: 11px; background: #fff; box-shadow: 0 7px 22px rgba(71, 51, 155, .08); }
.client-recurring-form__heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.client-recurring-form__heading > div { display: grid; gap: 3px; }
.client-recurring-form__heading strong { font-size: 13px; }
.client-recurring-form__heading span { color: #a85b16; font-size: 9px; font-weight: 700; }
.client-recurring-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.client-recurring-form__grid input,
.client-recurring-form__grid select,
.client-recurring-form__grid textarea { width: 100%; }
.client-recurring-date-pair { display: grid; grid-template-columns: minmax(80px, .45fr) minmax(130px, 1fr); gap: 8px; }
.client-recurring-form__notes { grid-column: 1 / -1; }
.client-recurring-form__options { display: flex; flex-wrap: wrap; gap: 9px 20px; padding: 10px 12px; border-radius: 9px; background: #f3f5fa; }
.client-recurring-form__options label { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.client-recurring-form__options input { width: 17px; height: 17px; }
.client-recurring-form__actions { display: flex; justify-content: flex-end; gap: 8px; }

.client-opportunities-section { display: grid; gap: 10px; margin-bottom: 22px; }
.client-opportunities-section > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.client-opportunities-section > header > div { display: grid; gap: 2px; }
.client-opportunities-section > header span { color: var(--brand-2); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.client-opportunities-section > header strong { font-size: 15px; }
.client-opportunities-section > header small { color: var(--muted); font-size: 9px; }
.client-opportunities-list { display: grid; gap: 8px; }
.client-opportunities-empty { min-height: 82px; display: grid; place-content: center; gap: 4px; padding: 14px; border: 1px dashed #cbd7e4; border-radius: 10px; color: var(--muted); text-align: center; }
.client-opportunities-empty strong { color: var(--ink); font-size: 12px; }
.client-opportunities-empty span { font-size: 9px; }
.client-opportunity-card { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px 13px; border: 1px solid #d8e1ec; border-left: 4px solid #6d4ce8; border-radius: 11px; background: #fff; }
.client-opportunity-card.status-revisar { border-left-color: #e39a20; background: #fffcf5; }
.client-opportunity-card.status-contatar { border-left-color: #d94b59; background: #fff8f8; }
.client-opportunity-card.status-sem_autorizacao,
.client-opportunity-card.status-descartada { border-left-color: #98a3b1; }
.client-opportunity-card.status-convertida { border-left-color: #20a66a; }
.client-opportunity-card__date,
.client-opportunity-card__main { min-width: 0; display: grid; gap: 3px; }
.client-opportunity-card__date span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.client-opportunity-card__date strong { color: var(--brand); font-size: 12px; }
.client-opportunity-card__date small,
.client-opportunity-card__main span,
.client-opportunity-card__main small { color: var(--muted); font-size: 9px; }
.client-opportunity-card__main strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.opportunity-status { padding: 6px 9px; border-radius: 999px; background: #eeeafd; color: #5638c3; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.opportunity-status--revisar { background: #fff0cb; color: #8b5a00; }
.opportunity-status--contatar { background: #ffe3e6; color: #a8303c; }
.opportunity-status--reagendada { background: #e8f1ff; color: #2365a7; }
.opportunity-status--em_negociacao { background: #eee8ff; color: #6444c8; }
.opportunity-status--sem_autorizacao,
.opportunity-status--descartada { background: #edf0f3; color: #626f7e; }
.opportunity-status--convertida { background: #def6e9; color: #15794e; }

.client-contract-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.client-contract-history-heading strong { font-size: 12px; }
.client-contract-history-heading span { color: var(--muted); font-size: 9px; }
.client-contract-history { display: grid; gap: 7px; }
.client-history-contract {
  width: 100%;
  display: grid;
  grid-template-columns: 86px minmax(160px, 1fr) auto 120px;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #d9e2eb;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.client-history-contract:hover,
.client-history-contract:focus-visible { border-color: var(--brand-2); background: #f7faff; }
.client-history-contract time { color: var(--brand); font-size: 10px; font-weight: 800; }
.client-history-contract__main { min-width: 0; display: grid; gap: 3px; }
.client-history-contract__main strong,
.client-history-contract__main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-history-contract__main strong { font-size: 11px; }
.client-history-contract__main small { color: var(--muted); font-size: 9px; }
.client-history-contract__money { display: grid; justify-items: end; gap: 2px; }
.client-history-contract__money small { color: var(--muted); font-size: 8px; }
.client-history-contract__money strong { font-size: 11px; }
.client-history-contract__money em { color: #a44444; font-size: 8px; font-style: normal; font-weight: 700; }

.messages-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 58, .3);
}
.messages-dialog::backdrop { background: rgba(20, 35, 52, .62); backdrop-filter: blur(4px); }
.messages-shell { max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; }
.messages-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #dfe6ee; background: #f5f8fb; }
.messages-editor { min-height: 0; overflow: auto; padding: 18px; }
.messages-editor textarea { min-height: 260px; resize: vertical; line-height: 1.55; }
.messages-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-top: 1px solid #dfe6ee; background: #f8fafc; }
.messages-footer > span { display: grid; gap: 2px; color: var(--muted); font-size: 9px; }
.messages-footer > span b { color: var(--ink); font-size: 11px; }
.messages-footer > span small { font-size: inherit; }
.messages-footer > div { display: flex; gap: 8px; }
.button--whatsapp { border-color: #159b64; background: #159b64; color: #fff; box-shadow: 0 6px 16px rgba(21, 155, 100, .18); }
.button--whatsapp:hover { border-color: #108052; background: #108052; }
.button--whatsapp:disabled { border-color: #b9c6c0; background: #b9c6c0; box-shadow: none; cursor: not-allowed; }
.button--conversion { border-color: #6d4ce8; background: #6d4ce8; color: #fff; box-shadow: 0 6px 16px rgba(109, 76, 232, .18); }
.button--conversion:hover { border-color: #5939cf; background: #5939cf; }
.button--conversion:disabled { border-color: #b9b2d3; background: #b9b2d3; box-shadow: none; cursor: not-allowed; }
.work-center-empty span { font-size: 11px; }

.inventory-dialog::backdrop,
.piece-picker-dialog::backdrop {
  background: rgba(20, 35, 52, .58);
  backdrop-filter: blur(3px);
}

.calendar-shell {
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px 17px;
  border-bottom: 1px solid #dce4ec;
  background: linear-gradient(135deg, #edf4fb, #fff);
}

.calendar-header span,
.calendar-details__heading span {
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.calendar-header h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.inventory-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}

.calendar-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #d3dde7;
  border-radius: 50%;
  background: #fff;
  color: #52677e;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(170px, auto) auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-bottom: 1px solid #e2e8ef;
}

.calendar-toolbar > strong {
  text-align: center;
  text-transform: capitalize;
}

.calendar-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

#calendarEventsToggle.is-active,
#calendarHolidaysToggle.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 24px;
  border-bottom: 1px solid #e2e8ef;
  background: #fafbfd;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.calendar-legend__color {
  width: 12px;
  height: 12px;
  border: 1px solid transparent;
  border-radius: 3px;
}

.calendar-legend__color.is-warning { background: #fff0ad; border-color: #e5c952; }
.calendar-legend__color.is-urgent { background: #ffd5d8; border-color: #df7a82; }
.calendar-legend__color.is-past { background: #d8eaff; border-color: #77a6d9; }

.calendar-legend__symbol {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6d4ea2;
  color: #fff;
  font-size: 9px;
}

.calendar-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(250px, .9fr);
}

.calendar-board {
  min-width: 0;
  overflow: auto;
  padding: 18px 20px 22px;
}

.calendar-weekdays,
.calendar-grid {
  min-width: 630px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  margin-bottom: 7px;
  color: #687d93;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-weekdays.is-hidden { display: none; }

.calendar-grid {
  gap: 6px;
}

.calendar-day {
  min-height: 102px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #dce4ec;
  border-radius: 10px;
  background: #fff;
}

.calendar-day:not(.calendar-day--empty) { cursor: pointer; }
.calendar-day:not(.calendar-day--empty):hover { border-color: var(--brand-2); }

.calendar-day--empty {
  border-color: transparent;
  background: transparent;
}

.calendar-day.is-warning { background: #fff5c9; border-color: #e6cd65; }
.calendar-day.is-urgent { background: #ffe0e2; border-color: #df8990; }
.calendar-day.is-past { background: #dfedfc; border-color: #8eb4dc; }
.calendar-day.is-selected { box-shadow: 0 0 0 3px rgba(81, 127, 183, .22); }
.calendar-day.has-commemoration { border-top: 3px solid #7652a8; }

.calendar-day.is-today .calendar-day__number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin: -2px 0 3px -2px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.calendar-day__number {
  display: block;
  color: #445b72;
  font-size: 12px;
  font-weight: 800;
}

.calendar-holiday-indicator {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 5px 6px;
  overflow: hidden;
  border-radius: 7px;
  background: #f0e7fb;
  color: #60418c;
}

.calendar-holiday-indicator b {
  font-size: 11px;
  line-height: 1;
}

.calendar-holiday-indicator span {
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-indicator {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: rgba(54, 95, 145, .92);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-event-indicator b {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 10px;
}

.calendar-event-indicator span {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-grid--events {
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-content: start;
}

.calendar-event-day {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border: 1px solid #d5e0eb;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-event-day:hover,
.calendar-event-day:focus-visible { border-color: var(--brand-2); }
.calendar-event-day.is-warning { background: #fff5c9; border-color: #e6cd65; }
.calendar-event-day.is-urgent { background: #ffe0e2; border-color: #df8990; }
.calendar-event-day.is-past { background: #dfedfc; border-color: #8eb4dc; }
.calendar-holiday-day { border-left: 5px solid #7652a8; background: #fbf8ff; }
.calendar-holiday-day .calendar-event-day__date { color: #694995; }

.calendar-commemorations {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 14px 18px 0;
  padding: 11px;
  border: 1px solid #d9c7ef;
  border-radius: 10px;
  background: #f8f2ff;
}

.calendar-commemorations__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7652a8;
  color: #fff;
}

.calendar-commemorations p { display: grid; gap: 2px; margin: 0 0 6px; }
.calendar-commemorations p:last-child { margin-bottom: 0; }
.calendar-commemorations strong { color: #4f3475; font-size: 11px; }
.calendar-commemorations small { color: #806d98; font-size: 9px; }
.calendar-event-day.is-selected { box-shadow: 0 0 0 3px rgba(81, 127, 183, .22); }

.calendar-event-day__date {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.calendar-event-day strong { font-size: 14px; }
.calendar-event-day small {
  color: #536a81;
  font-size: 10px;
  line-height: 1.45;
}

.calendar-events-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  gap: 6px;
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
}

.calendar-events-empty strong { color: var(--ink); font-size: 14px; }
.calendar-events-empty span { max-width: 320px; font-size: 11px; line-height: 1.45; }

.calendar-details {
  min-height: 300px;
  overflow: auto;
  padding: 22px;
  border-left: 1px solid #dce4ec;
  background: #f6f9fc;
}

.calendar-details__empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  text-align: center;
}

.calendar-details__empty strong { font-size: 15px; }
.calendar-details__empty p,
.calendar-details__none {
  max-width: 230px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.calendar-details__heading {
  display: grid;
  gap: 4px;
  margin-bottom: 15px;
}

.calendar-details__heading strong {
  font-size: 14px;
  text-transform: capitalize;
}

.calendar-add-contract {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding: 10px 11px;
  border: 1px dashed var(--brand-2);
  border-radius: 9px;
  background: #edf4fb;
  color: var(--brand);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-add-contract b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
}

.calendar-add-contract span { font-size: 11px; font-weight: 800; }

.calendar-contract-list {
  display: grid;
  gap: 8px;
}

.calendar-contract {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #d5e0eb;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-contract:hover,
.calendar-contract:focus-visible {
  border-color: var(--brand-2);
  box-shadow: 0 4px 14px rgba(46, 82, 122, .11);
}

.calendar-contract span {
  font-size: 12px;
  font-weight: 800;
}

.calendar-contract small {
  color: var(--muted);
  font-size: 10px;
}
.calendar-contract .status-badge { margin-top: 5px; }

.checklist-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f7f9fc;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 58, .3);
}

.checklist-dialog::backdrop {
  background: rgba(20, 35, 52, .62);
  backdrop-filter: blur(4px);
}

.checklist-shell {
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.checklist-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 23px 17px;
  border-bottom: 1px solid #dbe3eb;
  background: linear-gradient(135deg, #edf4fa, #fff);
}

.checklist-header > div { min-width: 0; }
.checklist-header span { color: var(--brand-2); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.checklist-header h2 { margin: 4px 0 3px; font-size: 22px; }
.checklist-header p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.checklist-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid #dfe6ed;
  background: #fff;
}

.checklist-summary > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  padding: 10px 12px;
  border: 1px solid #dae3ec;
  border-radius: 10px;
  background: #f9fbfd;
}

.checklist-summary span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.checklist-summary strong { color: #315f8f; font-size: 20px; }
.checklist-summary small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.checklist-summary .has-pending { border-color: #edc0c0; background: #fff4f4; }
.checklist-summary .has-pending strong { color: #ad323b; }

.checklist-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-bottom: 1px solid #dfe6ed;
}

.checklist-actions small { margin-left: auto; color: var(--muted); font-size: 10px; }
.dialog-save-warning {
  color: #98501e !important;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
}

.inventory-add .dialog-save-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #ead3a9;
  border-radius: 8px;
  background: #fff9eb;
}
.checklist-list { min-height: 180px; overflow: auto; padding: 14px 22px 20px; scrollbar-gutter: stable; }

.checklist-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) 82px 82px 165px minmax(190px, 1fr);
  align-items: end;
  gap: 9px;
  margin-bottom: 9px;
  padding: 12px;
  border: 1px solid #d9e2eb;
  border-left: 4px solid #78ac97;
  border-radius: 11px;
  background: #fff;
}

.checklist-row.has-pending { border-left-color: #d79b48; }
.checklist-item-name { min-width: 0; display: grid; align-self: center; gap: 3px; }
.checklist-item-name span,
.checklist-row .field > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.checklist-item-name strong { overflow-wrap: anywhere; font-size: 12px; }
.checklist-item-name small { color: var(--muted); font-size: 9px; }
.checklist-row .field input,
.checklist-row .field select { min-height: 37px; padding: 7px 8px; }
.checklist-note input { min-width: 0; }

.checklist-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 22px;
  border-top: 1px solid #dfe6ed;
  background: #fff;
}

.checklist-footer > div { display: flex; gap: 8px; }
.checklist-empty { display: grid; place-items: center; gap: 5px; min-height: 190px; color: var(--muted); text-align: center; }
.checklist-empty strong { color: var(--ink); }
.contract-print-sheet,
.checklist-print-sheet,
.inventory-print-sheet { display: none; }

.inventory-dialog,
.piece-picker-dialog {
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 58, .28);
}

.auth-dialog,
.admin-dialog,
.backup-dialog {
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 35, 58, .34);
}

.auth-dialog { width: min(440px, calc(100vw - 32px)); }
.admin-dialog { width: min(820px, calc(100vw - 32px)); }
.backup-dialog { width: min(900px, calc(100vw - 32px)); }

.auth-dialog::backdrop,
.admin-dialog::backdrop,
.backup-dialog::backdrop {
  background: rgba(14, 27, 42, .7);
  backdrop-filter: blur(5px);
}

body.auth-locked > .app-header,
body.auth-locked > .workspace,
body.auth-locked > .toast {
  visibility: hidden;
  pointer-events: none;
}

.auth-shell {
  display: grid;
  gap: 20px;
  padding: 30px;
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.auth-brand img { width: 132px; height: auto; margin-bottom: 8px; }
.auth-brand > span {
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-brand h1 { margin: 0; font-size: 22px; }
.auth-brand p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.auth-form { display: grid; gap: 13px; }
.auth-form .button { width: 100%; margin-top: 2px; }
.auth-forgot { justify-self: center; padding: 3px 8px; border: 0; background: transparent; color: var(--brand); cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.auth-forgot:hover { text-decoration: underline; }
.recovery-dialog .auth-shell { position: relative; }
.recovery-close { position: absolute; top: 14px; right: 14px; }
.auth-error.is-success { color: var(--success); }
.auth-error,
.admin-create__actions small {
  min-height: 18px;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.4;
}
.auth-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

.admin-shell {
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.admin-create-panel {
  border-bottom: 1px solid #e1e8ef;
  background: #f8fafc;
}

.admin-create__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
}
.admin-create__heading::-webkit-details-marker { display: none; }
.admin-create__heading > span { min-width: 0; display: grid; gap: 3px; }
.admin-create__heading strong { font-size: 14px; }
.admin-create__heading small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.35; }
.admin-create__heading > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #cfdae5;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 19px;
  font-style: normal;
  line-height: 1;
  transition: transform .18s ease;
}
.admin-create-panel[open] .admin-create__heading > i { transform: rotate(45deg); }
.admin-create {
  display: grid;
  gap: 14px;
  padding: 0 22px 18px;
}
.admin-create > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.admin-create__actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 22px;
  border-bottom: 1px solid #e1e8ef;
}
.admin-list-heading strong { font-size: 12px; }
.admin-list-heading small { color: var(--muted); }
.admin-list { min-height: 140px; overflow: auto; padding: 5px 22px 18px; scrollbar-gutter: stable; }
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #e7ecf2;
}
.admin-row > div:first-child { min-width: 0; display: grid; gap: 3px; }
.admin-row strong { font-size: 12px; }
.admin-row span { color: var(--muted); font-size: 10px; }

.backup-shell {
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto auto auto minmax(180px, 1fr) auto;
  overflow: hidden;
}

.backup-overview {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(120px, .7fr));
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #e1e8ef;
  background: #f8fafc;
}

.backup-status-card,
.backup-stat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #dce6e1;
  border-radius: 11px;
  background: #f1faf6;
}

.backup-status-card > div,
.backup-stat { display: grid; gap: 3px; }
.backup-status-card strong,
.backup-stat strong { font-size: 12px; }
.backup-status-card small,
.backup-stat span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.backup-status-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--success); color: #fff; font-weight: 900; }
.backup-stat { align-content: center; border-color: #dfe6ee; background: #fff; }
.backup-stat strong { font-size: 16px; }

.backup-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 15px 20px; border-bottom: 1px solid #e1e8ef; }
.backup-action-card { min-width: 0; display: grid; align-content: space-between; gap: 13px; padding: 14px; border: 1px solid #dfe6ee; border-radius: 11px; background: #fff; }
.backup-action-card > div { display: grid; gap: 4px; }
.backup-action-card strong { font-size: 12px; }
.backup-action-card span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.backup-action-card .button { width: 100%; }

.backup-history { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.backup-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #e5ebf1; }
.backup-history-heading > div { display: grid; gap: 3px; }
.backup-history-heading strong { font-size: 12px; }
.backup-history-heading span { color: var(--muted); font-size: 10px; }
.backup-list { min-height: 150px; overflow: auto; padding: 5px 20px 14px; scrollbar-gutter: stable; }
.backup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #e7ecf2; }
.backup-row > div { min-width: 0; display: grid; gap: 3px; }
.backup-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.backup-row span { color: var(--muted); font-size: 10px; }
.backup-row time { color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; }
.backup-empty { min-height: 140px; display: grid; place-items: center; color: var(--muted); text-align: center; line-height: 1.5; }
.backup-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; border-top: 1px solid #e1e8ef; background: #fff8e9; }
.backup-footer p { margin: 0; color: #76541f; font-size: 10px; line-height: 1.45; }
.backup-footer .button { flex: 0 0 auto; }
.admin-row__actions { display: flex; gap: 7px; }

.inventory-shell,
.piece-picker-shell {
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

#inventoryDialog .inventory-shell { grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; }

.piece-picker-shell {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.inventory-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px) minmax(130px, 170px) auto;
  align-items: end;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid #e1e8ef;
  background: #f8fafc;
}

.tables-catalog-add {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid #e1e8ef;
  background: #f8fafc;
}

.tables-product-create { border-bottom: 1px solid #e1e8ef; background: #f8fafc; }
.tables-product-create > summary { min-height: 58px; display: grid; grid-template-columns: 30px auto minmax(0,1fr); align-items: center; gap: 9px; padding: 10px 22px; color: var(--ink); cursor: pointer; list-style: none; }
.tables-product-create > summary::-webkit-details-marker { display: none; }
.tables-product-create > summary > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 18px; }
.tables-product-create > summary strong { font-size: 12px; }
.tables-product-create > summary small { color: var(--muted); font-size: 9px; }
.tables-product-create[open] > summary { border-bottom: 1px solid #e1e8ef; }
.tables-product-create[open] > summary > span { transform: rotate(45deg); }
.tables-product-create .tables-catalog-add { border-bottom: 0; background: transparent; }
.tables-product-notes { grid-column: span 2; }
.tables-kit-builder { grid-column: 1 / -1; display: grid; gap: 9px; padding: 11px; border: 1px solid #d8e0ea; border-radius: 9px; background: #f7f9fc; }
.tables-kit-builder[hidden] { display: none; }
.tables-kit-builder > div:first-child { display: grid; gap: 3px; }
.tables-kit-builder > div:first-child strong { color: var(--ink); font-size: 11px; }
.tables-kit-builder > div:first-child small { color: var(--muted); font-size: 9px; }
.tables-kit-components { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.tables-kit-component { min-width: 0; display: grid; grid-template-columns: 18px minmax(0,1fr) 68px; align-items: center; gap: 8px; padding: 8px; border: 1px solid #dce4ed; border-radius: 8px; background: #fff; }
.tables-kit-component > input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.tables-kit-component > span { min-width: 0; display: grid; gap: 2px; }
.tables-kit-component strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tables-kit-component small { color: var(--muted); font-size: 8px; }
.tables-kit-component > input[type="number"] { width: 100%; min-height: 34px; padding: 6px; border: 1px solid #cfd9e4; border-radius: 7px; background: #fff; color: var(--ink); }
.tables-kit-component > input:disabled { opacity: .45; }
.tables-kit-empty { color: var(--muted); font-size: 10px; }
.tables-catalog-add > .button { min-height: 40px; }
.tables-catalog-add .dialog-save-warning { grid-column: 1 / -1; }
.tables-product-tools { display: grid; grid-template-columns: minmax(260px,1fr) minmax(145px,190px) minmax(140px,180px) auto; align-items: end; }
.tables-product-filter { min-width: 0; display: grid; gap: 5px; }
.tables-product-filter span { color: #596e84; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tables-product-filter select { width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid #cfd9e4; border-radius: 8px; background: #fff; color: var(--ink); }
.tables-product-tools > small { padding-bottom: 10px; white-space: nowrap; }

.tables-catalog-add .dialog-save-warning {
  grid-column: 1 / -1;
}

.inventory-tools,
.piece-picker-tools,
.piece-picker-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid #e1e8ef;
}

.inventory-search {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.inventory-search span {
  color: #596e84;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.inventory-tools small,
.piece-picker-footer small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.inventory-bulk { display: grid; gap: 10px; padding: 13px 22px; border-bottom: 1px solid #e1e8ef; background: #f3f6fb; }
.inventory-bulk__heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.inventory-bulk__heading > div { display: grid; gap: 3px; }
.inventory-bulk__heading strong { color: var(--ink); font-size: 12px; }
.inventory-bulk__heading small,
.inventory-bulk__heading > span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.inventory-bulk__heading > span { flex: 0 0 auto; font-weight: 750; }
.inventory-bulk__controls { display: grid; grid-template-columns: minmax(210px,1fr) minmax(210px,1fr) minmax(190px,.8fr) auto; align-items: end; gap: 10px; }
.inventory-bulk-field { min-width: 0; display: grid; grid-template-columns: 18px minmax(0,1fr) minmax(90px,130px); align-items: center; gap: 7px; }
.inventory-bulk-field > input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.inventory-bulk-field > span,
.inventory-bulk-scope > span { color: #596e84; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.inventory-bulk-field > input[type="number"],
.inventory-bulk-scope select { width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid #cfd9e4; border-radius: 8px; background: #fff; color: var(--ink); }
.inventory-bulk-field > input:disabled { opacity: .55; cursor: not-allowed; }
.inventory-bulk-scope { min-width: 0; display: grid; gap: 5px; }
.inventory-pagination { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 9px 22px; border-top: 1px solid #e1e8ef; background: #f8fafc; }
.inventory-pagination > span { color: var(--muted); font-size: 10px; text-align: center; }
.inventory-pagination > span strong { color: var(--ink); }

.inventory-list,
.piece-picker-list {
  min-height: 180px;
  overflow: auto;
  padding: 14px 22px 22px;
  scrollbar-gutter: stable;
}

.inventory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) minmax(120px, 150px) auto;
  align-items: end;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #e7ecf2;
}

.inventory-row:first-child { padding-top: 0; }
.inventory-row:last-child { border-bottom: 0; }

.inventory-row__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tables-catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px) auto;
  align-items: end;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #e7ecf2;
}

.tables-catalog-row:first-child { padding-top: 0; }
.tables-catalog-row:last-child { border-bottom: 0; }

.tables-product-card { margin-bottom: 9px; overflow: hidden; border: 1px solid #dce4ed; border-radius: 11px; background: #fff; }
.tables-product-card > summary { min-height: 64px; display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,150px) auto 24px; align-items: center; gap: 14px; padding: 10px 13px; cursor: pointer; list-style: none; }
.tables-product-card > summary::-webkit-details-marker { display: none; }
.tables-product-card__identity { min-width: 0; display: grid; gap: 3px; }
.tables-product-card__identity strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tables-product-card__identity small,
.tables-product-card__stock small { color: var(--muted); font-size: 9px; }
.tables-product-card__identity em { overflow: hidden; color: var(--brand); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.tables-product-card__stock { display: grid; gap: 3px; }
.tables-product-card__stock strong { color: var(--ink); font-size: 11px; }
.tables-product-status { min-width: 88px; padding: 5px 8px; border-radius: 999px; background: #e8f7ef; color: #1d7651; font-size: 9px; font-weight: 800; text-align: center; }
.tables-product-card.status-maintenance .tables-product-status { background: #fff1d8; color: #936018; }
.tables-product-card.status-inactive .tables-product-status { background: #eceff3; color: #657386; }
.tables-product-card > summary > i { color: var(--muted); font-size: 13px; font-style: normal; transition: transform .18s ease; }
.tables-product-card[open] > summary { border-bottom: 1px solid #e2e8ef; background: #fafbfe; }
.tables-product-card[open] > summary > i { transform: rotate(180deg); }
.tables-product-card__form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: end; gap: 10px; padding: 13px; }
.tables-product-card__form .inventory-row__actions { grid-column: 1 / -1; justify-content: flex-end; }

.piece-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 9px;
}

.piece-picker-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e0e9;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.piece-picker-item:hover { border-color: var(--brand-2); }
.piece-picker-item.is-added { background: #f1f5f8; cursor: default; opacity: .72; }
.piece-picker-item.is-unavailable { border-color: #e8b8b8; background: #fff6f6; }
.piece-picker-item.is-unavailable small { color: #a42e36; }
.piece-picker-item input { width: 18px; height: 18px; accent-color: var(--brand); }
.piece-picker-item span { min-width: 0; display: grid; gap: 4px; }
.piece-picker-item strong { font-size: 12px; line-height: 1.3; }
.piece-picker-item small { color: var(--muted); font-size: 10px; }

.piece-picker-footer {
  align-items: center;
  border-top: 1px solid #e1e8ef;
  border-bottom: 0;
  background: #f8fafc;
}

.inventory-empty {
  min-height: 150px;
  display: grid;
  place-content: center;
  grid-column: 1 / -1;
  gap: 5px;
  color: var(--muted);
  text-align: center;
}

.inventory-empty strong { color: var(--ink); font-size: 14px; }
.inventory-empty span { font-size: 11px; }

.preview-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  background: #dce2e9;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid #ccd5df;
  background: #f7f9fb;
}

.preview-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.preview-toolbar strong {
  font-size: 13px;
}

.preview-toolbar span {
  color: var(--muted);
  font-size: 11px;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-controls button {
  width: 27px;
  height: 27px;
  border: 1px solid #d0d9e3;
  border-radius: 6px;
  background: white;
  color: #40556d;
  cursor: pointer;
}

.zoom-controls .zoom-controls__fit {
  width: auto;
  padding: 0 9px;
  font-size: 11px;
}

.zoom-controls span {
  width: 35px;
  text-align: center;
}

.document-stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  padding: 30px 34px 80px;
}

.pages {
  min-height: 100%;
  width: calc(210mm * var(--preview-scale));
  margin: 0 auto;
}

.editor-panel,
.document-stage,
.header-actions,
.step-nav {
  scrollbar-width: thin;
  scrollbar-color: #91a5bb #e8edf3;
}

.editor-panel::-webkit-scrollbar,
.document-stage::-webkit-scrollbar,
.header-actions::-webkit-scrollbar,
.step-nav::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.editor-panel::-webkit-scrollbar-track,
.document-stage::-webkit-scrollbar-track,
.header-actions::-webkit-scrollbar-track,
.step-nav::-webkit-scrollbar-track {
  background: #e8edf3;
}

.editor-panel::-webkit-scrollbar-thumb,
.document-stage::-webkit-scrollbar-thumb,
.header-actions::-webkit-scrollbar-thumb,
.step-nav::-webkit-scrollbar-thumb {
  border: 2px solid #e8edf3;
  border-radius: 999px;
  background: #91a5bb;
}

.editor-panel::-webkit-scrollbar-thumb:hover,
.document-stage::-webkit-scrollbar-thumb:hover {
  background: #6f879f;
}

.contract-page {
  width: 210mm;
  height: 297mm;
  display: flex;
  flex-direction: column;
  margin: 0 0 calc(22px / var(--preview-scale));
  padding: 16mm 20mm 12mm;
  overflow: hidden;
  background: white;
  color: #000;
  box-shadow: var(--shadow);
  font-family: Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.18;
  position: relative;
  transform: scale(var(--preview-scale));
  transform-origin: top left;
}

.contract-page--first {
  padding-top: 12mm;
}

.contract-page--tables {
  padding: 11mm 18mm 10mm;
  font-size: 9.6pt;
  line-height: 1.17;
}

.contract-page__body {
  flex: 1 1 auto;
  min-height: 0;
}

.contract-logo {
  width: 44.7mm;
  height: 20mm;
  display: block;
  margin: 0 auto 3mm;
  object-fit: contain;
}

.contract-logo--small {
  width: 30mm;
  height: 13.5mm;
  margin: 0 auto 3mm;
}

.contract-title {
  margin: 0 0 4mm;
  color: #000;
  font-size: 14pt;
  font-weight: 400;
  text-align: center;
}

.contract-intro {
  margin: 0 0 3mm;
  text-align: justify;
}

.contract-intro strong {
  font-weight: 700;
}

.party-table,
.items-table,
.summary-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.decoration-financial {
  margin-top: 1.5mm;
}

.decoration-financial.has-pix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 29mm;
  align-items: center;
  gap: 4mm;
}

.decoration-financial .summary-table {
  width: 100%;
  margin: 0;
}

.party-table {
  margin: 4mm 0 1.5mm;
}

.party-table td {
  padding: 1.25mm 2mm;
  border: .35mm solid #000;
  vertical-align: middle;
}

.party-table strong {
  font-weight: 700;
}

.section-title-print {
  margin: 1mm 0 3mm;
  font-size: 14pt;
  font-weight: 400;
  text-align: center;
}

.items-table th,
.items-table td {
  padding: .62mm 1.8mm;
  border: .35mm solid #000;
  vertical-align: middle;
}

.items-table th {
  font-weight: 700;
  text-align: center;
}

.items-table .qty {
  width: 10mm;
  text-align: center;
}

.items-table .value {
  width: 27mm;
  text-align: right;
  white-space: nowrap;
}

.items-table .description {
  overflow-wrap: anywhere;
}

.replacement-note {
  margin: 1mm 4mm 3.2mm;
  font-size: 9.2pt;
  font-style: italic;
  line-height: 1.15;
  text-align: center;
}

.summary-table {
  margin: 1.5mm auto 0;
  width: 96%;
}

.summary-table th,
.summary-table td {
  width: 50%;
  border: .35mm solid #000;
  text-align: center;
}

.summary-table th {
  padding: 1mm;
  font-weight: 700;
}

.summary-table td {
  height: 17mm;
  padding: 2mm 4mm;
  line-height: 1.25;
}

.summary-line {
  display: block;
}

.tables-party-table {
  margin-top: 3mm;
}

.rental-items-table .qty { width: 25mm; }
.rental-items-table .value { width: 31mm; }
.empty-print-row { padding: 4mm !important; text-align: center; }

.tables-section-title {
  margin: 3mm 0 2mm;
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
}

.tables-financial {
  display: block;
}

.tables-financial.has-pix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 29mm;
  gap: 5mm;
  align-items: center;
}

.tables-total {
  margin: 0 0 1.5mm;
  font-size: 10.5pt;
  text-align: right;
}

.tables-payment-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tables-payment-table th,
.tables-payment-table td {
  width: 50%;
  padding: 1.5mm 2mm;
  border: .35mm solid #000;
  text-align: center;
}

.tables-payment-table th { font-size: 9pt; }
.tables-payment-table td { font-size: 11pt; }
.payment-method-line { margin: 1.5mm 0 0; text-align: right; }

.pix-block {
  display: grid;
  justify-items: center;
  gap: 1mm;
  font-size: 7.5pt;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.pix-block img {
  width: 24mm;
  height: 24mm;
  object-fit: contain;
}

.pix-code,
.pix-code img,
.pix-code canvas {
  width: 24mm !important;
  height: 24mm !important;
}

.pix-code { overflow: hidden; background: #fff; }

.tables-penalties {
  margin: 0;
  text-align: justify;
}

.tables-signatures {
  margin-top: 5mm;
}

.conditions-lead {
  margin: 0 0 2.5mm;
  font-weight: 600;
}

.continuation-heading {
  margin: 1mm 0 4mm;
  font-size: 14pt;
  font-weight: 400;
  text-align: center;
}

.continuation-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3mm;
  padding-bottom: 2mm;
  border-bottom: .3mm solid #a9bfd8;
  font-size: 9pt;
}

.clauses {
  font-size: 9.6pt;
  line-height: 1.17;
}

.clauses h3 {
  margin: 0 0 .9mm;
  font-size: 10pt;
}

.clause-block {
  margin-bottom: 3.1mm;
}

.clause-block p {
  margin: 0 0 .7mm;
  text-align: justify;
}

.clause-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clause-list li {
  margin: 0 0 .55mm;
  text-align: justify;
}

.clause-list li::before {
  content: "– ";
}

.signing-intro {
  margin: 3.5mm 0;
  text-align: justify;
}

.signature-date {
  margin: 0 0 7mm;
}

.signature-grid {
  display: grid;
  grid-template-columns: 32mm 1fr;
  gap: 7mm 3mm;
  align-items: end;
}

.signature-grid span {
  white-space: nowrap;
}

.signature-line {
  position: relative;
  display: flex;
  height: 7mm;
  align-items: flex-end;
  justify-content: center;
  border-bottom: .35mm solid #111;
}

.signature-line.has-signature {
  height: 15mm;
}

.signature-line img {
  display: block;
  max-width: 78mm;
  height: 14mm;
  object-fit: contain;
  object-position: center bottom;
}

.contract-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8mm;
  align-items: end;
  margin-top: 3mm;
  padding-top: 2mm;
  border-top: .2mm solid #d2deeb;
  color: #000;
  font-size: 7.6pt;
}

.contract-footer address {
  margin: 0;
  font-style: italic;
}

.contract-footer strong {
  color: #000;
  font-family: "Times New Roman", serif;
  font-size: 8.4pt;
  white-space: nowrap;
}

.toast {
  max-width: 360px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  padding: 12px 15px;
  border-radius: 9px;
  background: #17324f;
  color: white;
  box-shadow: 0 12px 30px rgba(13, 31, 51, .25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navegação e área de trabalho inspiradas no novo painel visual. */
@media (min-width: 1280px) {
  body {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .app-header {
    grid-column: 1;
    grid-row: 1;
    width: 220px;
    height: 100vh;
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 22px 15px 17px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background: var(--sidebar-background);
    box-shadow: 8px 0 30px rgba(24, 31, 49, .12);
    z-index: 30;
  }

  .brand {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 9px;
  }

  .brand img {
    width: 132px;
    max-width: 100%;
    padding: 9px 11px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .18);
  }

  .brand > div:not(.online-status) { width: 100%; gap: 3px; text-align: center; }
  .brand > div:not(.online-status) strong { color: #fff; font-size: 16px; line-height: 1.2; }
  .brand > div:not(.online-status) span { color: #aeb9ca; font-size: 10px; line-height: 1.35; }

  .brand > .online-status {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    color: #eef3fa;
  }

  .brand > .online-status span span { color: #aeb9ca; }

  .header-actions {
    width: 100%;
    min-height: 0;
    flex: 1;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .header-view-actions {
    width: 100%;
    justify-content: center;
    gap: 8px;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .header-icon-button {
    width: 42px;
    height: 38px;
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #dbe4ef;
  }

  .header-icon-button:hover {
    border-color: rgba(163, 139, 255, .5);
    background: rgba(125, 91, 232, .22);
    color: #fff;
  }

  .header-menus {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .header-menus::before {
    content: "MENU";
    padding: 0 9px 6px;
    color: #8290a6;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
  }

  .header-menu { width: 100%; }
  .header-menu.is-open::after { top: 0; right: -14px; width: 14px; height: 100%; }

  body:not(.sidebar-collapsed) .header-menu__trigger {
    width: 100%;
    min-height: 43px;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 9px;
    color: #dce4ef;
    font-size: 13.5px;
  }

  .header-menu__trigger::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border: 2px solid #8998ae;
    border-radius: 2px;
  }

  .header-menu__trigger span { margin-right: auto; }
  .header-menu__trigger:hover,
  .header-menu.is-open .header-menu__trigger {
    border-color: rgba(164, 139, 255, .28);
    background: linear-gradient(135deg, rgba(124, 88, 239, .82), rgba(94, 64, 199, .82));
    color: #fff;
  }

  .header-menu__trigger:hover::before,
  .header-menu.is-open .header-menu__trigger::before { border-color: #fff; background: rgba(255, 255, 255, .18); }

  .header-menu__panel {
    top: 0;
    right: auto;
    left: calc(100% + 13px);
    width: 310px;
    max-height: calc(100vh - 32px);
    border-color: #e1e4ed;
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(24, 30, 49, .22);
  }

  .header-menu__item > i { background: #f0edff; color: #6847da; }
  .header-menu__item:hover,
  .header-menu__item:focus-visible { background: #f6f3ff; }

  .header-quick-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding: 15px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    border-left: 0;
  }

  .header-quick-actions .button {
    width: 100%;
    min-height: 38px;
    padding-inline: 8px;
    font-size: 13.5px;
    font-weight: 750;
  }

  .header-quick-actions #newContract { grid-column: 1 / -1; }
  .header-quick-actions .button--quiet { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #ecf1f7; }
  .header-quick-actions .button--quiet:hover { border-color: rgba(164, 139, 255, .5); background: rgba(125, 91, 232, .2); }

  .workspace {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    grid-template-columns: minmax(500px, 43%) minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    background: #eff1f7;
  }

  body.preview-collapsed .workspace {
    grid-template-columns: minmax(500px, 930px);
    justify-content: center;
    padding: 20px;
    background: #e9ebf3;
  }

  .editor-panel,
  .preview-panel {
    border: 1px solid #e1e5ed;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(41, 40, 71, .08);
  }

  .editor-panel {
    padding: 22px 23px 50px;
    border-right: 1px solid #e1e5ed;
    background: #fff;
  }

  .preview-panel { overflow: hidden; background: #e6e8f0; }
  .preview-toolbar { background: #fff; border-color: #e1e5ed; }
  .document-stage { background: #e7e9f1; }

  .progress-card,
  .draft-library,
  .repeat-card,
  .totals-card,
  .company-settings,
  .pix-settings {
    border-color: #e3e6ee;
    box-shadow: 0 6px 18px rgba(51, 43, 93, .045);
  }

  .step-nav {
    margin: 18px 0 24px;
    padding: 12px 8px;
    border: 1px solid #e5e7ef;
    border-radius: 13px;
    background: #fafaff;
  }

  .field input,
  .field select,
  .field textarea { border-color: #dfe3ec; background: #fcfcfe; }

  .section-heading h2 { letter-spacing: -.025em; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6edf5;
  --muted: #a7b5c6;
  --line: #34465b;
  --panel: #172231;
  --soft: #111a26;
  --brand: #9b83f3;
  --brand-2: #ad9afa;
  --brand-soft: #302852;
  --shadow: 0 16px 44px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] body { background: #0d1520; }
html[data-theme="dark"] body.preview-collapsed .workspace { background: #0b111a; }
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .progress-card,
html[data-theme="dark"] .draft-library,
html[data-theme="dark"] .repeat-card,
html[data-theme="dark"] .totals-card,
html[data-theme="dark"] .company-settings,
html[data-theme="dark"] .pix-settings,
html[data-theme="dark"] .calendar-dialog,
html[data-theme="dark"] .financial-dialog,
html[data-theme="dark"] .financial-entry-dialog,
html[data-theme="dark"] .receivables-dialog,
html[data-theme="dark"] .contracted-dialog,
html[data-theme="dark"] .revenue-dialog,
html[data-theme="dark"] .income-history-dialog,
html[data-theme="dark"] .work-center-dialog,
html[data-theme="dark"] .client-history-dialog,
html[data-theme="dark"] .messages-dialog,
html[data-theme="dark"] .checklist-dialog,
html[data-theme="dark"] .inventory-dialog,
html[data-theme="dark"] .piece-picker-dialog,
html[data-theme="dark"] .auth-dialog,
html[data-theme="dark"] .admin-dialog,
html[data-theme="dark"] .backup-dialog,
html[data-theme="dark"] .calendar-contract,
html[data-theme="dark"] .financial-kpi,
html[data-theme="dark"] .financial-panel,
html[data-theme="dark"] .calendar-event-day,
html[data-theme="dark"] .work-center-contract,
html[data-theme="dark"] .work-center-card,
html[data-theme="dark"] .client-history-person,
html[data-theme="dark"] .client-history-detail,
html[data-theme="dark"] .client-history-contract,
html[data-theme="dark"] .client-contact-grid,
html[data-theme="dark"] .client-value-summary > div,
html[data-theme="dark"] .installments-card,
html[data-theme="dark"] .installment-row,
html[data-theme="dark"] .checklist-summary,
html[data-theme="dark"] .checklist-summary > div,
html[data-theme="dark"] .checklist-row,
html[data-theme="dark"] .checklist-footer,
html[data-theme="dark"] .piece-picker-item { background: #172231; border-color: #34465b; }

html[data-theme="dark"] .editor-panel,
html[data-theme="dark"] .calendar-details,
html[data-theme="dark"] .inventory-add,
html[data-theme="dark"] .tables-catalog-add,
html[data-theme="dark"] .tables-product-create,
html[data-theme="dark"] .inventory-bulk,
html[data-theme="dark"] .inventory-pagination,
html[data-theme="dark"] .piece-picker-footer,
html[data-theme="dark"] .admin-create-panel,
html[data-theme="dark"] .backup-overview { background: #111a26; border-color: #34465b; }
html[data-theme="dark"] .tables-product-create > summary,
html[data-theme="dark"] .tables-product-create[open] > summary,
html[data-theme="dark"] .tables-product-card[open] > summary { border-color: #34465b; background: #172231; }
html[data-theme="dark"] .tables-product-card { border-color: #34465b; background: #172231; }
html[data-theme="dark"] .tables-product-filter select { border-color: #4a4a4a; background: #2f2f2f; color: #ececec; }
html[data-theme="dark"] .tables-product-filter span { color: #c7d0da; }
html[data-theme="dark"] .tables-kit-builder { border-color: #414141; background: #242424; }
html[data-theme="dark"] .tables-kit-component,
html[data-theme="dark"] .availability-summary .tables-consumption-item { border-color: #414141; background: #2f2f2f; }
html[data-theme="dark"] .tables-kit-component > input[type="number"] { border-color: #4a4a4a; background: #242424; color: #ececec; }
html[data-theme="dark"] .availability-summary .tables-consumption-item.is-short { border-color: #704249; background: #3a2528; }
html[data-theme="dark"] .repeat-card--catalog.is-virtual-kit { background: #25213a; }
html[data-theme="dark"] .inventory-bulk-field > input[type="number"],
html[data-theme="dark"] .inventory-bulk-scope select { background: #2f2f2f; border-color: #4a4a4a; color: #ececec; }
html[data-theme="dark"] .inventory-bulk-field > span,
html[data-theme="dark"] .inventory-bulk-scope > span { color: #c7d0da; }
html[data-theme="dark"] .admin-create__heading > i { border-color: #46596d; background: #1b2938; color: var(--brand); }
html[data-theme="dark"] .work-center-header,
html[data-theme="dark"] .financial-header { background: linear-gradient(135deg, #1a2c40, #172231); border-color: #34465b; }
html[data-theme="dark"] .checklist-header { background: linear-gradient(135deg, #1a2c40, #172231); border-color: #34465b; }
html[data-theme="dark"] .checklist-summary,
html[data-theme="dark"] .checklist-actions,
html[data-theme="dark"] .checklist-footer { border-color: #34465b; }
html[data-theme="dark"] .checklist-summary .has-pending { background: #351f24; border-color: #71434a; }
html[data-theme="dark"] .dialog-save-warning { color: #f0bd75 !important; }
html[data-theme="dark"] .inventory-add .dialog-save-warning { background: #33291a; border-color: #6b5636; }
html[data-theme="dark"] .tables-catalog-add .dialog-save-warning { background: #33291a; border-color: #6b5636; }
html[data-theme="dark"] .work-center-cards,
html[data-theme="dark"] .work-center-list-heading { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .work-center-toolbar,
html[data-theme="dark"] .financial-toolbar,
html[data-theme="dark"] .client-history-toolbar,
html[data-theme="dark"] .client-history-list-panel,
html[data-theme="dark"] .installment-planner,
html[data-theme="dark"] .messages-toolbar,
html[data-theme="dark"] .messages-footer,
html[data-theme="dark"] .work-center-contract__status { background: #111a26; border-color: #34465b; }
html[data-theme="dark"] .financial-content { background: #111a26; }
html[data-theme="dark"] .financial-kpi,
html[data-theme="dark"] .financial-panel,
html[data-theme="dark"] .financial-panel > header,
html[data-theme="dark"] .financial-transaction,
html[data-theme="dark"] .financial-manual-row,
html[data-theme="dark"] .financial-entry-footer { border-color: #34465b; }
html[data-theme="dark"] .financial-view-toggle { background: #0f1925; border-color: #405269; }
html[data-theme="dark"] .financial-chart-toggle { background: #0f1925; border-color: #405269; }
html[data-theme="dark"] .financial-view-toggle button.is-active,
html[data-theme="dark"] .financial-chart-toggle button.is-active,
html[data-theme="dark"] .financial-period-nav > button:not(.button) { background: #202d3d; color: #e6edf5; border-color: #43566d; }
html[data-theme="dark"] .financial-period-fields select,
html[data-theme="dark"] .financial-period-fields input,
html[data-theme="dark"] .income-history-period-nav button { background: #0f1925; border-color: #405269; color: #e6edf5; }
html[data-theme="dark"] .financial-manual-filters select { background: #0f1925; border-color: #405269; color: #e6edf5; }
html[data-theme="dark"] .financial-receivables-actions select { background: #0f1925; border-color: #405269; color: #e6edf5; }
html[data-theme="dark"] .financial-entry-body,
html[data-theme="dark"] .financial-entry-footer { background: #172231; }
html[data-theme="dark"] .financial-entry-choice span { background: #111a26; border-color: #405269; color: #c7d4e2; }
html[data-theme="dark"] .financial-entry-choice input:checked + span { background: #223b58; border-color: #6f9ed4; color: #bcd6f2; }
html[data-theme="dark"] .financial-entry-choice label:last-child input:checked + span { background: #351f24; border-color: #96525c; color: #f2b8bf; }
html[data-theme="dark"] .financial-manual-status { background: #33291a; border-color: #6b5636; color: #f0bd75; }
html[data-theme="dark"] .financial-manual-status.is-realized { background: #142b27; border-color: #315e53; color: #8fd0ba; }
html[data-theme="dark"] .financial-segment__track { background: #0f1925; }
html[data-theme="dark"] .financial-chart-bars { border-color: #405269; background: repeating-linear-gradient(to top, transparent 0, transparent 40px, #263547 41px); }
html[data-theme="dark"] .financial-kpi--overdue.has-value { background: #351f24; border-color: #71434a; }
html[data-theme="dark"] .financial-notice { background: #1a2b3e; border-color: #36516d; color: #bfd5eb; }
html[data-theme="dark"] button.financial-transaction:hover { background: #202d3d; }
html[data-theme="dark"] .receivables-toolbar,
html[data-theme="dark"] .receivables-summary article,
html[data-theme="dark"] .receivables-list-heading,
html[data-theme="dark"] .receivables-list { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .receivables-shell { background: #111a26; }
html[data-theme="dark"] .receivables-footer { background: #15202e; border-color: #34465b; }
html[data-theme="dark"] .receivable-row { border-color: #34465b; }
html[data-theme="dark"] .receivable-row:hover,
html[data-theme="dark"] .receivable-row:focus-visible { background: #202d3d; }
html[data-theme="dark"] .receivable-row em { background: #223b58; color: #bcd6f2; }
html[data-theme="dark"] .receivable-row.is-overdue em { background: #351f24; color: #f2b8bf; }
html[data-theme="dark"] .receivable-row.is-today em { background: #33291a; color: #f0bd75; }
html[data-theme="dark"] .financial-chart-summary,
html[data-theme="dark"] .financial-chart-summary > div { border-color: #34465b; }
html[data-theme="dark"] .financial-chart-contracted > b { color: #bcd6f2; }
html[data-theme="dark"] .contracted-toolbar,
html[data-theme="dark"] .contracted-summary article,
html[data-theme="dark"] .contracted-list-heading,
html[data-theme="dark"] .contracted-list { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .contracted-shell { background: #111a26; }
html[data-theme="dark"] .contracted-footer { background: #15202e; border-color: #34465b; }
html[data-theme="dark"] .contracted-row { border-color: #34465b; }
html[data-theme="dark"] .revenue-toolbar,
html[data-theme="dark"] .revenue-summary article,
html[data-theme="dark"] .revenue-comparison button,
html[data-theme="dark"] .revenue-list-heading,
html[data-theme="dark"] .revenue-list { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .revenue-shell { background: #111a26; }
html[data-theme="dark"] .revenue-comparison button > div { background: #0f1925; }
html[data-theme="dark"] .revenue-footer { background: #15202e; border-color: #34465b; }
html[data-theme="dark"] .revenue-row { border-color: #34465b; }
html[data-theme="dark"] .income-history-toolbar,
html[data-theme="dark"] .income-history-summary article,
html[data-theme="dark"] .income-history-list-heading,
html[data-theme="dark"] .income-history-list { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .income-history-shell { background: #111a26; }
html[data-theme="dark"] .income-history-row { border-color: #34465b; }
html[data-theme="dark"] .income-history-row:hover { background: #202d3d; }
html[data-theme="dark"] .income-history-row em { background: #223b58; color: #bcd6f2; }
html[data-theme="dark"] .income-history-row__source { background: #142b27; color: #8fd0ba; }
html[data-theme="dark"] .income-history-footer { background: #15202e; border-color: #34465b; }
html[data-theme="dark"] .installments-heading,
html[data-theme="dark"] .pix-settings__summary,
html[data-theme="dark"] .installment-row__heading { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .installments-heading:hover,
html[data-theme="dark"] .pix-settings__summary:hover { background: #1c2a3b; }
html[data-theme="dark"] .installments-toggle i { background: #1f2e40; border-color: #42566d; }
html[data-theme="dark"] .installments-actions,
html[data-theme="dark"] .pix-settings__help { border-color: #34465b; }
html[data-theme="dark"] .installments-summary,
html[data-theme="dark"] .installments-summary > div,
html[data-theme="dark"] .installment-paid { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .installments-summary .has-overdue { background: #351f24; border-color: #71434a; }
html[data-theme="dark"] .installments-summary .has-unplanned { background: #33291a; border-color: #6b5636; }
html[data-theme="dark"] .client-history-list-heading { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .client-contact-grid > div { border-color: #34465b; }
html[data-theme="dark"] .client-next-event { background: #223b58; border-color: #435f7e; }
html[data-theme="dark"] .client-value-summary .has-balance { background: #351f24; border-color: #71434a; }
html[data-theme="dark"] .work-center-card:hover,
html[data-theme="dark"] .work-center-contract__open:hover,
html[data-theme="dark"] .client-history-person:hover,
html[data-theme="dark"] .client-history-contract:hover { background: #202d3d; }
html[data-theme="dark"] .client-recurring-section { border-color: #34465b; background: #172231; }
html[data-theme="dark"] .client-recurring-card,
html[data-theme="dark"] .client-recurring-form { border-color: #34465b; background: #1c2938; box-shadow: none; }
html[data-theme="dark"] .client-recurring-empty { border-color: #46586d; }
html[data-theme="dark"] .client-recurring-form__options { background: #14202d; }
html[data-theme="dark"] .client-opportunity-card { border-color: #34465b; background: #1c2938; }
html[data-theme="dark"] .client-opportunity-card.status-revisar { background: #2c281e; }
html[data-theme="dark"] .client-opportunity-card.status-contatar { background: #2d2024; }
html[data-theme="dark"] .client-opportunities-empty { border-color: #46586d; }
html[data-theme="dark"] .availability-summary { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .availability-summary.is-available { background: #142b27; border-color: #315e53; }
html[data-theme="dark"] .availability-summary.is-conflict,
html[data-theme="dark"] .piece-picker-item.is-unavailable { background: #351f24; border-color: #71434a; }

html[data-theme="dark"] .preview-toolbar { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .preview-panel,
html[data-theme="dark"] .document-stage { background: #0b111a; }
html[data-theme="dark"] .button--quiet,
html[data-theme="dark"] .button--small,
html[data-theme="dark"] .calendar-close,
html[data-theme="dark"] .library-toggle { background: #202d3d; border-color: #43566d; color: #e6edf5; }
html[data-theme="dark"] .button--quiet:hover,
html[data-theme="dark"] .button--small:hover { background: #29394c; }
html[data-theme="dark"] .header-view-actions,
html[data-theme="dark"] .header-quick-actions { border-color: #34465b; }
html[data-theme="dark"] .header-icon-button,
html[data-theme="dark"] .header-menu__trigger { color: #c7d4e2; }
html[data-theme="dark"] .header-icon-button:hover,
html[data-theme="dark"] .header-menu__trigger:hover,
html[data-theme="dark"] .header-menu.is-open .header-menu__trigger { background: #202d3d; border-color: #43566d; color: #9fc3eb; }
html[data-theme="dark"] .header-menu__panel { background: #172231; border-color: #43566d; box-shadow: 0 18px 48px rgba(0, 0, 0, .42); }
html[data-theme="dark"] .header-menu__item { color: #e6edf5; }
html[data-theme="dark"] .header-menu__item:hover,
html[data-theme="dark"] .header-menu__item:focus-visible { background: #202d3d; }
html[data-theme="dark"] .header-menu__item > i { background: #223b58; color: #bcd6f2; }
html[data-theme="dark"] .header-menu__item--danger > i { background: #351f24; color: #f2b8bf; }
html[data-theme="dark"] .header-menu__separator { background: #34465b; }
html[data-theme="dark"] .field > span,
html[data-theme="dark"] .document-field__heading > span,
html[data-theme="dark"] .document-type-option span,
html[data-theme="dark"] .toggle-field,
html[data-theme="dark"] .company-settings summary { color: #c7d4e2; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .draft-library select,
html[data-theme="dark"] .draft-library__filters input,
html[data-theme="dark"] .work-center-toolbar input,
html[data-theme="dark"] .work-center-toolbar select,
html[data-theme="dark"] .client-history-toolbar input,
html[data-theme="dark"] .client-history-toolbar select,
html[data-theme="dark"] .work-center-contract__status select,
html[data-theme="dark"] .inventory-search input,
html[data-theme="dark"] .input-suffix { background: #0f1925; border-color: #405269; color: #e6edf5; }
html[data-theme="dark"] .field input[readonly] { background: #202c3a; border-color: #3b4b5f; color: #b9c6d5; }
html[data-theme="dark"] .document-type-option span::before { background: #172332; border-color: #61758c; }
html[data-theme="dark"] .document-type-option input:checked + span::before { background: var(--brand-2); border-color: var(--brand-2); }
html[data-theme="dark"] .toggle-field--inline,
html[data-theme="dark"] .conditional,
html[data-theme="dark"] .manual-date-note,
html[data-theme="dark"] .notice--static { background: #1a2b3e; border-color: #36516d; color: #bfd5eb; }
html[data-theme="dark"] .calendar-header { background: linear-gradient(135deg, #1a2c40, #172231); border-color: #34465b; }
html[data-theme="dark"] .calendar-toolbar,
html[data-theme="dark"] .calendar-legend,
html[data-theme="dark"] .inventory-tools,
html[data-theme="dark"] .piece-picker-tools { background: #131e2b; border-color: #34465b; }
html[data-theme="dark"] .calendar-day { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .calendar-holiday-indicator,
html[data-theme="dark"] .calendar-commemorations,
html[data-theme="dark"] .calendar-holiday-day { background: #29213a; border-color: #6d5290; }
html[data-theme="dark"] .calendar-holiday-indicator,
html[data-theme="dark"] .calendar-commemorations strong,
html[data-theme="dark"] .calendar-holiday-day .calendar-event-day__date { color: #d8c2f4; }
html[data-theme="dark"] .calendar-commemorations small { color: #b7a3ce; }
html[data-theme="dark"] .company-logo-settings { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .company-logo-preview { background: #fff; border-color: #52657a; }
html[data-theme="dark"] .piece-picker-item.is-added { background: #202d3b; }
html[data-theme="dark"] .admin-list-heading,
html[data-theme="dark"] .admin-row,
html[data-theme="dark"] .backup-actions,
html[data-theme="dark"] .backup-history-heading,
html[data-theme="dark"] .backup-row { border-color: #34465b; }
html[data-theme="dark"] .backup-status-card { background: #142b27; border-color: #315e53; }
html[data-theme="dark"] .backup-stat,
html[data-theme="dark"] .backup-action-card { background: #172231; border-color: #34465b; }
html[data-theme="dark"] .backup-footer { background: #33291a; border-color: #6b5636; }
html[data-theme="dark"] .backup-footer p { color: #f0bd75; }
html[data-theme="dark"] .pix-editor-preview { border-color: #52657a; background: #fff; }
html[data-theme="dark"] .toast { background: #303030; border: 1px solid #4a4a4a; color: #ececec; box-shadow: 0 14px 35px rgba(0, 0, 0, .4); }

/* Paleta escura neutra, com contraste suave semelhante ao ChatGPT. */
html[data-theme="dark"] {
  --ink: #ececec;
  --muted: #b4b4b4;
  --line: #3a3a3a;
  --panel: #242424;
  --soft: #1b1b1b;
  --brand: #a692fa;
  --brand-2: #b5a5ff;
  --brand-soft: #332d4d;
  --shadow: 0 18px 48px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .workspace,
html[data-theme="dark"] body.preview-collapsed .workspace { background: #171717; }

html[data-theme="dark"] .app-header { background: #171717; border-color: #303030; }
html[data-theme="dark"] .editor-panel { background: #212121; border-color: #383838; }
html[data-theme="dark"] .preview-panel,
html[data-theme="dark"] .document-stage { background: #101010; border-color: #383838; }
html[data-theme="dark"] .preview-toolbar { background: #212121; border-color: #383838; }

html[data-theme="dark"] .progress-card,
html[data-theme="dark"] .draft-library,
html[data-theme="dark"] .repeat-card,
html[data-theme="dark"] .totals-card,
html[data-theme="dark"] .installments-card,
html[data-theme="dark"] .installment-row,
html[data-theme="dark"] .pix-settings,
html[data-theme="dark"] .company-settings,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .company-logo-settings,
html[data-theme="dark"] .conditional,
html[data-theme="dark"] .toggle-field--inline,
html[data-theme="dark"] .manual-date-note,
html[data-theme="dark"] .notice--static { background: #262626; border-color: #3d3d3d; }

html[data-theme="dark"] .step-nav {
  border-color: #3a3a3a;
  background: #262626;
  box-shadow: none;
}

html[data-theme="dark"] .step-nav__item { color: #a9a9a9; }
html[data-theme="dark"] .step-nav__item:hover { color: #dedede; }
html[data-theme="dark"] .step-nav__item span { border-color: #505050; background: #303030; color: #c8c8c8; }
html[data-theme="dark"] .step-nav__item.is-active { color: #c1b4ff; }
html[data-theme="dark"] .step-nav__item.is-active span { border-color: #9277ef; background: #8064df; color: #fff; }
html[data-theme="dark"] .step-nav__item.is-complete span { border-color: #497a66; background: #263c34; color: #8bd2b4; }

html[data-theme="dark"] .client-lookup__results { border-color: #434343; background: #292929; box-shadow: 0 18px 42px rgba(0, 0, 0, .38); }
html[data-theme="dark"] .client-lookup__results button:hover,
html[data-theme="dark"] .client-lookup__results button:focus-visible { background: #383248; }

html[data-theme="dark"] .progress-track { background: #393939; }
html[data-theme="dark"] .progress-track progress::-webkit-progress-value { background: linear-gradient(90deg, #8f73ec, #7565bc); }
html[data-theme="dark"] .progress-track progress::-moz-progress-bar { background: linear-gradient(90deg, #8f73ec, #7565bc); }
html[data-theme="dark"] .subsection-title,
html[data-theme="dark"] .step-actions,
html[data-theme="dark"] .totals-card div,
html[data-theme="dark"] .review-card div,
html[data-theme="dark"] .installments-heading,
html[data-theme="dark"] .pix-settings__summary,
html[data-theme="dark"] .installment-planner,
html[data-theme="dark"] .installments-summary { border-color: #3a3a3a; }

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .draft-library select,
html[data-theme="dark"] .draft-library__filters input,
html[data-theme="dark"] .input-suffix,
html[data-theme="dark"] .work-center-toolbar input,
html[data-theme="dark"] .work-center-toolbar select,
html[data-theme="dark"] .work-center-contract__status select,
html[data-theme="dark"] .client-history-toolbar input,
html[data-theme="dark"] .client-history-toolbar select,
html[data-theme="dark"] .inventory-search input { background: #2f2f2f; border-color: #4a4a4a; color: #ececec; }

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .draft-library__filters input:focus { border-color: #8f7ae0; box-shadow: 0 0 0 3px rgba(143, 122, 224, .17); }
html[data-theme="dark"] .field input[readonly] { background: #292929; border-color: #414141; color: #bdbdbd; }
html[data-theme="dark"] .field input.is-invalid { background: #372528; border-color: #86525a; }
html[data-theme="dark"] .password-toggle { color: #b8b8b8; }
html[data-theme="dark"] .password-toggle:hover,
html[data-theme="dark"] .password-toggle:focus-visible { background: #3a3a3a; color: #c1b4ff; }

html[data-theme="dark"] .button--quiet,
html[data-theme="dark"] .button--small,
html[data-theme="dark"] .calendar-close,
html[data-theme="dark"] .library-toggle,
html[data-theme="dark"] .zoom-controls button,
html[data-theme="dark"] .icon-button { background: #2f2f2f; border-color: #4a4a4a; color: #e5e5e5; }
html[data-theme="dark"] .button--quiet:hover,
html[data-theme="dark"] .button--small:hover,
html[data-theme="dark"] .zoom-controls button:hover { background: #3a3a3a; border-color: #5a5a5a; }
html[data-theme="dark"] .icon-button { color: #f0a4aa; }

html[data-theme="dark"] .installments-heading,
html[data-theme="dark"] .installment-planner,
html[data-theme="dark"] .installment-row__heading,
html[data-theme="dark"] .installments-summary > div,
html[data-theme="dark"] .installment-paid,
html[data-theme="dark"] .review-card div { background: #292929; border-color: #404040; }
html[data-theme="dark"] .totals-card div { background: #262626; }
html[data-theme="dark"] .totals-card__balance { background: #332d4d; }

html[data-theme="dark"] .availability-summary { background: #262626; border-color: #414141; }
html[data-theme="dark"] .availability-summary.is-available { background: #20352e; border-color: #376554; }
html[data-theme="dark"] .availability-summary.is-conflict { background: #3a2528; border-color: #704249; }
html[data-theme="dark"] .empty-state { border-color: #505050; }
html[data-theme="dark"] .empty-state strong { color: #dedede; }

html[data-theme="dark"] .notice { background: #3a3021; border-color: #6a5636; color: #e3c18a; }
html[data-theme="dark"] .validation-item { background: #392629; border-color: #70474d; color: #efb5ba; }
html[data-theme="dark"] .validation-item::before { background: #543238; }
html[data-theme="dark"] .validation-ok { background: #20362d; border-color: #3d6856; color: #92d3b6; }

html[data-theme="dark"] .editor-panel,
html[data-theme="dark"] .document-stage,
html[data-theme="dark"] .header-actions,
html[data-theme="dark"] .step-nav { scrollbar-color: #555 #242424; }
html[data-theme="dark"] .editor-panel::-webkit-scrollbar-track,
html[data-theme="dark"] .document-stage::-webkit-scrollbar-track,
html[data-theme="dark"] .header-actions::-webkit-scrollbar-track,
html[data-theme="dark"] .step-nav::-webkit-scrollbar-track { background: #242424; }
html[data-theme="dark"] .editor-panel::-webkit-scrollbar-thumb,
html[data-theme="dark"] .document-stage::-webkit-scrollbar-thumb,
html[data-theme="dark"] .header-actions::-webkit-scrollbar-thumb,
html[data-theme="dark"] .step-nav::-webkit-scrollbar-thumb { border-color: #242424; background: #555; }

@media (min-width: 1280px) {
  html[data-theme="dark"] .workspace { background: #171717; }
  html[data-theme="dark"] .app-header { background: linear-gradient(180deg, #171717 0%, #141414 100%); }
  html[data-theme="dark"] .header-quick-actions .button--quiet { background: #292929; border-color: #444; color: #ececec; }
  html[data-theme="dark"] .header-menu__panel { background: #242424; border-color: #424242; }
  html[data-theme="dark"] .header-menu__item:hover,
  html[data-theme="dark"] .header-menu__item:focus-visible { background: #303030; }
  html[data-theme="dark"] .header-menu__item > i { background: #332d4d; color: #c2b5ff; }
}

@media (max-width: 1180px) {
  .app-header {
    height: auto;
    min-height: 76px;
    padding-block: 12px;
  }

  .header-actions {
    max-width: none;
  }

  .workspace { grid-template-columns: minmax(400px, 45vw) minmax(0, 1fr); }
  .financial-kpis { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
}

@media (max-width: 920px) {
  body {
    height: auto;
    min-height: 100vh;
    display: block;
    overflow: auto;
  }

  .app-header {
    position: sticky;
    top: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand { min-width: 0; }

  .header-actions {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: stretch;
    overflow: visible;
    padding-bottom: 0;
  }

  .header-menus { justify-content: flex-start; }
  .header-quick-actions { justify-content: flex-end; }

  .workspace {
    height: auto;
    display: block;
  }

  .editor-panel {
    overflow: visible;
    border-right: 0;
  }

  .preview-panel {
    height: 82vh;
    min-height: 620px;
    border-top: 1px solid #cfd8e2;
  }

  .repeat-card {
    grid-template-columns: 65px 1fr 100px 34px;
  }

  .repeat-card--catalog {
    grid-template-columns: minmax(140px, 1.2fr) 65px minmax(120px, .8fr) 105px 34px;
  }

  .work-center-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
  .financial-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .financial-shell { height: calc(100vh - 16px); }
  .receivables-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .receivables-shell { height: calc(100vh - 16px); }
  .receivables-toolbar { grid-template-columns: 135px 135px minmax(180px, 1fr) 130px; }
  .receivables-toolbar .field:nth-child(5) { grid-column: 1 / 3; }
  .receivables-toolbar > .button { grid-column: 3 / -1; }
  .contracted-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .contracted-shell { height: calc(100vh - 16px); }
  .contracted-toolbar { grid-template-columns: 135px 135px minmax(180px, 1fr) 170px; }
  .contracted-toolbar .field:nth-child(5) { grid-column: 1 / 3; }
  .contracted-toolbar > .button { grid-column: 3 / -1; }
  .revenue-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .revenue-shell { height: calc(100vh - 16px); }
  .revenue-toolbar { grid-template-columns: 135px 135px minmax(180px, 1fr) 165px; }
  .revenue-toolbar > .button { grid-column: 3 / -1; }
  .income-history-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .income-history-shell { height: calc(100vh - 16px); }
  .income-history-toolbar { grid-template-columns: 190px 130px 90px 150px minmax(180px, 1fr); }
  .income-history-toolbar .field:nth-of-type(4),
  .income-history-toolbar .field:nth-of-type(5) { grid-column: span 2; }
  .income-history-toolbar > .button { grid-column: 5; }
  .work-center-shell { max-height: calc(100vh - 16px); }
  .client-history-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .client-history-shell { height: calc(100vh - 16px); }
  .client-history-content { grid-template-columns: 300px minmax(0, 1fr); }
  .client-history-contract { grid-template-columns: 78px minmax(140px, 1fr) auto; }
  .client-history-contract__money { grid-column: 2 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 8px; }
  .work-center-cards { grid-template-columns: repeat(8, minmax(130px, 1fr)); }
  .work-center-contract { grid-template-columns: minmax(0, 1fr) 190px; }
  .work-center-contract__open { grid-template-columns: 88px minmax(150px, 1fr) minmax(105px, auto) 85px; gap: 9px; }
  .installment-row__fields { grid-template-columns: minmax(145px, 1fr) minmax(125px, .8fr); }
  .checklist-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .checklist-shell { max-height: calc(100vh - 16px); }
  .checklist-row { grid-template-columns: minmax(180px, 1fr) 78px 78px minmax(150px, .8fr); }
  .checklist-note { grid-column: 1 / -1; }
}

/* Tablets em modo retrato usam o cabeçalho compacto. Cada lista abre a
   partir do próprio botão para a direita, evitando que o painel seja cortado
   fora da borda esquerda da tela. */
@media (min-width: 761px) and (max-width: 920px) {
  .header-menu__panel { right: auto; left: 0; }
}

@media (max-width: 640px) {
  body.preview-collapsed .workspace { grid-template-columns: minmax(0, 1fr); }
  .app-header { padding: 11px 15px; }
  .brand img { width: 88px; }
  .brand span { display: none; }
  .brand > .online-status { min-width: 0; margin-left: auto; padding: 7px; }
  .header-actions { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .header-menus { position: relative; justify-content: flex-end; }
  .header-menu { position: static; }
  .header-menu.is-open::after { display: none; }
  .header-menu__trigger { padding-inline: 8px; }
  .header-menu__panel { top: calc(100% + 8px); right: 0; left: 0; width: auto; max-height: calc(100vh - 150px); }
  .header-quick-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.1fr; padding: 8px 0 0; border-top: 1px solid #dce3eb; border-left: 0; }
  .header-quick-actions .button { width: 100%; padding-inline: 8px; }
  html[data-theme="dark"] .header-quick-actions { border-color: #34465b; }

  .editor-panel { padding: 17px 15px 38px; }

  .step-nav {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: -15px;
    padding: 0 15px 8px;
  }

  .step-nav__item { flex: 0 0 68px; }

  .draft-library__heading {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .draft-library__heading > div:first-child { min-width: 0; }
  .draft-library__meta { flex: 0 0 auto; margin-left: auto; gap: 8px; }
  .draft-library__heading small {
    max-width: 120px;
    font-size: 9px;
    text-align: right;
  }
  .library-toggle { width: 42px; height: 42px; flex-basis: 42px; }
  .library-toggle span { width: 19px; height: 19px; border-width: 2.5px; }
  .library-toggle span::after { width: 9px; height: 2.5px; right: -7px; bottom: -3px; }

  .draft-library__filters { grid-template-columns: 1fr; }
  .draft-library__filters .library-search,
  .draft-library__filters .library-type-filter,
  .draft-library__filters #clearContractFilters,
  .draft-library__filters .library-date-from,
  .draft-library__filters .library-date-to { grid-column: auto; grid-row: auto; }
  .draft-library__filters .button { width: 100%; }

  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .client-lookup-row { grid-column: auto; grid-template-columns: 1fr; }
  .client-lookup__results { right: auto; left: 0; width: min(100%, calc(100vw - 44px)); }
  .document-field__heading { min-height: 24px; }
  .document-type-option span { font-size: 12px; }
  .document-type-option span::before { width: 18px; height: 18px; }

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

  .section-heading .button { align-self: stretch; }

  .repeat-card {
    grid-template-columns: 70px minmax(0, 1fr) 38px;
    align-items: center;
  }

  .repeat-card .field:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .repeat-card .field:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .repeat-card .field:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .repeat-card .icon-button {
    grid-column: 3;
    grid-row: 2;
  }

  .repeat-card--service {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .repeat-card--service .field:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .repeat-card--service .field:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .repeat-card--service .icon-button {
    grid-column: 2;
    grid-row: 2;
  }

  .repeat-card--catalog {
    grid-template-columns: 1fr 1fr;
  }

  .repeat-card--catalog .catalog-item-name {
    grid-column: 1 / -1;
  }

  .repeat-card--catalog .field {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .repeat-card--catalog > .field:nth-of-type(3) {
    grid-column: 1 / -1 !important;
  }

  .repeat-card--catalog > .icon-button { grid-column: 2; justify-self: end; }

  .totals-card,
  .review-card {
    grid-template-columns: 1fr;
  }

  .installments-heading { align-items: center; flex-direction: row; }
  .installments-toggle b { display: none; }
  .installments-actions { align-items: stretch; flex-direction: column; }
  .installments-actions .button { width: 100%; }
  .installment-planner { grid-template-columns: 1fr; }
  .installment-planner .button { width: 100%; }
  .installments-summary { grid-template-columns: 1fr 1fr; }
  .installment-row__fields { grid-template-columns: 1fr; }
  .installment-note,
  .installment-paid { grid-column: auto; }
  .installment-message { width: 100%; }

  .pix-settings__layout { grid-template-columns: 1fr; }
  .pix-editor-preview { min-height: 150px; }
  .company-logo-settings { margin-inline: 10px; padding: 12px; }
  .company-logo-settings__layout { grid-template-columns: 1fr; }
  .company-logo-settings__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .company-logo-settings__actions .button:last-of-type { grid-column: 1 / -1; }
  .company-logo-preview { min-height: 95px; }

  .totals-card div,
  .review-card div {
    border-right: 0;
    border-bottom: 1px solid #e2e8ef;
  }

  .totals-card div:last-child,
  .review-card div:last-child { border-bottom: 0; }

  .step-actions--split {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 9px;
  }

  .step-actions .button { width: 100%; }
  .step-actions__forward {
    display: grid;
    grid-template-columns: minmax(90px, .75fr) minmax(0, 1.35fr);
    width: 100%;
    gap: 9px;
  }

  .preview-toolbar {
    padding: 0 12px;
  }

  .preview-toolbar > div:first-child span { display: none; }
  .document-stage { padding: 20px 18px 58px; }
  .zoom-controls { gap: 5px; }

  .calendar-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 13px;
  }

  .financial-dialog { border-radius: 13px; }
  .financial-header { align-items: stretch; padding: 16px; }
  .financial-header h2 { font-size: 19px; }
  .financial-header p { display: none; }
  .financial-header__actions #refreshFinancial { display: none; }
  .financial-toolbar { align-items: stretch; flex-direction: column; padding: 10px 14px; }
  .financial-period-nav { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .financial-period-nav .button { grid-column: 1 / -1; width: 100%; }
  .financial-period-nav > strong { min-width: 0; }
  .financial-period-fields { display: grid; grid-template-columns: minmax(0, 1fr) 100px; margin-left: 0; }
  .financial-period-fields select,
  .financial-period-fields input { width: 100%; }
  .financial-view-toggle button { flex: 1; }
  .financial-content { padding: 13px 14px 20px; }
  .financial-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .financial-kpi { padding: 12px; }
  .financial-kpi strong { font-size: 17px; }
  .financial-dashboard-grid { grid-template-columns: 1fr; }
  .financial-cashflow-panel { overflow-x: auto; }
  .financial-chart { min-width: 650px; }
  .financial-transaction { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .financial-panel > header { align-items: stretch; flex-direction: column; }
  .financial-receivables-actions { display: grid !important; grid-template-columns: 1fr auto; }
  .financial-chart-controls { width: 100%; align-items: stretch; }
  .financial-chart-toggle button { flex: 1; }
  .financial-chart-summary { grid-template-columns: 1fr 1fr; }
  .financial-chart-summary > div:nth-child(2) { border-right: 0; }
  .financial-chart-summary > div:nth-child(-n+2) { border-bottom: 1px solid #e3e9ef; }
  .financial-manual-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .financial-manual-filters select { width: 100%; }
  .financial-manual-row { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 9px; }
  .financial-manual-row > span:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .financial-manual-status { grid-column: 1; grid-row: 3; }
  .financial-manual-value { grid-column: 2; grid-row: 3; justify-items: start; }
  .financial-manual-actions { grid-column: 3; grid-row: 1 / 4; flex-direction: column; }
  .financial-entry-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 13px; }
  .financial-entry-shell { max-height: calc(100vh - 16px); }
  .financial-entry-body { padding: 15px 16px 12px; }
  .financial-entry-footer { padding: 12px 16px; }
  .financial-entry-footer .button { flex: 1; }
  .receivables-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 13px; }
  .receivables-shell { height: calc(100vh - 16px); }
  .receivables-toolbar { grid-template-columns: 1fr 1fr; padding: 11px 14px; }
  .receivables-search { grid-column: 1 / -1; }
  .receivables-toolbar > .button { grid-column: 1 / -1; }
  .receivables-summary { grid-template-columns: 1fr 1fr; padding: 11px 14px; }
  .receivables-list-heading { padding-inline: 14px; }
  .receivables-list { padding-inline: 14px; }
  .receivable-row { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px; padding: 11px 0; }
  .receivable-row__detail { grid-column: 1 / 3; grid-row: 2; }
  .receivable-row em { grid-column: 1; grid-row: 3; }
  .receivable-row__amount { grid-column: 2; grid-row: 3; text-align: left; }
  .receivable-row__action { grid-column: 3; grid-row: 1 / 4; align-self: center; max-width: 78px; white-space: normal; }
  .receivables-footer { padding: 10px 14px; }
  .receivables-footer span { display: none; }
  .receivables-footer .button { width: 100%; }
  .contracted-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 13px; }
  .contracted-shell { height: calc(100vh - 16px); }
  .contracted-toolbar { grid-template-columns: 1fr 1fr; padding: 11px 14px; }
  .contracted-search { grid-column: 1 / -1; }
  .contracted-toolbar > .button { grid-column: 1 / -1; }
  .contracted-summary { grid-template-columns: 1fr 1fr; padding: 11px 14px; }
  .contracted-list-heading { padding-inline: 14px; }
  .contracted-list { padding-inline: 14px; }
  .contracted-row { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px; padding: 11px 0; }
  .contracted-row > em { grid-column: 1; grid-row: 2; width: fit-content; }
  .contracted-row__money:nth-of-type(2) { grid-column: 2; grid-row: 2; justify-items: start; }
  .contracted-row__money:nth-of-type(3) { grid-column: 1 / 3; grid-row: 3; justify-items: start; grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 6px; }
  .contracted-row > .button { grid-column: 3; grid-row: 1 / 4; align-self: stretch; max-width: 88px; white-space: normal; }
  .contracted-footer { padding: 10px 14px; }
  .contracted-footer span { display: none; }
  .contracted-footer .button { width: 100%; }
  .revenue-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 13px; }
  .revenue-shell { height: calc(100vh - 16px); }
  .revenue-toolbar { grid-template-columns: 1fr 1fr; padding: 11px 14px; }
  .revenue-search { grid-column: 1 / -1; }
  .revenue-toolbar > .button { grid-column: 1 / -1; }
  .revenue-summary { grid-template-columns: 1fr 1fr; padding: 11px 14px; }
  .revenue-comparison { grid-template-columns: 1fr; padding: 0 14px 11px; }
  .revenue-list-heading { padding-inline: 14px; }
  .revenue-list { padding-inline: 14px; }
  .revenue-row { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px; padding: 11px 0; }
  .revenue-row__detail { grid-column: 1 / 3; grid-row: 2; }
  .revenue-row__amount { grid-column: 2; grid-row: 3; text-align: left; }
  .revenue-row > .button { grid-column: 3; grid-row: 1 / 4; align-self: stretch; max-width: 88px; white-space: normal; }
  .revenue-footer { padding: 10px 14px; }
  .revenue-footer span { display: none; }
  .revenue-footer .button { width: 100%; }
  .income-history-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 13px; }
  .income-history-shell { height: calc(100vh - 16px); }
  .income-history-toolbar { grid-template-columns: 1fr 1fr; padding: 11px 14px; }
  .income-history-period-nav,
  .income-history-search,
  .income-history-toolbar > .button { grid-column: 1 / -1; }
  .income-history-view { align-self: end; }
  .income-history-summary { grid-template-columns: 1fr 1fr; padding: 11px 14px; }
  .income-history-list-heading { padding-inline: 14px; }
  .income-history-list { padding-inline: 14px; }
  .income-history-row { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px; padding: 11px 0; }
  .income-history-row__detail { grid-column: 1 / 3; grid-row: 2; }
  .income-history-row em { grid-column: 1; grid-row: 3; }
  .income-history-row__source { grid-column: 2; grid-row: 3; }
  .income-history-row__amount { grid-column: 3; grid-row: 1 / 4; align-self: center; }
  .income-history-footer { padding: 10px 14px; }
  .income-history-footer span { display: none; }
  .income-history-footer .button { width: 100%; }

  .calendar-shell { max-height: calc(100vh - 16px); }
  .calendar-header { padding: 16px; }
  .calendar-header h2 { font-size: 18px; }
  .calendar-toolbar { grid-template-columns: auto 1fr auto; padding: 10px 14px; }
  .calendar-toolbar__actions { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .calendar-toolbar__actions .button { flex: 1; }
  .calendar-legend { padding: 9px 14px; }
  .calendar-content { grid-template-columns: 1fr; overflow: auto; }
  .calendar-board { overflow: visible; padding: 11px 8px 14px; }
  .calendar-weekdays,
  .calendar-grid { width: 100%; min-width: 0; }
  .calendar-weekdays { font-size: 8px; }
  .calendar-grid { gap: 3px; }
  .calendar-grid--events { min-width: 0; grid-template-columns: 1fr; }
  .calendar-day { min-height: 68px; padding: 5px 4px; border-radius: 7px; }
  .calendar-day__number { font-size: 11px; }
  .calendar-day.is-today .calendar-day__number { width: 21px; height: 21px; margin: -1px 0 2px -1px; }
  .calendar-event-indicator { width: fit-content; min-width: 22px; grid-template-columns: 1fr; justify-items: center; margin-top: 5px; padding: 3px; }
  .calendar-event-indicator b { min-width: 17px; height: 17px; font-size: 9px; }
  .calendar-event-indicator span { display: none; }
  .calendar-holiday-indicator { width: fit-content; min-width: 22px; grid-template-columns: 1fr; justify-items: center; margin-top: 4px; padding: 4px; }
  .calendar-holiday-indicator span { display: none; }
  .calendar-details { min-height: 220px; border-top: 1px solid #dce4ec; border-left: 0; }

  .checklist-dialog {
    width: calc(100vw - 12px);
    width: calc(100dvw - 12px);
    max-width: calc(100vw - 12px);
    max-width: calc(100dvw - 12px);
    border-radius: 13px;
  }
  .checklist-shell,
  .checklist-header,
  .checklist-summary,
  .checklist-actions,
  .checklist-list,
  .checklist-footer { width: 100%; min-width: 0; }
  .checklist-header { gap: 10px; padding: 15px 13px; }
  .checklist-header > div { max-width: calc(100% - 48px); }
  .checklist-header h2 { font-size: 18px; }
  .checklist-header p { white-space: normal; overflow-wrap: anywhere; }
  .checklist-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 11px 10px; }
  .checklist-summary > div { min-width: 0; padding: 10px; overflow: hidden; grid-template-columns: minmax(0, 1fr) auto; }
  .checklist-summary span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
  .checklist-summary strong { justify-self: end; font-size: 18px; }
  .checklist-actions { align-items: stretch; flex-direction: column; padding: 11px 10px; }
  .checklist-actions .button { width: 100%; }
  .checklist-actions small { width: 100%; min-width: 0; margin-left: 0; overflow-wrap: anywhere; text-align: center; }
  .checklist-list { overflow-x: hidden; padding: 11px 10px 17px; scrollbar-gutter: auto; }
  .checklist-row { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 11px 10px; overflow: hidden; }
  .checklist-row > *,
  .checklist-row .field,
  .checklist-row .field input,
  .checklist-row .field select { width: 100%; min-width: 0; max-width: 100%; }
  .checklist-item-name,
  .checklist-note { grid-column: 1 / -1; }
  .checklist-row .field:nth-of-type(3) { grid-column: 1 / -1; }
  .checklist-footer { align-items: stretch; flex-direction: column; padding: 11px 10px; }
  .checklist-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .checklist-footer > .button { width: 100%; }

  .inventory-dialog,
  .piece-picker-dialog,
  .auth-dialog,
  .admin-dialog,
  .backup-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 13px;
  }

  .inventory-shell,
  .piece-picker-shell { max-height: calc(100vh - 16px); }

  .inventory-add {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .tables-catalog-add {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }
  .tables-product-create > summary { grid-template-columns: 30px minmax(0,1fr); padding-inline: 16px; }
  .tables-product-create > summary small { grid-column: 2; }
  .tables-product-notes { grid-column: 1; }
  .tables-product-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .tables-product-tools .inventory-search { grid-column: 1 / -1; }
  .tables-product-tools > small { grid-column: 1 / -1; padding-bottom: 0; white-space: normal; }
  .tables-product-card > summary { grid-template-columns: minmax(0,1fr) auto 20px; gap: 8px; }
  .tables-product-card__stock { display: none; }
  .tables-product-status { min-width: 76px; }
  .tables-product-card__form { grid-template-columns: 1fr; padding: 11px; }
  .tables-kit-components { grid-template-columns: 1fr; }
  .tables-product-card__form .tables-product-notes,
  .tables-product-card__form .inventory-row__actions { grid-column: 1; }
  .tables-product-card__form .inventory-row__actions { justify-content: stretch; }
  .tables-product-card__form .inventory-row__actions .button { flex: 1; }

  .inventory-add .button,
  .tables-catalog-add .button { width: 100%; }
  .inventory-tools,
  .piece-picker-tools,
  .piece-picker-footer { padding: 12px 16px; }
  .inventory-tools { align-items: stretch; flex-direction: column; gap: 8px; }
  .inventory-bulk { padding: 12px 16px; }
  .inventory-bulk__heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .inventory-bulk__controls { grid-template-columns: 1fr; }
  .inventory-bulk-field { grid-template-columns: 18px minmax(0,1fr) minmax(100px,140px); }
  .inventory-bulk__controls .button { width: 100%; }
  .inventory-pagination { justify-content: space-between; gap: 8px; padding: 9px 12px; }
  .inventory-pagination .button { min-width: 0; padding-inline: 9px; }
  .inventory-list,
  .piece-picker-list { padding: 12px 16px 18px; }
  .inventory-row { grid-template-columns: minmax(0, 1fr) 110px; }
  .tables-catalog-row { grid-template-columns: minmax(0, 1fr) 110px; }
  .tables-catalog-row .inventory-row__actions { grid-column: 1 / -1; }
  .inventory-row__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .piece-picker-list { grid-template-columns: 1fr; }
  .piece-picker-tools { align-items: stretch; flex-direction: column; }
  .piece-picker-footer { align-items: stretch; flex-direction: column; }
  .piece-picker-footer .button { width: 100%; }
  .auth-shell { padding: 23px 19px; }
  .admin-shell { max-height: calc(100vh - 16px); }
  .admin-create__heading { padding: 13px 16px; }
  .admin-create__heading strong { font-size: 12px; }
  .admin-create { padding: 2px 16px 15px; }
  .admin-create__actions,
  .admin-row { align-items: stretch; flex-direction: column; }
  .admin-create__actions .button { width: 100%; }
  .admin-list-heading { padding-inline: 16px; }
  .admin-list { padding-inline: 16px; }
  .admin-row__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .backup-shell { max-height: calc(100vh - 16px); grid-template-rows: auto auto auto minmax(160px, 1fr) auto; }
  .backup-overview { grid-template-columns: 1fr 1fr; padding: 13px 16px; }
  .backup-status-card { grid-column: 1 / -1; }
  .backup-actions { grid-template-columns: 1fr; padding: 13px 16px; overflow: auto; }
  .backup-action-card { grid-template-columns: minmax(0, 1fr) 150px; align-items: center; }
  .backup-history-heading,
  .backup-list,
  .backup-footer { padding-inline: 16px; }
  .backup-footer { align-items: stretch; flex-direction: column; gap: 9px; }
  .backup-footer .button { width: 100%; }

  .work-center-dialog { border-radius: 13px; }
  .client-history-dialog { border-radius: 13px; }
  .work-center-header { align-items: stretch; flex-direction: column; padding: 17px 16px 14px; }
  .work-center-header h2 { font-size: 20px; }
  .work-center-header__actions { display: grid; grid-template-columns: 1fr 1fr auto; }
  .work-center-cards { padding: 12px 14px; }
  .work-center-toolbar { grid-template-columns: 1fr; padding: 12px 14px; }
  .work-center-toolbar .button { width: 100%; }
  .work-center-list-heading { align-items: flex-start; flex-direction: column; padding: 11px 14px; }
  .work-center-list { padding: 10px 14px 18px; }
  .work-center-contract { grid-template-columns: 1fr; }
  .work-center-contract__open { grid-template-columns: 88px minmax(0, 1fr); gap: 9px; }
  .work-center-contract__open .status-badge { grid-column: 1 / -1; }
  .work-center-contract__balance { grid-column: 1 / -1; justify-items: start; }
  .work-center-contract__status { border-top: 1px solid #e0e7ee; border-left: 0; }
  .client-history-shell { height: calc(100vh - 16px); }
  .client-history-toolbar { grid-template-columns: 1fr; padding: 12px 14px; }
  .client-history-toolbar .button { width: 100%; }
  .client-history-content { grid-template-columns: 1fr; grid-template-rows: minmax(170px, 34vh) minmax(0, 1fr); }
  .client-history-list-panel { border-right: 0; border-bottom: 1px solid #dce4ec; }
  .client-history-detail { padding: 15px; }
  .client-profile-header { align-items: stretch; flex-direction: column; }
  .client-next-event { justify-items: start; }
  .client-contact-grid { grid-template-columns: 1fr; }
  .client-contact-grid > div,
  .client-contact-grid > div:nth-child(3) { border-right: 0; border-bottom: 1px solid #e2e8ee; }
  .client-contact-grid .client-contact-address { grid-column: auto; border-top: 0; border-bottom: 0; }
  .client-value-summary { grid-template-columns: 1fr 1fr; }
  .client-recurring-section { padding: 12px; }
  .client-recurring-section > header { align-items: stretch; flex-direction: column; }
  .client-recurring-section > header .button { width: 100%; }
  .client-recurring-form__grid { grid-template-columns: 1fr; }
  .client-recurring-form__notes { grid-column: auto; }
  .client-recurring-form__options { align-items: stretch; flex-direction: column; }
  .client-recurring-form__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .client-recurring-card { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .client-recurring-card__next { grid-column: 2 / -1; justify-items: start; }
  .client-recurring-card__actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid #e2e8ee; padding-top: 8px; }
  .client-opportunity-card { grid-template-columns: 1fr; align-items: start; }
  .opportunity-status { justify-self: start; }
  .client-history-contract { grid-template-columns: 76px minmax(0, 1fr); }
  .client-history-contract .status-badge { grid-column: 1 / -1; }
  .client-history-contract__money { grid-column: 1 / -1; }
  .messages-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 13px; }
  .messages-shell { max-height: calc(100vh - 16px); }
  .messages-toolbar { grid-template-columns: 1fr; padding: 14px 16px; }
  .messages-editor { padding: 16px; }
  .messages-footer { align-items: stretch; flex-direction: column; padding: 12px 16px; }
  .messages-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .messages-footer #cancelMessages { grid-column: 1 / -1; }
  .messages-footer #openWhatsAppMessage { grid-column: 1 / -1; }
}

/* Edição em largura integral e prévia exclusiva em janela flutuante */
body:not(.home-mode) .workspace {
  display: block;
  overflow: auto;
  padding: 20px;
  background: #e9ebf3;
}
body:not(.home-mode) .editor-panel {
  width: min(1180px, 100%);
  min-height: 100%;
  margin: 0 auto;
  border: 1px solid #e1e5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(41, 40, 71, .08);
}
.contract-preview-dialog {
  width: min(1120px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  max-width: none;
  max-height: none;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d9e0e9;
  border-radius: 16px;
  background: #dce2e9;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(12, 20, 35, .35);
}
.contract-preview-dialog::backdrop { background: rgba(17, 24, 34, .7); backdrop-filter: blur(5px); }
.contract-preview-dialog .preview-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid !important;
  overflow: hidden;
}
.preview-dialog-close {
  width: 32px !important;
  height: 32px !important;
  margin-left: 5px;
  border-radius: 50% !important;
  color: #7d3140 !important;
  font-size: 19px;
  line-height: 1;
}
html[data-theme="dark"] body:not(.home-mode) .workspace { background: #171717; }
html[data-theme="dark"] body:not(.home-mode) .editor-panel { background: #212121; border-color: #383838; }
html[data-theme="dark"] .contract-preview-dialog { border-color: #414141; background: #101010; }

/* Módulos principais ocupam a mesma área da Central, sem modal ou fundo desfocado. */
body.page-mode .workspace {
  display: block !important;
  overflow: auto;
  padding: 20px;
  background: #eff1f7;
}
body.page-mode .editor-panel,
body.page-mode .preview-panel,
body.page-mode .work-center-dialog.is-home-dashboard { display: none !important; }
dialog.workspace-page {
  position: static;
  inset: auto;
  width: min(1450px, 100%);
  max-width: none;
  height: auto;
  min-height: calc(100% - 2px);
  max-height: none;
  display: none;
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
  border: 1px solid #e0e5ee;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(36, 31, 75, .08);
}
dialog.workspace-page[open] { display: block; }
dialog.workspace-page::backdrop { display: none; }
dialog.workspace-page > .financial-shell,
dialog.workspace-page > .client-history-shell,
dialog.workspace-page > .messages-shell,
dialog.workspace-page > .calendar-shell,
dialog.workspace-page > .inventory-shell,
dialog.workspace-page > .checklist-shell,
dialog.workspace-page > .backup-shell,
dialog.workspace-page > .admin-shell,
dialog.workspace-page > .settings-shell,
dialog.workspace-page > .resource-shell {
  width: 100%;
  height: auto;
  min-height: calc(100vh - 42px);
  max-height: none;
  overflow: visible;
}
dialog.workspace-page .resource-list,
dialog.workspace-page .inventory-list,
dialog.workspace-page .checklist-list,
dialog.workspace-page .admin-list,
dialog.workspace-page .backup-list { max-height: none; }
html[data-theme="dark"] body.page-mode .workspace { background: #171717; }
html[data-theme="dark"] dialog.workspace-page { border-color: #353535; background: #212121; box-shadow: none; }

/* Central de oportunidades — v70 */
.resource-shell.opportunities-shell { min-height: calc(100dvh - 36px); grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto; background: #fff; }
.opportunities-dialog .resource-header { align-items: flex-start; padding: 30px 38px 25px; border-bottom: 1px solid #e2e7f0; }
.opportunities-dialog .resource-header > div { display: grid; gap: 5px; }
.opportunities-dialog .resource-header h2 { margin: 0; color: #101b3d; font-size: 32px; line-height: 1.08; letter-spacing: -.035em; }
.opportunities-dialog .resource-header p { margin: 0; color: #68748e; font-size: 14px; }
.opportunities-dialog .calendar-close { width: 46px; height: 46px; font-size: 27px; }
.opportunity-eyebrow { display: flex !important; align-items: center; gap: 9px; color: #7049ed !important; font-size: 12px !important; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.opportunity-eyebrow i { display: inline-grid; place-items: center; width: 26px; height: 26px; }
.opportunity-eyebrow svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.opportunity-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; padding: 20px 32px 24px; border-bottom: 1px solid #e7ebf3; }
.opportunity-summary-card { min-width: 0; min-height: 132px; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: start; gap: 14px; padding: 18px 17px; text-align: left; color: #121d3b; background: #fff; border: 1px solid #dbe2ed; border-radius: 16px; cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.opportunity-summary-card:hover { transform: translateY(-2px); border-color: #9f8cf6; box-shadow: 0 10px 24px rgba(42, 48, 78, .09); }
.opportunity-summary-card > i { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; color: #6d4ce8; background: #eee9ff; border-radius: 15px; }
.opportunity-summary-card > i svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.opportunity-summary-card > span { min-width: 0; display: grid; gap: 4px; padding-top: 4px; }
.opportunity-summary-card strong { font-size: 14px; line-height: 1.2; }
.opportunity-summary-card b { color: #7049ed; font-size: 28px; line-height: 1; }
.opportunity-summary-card small { color: #66728a; font-size: 12px; line-height: 1.35; }
.opportunity-summary-card.tone-danger { border-color: #f4cbd1; background: #fffafa; }
.opportunity-summary-card.tone-danger > i { color: #e43f55; background: #ffe8ec; }
.opportunity-summary-card.tone-danger b { color: #e43f55; }
.opportunity-summary-card.tone-primary { border-color: #d9cdfd; background: #fcfbff; }
.opportunity-summary-card.tone-warning { border-color: #f0dfc6; background: #fffcf7; }
.opportunity-summary-card.tone-warning > i { color: #e88c0a; background: #fff0d3; }
.opportunity-summary-card.tone-warning b { color: #e88c0a; }
.opportunity-summary-card.tone-muted { border-color: #cfe0f4; background: #fbfdff; }
.opportunity-summary-card.tone-muted > i { color: #2779d8; background: #e7f1ff; }
.opportunity-summary-card.tone-muted b { color: #2779d8; }
.opportunity-summary-card.tone-success { border-color: #cce8dc; background: #fafffc; }
.opportunity-summary-card.tone-success > i { color: #159d6d; background: #e1f7ed; }
.opportunity-summary-card.tone-success b { color: #159d6d; }
.opportunity-toolbar { display: grid; grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(150px, .75fr)) auto; align-items: end; gap: 14px; padding: 18px; margin: 16px 32px 12px; background: #fff; border: 1px solid #dce3ee; border-radius: 14px; box-shadow: 0 5px 16px rgba(37, 47, 72, .06); }
.opportunity-toolbar .inventory-search { min-width: 0; gap: 7px; }
.opportunity-toolbar .inventory-search > span { color: #52607a; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.opportunity-toolbar input, .opportunity-toolbar select { min-height: 44px; border-radius: 8px; font-size: 13px; }
.opportunity-toolbar #clearOpportunityFilters { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding-inline: 18px; color: #6743e5; border-color: #8f72ee; white-space: nowrap; }
.opportunity-toolbar #clearOpportunityFilters i, .opportunity-toolbar #clearOpportunityFilters svg { width: 17px; height: 17px; }
.opportunity-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 38px 15px; }
.opportunity-list-heading > div { display: flex; align-items: center; gap: 9px; }
.opportunity-list-heading strong { color: #111d3b; font-size: 16px; }
.opportunity-list-heading small { padding: 5px 10px; color: #7049ed; background: #eee9ff; border-radius: 999px; font-size: 11px; }
.opportunity-list-heading > span { display: inline-flex; align-items: center; gap: 8px; color: #26334d; font-size: 12px; }
.opportunity-list-heading > span b { color: #111d3b; font-size: 14px; }
.opportunity-list { min-height: 0; display: grid; align-content: start; gap: 12px; padding: 0 38px 16px; overflow: auto; }
.opportunity-row { display: grid; grid-template-columns: 155px minmax(250px, 1.25fr) 155px minmax(430px, auto); align-items: center; gap: 16px; min-width: 0; min-height: 82px; padding: 13px 14px; background: #fff; border: 1px solid #dce4ef; border-left: 4px solid #7a5af4; border-radius: 12px; box-shadow: 0 2px 5px rgba(31, 45, 70, .025); }
.opportunity-row.status-contatar { border-left-color: #dc4154; }
.opportunity-row.status-convertida { border-left-color: #15966c; }
.opportunity-row.status-revisar { border-left-color: #e59a1a; }
.opportunity-row.status-sem_autorizacao, .opportunity-row.status-descartada { border-left-color: #94a3b8; }
.opportunity-row__date, .opportunity-row__source { display: grid; gap: 3px; }
.opportunity-row__date > span, .opportunity-row__source > span, .opportunity-row__status > span { color: #596780; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .055em; }
.opportunity-row__date strong, .opportunity-row__source strong { color: #101d3d; font-size: 15px; }
.opportunity-row__date small, .opportunity-row__source small, .opportunity-row__client small { color: #64728b; font-size: 11px; }
.opportunity-row__client { min-width: 0; display: flex; align-items: center; gap: 11px; }
.opportunity-row__client .client-history-avatar { width: 50px; height: 50px; flex: 0 0 50px; color: #fff; background: linear-gradient(145deg, #9b7df4, #7049ed); font-size: 18px; }
.opportunity-row__client > span:last-child { min-width: 0; display: grid; gap: 3px; }
.opportunity-row__client strong, .opportunity-row__client small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opportunity-row__client strong { color: #101d3d; font-size: 14px; }
.opportunity-row__client em { color: #7049ed; font-size: 10px; font-style: normal; font-weight: 800; }
.opportunity-row__status { display: grid; gap: 5px; }
.opportunity-row__status select { width: 100%; min-height: 42px; padding: 8px 32px 8px 11px; color: #233754; background: #fff; border: 1px solid #cbd6e5; border-radius: 9px; font-size: 12px; }
.opportunity-row__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
.opportunity-row__actions .button { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; font-size: 9px; border-radius: 7px; white-space: nowrap; }
.opportunity-row__actions .button svg { width: 12px; height: 12px; flex: 0 0 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.opportunity-row__more { position: relative; flex: 0 0 auto; }
.opportunity-row__actions .opportunity-more-button { width: 32px; height: 30px; border-radius: 7px; }
.opportunity-row__actions .opportunity-more-button span { margin-top: -4px; font-size: 14px; }
.opportunity-actions-menu { width: 244px; }
.opportunity-actions-menu > .opportunity-status-action { min-height: 32px; }
.opportunity-status-action:disabled { opacity: .45; cursor: not-allowed; }
.opportunity-status-action [data-opportunity-status-dot] { background: #8795a6; }
.opportunity-status-action [data-opportunity-status-dot="contatar"] { background: #e34759; }
.opportunity-status-action [data-opportunity-status-dot="reagendada"],
.opportunity-status-action [data-opportunity-status-dot="sem_autorizacao"] { background: #448fdf; }
.opportunity-status-action [data-opportunity-status-dot="em_negociacao"] { background: #7c58ef; }
.opportunity-status-action [data-opportunity-status-dot="aguardando"],
.opportunity-status-action [data-opportunity-status-dot="revisar"] { background: #e3a12b; }
.opportunity-status-action [data-opportunity-status-dot="convertida"] { background: #27a86c; }
.opportunity-status-action [data-opportunity-status-dot="descartada"] { background: #dc4d5d; }
.opportunity-row__actions .button--conversion { color: #fff; background: linear-gradient(135deg, #7650f0, #5925dc); border-color: #6840e7; box-shadow: 0 5px 12px rgba(100, 59, 226, .18); }

/* Colaboração multiusuário: histórico por registro e lixeira recuperável */
.collaboration-dialog .resource-shell--compact { width: min(760px, calc(100vw - 32px)); }
.collaboration-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line, #dce3ef); border-radius: 10px; background: var(--panel, #fff); }
.collaboration-row + .collaboration-row { margin-top: 8px; }
.collaboration-row__icon, .collaboration-row__revision { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f1edff; color: #6842e8; font-weight: 800; font-style: normal; }
.collaboration-row > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.collaboration-row > span:nth-child(2) > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #17243d; }
.collaboration-row small, .collaboration-row em { color: #687792; font-size: 12px; font-style: normal; line-height: 1.35; }
.collaboration-current { padding: 6px 9px; border-radius: 999px; background: #e7f7ef; color: #087a4d; font-size: 11px; }
.collaboration-details { margin-top: 3px; color: #687792; font-size: 12px; }
.collaboration-details summary { cursor: pointer; }
.collaboration-details ul { display: grid; gap: 5px; margin: 8px 0 0; padding: 9px 11px; list-style: none; border-radius: 8px; background: #f7f8fc; }
.collaboration-details li { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); gap: 9px; }
.collaboration-details li span { min-width: 0; overflow-wrap: anywhere; }
.activity-row .button { margin-left: auto; }
@media (max-width: 640px) {
  .collaboration-row { grid-template-columns: 38px minmax(0, 1fr); }
  .collaboration-row > .button, .collaboration-row > .collaboration-current { grid-column: 2; justify-self: start; }
}
.opportunity-row__actions .button--whatsapp { color: #fff; background: linear-gradient(135deg, #21b978, #0b965e); border-color: #159d68; box-shadow: 0 5px 12px rgba(19, 159, 101, .16); }
.opportunity-empty { display: grid; place-items: center; gap: 6px; min-height: 260px; color: #6d7a91; text-align: center; border: 1px dashed #cbd6e5; border-radius: 14px; }
.opportunity-empty i { display: grid; place-items: center; width: 48px; height: 48px; color: #7757e8; background: #f0ecff; border-radius: 50%; font-style: normal; font-size: 24px; }
.opportunity-empty strong { color: #18304f; }
.opportunity-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 38px 12px; color: #66758d; }
.opportunity-tip { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 38px 20px; padding: 12px 14px; color: #263453; background: linear-gradient(90deg, #f7f3ff, #fbf9ff); border: 1px solid #e6defb; border-radius: 10px; }
.opportunity-tip > i { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: linear-gradient(145deg, #8e6cf1, #6235df); border-radius: 50%; font-size: 17px; font-style: normal; font-weight: 900; }
.opportunity-tip > span { display: grid; gap: 2px; }
.opportunity-tip strong { font-size: 13px; }
.opportunity-tip small { color: #69748c; font-size: 11px; }
.opportunity-tip .button { display: inline-flex; align-items: center; gap: 7px; color: #6540df; border-color: #9173ee; }
.opportunity-tip .button i, .opportunity-tip .button svg { width: 17px; height: 17px; }
.opportunity-contact-dialog { width: min(820px, calc(100% - 28px)); }
.opportunity-contact-shell { width: 100%; max-height: min(840px, calc(100dvh - 28px)); overflow: auto; }
.opportunity-contact-history { padding: 17px 20px; background: #f7f9fc; border-bottom: 1px solid #dce4ef; }
.opportunity-contact-history > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.opportunity-contact-history > header small { color: var(--muted); }
.opportunity-contact-history > div { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.opportunity-contact-entry { display: grid; grid-template-columns: 115px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 11px 12px; background: #fff; border: 1px solid #dce4ef; border-radius: 10px; }
.opportunity-contact-entry time, .opportunity-contact-entry > div { display: grid; gap: 2px; }
.opportunity-contact-entry time small, .opportunity-contact-entry > div span { color: #6f7e94; }
.opportunity-contact-entry p { margin: 6px 0 0; color: #41536d; line-height: 1.45; white-space: pre-wrap; }
.opportunity-contact-entry > em { padding: 6px 9px; color: #6444d7; background: #f0ecff; border-radius: 8px; font-size: 10px; font-style: normal; white-space: nowrap; }
.opportunity-contact-empty { display: grid; place-items: center; min-height: 90px; color: var(--muted); text-align: center; border: 1px dashed #ccd6e4; border-radius: 10px; }
.opportunity-contact-empty strong { color: #233754; }
.opportunity-contact-form { padding: 18px 20px 20px; }
.opportunity-contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.opportunity-contact-notes { grid-column: 1 / -1; }
.opportunity-contact-form .form-save-warning { margin: 15px 0; padding: 10px 12px; color: #9a4b0a; background: #fff7e8; border: 1px solid #f3d4a5; border-radius: 9px; text-align: center; }
.opportunity-contact-form > footer { display: flex; justify-content: flex-end; gap: 9px; }

html[data-theme="dark"] .opportunity-summary-card,
html[data-theme="dark"] .opportunity-row { color: #ececec; background: #252525; border-color: #3c3c3c; }
html[data-theme="dark"] .opportunities-shell { background: #212121; }
html[data-theme="dark"] .opportunities-dialog .resource-header { border-color: #393939; }
html[data-theme="dark"] .opportunities-dialog .resource-header h2,
html[data-theme="dark"] .opportunity-list-heading strong,
html[data-theme="dark"] .opportunity-row__date strong,
html[data-theme="dark"] .opportunity-row__source strong,
html[data-theme="dark"] .opportunity-row__client strong { color: #f1f1f1; }
html[data-theme="dark"] .opportunity-summary { border-color: #393939; }
html[data-theme="dark"] .opportunity-summary-card.tone-danger { background: #2d2024; border-color: #573039; }
html[data-theme="dark"] .opportunity-summary-card.tone-primary { background: #282432; border-color: #4b3e70; }
html[data-theme="dark"] .opportunity-summary-card.tone-warning { background: #2c281e; border-color: #59492e; }
html[data-theme="dark"] .opportunity-summary-card.tone-muted { background: #202934; border-color: #36495d; }
html[data-theme="dark"] .opportunity-summary-card.tone-success { background: #202d28; border-color: #305443; }
html[data-theme="dark"] .opportunity-toolbar { background: #252525; border-color: #3d3d3d; box-shadow: none; }
html[data-theme="dark"] .opportunity-summary-card small,
html[data-theme="dark"] .opportunity-list-heading small,
html[data-theme="dark"] .opportunity-list-heading > span,
html[data-theme="dark"] .opportunity-row__date > span,
html[data-theme="dark"] .opportunity-row__source > span,
html[data-theme="dark"] .opportunity-row__status > span,
html[data-theme="dark"] .opportunity-row small { color: #aaa; }
html[data-theme="dark"] .opportunity-row__status select { color: #eee; background: #2d2d2d; border-color: #4b4b4b; }
html[data-theme="dark"] .opportunity-list-heading small { color: #c9baff; background: #352c52; }
html[data-theme="dark"] .opportunity-list-heading > span,
html[data-theme="dark"] .opportunity-list-heading > span b { color: #c9c9c9; }
html[data-theme="dark"] .opportunity-row__actions .icon-button { color: #ddd; background: #292929; border-color: #4b4b4b; }
html[data-theme="dark"] .opportunity-tip { color: #eee; background: linear-gradient(90deg, #2c2639, #28252f); border-color: #453b5e; }
html[data-theme="dark"] .opportunity-tip small { color: #b6b6b6; }
html[data-theme="dark"] .opportunity-empty { border-color: #444; color: #aaa; }
html[data-theme="dark"] .opportunity-empty strong { color: #eee; }
html[data-theme="dark"] .opportunity-contact-history { background: #1f1f1f; border-color: #393939; }
html[data-theme="dark"] .opportunity-contact-entry { background: #292929; border-color: #424242; }
html[data-theme="dark"] .opportunity-contact-entry p { color: #ccc; }
html[data-theme="dark"] .opportunity-contact-entry > em { color: #c9bcff; background: #352c52; }
html[data-theme="dark"] .opportunity-contact-empty { color: #aaa; border-color: #494949; }
html[data-theme="dark"] .opportunity-contact-empty strong { color: #eee; }
html[data-theme="dark"] .opportunity-contact-form .form-save-warning { color: #ffd18b; background: #392f20; border-color: #5c482b; }

@media (max-width: 1180px) {
  .opportunity-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opportunity-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opportunity-search { grid-column: span 2; }
  .opportunity-row { grid-template-columns: 150px minmax(230px, 1.4fr) minmax(360px, auto); }
  .opportunity-row__source { display: none; }
  .opportunity-row__actions { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .opportunities-dialog .resource-header { padding: 21px 16px 18px; }
  .opportunities-dialog .resource-header h2 { font-size: 26px; }
  .opportunities-dialog .resource-header p { font-size: 12px; }
  .opportunities-dialog .calendar-close { width: 40px; height: 40px; }
  .opportunity-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 9px; }
  .opportunity-summary-card { min-height: 112px; grid-template-columns: 38px minmax(0, 1fr); padding: 12px; gap: 9px; }
  .opportunity-summary-card > i { width: 38px; height: 38px; }
  .opportunity-summary-card > i svg { width: 20px; height: 20px; }
  .opportunity-summary-card strong { font-size: 12px; }
  .opportunity-summary-card b { font-size: 22px; }
  .opportunity-summary-card small { font-size: 10px; }
  .opportunity-toolbar { grid-template-columns: 1fr 1fr; padding: 14px; margin: 12px 14px; }
  .opportunity-search { grid-column: 1 / -1; }
  .opportunity-toolbar .button { grid-column: 1 / -1; }
  .opportunity-list-heading { align-items: flex-start; padding-inline: 14px; }
  .opportunity-list-heading > span { display: none; }
  .opportunity-list { padding-inline: 14px; }
  .opportunity-row { grid-template-columns: 1fr; gap: 11px; padding: 14px; }
  .opportunity-row__date { grid-template-columns: 1fr auto; align-items: baseline; }
  .opportunity-row__date small { grid-column: 1 / -1; }
  .opportunity-row__source { display: grid; }
  .opportunity-row__actions { justify-content: stretch; }
  .opportunity-row__actions .button { flex: 1; }
  .opportunity-row__actions .opportunity-more-button { flex: 0 0 32px; }
  .opportunity-actions-menu.is-side { width: min(244px, calc(100vw - 16px)); }
  .opportunity-pagination { justify-content: center; padding-inline: 14px; }
  .opportunity-tip { grid-template-columns: 36px minmax(0, 1fr); margin: 0 14px 18px; }
  .opportunity-tip > i { width: 32px; height: 32px; }
  .opportunity-tip .button { grid-column: 1 / -1; justify-content: center; }
  .opportunity-contact-dialog { width: 100%; max-width: none; margin: 0; border-radius: 0; }
  .opportunity-contact-shell { min-height: 100dvh; max-height: 100dvh; }
  .opportunity-contact-form__grid { grid-template-columns: 1fr; }
  .opportunity-contact-notes { grid-column: auto; }
  .opportunity-contact-entry { grid-template-columns: 1fr; }
  .opportunity-contact-entry > em { width: fit-content; }
  .opportunity-contact-form > footer .button { flex: 1; }
}

@media (max-width: 920px) {
  body:not(.home-mode) .workspace { padding: 10px; }
  body:not(.home-mode) .editor-panel { width: 100%; min-height: 0; border-radius: 13px; }
  .contract-preview-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); border-radius: 13px; }
  .contract-preview-dialog .preview-panel { height: 100%; min-height: 0; border-top: 0; }
  body.page-mode .workspace { padding: 0; }
  dialog.workspace-page { width: 100%; min-height: 100dvh; border: 0; border-radius: 0; }
  dialog.workspace-page > .financial-shell,
  dialog.workspace-page > .client-history-shell,
  dialog.workspace-page > .messages-shell,
  dialog.workspace-page > .calendar-shell,
  dialog.workspace-page > .inventory-shell,
  dialog.workspace-page > .checklist-shell,
  dialog.workspace-page > .backup-shell,
  dialog.workspace-page > .admin-shell,
  dialog.workspace-page > .settings-shell,
  dialog.workspace-page > .resource-shell { min-height: 100dvh; }
}

/* Central inicial e módulos de gestão */
.notification-button { position: relative; }
.notification-button em { position: absolute; top: -7px; right: -8px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 11px; background: #df4054; color: #fff; box-shadow: 0 2px 7px rgba(133, 31, 48, .28); font-size: 9px; line-height: 1; font-style: normal; font-weight: 850; }
body.home-mode .workspace { display: block; overflow: auto; padding: 22px; background: #f1f3f8; }
body.home-mode .editor-panel,
body.home-mode .preview-panel { display: none !important; }
.workspace:has(> .work-center-dialog.is-home-dashboard[open]) { display: block !important; overflow: auto; }
.workspace > .work-center-dialog.is-home-dashboard[open] ~ .editor-panel,
.workspace > .work-center-dialog.is-home-dashboard[open] ~ .preview-panel { display: none !important; }
.work-center-dialog.is-home-dashboard { position: static; width: min(1400px, 100%); max-width: none; height: auto; min-height: calc(100% - 2px); max-height: none; display: none; margin: 0 auto; padding: 0; border: 1px solid #e0e5ee; border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(36,31,75,.08); color: var(--ink); }
.work-center-dialog.is-home-dashboard[open] { display: block; }
.work-center-dialog.is-home-dashboard::backdrop { display: none; }
.work-center-dialog.is-home-dashboard .work-center-shell { height: auto; min-height: 100%; max-height: none; overflow: visible; }
.home-command-bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; padding: 0 20px 16px; border-bottom: 1px solid #e3e8f0; }
.home-command-bar > button { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #dfe4ee; border-radius: 11px; background: #f9faff; color: var(--ink); cursor: pointer; text-align: left; }
.home-command-bar > button:hover { border-color: #bdb1ef; background: var(--brand-soft); }
.home-command-bar > button > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 20px; }
.home-command-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.home-command-bar > button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.home-command-bar small { color: var(--muted); }
.home-command-bar kbd,
.global-search-box kbd { margin-left: auto; padding: 4px 7px; border: 1px solid #d9dfE9; border-radius: 6px; background: #fff; color: var(--muted); font: 9px inherit; white-space: nowrap; }

.resource-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 28px 80px rgba(12,20,35,.28); }
.resource-dialog::backdrop { background: rgba(20,32,48,.64); backdrop-filter: blur(4px); }
.resource-shell { max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto auto minmax(180px,1fr); overflow: hidden; }
#maintenanceDialog .resource-shell { grid-template-rows: auto auto minmax(180px,1fr) auto; }
.resource-shell--compact { width: min(720px, 100%); }
#globalSearchDialog .resource-shell--compact { width: 100%; }
.resource-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid #e2e7ef; background: #fbfcff; }
.resource-header > div:first-child { min-width: 0; }
.resource-header > div:first-child > span { color: var(--brand); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.resource-header h2 { margin: 4px 0 0; font-size: 22px; }
.resource-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.resource-header__actions { display: flex; align-items: center; gap: 8px; }
.resource-toolbar,
.report-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #e2e7ef; background: #f7f9fc; }
.resource-list { min-height: 180px; overflow: auto; padding: 14px 20px 22px; }
.resource-empty,
.search-suggestions { min-height: 160px; display: grid; place-content: center; gap: 6px; color: var(--muted); text-align: center; }
.resource-empty strong,
.search-suggestions strong { color: var(--ink); font-size: 13px; }

.global-search-box { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #e2e7ef; }
.global-search-box > span { color: var(--brand); font-size: 24px; }
.global-search-box input { min-width: 0; flex: 1; padding: 8px 0; border: 0; outline: 0; background: transparent; color: inherit; font-size: 17px; }
.global-search-results { min-height: 280px; max-height: 60vh; overflow: auto; padding: 8px 12px 14px; }
.global-search-results > button { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.global-search-results > button:hover { background: var(--brand-soft); }
.global-search-results i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #eef1f7; color: var(--brand); font-style: normal; font-weight: 800; }
.global-search-results span { min-width: 0; display: grid; gap: 3px; }
.global-search-results strong,
.global-search-results small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-results small { color: var(--muted); }
.global-search-results em { color: var(--brand); font-size: 9px; font-style: normal; font-weight: 700; }

.notification-filters { display: flex; gap: 7px; overflow-x: auto; padding: 12px 20px; border-bottom: 1px solid #e2e7ef; background: #f7f9fc; scrollbar-width: thin; }
.notification-filters button { flex: 0 0 auto; }
.notification-filters button { padding: 7px 12px; border: 1px solid #d9e0ea; border-radius: 18px; background: #fff; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.notification-filters button.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.notification-row { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 0; border-left: 3px solid #6d4ce8; border-radius: 9px; background: #f8f9fd; color: inherit; cursor: pointer; text-align: left; }
.notification-row + .notification-row { margin-top: 8px; }
.notification-row.urgency-urgent { border-left-color: #d64c59; background: #fff5f6; }
.notification-row.urgency-warning { border-left-color: #d79a2e; background: #fffbef; }
.notification-row.is-read { opacity: .68; }
.notification-row i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand); font-style: normal; font-weight: 850; }
.notification-row.type-opportunity:not(.urgency-urgent):not(.urgency-warning) { border-left-color: #7048e8; background: #f8f5ff; }
.notification-row.type-opportunity i { color: #7048e8; background: #eee8ff; }
.notification-row span { min-width: 0; display: grid; gap: 4px; }
.notification-row small { color: var(--muted); }
.notification-row em { color: var(--brand); font-size: 9px; font-style: normal; font-weight: 800; }

.attachment-upload { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,.8fr) auto; align-items: end; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #e2e7ef; background: #f7f9fc; }
.attachment-drop { min-height: 42px; display: flex; align-items: center; padding: 7px 11px; border: 1px dashed #b8c4d2; border-radius: 9px; background: #fff; cursor: pointer; }
.attachment-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.attachment-drop span { display: grid; gap: 2px; }
.attachment-drop small { color: var(--muted); font-size: 9px; }
.attachment-row,
.package-row,
.activity-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e1e6ee; border-radius: 10px; background: #fff; }
.attachment-row + .attachment-row,
.package-row + .package-row,
.activity-row + .activity-row { margin-top: 8px; }
.attachment-row > i,
.activity-row > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 9px; font-style: normal; font-weight: 850; }
.attachment-row > span,
.package-row > span,
.activity-row > span { min-width: 0; display: grid; gap: 4px; }
.attachment-row small,
.package-row small,
.activity-row small { color: var(--muted); }
.attachment-row > div,
.package-row > div { display: flex; gap: 7px; }

.package-form { display: grid; grid-template-columns: 1fr 220px auto; align-items: end; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #e2e7ef; background: #f7f9fc; }
.package-pieces { grid-column: 1 / -1; max-height: 210px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; overflow: auto; padding: 8px; border: 1px solid #dce3ec; border-radius: 9px; background: #fff; }
.package-pieces label { display: grid; grid-template-columns: auto minmax(0,1fr) 64px; align-items: center; gap: 8px; padding: 7px; border-radius: 7px; }
.package-pieces label:hover { background: #f2f0ff; }
.package-pieces input[type="number"] { width: 64px; padding: 5px; border: 1px solid #d3dce7; border-radius: 6px; }
.package-picker-control { min-width: 190px; }

.maintenance-row { display: grid; grid-template-columns: minmax(180px,1.2fr) 170px 160px minmax(220px,1fr) auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid #e1e6ee; border-radius: 10px; background: #fff; }
.maintenance-row + .maintenance-row { margin-top: 8px; }
.maintenance-row > span { align-self: center; min-width: 0; display: grid; gap: 4px; }
.maintenance-row > span small { color: var(--muted); }
.maintenance-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) minmax(150px,210px) minmax(150px,210px); }
.maintenance-row--tables { grid-template-columns: minmax(210px,1.2fr) 120px 145px 145px minmax(190px,1fr) auto; }
.maintenance-row.is-overdue { border-color: #e2a9ad; background: #fff6f6; }
.maintenance-row.is-overdue > span small { color: #a22d35; font-weight: 750; }
.maintenance-history { border-top: 1px solid #e1e6ee; background: #f8fafc; }
.maintenance-history > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid #e1e6ee; }
.maintenance-history > header > div { display: grid; gap: 3px; }
.maintenance-history > header strong { color: var(--ink); font-size: 12px; }
.maintenance-history > header small,
.maintenance-history > header > span { color: var(--muted); font-size: 9px; }
#maintenanceHistoryList { max-height: 260px; overflow: auto; padding: 10px 20px 16px; }
.maintenance-history-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(240px,1.5fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e6ebf1; }
.maintenance-history-row:last-child { border-bottom: 0; }
.maintenance-history-row > span { min-width: 0; display: grid; gap: 3px; }
.maintenance-history-row strong { color: var(--ink); font-size: 10px; }
.maintenance-history-row small,
.maintenance-history-row p,
.maintenance-history-row em { margin: 0; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.4; }
.maintenance-history-row em { text-align: right; }

.reports-dialog { width: min(1240px, calc(100vw - 32px)); }
.reports-dialog .resource-shell { grid-template-rows: auto auto auto minmax(200px,1fr); }
.report-toolbar { grid-template-columns: 190px 190px auto; align-items: end; }
.report-kpis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; padding: 14px 20px; border-bottom: 1px solid #e2e7ef; }
.report-kpis > div { min-width: 0; display: grid; gap: 6px; padding: 12px; border: 1px solid #e2e7ef; border-radius: 10px; background: #fafbfe; }
.report-kpis span { color: var(--muted); font-size: 9px; font-weight: 700; }
.report-kpis strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: auto; padding: 14px 20px 22px; }
.report-card { padding: 15px; border: 1px solid #e1e6ee; border-radius: 12px; background: #fff; }
.report-card > header { display: grid; gap: 3px; margin-bottom: 14px; }
.report-card > header small { color: var(--muted); }
.report-bar-list { display: grid; gap: 9px; }
.report-bar-list > div { display: grid; grid-template-columns: minmax(110px,.8fr) minmax(80px,1fr) auto; align-items: center; gap: 8px; font-size: 10px; }
.report-bar-list > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-bar-list progress { width: 100%; height: 7px; overflow: hidden; appearance: none; border: 0; border-radius: 5px; background: #eaedf3; }
.report-bar-list progress::-webkit-progress-bar { background: #eaedf3; }
.report-bar-list progress::-webkit-progress-value { border-radius: 5px; background: linear-gradient(90deg,var(--brand),#a689ff); }
.report-bar-list progress::-moz-progress-bar { border-radius: 5px; background: linear-gradient(90deg,var(--brand),#a689ff); }
.report-bar-list strong { font-size: 10px; }
.report-card--wide { grid-column: 1 / -1; }
.report-return-overview > header > span { color: var(--brand); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.report-return-kpis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; }
.report-return-kpis > div { min-width: 0; display: grid; gap: 4px; padding: 12px; border: 1px solid #e1e6ee; border-radius: 10px; background: #fafbfe; }
.report-return-kpis span { color: var(--muted); font-size: 9px; font-weight: 750; }
.report-return-kpis strong { overflow: hidden; color: var(--ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.report-return-kpis small { color: #6c7890; font-size: 9px; line-height: 1.35; }
.report-return-list,
.report-return-contracts { display: grid; gap: 8px; }
.report-return-list > article { display: grid; grid-template-columns: 105px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e1e6ee; border-radius: 9px; }
.report-return-list time,
.report-return-list > article > span,
.report-return-contracts article > span { min-width: 0; display: grid; gap: 2px; }
.report-return-list small,
.report-return-contracts small { color: var(--muted); font-size: 9px; }
.report-return-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.report-return-contracts article { display: grid; grid-template-columns: 115px minmax(180px,1.4fr) minmax(105px,.65fr) minmax(110px,.7fr) minmax(105px,.65fr) auto auto; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid #e1e6ee; border-radius: 10px; }
.report-return-contracts time { display: grid; gap: 2px; }
.report-return-contracts time strong,
.report-return-contracts article > span > strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.report-return-contract__money { justify-items: end; }
.report-return-contract__money strong { color: #12835c !important; }
.report-empty { min-height: 105px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 16px; color: var(--muted); text-align: center; border: 1px dashed #d5dce7; border-radius: 10px; }
.report-empty strong { color: var(--ink); }

html[data-theme="dark"] body.home-mode .workspace { background: #171717; }
html[data-theme="dark"] .work-center-dialog.is-home-dashboard,
html[data-theme="dark"] .resource-dialog,
html[data-theme="dark"] .resource-header,
html[data-theme="dark"] .attachment-row,
html[data-theme="dark"] .package-row,
html[data-theme="dark"] .activity-row,
html[data-theme="dark"] .maintenance-row,
html[data-theme="dark"] .report-card { border-color: #353535; background: #212121; color: #ececec; }
html[data-theme="dark"] .maintenance-history { border-color: #414141; background: #242424; }
html[data-theme="dark"] .maintenance-history > header,
html[data-theme="dark"] .maintenance-history-row { border-color: #414141; }
html[data-theme="dark"] .maintenance-row.is-overdue { border-color: #704249; background: #3a2528; }
html[data-theme="dark"] .home-command-bar,
html[data-theme="dark"] .resource-header,
html[data-theme="dark"] .resource-toolbar,
html[data-theme="dark"] .report-toolbar,
html[data-theme="dark"] .notification-filters,
html[data-theme="dark"] .attachment-upload,
html[data-theme="dark"] .package-form,
html[data-theme="dark"] .report-kpis { border-color: #353535; background: #1d1d1d; }
html[data-theme="dark"] .home-command-bar > button,
html[data-theme="dark"] .notification-filters button,
html[data-theme="dark"] .attachment-drop,
html[data-theme="dark"] .package-pieces,
html[data-theme="dark"] .report-kpis > div { border-color: #3b3b3b; background: #2b2b2b; color: #ececec; }
html[data-theme="dark"] .global-search-box,
html[data-theme="dark"] .global-search-results i { border-color: #353535; background: #2b2b2b; }
html[data-theme="dark"] .notification-row { background: #292929; }
html[data-theme="dark"] .notification-row.urgency-urgent { background: #382629; }
html[data-theme="dark"] .notification-row.urgency-warning { background: #383225; }
html[data-theme="dark"] .notification-row.type-opportunity:not(.urgency-urgent):not(.urgency-warning) { background: #2d283b; }
html[data-theme="dark"] .notification-row i { background: #363636; }
html[data-theme="dark"] .report-bar-list progress,
html[data-theme="dark"] .report-bar-list progress::-webkit-progress-bar { background: #3a3a3a; }
html[data-theme="dark"] .report-return-kpis > div,
html[data-theme="dark"] .report-return-list > article,
html[data-theme="dark"] .report-return-contracts article { border-color: #3b3b3b; background: #292929; }
html[data-theme="dark"] .report-return-kpis strong,
html[data-theme="dark"] .report-return-contracts time strong,
html[data-theme="dark"] .report-return-contracts article > span > strong,
html[data-theme="dark"] .report-empty strong { color: #ececec; }
html[data-theme="dark"] .report-empty { border-color: #474747; }
html[data-theme="dark"] .home-command-bar kbd,
html[data-theme="dark"] .global-search-box kbd { border-color: #454545; background: #303030; }
html[data-theme="dark"] .notification-button em { border-color: #212121; background: #e34b60; }

@media (hover: hover) and (pointer: fine) and (min-width: 1280px) {
  .header-menu:hover .header-menu__panel,
  .header-menu:focus-within .header-menu__panel { display: block; }
  .header-menu:hover .header-menu__trigger,
  .header-menu:focus-within .header-menu__trigger { border-color: rgba(164, 139, 255, .28); background: linear-gradient(135deg, rgba(124, 88, 239, .82), rgba(94, 64, 199, .82)); color: #fff; }
}

.read-only-banner { position: fixed; top: 12px; left: 50%; z-index: 110; max-width: min(680px, calc(100vw - 32px)); display: flex; align-items: center; gap: 7px; transform: translateX(-50%); padding: 9px 14px; border: 1px solid #cfc5f6; border-radius: 22px; background: #f3f0ff; color: #49348f; box-shadow: 0 8px 24px rgba(47, 35, 92, .16); font-size: 11px; }
.read-only-disabled { cursor: not-allowed !important; opacity: .58; }
body.read-only-mode .work-center-contract__status select { pointer-events: none; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 95; min-width: 50px; height: 50px; display: grid; place-items: center; gap: 0; padding: 5px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: linear-gradient(135deg, #7654eb, #5d3dcc); color: #fff; box-shadow: 0 10px 28px rgba(55, 36, 126, .34); cursor: pointer; }
.back-to-top span { font-size: 21px; line-height: .8; }
.back-to-top b { font-size: 8px; line-height: 1; }
.back-to-top:hover { transform: translateY(-2px); }
html[data-theme="dark"] .read-only-banner { border-color: #4e456e; background: #2b2738; color: #ddd4ff; }

.header-view-actions { height: 0; min-height: 0; padding: 0; border: 0; overflow: visible; }
.theme-toggle {
  position: fixed;
  right: 86px;
  bottom: 24px;
  z-index: 95;
  width: 50px;
  height: 50px;
  border: 1px solid #cfd7e2;
  border-radius: 50%;
  background: #fff;
  color: #344a63;
  box-shadow: 0 10px 28px rgba(32, 47, 71, .2);
}
.theme-toggle:hover { border-color: #9f8aee; background: #f4f1ff; color: var(--brand); transform: translateY(-2px); }
html[data-theme="dark"] .theme-toggle { border-color: #4a4a4a; background: #292929; color: #eee; box-shadow: 0 10px 28px rgba(0,0,0,.38); }

@keyframes workspace-view-enter {
  from { opacity: .45; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.view-entering { animation: workspace-view-enter .24s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .view-entering { animation: none; }
}

@media (max-width: 640px) {
  .read-only-banner { top: 8px; width: calc(100vw - 16px); justify-content: center; border-radius: 12px; text-align: center; }
  .back-to-top { right: 14px; bottom: 14px; }
  .theme-toggle { right: 76px; bottom: 14px; }
}

@media (max-width: 760px) {
  body.home-mode .workspace { padding: 0; }
  .work-center-dialog.is-home-dashboard { min-height: 100%; border: 0; border-radius: 0; }
  .work-center-dialog.is-home-dashboard .work-center-header { padding-top: 18px; }
  .home-command-bar { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .home-command-bar kbd { display: none; }
  .resource-dialog,
  .reports-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 13px; }
  .resource-shell { max-height: calc(100dvh - 12px); }
  .resource-header { align-items: flex-start; padding: 16px; }
  .resource-header h2 { font-size: 18px; }
  .resource-header__actions .button { display: none; }
  .resource-toolbar,
  .report-toolbar { grid-template-columns: 1fr; padding: 12px 14px; }
  .resource-list { padding: 12px 14px 18px; }
  .notification-filters { overflow-x: auto; padding: 10px 14px; }
  .notification-filters button { white-space: nowrap; }
  .notification-row { grid-template-columns: 34px minmax(0,1fr); }
  .notification-row em { grid-column: 2; }
  .attachment-upload,
  .package-form { grid-template-columns: 1fr; padding: 12px 14px; }
  .package-pieces { grid-column: 1; grid-template-columns: 1fr; }
  .attachment-row { grid-template-columns: auto minmax(0,1fr); }
  .attachment-row > div { grid-column: 1 / -1; justify-content: flex-end; }
  .maintenance-row { grid-template-columns: 1fr 1fr; }
  .maintenance-row > span,
  .maintenance-note { grid-column: 1 / -1; }
  .maintenance-row > button { grid-column: 1 / -1; }
  .maintenance-toolbar { grid-template-columns: 1fr; }
  .maintenance-row--tables { grid-template-columns: 1fr 1fr; }
  .maintenance-history-row { grid-template-columns: 1fr; }
  .maintenance-history-row em { text-align: left; }
  .report-kpis { grid-template-columns: 1fr 1fr; padding: 12px 14px; }
  .report-grid { grid-template-columns: 1fr; padding: 12px 14px 18px; }
  .report-bar-list > div { grid-template-columns: minmax(80px,.8fr) minmax(55px,1fr) auto; }
  .report-return-kpis { grid-template-columns: 1fr 1fr; }
  .report-return-list > article { grid-template-columns: 88px minmax(0,1fr); }
  .report-return-list > article .button { grid-column: 1 / -1; width: 100%; }
  .report-return-contracts article { grid-template-columns: 1fr 1fr; gap: 9px; }
  .report-return-contracts time,
  .report-return-contract__client { grid-column: 1 / -1; }
  .report-return-contract__money { justify-items: start; }
  .report-return-contracts .status-badge { justify-self: start; }
  .report-return-contracts .button { justify-self: stretch; }
  .package-picker-control { min-width: 0; }
}

/* Configurações pessoais */
.settings-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--panel); color: var(--ink); box-shadow: 0 28px 80px rgba(12,20,35,.3); }
.settings-shell { min-height: min(760px, calc(100vh - 32px)); display: grid; grid-template-columns: 225px minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; background: #f7f8fc; }
.settings-header { grid-column: 1 / -1; }
.settings-nav { grid-column: 1; grid-row: 2; min-height: 0; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; padding: 18px 14px; border-right: 1px solid #e0e5ed; background: #f1f3f8; scrollbar-gutter: stable; }
.settings-nav button { width: 100%; min-height: 47px; display: grid; grid-template-columns: 31px minmax(0,1fr); align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #43546c; cursor: pointer; text-align: left; }
.settings-nav button i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: var(--brand); font-size: 15px; font-style: normal; box-shadow: 0 2px 7px rgba(31,48,72,.07); }
.settings-nav button span { font-size: 11px; font-weight: 800; }
.settings-nav button:hover { border-color: #d9d2f6; background: #f7f5ff; }
.settings-nav button.is-active { border-color: #c9bdf4; background: var(--brand-soft); color: var(--brand); }
.settings-content { grid-column: 2; grid-row: 2; min-width: 0; overflow: auto; padding: 22px 25px 30px; background: #fff; scrollbar-gutter: stable; }
.settings-section { display: none; }
.settings-section.is-active { display: block; animation: settings-section-in .2s ease-out both; }
@keyframes settings-section-in { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.settings-section__heading { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #e3e7ef; }
.settings-section__heading > span { color: var(--brand); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.settings-section__heading h3 { margin: 4px 0 5px; color: var(--ink); font-size: 22px; }
.settings-section__heading p { max-width: 710px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.settings-logo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px 18px;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #fafbfe;
}
.settings-logo-card__copy { min-width: 0; display: grid; gap: 4px; }
.settings-logo-card__copy strong { color: var(--ink); font-size: 12px; }
.settings-logo-card__copy span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.settings-logo-card__preview { grid-column: 2; grid-row: 1 / span 3; min-height: 94px; display: grid; place-items: center; padding: 10px; border: 1px solid #e1e6ee; border-radius: 10px; background: #fff; }
.settings-logo-card__preview img { max-width: 125px; max-height: 72px; object-fit: contain; }
.settings-logo-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-logo-card > .field-hint { color: var(--muted); font-size: 9px; }
.company-logo-settings.settings-logo-card { grid-template-columns: 1fr; }
.company-logo-settings.settings-logo-card .company-logo-settings__layout { margin-top: 0; }
html[data-theme="dark"] .settings-logo-card { border-color: #373a40; background: #26262a; }
html[data-theme="dark"] .settings-logo-card__preview { border-color: #3b3e45; background: #fff; }

@media (max-width: 640px) {
  .settings-logo-card { grid-template-columns: 1fr; }
  .settings-logo-card__preview { grid-column: 1; grid-row: auto; }
  .settings-logo-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
}
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.settings-stack { display: grid; gap: 11px; }
.settings-control { min-width: 0; display: grid; align-content: start; gap: 7px; padding: 14px; border: 1px solid #dde4ec; border-radius: 11px; background: #fafbfe; }
.settings-control--wide { grid-column: 1 / -1; }
.settings-control > span:first-child { color: #344a63; font-size: 10px; font-weight: 800; }
.settings-control > small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.settings-control select,
.settings-control > input,
.settings-number input { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #cfd9e4; border-radius: 8px; background: #fff; color: var(--ink); }
.settings-color { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 10px; }
.settings-color input { width: 54px; height: 39px; padding: 3px; border: 1px solid #cfd9e4; border-radius: 8px; background: #fff; cursor: pointer; }
.settings-color output { min-height: 39px; display: flex; align-items: center; padding: 8px 11px; border: 1px solid #dbe2ea; border-radius: 8px; background: #fff; color: var(--muted); font-family: Consolas, monospace; font-size: 10px; text-transform: uppercase; }
.settings-number { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.settings-number b { color: var(--muted); font-size: 10px; font-weight: 650; }
.settings-switch { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 14px 15px; border: 1px solid #dde4ec; border-radius: 11px; background: #fafbfe; cursor: pointer; }
.settings-switch > span { min-width: 0; display: grid; gap: 3px; }
.settings-switch strong { color: var(--ink); font-size: 11px; }
.settings-switch small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.settings-switch input { position: absolute; opacity: 0; pointer-events: none; }
.settings-switch i { width: 42px; height: 23px; position: relative; flex: 0 0 auto; border-radius: 999px; background: #c7d0db; transition: background .18s ease; }
.settings-switch i::after { content: ""; width: 17px; height: 17px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(21,38,59,.25); transition: transform .18s ease; }
.settings-switch input:checked + i { background: var(--brand); }
.settings-switch input:checked + i::after { transform: translateX(19px); }
.settings-switch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb,var(--brand),transparent 84%); }
.settings-range { display: grid; gap: 10px; padding: 14px 15px; border: 1px solid #dde4ec; border-radius: 11px; background: #fafbfe; }
.settings-range > span { display: flex; justify-content: space-between; gap: 15px; }
.settings-range strong { font-size: 11px; }
.settings-range small { color: var(--brand); font-size: 10px; font-weight: 800; }
.settings-range input { width: 100%; accent-color: var(--brand); }
.settings-test-actions { display: flex; gap: 9px; padding-top: 4px; }
.settings-data-actions { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: 9px; padding: 14px 15px; border: 1px solid #dde4ec; border-radius: 11px; background: #fafbfe; }
.settings-data-actions span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.settings-footer { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px; border-top: 1px solid #dce3eb; background: #f8f9fc; }
.settings-footer p { margin: 0; color: #a45c1a; font-size: 9px; line-height: 1.4; }
.settings-footer > div { display: flex; gap: 8px; }

html[data-theme="dark"] .settings-shell,
html[data-theme="dark"] .settings-nav,
html[data-theme="dark"] .settings-footer { border-color: #3c3c3c; background: #1c1c1c; }
html[data-theme="dark"] .settings-content { background: #212121; }
html[data-theme="dark"] .settings-nav button { color: #d2d2d2; }
html[data-theme="dark"] .settings-nav button i,
html[data-theme="dark"] .settings-control,
html[data-theme="dark"] .settings-switch,
html[data-theme="dark"] .settings-range { border-color: #414141; background: #292929; }
html[data-theme="dark"] .settings-data-actions { border-color: #414141; background: #292929; }
html[data-theme="dark"] .settings-nav button i,
html[data-theme="dark"] .settings-control select,
html[data-theme="dark"] .settings-control > input,
html[data-theme="dark"] .settings-number input,
html[data-theme="dark"] .settings-color output,
html[data-theme="dark"] .settings-color input { border-color: #4a4a4a; background: #303030; color: #ececec; }
html[data-theme="dark"] .settings-control > span:first-child { color: #dedede; }
html[data-theme="dark"] .settings-nav button.is-active { border-color: #6757a8; background: #332b52; color: #b9a7ff; }

html[data-font-size="small"] { --ui-font-scale: .94; }
html[data-font-size="medium"] { --ui-font-scale: 1; }
html[data-font-size="large"] { --ui-font-scale: 1.09; }
html[data-font-size] body { font-size: calc(14px * var(--ui-font-scale)); }
html[data-font-size="large"] .header-menu__trigger,
html[data-font-size="large"] .header-quick-actions .button,
html[data-font-size="large"] input,
html[data-font-size="large"] select,
html[data-font-size="large"] textarea { font-size: 14px; }
html[data-font-size="small"] .header-menu__trigger,
html[data-font-size="small"] .header-quick-actions .button { font-size: 12px; }
html[data-density="compact"] { --ui-space: .82; }
html[data-density="comfortable"] { --ui-space: 1; }
html[data-density="spacious"] { --ui-space: 1.16; }
html[data-density] .editor-panel { padding-top: calc(22px * var(--ui-space)); padding-bottom: calc(48px * var(--ui-space)); }
html[data-density] .settings-content { padding-top: calc(22px * var(--ui-space)); }
html[data-density="compact"] .work-center-card { min-height: 84px; padding: 9px; }
html[data-density="spacious"] .work-center-card { min-height: 112px; padding: 15px; }

/* Painel operacional 2026: navegação permanente, tabela e coluna de contexto. */
.sidebar-account,
.sidebar-collapse { display: none; }

.home-dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 265px; min-height: 0; }
.home-dashboard-main { min-width: 0; padding: 20px; }
.home-dashboard-side { display: grid; align-content: start; gap: 16px; padding: 20px 20px 20px 0; }
.work-center-dialog.is-home-dashboard .work-center-header { padding: 20px 24px; background: #fff; }
.work-center-dialog.is-home-dashboard .work-center-header h2 { margin: 0 0 4px; font-size: 25px; }
.work-center-icon-button { width: 38px; height: 38px; position: relative; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #465a76; cursor: pointer; font-size: 19px; font-weight: 750; }
.work-center-icon-button:hover { background: #f1efff; color: var(--brand); }

.work-center-dialog.is-home-dashboard .home-command-bar { display: block; padding: 0 0 16px; border: 0; }
.work-center-dialog.is-home-dashboard .home-command-bar > button { width: min(820px, 100%); min-height: 44px; padding: 9px 14px; border-radius: 9px; background: #fff; }
.work-center-dialog.is-home-dashboard .home-command-bar > button > span:first-child { width: 27px; height: 27px; background: transparent; font-size: 21px; }
.work-center-dialog.is-home-dashboard .home-command-bar kbd { font-size: 10px; }

.work-center-dialog.is-home-dashboard .work-center-cards { grid-template-columns: repeat(7, minmax(125px, 1fr)); gap: 10px; padding: 0 0 14px; overflow: auto; border: 0; }
.work-center-dialog.is-home-dashboard .work-center-card { min-height: 108px; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 5px 7px; padding: 13px 12px; border-color: #e1e6ef; background: #fff; box-shadow: 0 2px 8px rgba(29, 41, 67, .025); }
.work-center-dialog.is-home-dashboard .work-center-card i { width: 30px; height: 30px; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: 9px; background: #f0edff; color: var(--brand); font-style: normal; font-weight: 850; }
.work-center-dialog.is-home-dashboard .work-center-card span { align-self: center; font-size: 10px; }
.work-center-dialog.is-home-dashboard .work-center-card strong { font-size: 20px; }
.work-center-dialog.is-home-dashboard .work-center-card small { grid-column: 2 / -1; }

.work-center-alerts { margin-bottom: 14px; padding: 12px; border: 1px solid #f1d9dc; border-radius: 11px; background: linear-gradient(90deg, #fff9f9, #fff); }
.work-center-alerts > header { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px; }
.work-center-alerts > header strong { color: #ca3547; font-size: 11px; }
.work-center-alerts > header span { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #df5262; color: #fff; font-size: 9px; font-weight: 850; }
.work-center-alerts > header button { margin-left: auto; border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: 10px; font-weight: 750; }
.work-center-alerts > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.work-center-alerts > div > button { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e7e8ef; border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.work-center-alerts > div > button:hover { border-color: #cabef7; }
.work-center-alerts > div > button i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff0f2; color: #d74455; font-style: normal; font-weight: 850; }
.work-center-alerts > div > button span { min-width: 0; display: grid; gap: 3px; }
.work-center-alerts > div > button strong,
.work-center-alerts > div > button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-center-alerts > div > button strong { font-size: 10px; }
.work-center-alerts > div > button small { color: var(--muted); font-size: 8px; }
.work-center-alerts > div > button b { color: var(--muted); font-size: 18px; }
.work-center-alerts > div > p { grid-column: 1 / -1; margin: 3px; color: var(--muted); font-size: 10px; }

.work-center-dialog.is-home-dashboard .work-center-toolbar { grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(110px, .62fr)) auto; align-items: end; gap: 8px; padding: 12px; border: 1px solid #e0e5ee; border-bottom: 0; border-radius: 11px 11px 0 0; background: #fff; }
.work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search span { font-size: 8px; }
.work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search input,
.work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search select { min-height: 36px; padding: 7px 9px; font-size: 10px; }
.work-center-filter-chips { min-height: 32px; display: flex; align-items: center; gap: 6px; padding: 6px 12px; overflow-x: auto; border-right: 1px solid #e0e5ee; border-left: 1px solid #e0e5ee; background: #fafbfe; }
.work-center-filter-chips span { flex: 0 0 auto; padding: 5px 8px; border-radius: 5px; background: #e9f2ff; color: #356da7; font-size: 8px; font-weight: 750; }
.work-center-dialog.is-home-dashboard .work-center-list-heading { padding: 10px 12px; border: 1px solid #e0e5ee; border-bottom: 0; }
.work-center-table-head { display: grid; grid-template-columns: 78px 108px minmax(180px, 1.35fr) minmax(130px, .9fr) 105px 85px 85px 118px; gap: 8px; padding: 9px 12px; border: 1px solid #e0e5ee; background: #f7f9fc; color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.work-center-dialog.is-home-dashboard .work-center-list { min-height: 250px; padding: 0; overflow: visible; border-right: 1px solid #e0e5ee; border-left: 1px solid #e0e5ee; }
.work-center-dialog.is-home-dashboard .work-center-contract { grid-template-columns: minmax(0, 1fr) 118px; min-height: 58px; margin: 0; overflow: visible; border: 0; border-bottom: 1px solid #e7eaf0; border-radius: 0; }
.work-center-dialog.is-home-dashboard .work-center-contract__open { grid-template-columns: 78px 108px minmax(180px, 1.35fr) minmax(130px, .9fr) 105px 85px 85px; gap: 8px; padding: 9px 12px; }
.work-center-dialog.is-home-dashboard .work-center-contract__open time,
.work-center-contract__client,
.work-center-contract__service { min-width: 0; display: grid; gap: 3px; }
.work-center-dialog.is-home-dashboard .work-center-contract__open time strong { color: var(--ink); font-size: 9px; }
.work-center-dialog.is-home-dashboard .work-center-contract__open time small,
.work-center-contract__number,
.work-center-contract__service small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.work-center-contract__number { color: #526881; }
.work-center-contract__service strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.work-center-dialog.is-home-dashboard .work-center-contract__client strong { font-size: 9px; }
.work-center-dialog.is-home-dashboard .work-center-contract__total { font-size: 9px; text-align: right; white-space: nowrap; }
.work-center-dialog.is-home-dashboard .work-center-contract__balance { justify-items: end; }
.work-center-dialog.is-home-dashboard .work-center-contract__balance small { display: none; }
.work-center-dialog.is-home-dashboard .work-center-contract__balance strong { color: #249166; font-size: 9px; }
.work-center-dialog.is-home-dashboard .work-center-contract__status { padding: 9px 10px; border-left: 0; background: #fff; }
.work-center-dialog.is-home-dashboard .work-center-contract__status > span { display: none; }
.work-center-dialog.is-home-dashboard .work-center-contract__status select { min-height: 32px; font-size: 9px; }
.work-center-pagination { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid #e0e5ee; border-top: 0; border-radius: 0 0 11px 11px; color: var(--muted); font-size: 9px; }
.work-center-pagination > div { display: flex; align-items: center; gap: 5px; }
.work-center-pagination button { min-width: 28px; height: 28px; border: 1px solid #e0e5ee; border-radius: 7px; background: #fff; color: var(--ink); cursor: pointer; font-size: 10px; }
.work-center-pagination button.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.work-center-pagination button:disabled { opacity: .4; cursor: default; }
.work-center-pagination em { color: var(--muted); font-style: normal; }

.home-side-card { overflow: hidden; border: 1px solid #e0e5ee; border-radius: 11px; background: #fff; }
.home-side-card > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-bottom: 1px solid #e6e9ef; }
.home-side-card > header > span { min-width: 0; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 2px 7px; }
.home-side-card > header i { width: 25px; height: 25px; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: 7px; background: #f0edff; color: var(--brand); font-style: normal; }
.home-side-card > header strong { font-size: 11px; }
.home-side-card > header small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.home-side-card > header button,
.home-side-card > button { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: 9px; font-weight: 750; }
.home-side-card > button { width: 100%; padding: 11px 12px; border-top: 1px solid #e8ebf0; text-align: left; }
.home-side-card > div { padding: 5px 12px; }
.home-side-card > div > button { width: 100%; display: grid; grid-template-columns: 38px 8px minmax(0, 1fr); align-items: start; gap: 7px; padding: 10px 0; border: 0; border-bottom: 1px solid #eceef3; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.home-side-card > div > button:last-child { border-bottom: 0; }
.home-side-card > div > button time { font-size: 9px; font-weight: 750; }
.home-side-card > div > button > i { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--brand); }
.home-side-card > div > button.urgency-urgent > i { background: #dd4053; }
.home-side-card > div > button.urgency-warning > i { background: #de941e; }
.home-side-card > div > button.type-opportunity:not(.urgency-urgent):not(.urgency-warning) > i { background: #7048e8; }
.home-side-card > div > button span { min-width: 0; display: grid; gap: 3px; }
.home-side-card > div > button strong,
.home-side-card > div > button small { overflow: hidden; text-overflow: ellipsis; }
.home-side-card > div > button strong { font-size: 9px; }
.home-side-card > div > button small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.home-side-card > div > button em { width: fit-content; padding: 3px 5px; border-radius: 8px; background: #f0edff; color: var(--brand); font-size: 7px; font-style: normal; }
.home-side-card > div > p { margin: 12px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

@media (min-width: 1280px) {
  body { grid-template-columns: 238px minmax(0, 1fr); transition: grid-template-columns .22s ease; }
  .app-header { width: 238px; padding: 18px 11px 12px; gap: 14px; transition: width .22s ease; }
  .brand { justify-items: start; padding: 2px 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .brand img { width: 170px; padding: 0; background: transparent; box-shadow: none; }
  .brand > div:not(.online-status) { text-align: left; }
  .brand > div:not(.online-status) strong { font-size: 13px; }
  .brand > div:not(.online-status) span { display: none; }
  .brand > .online-status { display: none; }
  .header-actions { gap: 8px; overflow-y: auto; scrollbar-width: thin; }
  .header-menus { gap: 12px; }
  .header-menus::before { content: "VISÃO GERAL"; padding: 0 12px; }
  .header-menu { display: grid; gap: 3px; }
  .header-menu__trigger { min-height: auto; padding: 3px 12px; color: #91a0b8; cursor: default; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
  .header-menu__trigger::before,
  .header-menu__trigger i { display: none; }
  .header-menu__trigger:hover,
  .header-menu.is-open .header-menu__trigger { border-color: transparent; background: transparent; color: #91a0b8; }
  .header-menu__panel,
  .header-menu.is-open .header-menu__panel { position: static; width: 100%; max-height: none; display: block !important; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .header-menu__heading,
  .header-menu__separator { display: none; }
  .header-menu__item { min-height: 34px; grid-template-columns: 27px minmax(0, 1fr); gap: 7px; padding: 4px 9px; border-radius: 7px; color: #e4e9f2; }
  .header-menu__item > i { width: 25px; height: 25px; background: transparent; color: #bac6d7; font-size: 12px; }
  .header-menu__item strong { font-size: 10.5px; }
  .header-menu__item small { display: none; }
  .header-menu__item:hover,
  .header-menu__item:focus-visible { background: linear-gradient(90deg, rgba(109,76,232,.75), rgba(109,76,232,.22)); color: #fff; }
  .header-menu__item:hover > i { color: #fff; }
  .sidebar-account { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; margin-top: auto; padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.09); color: #fff; }
  .sidebar-account__avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #8a6cff, #4d2bc4); font-size: 10px; font-weight: 850; }
  .sidebar-account > span:last-child { min-width: 0; display: grid; gap: 2px; }
  .sidebar-account strong,
  .sidebar-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-account strong { font-size: 10px; }
  .sidebar-account small { color: #aeb9ca; font-size: 8px; }
  .sidebar-collapse { width: 100%; min-height: 35px; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 0; border-top: 1px solid rgba(255,255,255,.09); background: transparent; color: #dce4ef; cursor: pointer; text-align: left; }
  .sidebar-collapse span { font-size: 18px; }
  .sidebar-collapse strong { font-size: 9px; }
  .header-quick-actions { flex: 0 0 auto; }
  body.home-mode .header-quick-actions { display: none; }
  body.home-mode #openWorkCenter { background: linear-gradient(90deg, rgba(109,76,232,.82), rgba(109,76,232,.25)); color: #fff; }
  body.home-mode #openWorkCenter > i { color: #fff; }
  body.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
  body.sidebar-collapsed .app-header { width: 76px; padding-inline: 8px; }
  body.sidebar-collapsed .brand { justify-items: center; padding-inline: 0; }
  body.sidebar-collapsed .brand img { width: 55px; }
  body.sidebar-collapsed .brand > div,
  body.sidebar-collapsed .header-menus::before,
  body.sidebar-collapsed .header-menu__panel,
  body.sidebar-collapsed .sidebar-account > span:last-child,
  body.sidebar-collapsed .sidebar-collapse strong,
  body.sidebar-collapsed .header-quick-actions { display: none !important; }
  body.sidebar-collapsed .header-menu__trigger { min-height: 37px; justify-content: center; padding: 6px; cursor: pointer; font-size: 0; }
  body.sidebar-collapsed .header-menu__trigger::first-letter { font-size: 11px; }
  body.sidebar-collapsed .sidebar-account { grid-template-columns: 1fr; justify-items: center; padding-inline: 0; }
  body.sidebar-collapsed .sidebar-collapse { justify-content: center; }
  .workspace { grid-column: 2; }
}

@media (max-width: 1500px) {
  .home-dashboard-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar { grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(120px, .55fr)) auto; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar label:nth-child(4),
  .work-center-dialog.is-home-dashboard .work-center-toolbar label:nth-child(5) { grid-row: 2; }
  .work-center-table-head { grid-template-columns: 70px 95px minmax(155px, 1.25fr) minmax(115px, .85fr) 96px 76px 76px 105px; }
  .work-center-dialog.is-home-dashboard .work-center-contract__open { grid-template-columns: 70px 95px minmax(155px, 1.25fr) minmax(115px, .85fr) 96px 76px 76px; }
}

@media (max-width: 1450px) {
  .home-dashboard-layout { display: block; }
  .home-dashboard-side { grid-template-columns: 1fr 1fr; padding: 0 20px 20px; }
}

@media (max-width: 920px) {
  .home-dashboard-main { padding: 14px; }
  .home-dashboard-side { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .work-center-dialog.is-home-dashboard .work-center-header { align-items: flex-start; padding: 16px 14px; }
  .work-center-dialog.is-home-dashboard .work-center-header__actions { width: 100%; grid-template-columns: 1fr 1fr repeat(3, 38px); }
  .work-center-alerts > div { grid-template-columns: 1fr; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar { grid-template-columns: 1fr 1fr; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar .work-center-search { grid-column: 1 / -1; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar label:nth-child(4),
  .work-center-dialog.is-home-dashboard .work-center-toolbar label:nth-child(5) { grid-row: auto; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar .button { width: 100%; }
  .work-center-table-head { display: none; }
  .work-center-dialog.is-home-dashboard .work-center-list { padding: 8px; }
  .work-center-dialog.is-home-dashboard .work-center-contract { grid-template-columns: 1fr; margin-bottom: 8px; overflow: hidden; border: 1px solid #e0e5ee; border-radius: 9px; }
  .work-center-dialog.is-home-dashboard .work-center-contract__open { grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
  .work-center-contract__number { justify-self: end; }
  .work-center-contract__client,
  .work-center-contract__service { grid-column: 1 / -1; }
  .work-center-dialog.is-home-dashboard .work-center-contract__open .status-badge,
  .work-center-dialog.is-home-dashboard .work-center-contract__total,
  .work-center-dialog.is-home-dashboard .work-center-contract__balance { grid-column: auto; justify-self: start; }
  .work-center-dialog.is-home-dashboard .work-center-contract__status { border-top: 1px solid #e0e5ee; }
}

@media (max-width: 560px) {
  .work-center-dialog.is-home-dashboard .work-center-header__actions { grid-template-columns: 1fr 1fr; }
  .work-center-icon-button { display: none; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar { grid-template-columns: 1fr; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar .work-center-search { grid-column: auto; }
  .work-center-pagination { align-items: flex-start; flex-direction: column; }
}

html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-header,
html[data-theme="dark"] .home-dashboard-main,
html[data-theme="dark"] .home-dashboard-side { background: #171717; }
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .home-command-bar > button,
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-card,
html[data-theme="dark"] .work-center-alerts,
html[data-theme="dark"] .work-center-alerts > div > button,
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-toolbar,
html[data-theme="dark"] .work-center-filter-chips,
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-list-heading,
html[data-theme="dark"] .work-center-table-head,
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-contract,
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-contract__status,
html[data-theme="dark"] .work-center-pagination,
html[data-theme="dark"] .work-center-pagination button,
html[data-theme="dark"] .home-side-card { border-color: #363636; background: #212121; color: #ececec; }
html[data-theme="dark"] .work-center-table-head,
html[data-theme="dark"] .work-center-filter-chips { background: #1c1c1c; }
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

html[data-high-contrast="true"] { --muted: #4f5e72; --line: #bcc7d5; }
html[data-theme="dark"][data-high-contrast="true"] { --muted: #c8c8c8; --line: #666; }
html[data-high-contrast="true"] input,
html[data-high-contrast="true"] select,
html[data-high-contrast="true"] textarea,
html[data-high-contrast="true"] .button { border-width: 2px; }
html[data-reduce-transparency="true"] .app-header,
html[data-reduce-transparency="true"] dialog::backdrop,
html[data-reduce-transparency="true"] .modal-overlay { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

body.home-mode .workspace,
body.page-mode .workspace,
body:not(.home-mode) .workspace { background: var(--app-background) !important; }
@media (min-width: 1280px) {
  html[data-theme] .app-header { background: var(--sidebar-background); }
}

@media (max-width: 760px) {
  .settings-shell { min-height: 100dvh; display: block; }
  .settings-header { position: sticky; top: 0; z-index: 4; }
  .settings-nav { position: sticky; top: 82px; z-index: 3; display: flex; flex-direction: row; gap: 6px; overflow-x: auto; padding: 9px 10px; border-right: 0; border-bottom: 1px solid #e0e5ed; scrollbar-width: none; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav button { width: auto; min-width: max-content; min-height: 40px; grid-template-columns: 25px auto; padding: 6px 10px; }
  .settings-nav button i { width: 24px; height: 24px; font-size: 12px; }
  .settings-content { overflow: visible; padding: 18px 14px 24px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-control--wide { grid-column: 1; }
  .settings-footer { position: sticky; bottom: 0; z-index: 4; align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 12px; }
  .settings-footer p { text-align: center; }
  .settings-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .settings-footer > div .button:last-child { grid-column: 1 / -1; }
  .settings-test-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .settings-data-actions { grid-template-columns: 1fr 1fr; }
  .settings-data-actions span { grid-column: 1 / -1; }
}

@media (hover: none), (pointer: coarse) {
  html[data-large-touch-targets="true"] button,
  html[data-large-touch-targets="true"] .button,
  html[data-large-touch-targets="true"] select { min-height: 46px; }
  html[data-large-touch-targets="true"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]) { min-height: 46px; }
}

/* No celular, a página inteira é a superfície de rolagem. Isso evita que
   áreas internas capturem o gesto e interrompam o arraste no Android. */
@media (max-width: 920px) {
  html,
  body {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .workspace,
  body.home-mode .workspace,
  body.page-mode .workspace,
  body:not(.home-mode) .workspace,
  .editor-panel,
  dialog.workspace-page,
  dialog.workspace-page > .financial-shell,
  dialog.workspace-page > .client-history-shell,
  dialog.workspace-page > .messages-shell,
  dialog.workspace-page > .calendar-shell,
  dialog.workspace-page > .inventory-shell,
  dialog.workspace-page > .checklist-shell,
  dialog.workspace-page > .backup-shell,
  dialog.workspace-page > .admin-shell,
  dialog.workspace-page > .settings-shell,
  dialog.workspace-page > .resource-shell {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  dialog.workspace-page .financial-content,
  dialog.workspace-page .calendar-content,
  dialog.workspace-page .client-history-content,
  dialog.workspace-page .resource-list,
  dialog.workspace-page .inventory-list,
  dialog.workspace-page .checklist-list,
  dialog.workspace-page .admin-list,
  dialog.workspace-page .backup-list {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto;
    touch-action: pan-y;
  }

  /* A Central usa um dialog embutido na página. No Android/iOS, qualquer
     overflow oculto nesse caminho interrompe o gesto antes de chegar à página. */
  body.home-mode,
  body.home-mode .workspace,
  body.home-mode .work-center-dialog.is-home-dashboard,
  body.home-mode .work-center-dialog.is-home-dashboard .work-center-shell,
  body.home-mode .work-center-dialog.is-home-dashboard .work-center-list {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  body.home-mode .work-center-dialog.is-home-dashboard {
    display: block;
    min-height: 100dvh;
  }

  body.home-mode .work-center-dialog.is-home-dashboard .work-center-shell {
    display: block;
    min-height: 100dvh;
  }

  body.home-mode .work-center-cards {
    touch-action: pan-x pan-y;
  }

  html.modal-background-locked,
  body.modal-background-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
  }
}

.status-celebration {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.16), transparent 48%);
  transition: opacity .18s ease;
}

.status-celebration.is-visible { opacity: 1; }

.status-celebration__card {
  position: relative;
  z-index: 2;
  min-width: min(360px, calc(100vw - 42px));
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px 30px 22px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  color: #17243a;
  box-shadow: 0 26px 75px rgba(20,30,47,.28);
  transform: scale(.76) translateY(18px);
  animation: celebration-card-in .42s cubic-bezier(.2,1.35,.35,1) forwards;
  backdrop-filter: blur(10px);
}

.status-celebration__icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 50%;
  color: #fff;
  font-size: 35px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(31,75,56,.24);
}

.status-celebration--paid .status-celebration__icon { background: linear-gradient(145deg, #27a766, #167a49); }
.status-celebration--complete .status-celebration__icon { background: linear-gradient(145deg, #8a68f2, #6040d5); }
.status-celebration__title { font-size: 22px; }
.status-celebration__copy { color: #66758a; font-size: 12px; }
.status-celebration__particles { position: absolute; inset: 0; z-index: 1; }

.celebration-money,
.celebration-confetti {
  position: absolute;
  left: 50%;
  top: -12%;
  --drift: 0vw;
  --spin: 520deg;
  animation: celebration-fall 1.8s cubic-bezier(.18,.74,.34,1) 0s forwards;
}

.celebration-money {
  color: #169553;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 3px 8px rgba(19,105,61,.2);
}

.celebration-confetti {
  width: 10px;
  height: 22px;
  border-radius: 3px;
  background: #6d4ce8;
}
.celebration-size-0 { font-size: 20px; }
.celebration-size-1 { font-size: 25px; }
.celebration-size-2 { font-size: 30px; }
.celebration-size-3 { font-size: 35px; }
.celebration-color-0 { background: #6d4ce8; }
.celebration-color-1 { background: #eb4f67; }
.celebration-color-2 { background: #f5ad2d; }
.celebration-color-3 { background: #28a86b; }
.celebration-color-4 { background: #3795e8; }
.status-celebration__particles > i:nth-child(10n+1) { left: 3%; animation-delay: .04s; animation-duration: 1.55s; --drift: 8vw; --spin: 430deg; }
.status-celebration__particles > i:nth-child(10n+2) { left: 14%; animation-delay: .2s; animation-duration: 1.9s; --drift: -6vw; --spin: 610deg; }
.status-celebration__particles > i:nth-child(10n+3) { left: 25%; animation-delay: .08s; animation-duration: 1.72s; --drift: 10vw; --spin: 520deg; }
.status-celebration__particles > i:nth-child(10n+4) { left: 36%; animation-delay: .3s; animation-duration: 2.05s; --drift: -8vw; --spin: 720deg; }
.status-celebration__particles > i:nth-child(10n+5) { left: 47%; animation-delay: .14s; animation-duration: 1.66s; --drift: 5vw; --spin: 480deg; }
.status-celebration__particles > i:nth-child(10n+6) { left: 58%; animation-delay: .36s; animation-duration: 1.95s; --drift: -7vw; --spin: 650deg; }
.status-celebration__particles > i:nth-child(10n+7) { left: 69%; animation-delay: .1s; animation-duration: 1.8s; --drift: 7vw; --spin: 560deg; }
.status-celebration__particles > i:nth-child(10n+8) { left: 78%; animation-delay: .26s; animation-duration: 2.08s; --drift: -9vw; --spin: 700deg; }
.status-celebration__particles > i:nth-child(10n+9) { left: 88%; animation-delay: .17s; animation-duration: 1.7s; --drift: 4vw; --spin: 470deg; }
.status-celebration__particles > i:nth-child(10n) { left: 96%; animation-delay: .4s; animation-duration: 2s; --drift: -10vw; --spin: 680deg; }

@keyframes celebration-card-in {
  to { transform: scale(1) translateY(0); }
}

.contract-empty-items { padding: 4mm; text-align: center; }

@keyframes celebration-fall {
  0% { transform: translate3d(0,-8vh,0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate3d(var(--drift),112vh,0) rotate(var(--spin)); opacity: .92; }
}

html[data-theme="dark"] .status-celebration__card {
  border-color: #484848;
  background: rgba(45,45,45,.96);
  color: #f2f2f2;
  box-shadow: 0 26px 75px rgba(0,0,0,.54);
}
html[data-theme="dark"] .status-celebration__copy { color: #b9b9b9; }

@media (prefers-reduced-motion: reduce) {
  .status-celebration__card { animation: none; transform: none; }
  .status-celebration__particles { display: none; }
}

/* Ajuste fino v38: proporções e iconografia alinhadas ao painel de referência. */
body { font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }
.work-center-dialog.is-home-dashboard { width: 100%; max-width: none; }
.work-center-header__actions .button svg,
.work-center-icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.work-center-header__actions .button { gap: 7px; font-size: 12px; font-weight: 700; }
.work-center-dialog.is-home-dashboard .work-center-header h2 { font-size: 27px; font-weight: 750; letter-spacing: -.025em; }
.work-center-dialog.is-home-dashboard .work-center-header p { font-size: 12px; letter-spacing: 0; text-transform: none; }
.work-center-dialog.is-home-dashboard .home-command-bar > button { min-height: 48px; }
.work-center-dialog.is-home-dashboard .home-command-bar strong { font-size: 12.5px; font-weight: 600; }
.work-center-dialog.is-home-dashboard .work-center-card { min-height: 116px; }
.work-center-dialog.is-home-dashboard .work-center-card i { width: 34px; height: 34px; }
.work-center-dialog.is-home-dashboard .work-center-card i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.work-center-dialog.is-home-dashboard .work-center-card span { font-size: 11.5px; font-weight: 700; }
.work-center-dialog.is-home-dashboard .work-center-card strong { font-size: 24px; font-weight: 750; }
.work-center-dialog.is-home-dashboard .work-center-card small { font-size: 9.5px; line-height: 1.45; }
.work-center-alerts > header strong { font-size: 12px; }
.work-center-alerts > header button { font-size: 10.5px; }
.work-center-alerts > div > button strong { font-size: 11px; }
.work-center-alerts > div > button small { font-size: 9px; }
.work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search span { font-size: 9px; }
.work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search input,
.work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search select { font-size: 11px; }
.work-center-list-heading strong { font-size: 14px; }
.work-center-list-heading small { font-size: 10px; }
.work-center-table-head { font-size: 9px; }
.work-center-dialog.is-home-dashboard .work-center-contract__open time strong,
.work-center-dialog.is-home-dashboard .work-center-contract__client strong,
.work-center-contract__service strong,
.work-center-dialog.is-home-dashboard .work-center-contract__total,
.work-center-dialog.is-home-dashboard .work-center-contract__balance strong { font-size: 10.5px; }
.work-center-dialog.is-home-dashboard .work-center-contract__open time small,
.work-center-contract__number,
.work-center-contract__service small,
.work-center-dialog.is-home-dashboard .work-center-contract__client small { font-size: 9px; }
.work-center-dialog.is-home-dashboard .work-center-contract__status select { font-size: 10px; }
.home-side-card > header strong { font-size: 12px; }
.home-side-card > header small { font-size: 9px; }
.home-side-card > div > button strong { font-size: 10.5px; line-height: 1.35; }
.home-side-card > div > button small { font-size: 9px; }
#workCenterNotifications > button { grid-template-columns: 9px minmax(0, 1fr); gap: 9px; }
#workCenterNotifications > button > i { grid-column: 1; }
#workCenterNotifications > button > span { grid-column: 2; }

@media (min-width: 1280px) {
  body { grid-template-columns: 252px minmax(0, 1fr); }
  .app-header { width: 252px; padding: 20px 13px 13px; }
  .brand { gap: 11px; padding: 0 10px 15px; }
  .brand img { width: 176px; }
  .brand > div:not(.online-status) strong { font-size: 14px; font-weight: 700; }
  .header-actions { scrollbar-color: rgba(255,255,255,.25) transparent; }
  .header-menus { gap: 15px; }
  .header-menus::before,
  .header-menu__trigger { padding-inline: 11px; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
  .header-menu__item { min-height: 39px; grid-template-columns: 31px minmax(0, 1fr); gap: 8px; padding: 5px 10px; }
  .header-menu__item > i { width: 29px; height: 29px; color: #aebbd0; }
  .header-menu__item > i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .header-menu__item strong { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
  .header-menu__item:hover,
  .header-menu__item:focus-visible,
  body.home-mode #openWorkCenter { background: linear-gradient(90deg, rgba(94,67,210,.95), rgba(84,59,188,.52)); }
  .sidebar-account strong { font-size: 11.5px; }
  .sidebar-account small { font-size: 9px; }
  .sidebar-collapse strong { font-size: 10.5px; }
  body.home-mode .workspace { padding: 18px; }
}

@media (min-width: 1600px) {
  .home-dashboard-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .home-dashboard-main { padding: 24px; }
  .home-dashboard-side { padding: 24px 24px 24px 0; }
  .work-center-dialog.is-home-dashboard .work-center-header { padding: 22px 28px; }
}

@media (max-width: 1279px) {
  .work-center-dialog.is-home-dashboard { width: min(1180px, 100%); }
}

@media (max-width: 920px) {
  .work-center-dialog.is-home-dashboard .work-center-header h2 { font-size: 23px; }
  .work-center-dialog.is-home-dashboard .work-center-card span { font-size: 11px; }
  .work-center-dialog.is-home-dashboard .work-center-card small { font-size: 9px; }
  .home-side-card > div > button strong { font-size: 11px; }
}

/* Tabela alinhada e menu de ações compacto — v39. */
.work-center-dialog.is-home-dashboard {
  --work-center-columns: 88px 118px minmax(210px, 1.45fr) minmax(145px, 1fr) 118px 96px 96px 74px;
}
.work-center-table-head,
.work-center-dialog.is-home-dashboard .work-center-contract {
  grid-template-columns: var(--work-center-columns);
  column-gap: 0;
}
.work-center-table-head { padding: 0; }
.work-center-table-head > span { display: flex; align-items: center; min-width: 0; padding: 10px 8px; }
.work-center-dialog.is-home-dashboard .work-center-contract { position: relative; overflow: visible; }
.work-center-dialog.is-home-dashboard .work-center-contract.is-actions-open { z-index: 60; }
.work-center-dialog.is-home-dashboard .work-center-contract__open {
  grid-column: 1 / 8;
  grid-template-columns: subgrid;
  gap: 0;
  padding: 0;
}
.work-center-dialog.is-home-dashboard .work-center-contract__open > * { min-width: 0; padding: 11px 8px; }
.work-center-dialog.is-home-dashboard .work-center-contract__open .status-badge { align-self: center; margin-inline: 8px; padding: 5px 8px; }
.work-center-dialog.is-home-dashboard .work-center-contract__open .work-center-contract__total,
.work-center-dialog.is-home-dashboard .work-center-contract__open .work-center-contract__balance { align-self: stretch; display: flex; align-items: center; justify-content: flex-end; }
.work-center-contract__actions { grid-column: 8; position: relative; display: grid; place-items: center; padding: 8px; background: #fff; }
.work-center-contract.is-actions-open .work-center-contract__actions { z-index: 61; }
.work-center-actions-toggle { width: 39px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #dce3ec; border-radius: 9px; background: #fff; color: #42566e; cursor: pointer; }
.work-center-actions-toggle:hover,
.work-center-actions-toggle[aria-expanded="true"] { border-color: #b8a9f2; background: #f2efff; color: var(--brand); }
.work-center-actions-toggle span { margin-top: -5px; font-size: 16px; font-weight: 850; letter-spacing: 1px; line-height: 1; }
.work-center-actions-menu { position: absolute; top: calc(50% + 20px); right: 8px; z-index: 45; width: 236px; max-height: min(430px, calc(100vh - 32px)); overflow-y: auto; padding: 7px; border: 1px solid #dce3ec; border-radius: 11px; background: #fff; box-shadow: 0 16px 38px rgba(20, 31, 52, .18); scrollbar-width: thin; }
.work-center-actions-menu.is-upward { top: auto; bottom: calc(50% + 20px); }
.work-center-actions-menu.is-side { position: fixed; top: var(--actions-menu-top, 8px); right: auto; bottom: auto; left: var(--actions-menu-left, 8px); z-index: 1000; }
.work-center-actions-menu > button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 650; text-align: left; }
.work-center-actions-menu > button:hover { background: var(--brand-soft); color: var(--brand); }
.work-center-actions-menu > button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.work-center-actions-menu__title { display: block; margin: 4px 5px 3px; padding: 8px 5px 5px; border-top: 1px solid #e8ebf0; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.work-center-actions-menu > .work-center-status-action { min-height: 31px; padding-block: 6px; font-size: 10px; font-weight: 600; }
.work-center-status-action > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #8795a6; }
.work-center-status-action > span { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-center-status-action > b { color: var(--brand); font-size: 12px; }
.work-center-status-action.is-current { background: var(--brand-soft); color: var(--brand); }
.work-center-status-action [data-status-dot="aguardando"],
.work-center-status-action [data-status-dot="parcial"] { background: #e3a12b; }
.work-center-status-action [data-status-dot="confirmado"],
.work-center-status-action [data-status-dot="retirado"] { background: #448fdf; }
.work-center-status-action [data-status-dot="quitado"],
.work-center-status-action [data-status-dot="concluido"] { background: #27a86c; }
.work-center-status-action [data-status-dot="separacao"] { background: #7c58ef; }
.work-center-status-action [data-status-dot="devolvido"] { background: #2399a4; }
.work-center-status-action [data-status-dot="cancelado"] { background: #dc4d5d; }

/* Ações principais do cabeçalho — v51. */
.work-center-dialog.is-home-dashboard .work-center-header__actions { gap: 14px; }
.work-center-dialog.is-home-dashboard #workCenterNew,
.work-center-dialog.is-home-dashboard #workCenterCalendar {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 9px;
  font-weight: 700;
}
.work-center-dialog.is-home-dashboard #workCenterNew {
  border-color: #6533df;
  background: linear-gradient(135deg, #7338ef 0%, #5d24d7 100%);
  color: #fff;
  box-shadow: 0 8px 19px rgba(96, 46, 220, .28);
}
.work-center-dialog.is-home-dashboard #workCenterNew:hover {
  border-color: #5621c8;
  background: linear-gradient(135deg, #6930e5 0%, #5220c4 100%);
  box-shadow: 0 10px 23px rgba(96, 46, 220, .34);
}
.work-center-dialog.is-home-dashboard #workCenterCalendar {
  border-color: #dfe4ec;
  background: #fff;
  color: #1c293b;
  box-shadow: 0 5px 14px rgba(25, 39, 61, .09);
}
.work-center-dialog.is-home-dashboard #workCenterCalendar:hover {
  border-color: #c8d0dc;
  background: #f9fafc;
  color: #17243a;
}
.work-center-dialog.is-home-dashboard #workCenterNew svg { width: 19px; height: 19px; }
.work-center-dialog.is-home-dashboard #workCenterCalendar svg { width: 20px; height: 20px; }
.work-center-dialog.is-home-dashboard .work-center-icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  color: #506079;
}
.work-center-dialog.is-home-dashboard .work-center-icon-button svg { width: 25px; height: 25px; stroke-width: 1.7; }
.work-center-dialog.is-home-dashboard .work-center-icon-button:hover { background: #f0edff; color: #6336dd; }
.work-center-dialog.is-home-dashboard .notification-button em { top: -2px; right: -3px; }
html[data-theme="dark"] .work-center-dialog.is-home-dashboard #workCenterCalendar {
  border-color: #444;
  background: #292929;
  color: #ececec;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
}
html[data-theme="dark"] .work-center-dialog.is-home-dashboard #workCenterCalendar:hover { background: #333; border-color: #555; }

html[data-theme="dark"] .work-center-contract__actions,
html[data-theme="dark"] .work-center-actions-toggle,
html[data-theme="dark"] .work-center-actions-menu { border-color: #3b3b3b; background: #212121; color: #ececec; }
html[data-theme="dark"] .work-center-actions-menu__title { border-color: #3b3b3b; }
html[data-theme="dark"] .work-center-status-action.is-current { background: #302a4a; color: #c3b5ff; }

@media (max-width: 1500px) and (min-width: 921px) {
  .work-center-dialog.is-home-dashboard { --work-center-columns: 80px 105px minmax(180px, 1.35fr) minmax(125px, .9fr) 108px 88px 88px 70px; }
}

@media (max-width: 920px) {
  .work-center-dialog.is-home-dashboard .work-center-contract { grid-template-columns: 1fr; }
  .work-center-dialog.is-home-dashboard .work-center-contract__open { grid-column: 1; grid-template-columns: 88px minmax(0, 1fr); padding: 9px 12px; }
  .work-center-dialog.is-home-dashboard .work-center-contract__open > * { padding: 0; }
  .work-center-dialog.is-home-dashboard .work-center-contract__open .status-badge { margin: 0; }
  .work-center-contract__actions { grid-column: 1; display: flex; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid #e0e5ee; }
  .work-center-actions-menu { top: calc(100% - 5px); right: 12px; }
}

/* Grade única do resumo de contratos — v40. */
.work-center-dialog.is-home-dashboard {
  --work-center-columns: 94px 128px minmax(260px, 1.55fr) minmax(180px, .9fr) 154px 108px 108px 76px;
}

.work-center-dialog.is-home-dashboard .work-center-table-head,
.work-center-dialog.is-home-dashboard .work-center-contract {
  display: grid;
  grid-template-columns: var(--work-center-columns);
  align-items: stretch;
  column-gap: 0;
}

.work-center-dialog.is-home-dashboard .work-center-table-head > span,
.work-center-dialog.is-home-dashboard .work-center-contract > time,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__number,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__client,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__service,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__status-cell,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__total,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__actions {
  min-width: 0;
  padding: 11px 10px;
  border-left: 1px solid #edf0f4;
}

.work-center-dialog.is-home-dashboard .work-center-table-head > span:first-child,
.work-center-dialog.is-home-dashboard .work-center-contract > time { border-left: 0; }

.work-center-dialog.is-home-dashboard .work-center-contract > time,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__client,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__service {
  display: grid;
  align-content: center;
  gap: 3px;
}

.work-center-dialog.is-home-dashboard .work-center-contract > time strong,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__client strong,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__service strong,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__total,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance strong { font-size: 10.5px; }
.work-center-dialog.is-home-dashboard .work-center-contract > time small,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__number,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__client small,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__service small,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance small { font-size: 9px; }
.work-center-dialog.is-home-dashboard .work-center-contract > time strong { color: var(--ink); }

.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__number,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__status-cell,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__total,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance {
  display: flex;
  align-items: center;
}

.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__status-cell { justify-content: flex-start; }
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__total,
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance { justify-content: flex-end; text-align: right; }
.work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance { flex-direction: column; align-items: flex-end; justify-content: center; }

.work-center-dialog.is-home-dashboard .work-center-contract__status-cell .status-badge {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 5px 9px;
  white-space: nowrap;
  line-height: 1.1;
}

.work-center-dialog.is-home-dashboard .work-center-contract__actions {
  grid-column: 8;
  z-index: 3;
}

.work-center-row-open {
  position: absolute;
  inset: 0 76px 0 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.work-center-dialog.is-home-dashboard .work-center-contract:hover { background: #f8f9ff; }
.work-center-dialog.is-home-dashboard .work-center-contract > :not(.work-center-row-open) { position: relative; }

html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-table-head > span,
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-contract > :not(.work-center-row-open) { border-left-color: #33363b; }
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-contract:hover { background: #26262a; }

@media (max-width: 1500px) and (min-width: 921px) {
  .work-center-dialog.is-home-dashboard {
    --work-center-columns: 84px 112px minmax(210px, 1.35fr) minmax(150px, .8fr) 148px 96px 96px 72px;
  }
  .work-center-row-open { right: 72px; }
}

@media (max-width: 1360px) {
  .work-center-dialog.is-home-dashboard .work-center-table-head { display: none; }
  .work-center-dialog.is-home-dashboard .work-center-contract {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 8px 12px;
  }
  .work-center-dialog.is-home-dashboard .work-center-contract > time,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__number,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__client,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__service,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__status-cell,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__total,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__actions {
    padding: 5px 0;
    border-left: 0;
  }
  .work-center-dialog.is-home-dashboard .work-center-contract > time { grid-column: 1; grid-row: 1; }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__number { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__client,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__service,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__status-cell { grid-column: 1 / -1; }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__total { grid-column: 1; justify-content: flex-start; }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance { grid-column: 2; }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid #e0e5ee;
  }
  .work-center-row-open { inset: 0 0 50px 0; }
}

/* Indicadores semânticos da Central de trabalho — v41. */
.work-center-dialog.is-home-dashboard .work-center-cards {
  gap: 12px;
  padding-bottom: 16px;
}

.work-center-dialog.is-home-dashboard .work-center-card {
  --card-color: #6f4df6;
  --card-soft: #f1edff;
  min-height: 122px;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-content: start;
  align-items: start;
  gap: 4px 10px;
  padding: 15px 14px;
  border-color: #dde4ee;
  border-radius: 12px;
  text-align: left;
}

.work-center-dialog.is-home-dashboard .work-center-card i {
  width: 36px;
  height: 36px;
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  border-radius: 10px;
  background: var(--card-soft);
  color: var(--card-color);
}

.work-center-dialog.is-home-dashboard .work-center-card i svg {
  width: 19px;
  height: 19px;
}

.work-center-dialog.is-home-dashboard .work-center-card span {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-height: 17px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.work-center-dialog.is-home-dashboard .work-center-card strong {
  grid-column: 2;
  grid-row: 2;
  color: var(--ink);
  font-size: 25px;
  font-weight: 780;
  line-height: 1.05;
}

.work-center-dialog.is-home-dashboard .work-center-card small {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.work-center-dialog.is-home-dashboard .work-center-card:hover,
.work-center-dialog.is-home-dashboard .work-center-card:focus-visible,
.work-center-dialog.is-home-dashboard .work-center-card.is-active {
  border-color: color-mix(in srgb, var(--card-color) 45%, #d8e0ea);
  background: color-mix(in srgb, var(--card-soft) 46%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--card-color) 12%, transparent), 0 8px 20px rgba(24, 36, 58, .06);
}

.work-center-dialog.is-home-dashboard .work-center-card--violet { --card-color: #7554e8; --card-soft: #f0ecff; }
.work-center-dialog.is-home-dashboard .work-center-card--blue { --card-color: #2878eb; --card-soft: #eaf2ff; }
.work-center-dialog.is-home-dashboard .work-center-card--indigo { --card-color: #4f68e8; --card-soft: #edf0ff; }
.work-center-dialog.is-home-dashboard .work-center-card--purple { --card-color: #7254dc; --card-soft: #f0edff; }
.work-center-dialog.is-home-dashboard .work-center-card--amber { --card-color: #d88918; --card-soft: #fff3df; }
.work-center-dialog.is-home-dashboard .work-center-card--green { --card-color: #23986d; --card-soft: #e4f7ef; }
.work-center-dialog.is-home-dashboard .work-center-card--red { --card-color: #dc4655; --card-soft: #ffeaed; }

html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-card {
  border-color: #35383d;
  background: #212123;
}
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-card i {
  background: color-mix(in srgb, var(--card-color) 18%, #212123);
}
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-card:hover,
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-card:focus-visible,
html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-card.is-active {
  border-color: color-mix(in srgb, var(--card-color) 55%, #45484e);
  background: color-mix(in srgb, var(--card-color) 8%, #212123);
}

@media (max-width: 920px) {
  .work-center-dialog.is-home-dashboard .work-center-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .work-center-dialog.is-home-dashboard .work-center-card {
    min-height: 112px;
    padding: 13px 12px;
  }
}

@media (max-width: 420px) {
  .work-center-dialog.is-home-dashboard .work-center-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 8px;
  }
  .work-center-dialog.is-home-dashboard .work-center-card i {
    width: 32px;
    height: 32px;
  }
  .work-center-dialog.is-home-dashboard .work-center-card span { font-size: 10px; }
  .work-center-dialog.is-home-dashboard .work-center-card strong { font-size: 23px; }
  .work-center-dialog.is-home-dashboard .work-center-card small { font-size: 8.8px; }
}

/* Administradores e fotos de perfil — v42. */
.sidebar-account__avatar { overflow: hidden; }
.sidebar-account__avatar img,
.admin-user-avatar img,
.admin-photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sidebar-account__avatar.has-photo { background: #fff; color: transparent; }

.admin-dialog.workspace-page { max-width: none; }
.admin-shell {
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
  background: #fff;
}

.admin-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px) 42px;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
}
.admin-header > div:first-child { display: grid; gap: 4px; }
.admin-header h2 { margin: 0; font-size: 25px; }
.admin-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-security-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #e0e5ee;
  border-radius: 11px;
  background: #fbfcff;
}
.admin-security-card > i,
.admin-section-icon,
.admin-security-tip > i {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0ecff;
  color: var(--brand);
  font-style: normal;
}
.admin-security-card > i { width: 36px; height: 36px; }
.admin-security-card svg,
.admin-section-icon svg,
.admin-security-tip svg,
.admin-role-badge svg,
.admin-search svg,
.admin-actions-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-security-card > span { min-width: 0; display: grid; gap: 3px; }
.admin-security-card strong { font-size: 11px; }
.admin-security-card small { color: var(--muted); font-size: 9px; line-height: 1.35; }

.admin-create-panel {
  margin: 18px 22px 14px;
  overflow: hidden;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
}
.admin-permissions-panel {
  margin: 18px 22px 0;
  overflow: hidden;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
}
.admin-permissions-panel > summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.admin-permissions-panel > summary::-webkit-details-marker { display: none; }
.admin-permissions-panel > summary > .admin-section-icon { width: 38px; height: 38px; }
.admin-permissions-panel > summary > span { display: grid; gap: 3px; }
.admin-permissions-panel > summary strong { font-size: 13px; }
.admin-permissions-panel > summary small { color: var(--muted); font-size: 10px; }
.admin-permissions-panel > summary > i:last-child { display: grid; place-items: center; font-style: normal; font-size: 20px; transition: transform .2s ease; }
.admin-permissions-panel[open] > summary { border-bottom: 1px solid #e7ebf2; }
.admin-permissions-panel[open] > summary > i:last-child { transform: rotate(45deg); }
.operator-permissions-form { padding: 16px 18px 18px; }
.operator-permissions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.operator-permissions-grid > label { min-width: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: start; padding: 11px; border: 1px solid #e2e7ef; border-radius: 9px; background: #fafbfe; cursor: pointer; }
.operator-permissions-grid input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--brand); }
.operator-permissions-grid span { min-width: 0; display: grid; gap: 3px; }
.operator-permissions-grid strong { color: var(--ink); font-size: 10px; }
.operator-permissions-grid small { color: var(--muted); font-size: 8.5px; line-height: 1.35; }
.operator-permissions-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.operator-permissions-actions > small { margin-right: auto; color: var(--muted); font-size: 9px; }
html[data-theme="dark"] .admin-permissions-panel,
html[data-theme="dark"] .operator-permissions-grid > label { border-color: #373a40; background: #26262a; }

body.operator-contracts-readonly .form-step input:not([type="search"]),
body.operator-contracts-readonly .form-step select,
body.operator-contracts-readonly .form-step textarea { pointer-events: none; opacity: .72; }
.admin-create__heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 30px;
  justify-content: normal;
  padding: 15px 18px;
  border-bottom: 1px solid transparent;
}
.admin-create-panel[open] .admin-create__heading { border-bottom-color: #e7ebf2; }
.admin-create__heading > .admin-section-icon {
  width: 38px;
  height: 38px;
  grid-column: 1;
  grid-row: 1;
  border: 0;
  border-radius: 9px;
  transform: none;
}
.admin-create__heading > span { grid-column: 2; }
.admin-create__heading > i:last-child {
  width: 28px;
  height: 28px;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}
.admin-create-panel[open] .admin-create__heading > .admin-section-icon { transform: none; }
.admin-create__heading strong { font-size: 13px; }
.admin-create__heading small { font-size: 10px; }

.admin-create { gap: 16px; padding: 16px 18px 18px; }
.admin-photo-field {
  display: grid;
  grid-template-columns: 52px minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  background: #fafbfe;
}
.admin-photo-preview,
.admin-user-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a6cff, #4d2bc4);
  color: #fff;
  font-weight: 850;
}
.admin-photo-preview { width: 50px; height: 50px; font-size: 22px; }
.admin-photo-field > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.admin-photo-field strong { font-size: 11px; }
.admin-photo-field small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.admin-create .form-grid { gap: 13px 16px; }
.admin-create__actions { justify-content: space-between; padding-top: 2px; }
.admin-create__actions > span { display: flex; gap: 9px; margin-left: auto; }

.admin-list-heading {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 310px) auto;
  align-items: center;
  gap: 14px;
  margin: 0 22px;
  padding: 14px 0;
  border: 0;
}
.admin-list-heading > div { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; }
.admin-list-heading .admin-section-icon { width: 36px; height: 36px; grid-row: 1; }
.admin-list-heading > div > span { min-width: 0; display: grid; gap: 3px; }
.admin-list-heading strong { font-size: 13px; }
.admin-list-heading small { font-size: 9px; }
.admin-search { min-height: 38px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; border: 1px solid #dce3ec; border-radius: 9px; background: #fff; }
.admin-search > span { display: grid; place-items: center; color: #788aa0; }
.admin-search svg { width: 16px; height: 16px; }
.admin-search input { width: 100%; min-width: 0; height: 36px; padding: 0 10px 0 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 10.5px; }

.admin-table-head,
.admin-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(130px, .65fr) 100px minmax(150px, .75fr) minmax(170px, auto);
  align-items: center;
  gap: 14px;
}
.admin-table-head {
  margin: 0 22px;
  padding: 9px 12px;
  border: 1px solid #e2e7ef;
  border-width: 1px 0;
  background: #f8f9fc;
  color: #61738a;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.admin-list { min-height: 150px; overflow: visible; padding: 0 22px 12px; scrollbar-gutter: auto; }
.admin-row { position: relative; padding: 12px; }
.admin-row__identity { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; }
.admin-user-avatar { width: 36px; height: 36px; font-size: 9px; }
.admin-row__identity > span { min-width: 0; display: grid; gap: 3px; }
.admin-row__identity strong,
.admin-row__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row__identity strong { color: var(--ink); font-size: 11px; }
.admin-row__identity small { color: var(--muted); font-size: 9px; }
.admin-role-badge { width: fit-content; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; background: #f0ecff; color: #6746d8; }
.admin-role-badge svg { width: 14px; height: 14px; }
.admin-role-badge strong { font-size: 9px; }
.admin-active-status { display: inline-flex; align-items: center; gap: 7px; color: #4c6077; font-size: 10px; }
.admin-active-status i { width: 7px; height: 7px; border-radius: 50%; background: #20b76a; }
.admin-active-status.is-inactive i { background: #a7b0bc; }
.admin-last-access { min-width: 0; display: grid; gap: 3px; color: #52657d; font-size: 9.5px; }
.admin-last-access small { color: var(--muted); font-size: 8.5px; }
.admin-row__actions { position: relative; display: flex; justify-content: flex-end; gap: 8px; }
.admin-actions-toggle { width: 36px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #d9e1eb; border-radius: 8px; background: #fff; color: #53677f; cursor: pointer; }
.admin-actions-toggle span { margin-top: -5px; color: inherit; font-size: 15px; font-weight: 850; letter-spacing: 1px; line-height: 1; }
.admin-actions-toggle:hover,
.admin-actions-toggle[aria-expanded="true"] { border-color: #bdaff2; background: #f2efff; color: var(--brand); }
.admin-actions-menu { position: absolute; top: 38px; right: 0; z-index: 50; width: 190px; padding: 7px; border: 1px solid #dce3ec; border-radius: 10px; background: #fff; box-shadow: 0 15px 35px rgba(20,31,52,.18); }
.admin-actions-menu > label,
.admin-actions-menu > button { width: 100%; min-height: 35px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 10px; text-align: left; }
.admin-actions-menu > label:hover,
.admin-actions-menu > button:hover { background: #f2efff; color: var(--brand); }
.admin-actions-menu > button.is-danger { color: #b83c49; }
.admin-actions-menu > button:disabled { opacity: .42; cursor: not-allowed; }
.admin-empty { min-height: 150px; display: grid; place-content: center; gap: 4px; color: var(--muted); text-align: center; }
.admin-empty strong { color: var(--ink); font-size: 11px; }
.admin-empty span { font-size: 9px; }
.admin-security-tip { display: flex; align-items: center; gap: 9px; margin: 0 22px 20px; padding: 10px 13px; border-radius: 9px; background: #f3f0ff; color: #6548ce; font-size: 9.5px; }
.admin-security-tip > i { width: 28px; height: 28px; background: transparent; }
.admin-security-tip svg { width: 17px; height: 17px; }

html[data-theme="dark"] .admin-shell,
html[data-theme="dark"] .admin-create-panel,
html[data-theme="dark"] .admin-photo-field,
html[data-theme="dark"] .admin-search,
html[data-theme="dark"] .admin-actions-toggle,
html[data-theme="dark"] .admin-actions-menu { background: #212123; border-color: #373a40; }
html[data-theme="dark"] .admin-security-card { border-color: #373a40; background: #26262a; }
html[data-theme="dark"] .admin-table-head { border-color: #373a40; background: #29292d; }
html[data-theme="dark"] .admin-security-tip,
html[data-theme="dark"] .admin-role-badge { background: #302a4a; color: #b9a8ff; }
html[data-theme="dark"] .admin-actions-menu > label:hover,
html[data-theme="dark"] .admin-actions-menu > button:hover { background: #302a4a; }

/* Identidade e navegação específicas do cabeçalho Mobile */
.brand__mobile-logo,
.brand__mobile-subtitle,
.header-menu__trigger-icon,
.mobile-bottom-nav { display: none; }
.brand .mobile-header-actions { display: none; }

.settings-logo-card__preview--mobile img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.settings-logo-card__preview--favicon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.settings-mobile-brand-card__text {
  grid-column: 1 / -1;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .app-header {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
    border-bottom: 1px solid #dfe5ed;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 32, 55, .06);
  }

  .brand {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 13px 16px 12px;
    border-bottom: 1px solid #e5e9f0;
  }

  .brand__desktop-logo { display: none !important; }
  .brand .brand__mobile-logo {
    width: 60px;
    height: 60px;
    display: block;
    object-fit: contain;
  }

  .brand .brand__copy {
    min-width: 0;
    display: grid;
    gap: 2px;
    line-height: 1.1;
  }

  .brand .brand__copy strong {
    overflow: hidden;
    color: #17243b;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand .brand__desktop-subtitle { display: none !important; }
  .brand .brand__mobile-subtitle {
    display: block;
    color: #728099;
    font-size: 15px;
    font-weight: 500;
  }

  .brand > .online-status { display: none !important; }
  .brand .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 13px;
  }

  .mobile-notification-button,
  .mobile-account-button {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1a2942;
    cursor: pointer;
  }

  .mobile-notification-button { width: 38px; height: 46px; }
  .mobile-notification-button > span,
  .mobile-notification-button svg { width: 28px; height: 28px; display: block; }
  .mobile-notification-button svg { fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-notification-button > em {
    position: absolute;
    top: 1px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #7047e8;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
  }
  .mobile-notification-button > em[hidden] { display: none; }

  .mobile-account-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8edf4;
    box-shadow: inset 0 0 0 1px #dbe2eb;
  }
  .mobile-account-button::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #16b76c;
  }
  .mobile-account-button > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: inherit;
    color: #41536b;
    font-size: 14.5px;
    font-weight: 800;
  }
  .mobile-account-button img { width: 100%; height: 100%; display: block; object-fit: cover; }

  .header-actions {
    width: 100%;
    display: block;
    padding: 0;
    overflow: visible;
  }

  .header-menus {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
  }

  .header-menu { position: static; min-width: 0; }
  .header-menu__trigger {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    gap: 7px;
    padding: 8px 5px;
    border: 0;
    border-radius: 0;
    color: #17243b;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: -.01em;
    text-transform: none;
  }
  .header-menu__trigger::before { display: none !important; }
  .header-menu__trigger:hover,
  .header-menu.is-open .header-menu__trigger {
    border-color: transparent;
    background: #f4f2ff;
    color: #5f38d2;
  }
  .header-menu__trigger-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    flex: 0 0 20px;
  }
  .header-menu__trigger-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .header-menu__trigger > span { margin: 0; }
  .header-menu__panel {
    top: calc(100% + 1px);
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 160px);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 38px rgba(15, 30, 55, .2);
  }
  .header-menu__panel--system { right: 8px; }
  .header-quick-actions { display: none !important; }

  html[data-theme="dark"] .app-header { background: #171717; border-color: #303030; }
  html[data-theme="dark"] .brand { border-color: #303030; }
  html[data-theme="dark"] .brand .brand__copy strong,
  html[data-theme="dark"] .mobile-notification-button,
  html[data-theme="dark"] .header-menu__trigger { color: #ececec; }
  html[data-theme="dark"] .brand .brand__mobile-subtitle { color: #a6a6a6; }
  html[data-theme="dark"] .mobile-account-button { background: #292929; box-shadow: inset 0 0 0 1px #414141; }
  html[data-theme="dark"] .mobile-notification-button > em,
  html[data-theme="dark"] .mobile-account-button::after { border-color: #171717; }
  html[data-theme="dark"] .header-menu__trigger:hover,
  html[data-theme="dark"] .header-menu.is-open .header-menu__trigger { background: #26223a; color: #bba8ff; }

  body:not(.auth-locked) .mobile-bottom-nav {
    position: fixed;
    z-index: 85;
    right: 0;
    bottom: 0;
    left: 0;
    height: 80px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    box-sizing: border-box;
    padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid #e2e7ef;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -9px 28px rgba(24, 38, 62, .1);
    transform: translateY(0);
    transition: transform .24s ease, visibility .24s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  body:not(.auth-locked) .mobile-bottom-nav.is-hidden {
    visibility: hidden;
    transform: translateY(calc(100% + 16px));
    pointer-events: none;
  }

  .mobile-bottom-nav__item,
  .mobile-bottom-nav__new {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #64738a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-bottom-nav__item {
    height: 64px;
    display: grid;
    grid-template-rows: 34px auto;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 2px 1px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 600;
  }
  .mobile-bottom-nav__item > i {
    width: 36px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
  }
  .mobile-bottom-nav__item svg,
  .mobile-bottom-nav__new svg,
  .mobile-more-menu svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-bottom-nav__item.is-active { color: #6840df; }
  .mobile-bottom-nav__item.is-active > i { background: #f0ecff; }

  .mobile-bottom-nav__new {
    width: 68px;
    height: 68px;
    place-self: center;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #7b4ff0, #5730d2);
    color: #fff;
    box-shadow: 0 12px 26px rgba(103, 62, 220, .34);
    transform: translateY(-22px);
  }
  .mobile-bottom-nav__new:active { transform: translateY(-22px) scale(.96); }
  .mobile-bottom-nav__new svg { width: 34px; height: 34px; stroke-width: 1.55; }

  .mobile-more-menu {
    position: absolute;
    right: 10px;
    bottom: calc(100% + 10px);
    width: min(260px, calc(100vw - 20px));
    display: grid;
    gap: 3px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #dfe5ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 35, 59, .2);
  }
  .mobile-more-menu[hidden] { display: none !important; }
  .mobile-more-menu > strong { padding: 6px 9px 8px; color: #718098; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-more-menu > button {
    min-height: 45px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #203149;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }
  .mobile-more-menu > button:hover,
  .mobile-more-menu > button:focus-visible { background: #f3f0ff; color: #633add; }
  .mobile-more-menu > button i { display: grid; place-items: center; }
  .mobile-more-menu svg { width: 21px; height: 21px; }

  body:not(.auth-locked) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .back-to-top { bottom: calc(92px + env(safe-area-inset-bottom)); }

  html[data-theme="dark"] body:not(.auth-locked) .mobile-bottom-nav {
    border-color: #333;
    background: rgba(24, 24, 24, .97);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .3);
  }
  html[data-theme="dark"] .mobile-bottom-nav__item { color: #aeb6c4; }
  html[data-theme="dark"] .mobile-bottom-nav__item.is-active { color: #bca9ff; }
  html[data-theme="dark"] .mobile-bottom-nav__item.is-active > i { background: #30294a; }
  html[data-theme="dark"] .mobile-more-menu { border-color: #404040; background: #242424; }
  html[data-theme="dark"] .mobile-more-menu > strong { color: #a9a9a9; }
  html[data-theme="dark"] .mobile-more-menu > button { color: #e6e6e6; }
  html[data-theme="dark"] .mobile-more-menu > button:hover,
  html[data-theme="dark"] .mobile-more-menu > button:focus-visible { background: #302a49; color: #c5b5ff; }
}

@media (min-width: 981px) {
  body:not(.sidebar-collapsed) .header-menu__trigger { font-size: 13.5px; }
}

@media (max-width: 1100px) {
  .admin-table-head,
  .admin-row { grid-template-columns: minmax(230px, 1.2fr) 125px 90px minmax(135px, .7fr) 150px; gap: 10px; }
  .admin-row__actions .button { padding-inline: 9px; }
}

@media (max-width: 760px) {
  .admin-header { grid-template-columns: minmax(0, 1fr) 40px; padding: 18px 16px; }
  .admin-security-card { display: none; }
  .admin-create-panel { margin: 12px; }
  .admin-permissions-panel { margin: 12px 12px 0; }
  .operator-permissions-grid { grid-template-columns: 1fr; }
  .operator-permissions-actions { align-items: stretch; flex-direction: column; }
  .operator-permissions-actions > small { margin: 0 0 4px; }
  .admin-create__heading { grid-template-columns: 36px minmax(0, 1fr) 28px; padding: 13px; }
  .admin-photo-field { grid-template-columns: 46px minmax(0, 1fr); }
  .admin-photo-preview { width: 44px; height: 44px; }
  .admin-photo-field > label,
  .admin-photo-field > button { width: 100%; grid-column: 1 / -1; }
  .admin-create__actions { align-items: stretch; flex-direction: column; }
  .admin-create__actions > span { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
  .admin-list-heading { grid-template-columns: minmax(0, 1fr) auto; margin-inline: 12px; }
  .admin-search { grid-column: 1 / -1; grid-row: 2; }
  .admin-table-head { display: none; }
  .admin-list { padding-inline: 12px; }
  .admin-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 13px 4px; }
  .admin-row__identity { grid-column: 1; }
  .admin-role-badge { grid-column: 1; margin-left: 48px; }
  .admin-active-status { grid-column: 2; grid-row: 1; }
  .admin-last-access { grid-column: 1; margin-left: 48px; }
  .admin-row__actions { grid-column: 2; grid-row: 2 / span 2; align-self: end; display: flex; }
  .admin-row__actions .button { display: none; }
  .admin-actions-menu { position: fixed; top: auto; right: 12px; bottom: 18px; left: 12px; width: auto; }
  .admin-security-tip { margin-inline: 12px; }
}

/* Formulário de contrato — renovação visual v81 */
.visually-hidden {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.editor-panel {
  padding: 0 20px 20px;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  background: #fff;
  scrollbar-gutter: auto;
}

.contract-editor-header {
  margin: 0 -20px 13px;
  padding: 10px 20px 11px;
  border-bottom: 1px solid #edf0f6;
  background: linear-gradient(110deg, #fbfcff 0%, #f7f4ff 100%);
}

.contract-editor-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #7d8ba1;
  font-size: 9px;
}

.contract-editor-breadcrumb i { color: #a0adbf; font-style: normal; font-size: 14px; line-height: 1; }
.contract-editor-breadcrumb strong { color: #60718b; font-weight: 700; }

.contract-editor-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.contract-editor-header__title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contract-editor-header__icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #8158f3, #5730da);
  box-shadow: 0 7px 13px rgba(99, 63, 221, .22);
  color: #fff;
}

.contract-editor-header__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.contract-editor-header__title > div { min-width: 0; }
.contract-editor-header__title h1 { margin: 0; overflow: hidden; color: #152547; font-size: 19px; line-height: 1.08; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.contract-editor-header__title p { margin: 3px 0 0; color: #73829b; font-size: 10px; line-height: 1.3; }

.contract-editor-back,
.contract-attachments-button,
.step-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.contract-editor-back { min-height: 28px; padding: 5px 10px; white-space: nowrap; font-size: 9px; }
.contract-editor-back svg,
.contract-attachments-button svg,
.step-actions .button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.draft-library { margin-top: 0; padding: 11px 13px; border-radius: 8px; }
.draft-library__heading { margin-bottom: 8px; }
.draft-library__heading strong { font-size: 12px; }
.draft-library__heading span { font-size: 8px; }
.draft-library__meta small { font-size: 8px; }
.library-toggle { width: 31px; height: 31px; flex-basis: 31px; }
.library-toggle span { width: 14px; height: 14px; border-width: 2px; }
.library-toggle span::after { width: 7px; height: 2px; right: -5px; bottom: -3px; }

.step-nav {
  min-height: 64px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 13px 0 17px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.step-nav__progress {
  height: 2px;
  position: absolute;
  z-index: 0;
  top: 13px;
  right: 10%;
  left: 10%;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe5ee;
}

.step-nav__progress progress { width: 100%; height: 100%; display: block; appearance: none; border: 0; background: transparent; }
.step-nav__progress progress::-webkit-progress-bar { background: transparent; }
.step-nav__progress progress::-webkit-progress-value { background: linear-gradient(90deg, #7047ed, #936eff); transition: width .25s ease; }
.step-nav__progress progress::-moz-progress-bar { background: linear-gradient(90deg, #7047ed, #936eff); transition: width .25s ease; }

.step-nav__item {
  min-width: 0;
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  padding: 0 3px;
  color: #7d8ca3;
  font-size: inherit;
}

.step-nav__item span {
  width: 27px;
  height: 27px;
  margin-bottom: 2px;
  border: 1px solid #d3dce8;
  background: #f5f7fb;
  color: #64758b;
  font-size: 11px;
  font-weight: 750;
}

.step-nav__item strong { max-width: 100%; overflow: hidden; color: currentColor; font-size: 9px; font-weight: 800; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.step-nav__item small { max-width: 100%; overflow: hidden; color: #97a3b4; font-size: 7.5px; font-weight: 500; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.step-nav__item.is-active { color: #6741e9; }
.step-nav__item.is-active span { border-color: #754df0; background: #7047ec; color: #fff; box-shadow: 0 3px 8px rgba(103, 65, 233, .22); }
.step-nav__item.is-active small { color: #7e6bd5; }
.step-nav__item.is-complete span { border-color: #a999ef; background: #f0ebff; color: #7047ec; }

.section-heading { align-items: center; margin-bottom: 11px; }
.section-heading p { margin-bottom: 2px; color: #7047e8; font-size: 9px; letter-spacing: .09em; }
.section-heading h2 { color: #142446; font-size: 19px; line-height: 1.1; }
.contract-attachments-button { min-height: 28px; padding: 5px 9px; font-size: 9px; white-space: nowrap; }
.contract-attachments-button em { color: #7859df; font-style: normal; }

.form-grid { gap: 8px 12px; }
.field { gap: 4px; }
.field > span,
.document-field__heading > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #3d5270;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
}

.field > span small { color: inherit; font-size: 8px; }
.contract-form-icon { width: 12px; height: 12px; flex: 0 0 12px; display: inline-grid; place-items: center; color: #283d5d; }
.contract-form-icon svg,
.field > span > svg,
.document-field__heading > span > svg,
.subsection-title h3 > svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.field > span > svg,
.document-field__heading > span > svg { width: 12px; height: 12px; flex: 0 0 12px; }

.editor-panel .field input,
.editor-panel .field select,
.editor-panel .document-field > input {
  min-height: 29px;
  padding: 5px 9px;
  border-color: #d6dfeb;
  border-radius: 6px;
  color: #1e3151;
  font-size: 10px;
}

.editor-panel .field input[readonly] { background: #edf2f7; color: #7486a0; }
.client-lookup-row { grid-template-columns: minmax(0, 1.55fr) minmax(205px, .75fr); gap: 12px; }
.client-lookup__input::before { left: 10px; width: 8px; height: 8px; border-width: 1.7px; }
.client-lookup__input::after { top: 18px; left: 19px; width: 5px; height: 1.7px; }
.client-lookup .client-lookup__input input { padding-left: 30px; }
.document-field__heading { min-height: 14px; }
.document-type-choice { gap: 6px; }
.document-type-option span { font-size: 9px; }
.document-type-option span::before { width: 13px; height: 13px; }

.lease-details-card {
  margin-top: 14px;
  padding: 10px 12px 8px;
  border: 1px solid #e7ddff;
  border-radius: 8px;
  background: linear-gradient(115deg, #fbf9ff 0%, #f5f1ff 100%);
}

.lease-details-card .subsection-title { margin: 0 0 8px; padding: 0; border: 0; }
.lease-details-card .subsection-title h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; color: #23375b; font-size: 11px; }
.lease-details-card .subsection-title h3 .contract-form-icon { color: #7047ec; }
.lease-details-card .subsection-title p { color: #71819a; font-size: 8px; }
.form-grid--lease { gap: 8px 12px; }
.lease-details-card .toggle-field--inline { min-height: 29px; margin: 0; padding: 6px 9px; border-radius: 6px; font-size: 9px; }
.lease-details-card .toggle-field--inline input { width: 13px; height: 13px; }

.step-actions { margin-top: 10px; padding-top: 10px; }
.step-actions__forward { gap: 8px; }
.step-actions .button { min-height: 29px; padding: 5px 10px; border-radius: 6px; font-size: 10px; }
.step-actions .button--primary { box-shadow: 0 5px 12px rgba(99, 65, 222, .22); }

html[data-theme="dark"] .editor-panel { border-color: #343b48; background: #1c2028; }
html[data-theme="dark"] .contract-editor-header { border-color: #343b48; background: linear-gradient(115deg, #212632, #28223b); }
html[data-theme="dark"] .contract-editor-header__title h1 { color: #f1f4fb; }
html[data-theme="dark"] .contract-editor-header__title p,
html[data-theme="dark"] .contract-editor-breadcrumb { color: #abb7c8; }
html[data-theme="dark"] .contract-editor-back.button:hover,
html[data-theme="dark"] .contract-editor-back.button:focus-visible { border-color: #eef2f7; background: #eef2f7; color: #273a53; }
html[data-theme="dark"] .step-nav { background: transparent; }
html[data-theme="dark"] .step-nav__progress { background: #424956; }
html[data-theme="dark"] .step-nav__item span { border-color: #4c5665; background: #303744; color: #c8d0dc; }
html[data-theme="dark"] .step-nav__item small { color: #96a1b2; }
html[data-theme="dark"] .lease-details-card { border-color: #4c416d; background: linear-gradient(115deg, #272335, #222832); }
html[data-theme="dark"] .editor-panel .field input,
html[data-theme="dark"] .editor-panel .field select,
html[data-theme="dark"] .editor-panel .document-field > input { border-color: #3f4959; background: #252b34; color: #edf1f7; }

@media (max-width: 640px) {
  .editor-panel { padding: 0 12px 25px; }
  .contract-editor-header { margin-inline: -12px; padding: 10px 12px; }
  .contract-editor-header__main { align-items: flex-start; }
  .contract-editor-header__title { gap: 8px; }
  .contract-editor-header__icon { width: 31px; height: 31px; flex-basis: 31px; }
  .contract-editor-header__title h1 { font-size: 16px; }
  .contract-editor-header__title p { max-width: 205px; font-size: 8px; }
  .contract-editor-back { min-width: 30px; padding-inline: 7px; }
  .contract-editor-back span { display: none; }
  .step-nav { min-height: 58px; display: grid; overflow: visible; margin: 11px 0 14px; padding: 0; }
  .step-nav__item { min-width: 0; flex: auto; padding-inline: 1px; }
  .step-nav__item span { width: 24px; height: 24px; font-size: 10px; }
  .step-nav__item strong { font-size: 8px; }
  .step-nav__item small { display: none; }
  .step-nav__progress { top: 12px; }
  .section-heading { align-items: center; flex-direction: row; }
  .section-heading h2 { font-size: 18px; }
  .contract-attachments-button { align-self: auto !important; }
  .client-lookup-row { grid-column: auto; grid-template-columns: 1fr; }
  .lease-details-card { padding: 10px; }
  .step-actions__forward { grid-template-columns: 1fr 1fr; }
  .step-actions__forward .button--primary { grid-column: 1 / -1; }
}

/* Menu lateral recolhível — v82 */
@media (min-width: 1280px) {
  body:not(.sidebar-collapsed) { grid-template-columns: 280px minmax(0, 1fr); }
  body:not(.sidebar-collapsed) .app-header { width: 280px; padding: 20px 15px 14px; }

  .brand { gap: 12px; padding: 1px 11px 16px; }
  .brand img { width: 188px; }
  .brand > div:not(.online-status) strong { font-size: 15px; }

  .header-actions { gap: 11px; }
  .header-menus { gap: 6px; padding-bottom: 4px; }
  .header-menus::before {
    content: "MENU PRINCIPAL";
    padding: 0 12px 7px;
    color: #93a1b6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
  }

  .header-menu { display: block; }
  .header-menu__trigger {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #e6ecf5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -.01em;
    text-transform: none;
  }

  .header-menu__trigger::before { display: none; }
  .header-menu__trigger-icon {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    flex: 0 0 21px;
    color: #b9c7d9;
  }
  .header-menu__trigger-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
  .header-menu__trigger > span { margin-right: auto; }
  .header-menu__trigger:hover,
  .header-menu.is-open .header-menu__trigger { border-color: rgba(162, 137, 255, .32); background: linear-gradient(90deg, rgba(108, 73, 225, .9), rgba(85, 57, 181, .58)); color: #fff; }
  .header-menu__trigger:hover .header-menu__trigger-icon,
  .header-menu.is-open .header-menu__trigger-icon { color: #fff; }

  .header-menu__panel,
  .header-menu.is-open .header-menu__panel {
    position: static;
    width: auto;
    max-height: none;
    display: none !important;
    overflow: hidden;
    padding: 2px 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .header-menu.is-open .header-menu__panel { display: block !important; }
  .header-menu__heading,
  .header-menu__separator { display: none; }

  .header-menu__item {
    min-height: 43px;
    grid-template-columns: 33px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    color: #dfe7f2;
  }
  .header-menu__item > i { width: 31px; height: 31px; color: #b9c7d9; font-size: 14px; }
  .header-menu__item > i svg { width: 18px; height: 18px; }
  .header-menu__item strong { font-size: 14px; font-weight: 650; }
  .header-menu__item small { display: none; }
  .header-menu__item:hover,
  .header-menu__item:focus-visible,
  body.home-mode #openWorkCenter { background: linear-gradient(90deg, rgba(109,76,232,.84), rgba(84,58,186,.34)); color: #fff; }
  .header-menu__item:hover > i,
  .header-menu__item:focus-visible > i,
  body.home-mode #openWorkCenter > i { color: #fff; }

  .sidebar-account { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px 10px; }
  .sidebar-account__avatar { width: 38px; height: 38px; font-size: 11px; }
  .sidebar-account strong { font-size: 12px; }
  .sidebar-account small { font-size: 9.5px; }
  .sidebar-collapse { min-height: 39px; padding: 8px 12px; }
  .sidebar-collapse strong { font-size: 11px; }
}

/* Espaçamento e ações do formulário — v83 */
.form-step[data-step="identificacao"] > .form-grid { row-gap: 15px; }
.form-step[data-step="identificacao"] .field { gap: 6px; }
.form-step[data-step="identificacao"] .client-lookup-row { row-gap: 15px; }
.lease-details-card { margin-top: 20px; padding: 14px 14px 13px; }
.lease-details-card .subsection-title { margin-bottom: 12px; }
.form-grid--lease { row-gap: 14px; }
.lease-details-card .toggle-field--inline { min-height: 34px; padding: 8px 10px; }

.contract-editor-back,
.contract-attachments-button { min-height: 34px; padding: 7px 12px; font-size: 11px; }
.contract-editor-back svg,
.contract-attachments-button svg { width: 16px; height: 16px; }

.form-step[data-step="identificacao"] .step-actions { margin-top: 18px; padding-top: 16px; }
.form-step[data-step="identificacao"] .step-actions__forward { gap: 10px; }
.form-step[data-step="identificacao"] .step-actions .button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.form-step[data-step="identificacao"] .step-actions .button svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .form-step[data-step="identificacao"] > .form-grid,
  .form-step[data-step="identificacao"] .client-lookup-row,
  .form-grid--lease { row-gap: 13px; }
  .lease-details-card { margin-top: 17px; padding: 12px; }
  .form-step[data-step="identificacao"] .step-actions .button { min-height: 39px; padding-inline: 10px; font-size: 11px; }
}

/* Hierarquia suave dos campos e controles da barra lateral — v84 */
.form-step[data-step="identificacao"] .field > span,
.form-step[data-step="identificacao"] .document-field__heading > span {
  font-weight: 600;
}

/* Identificação — campos mais limpos e alinhados */
.form-step[data-step="identificacao"] .field > span > .contract-form-icon,
.form-step[data-step="identificacao"] .document-field__heading > span > .contract-form-icon { display: none; }
.form-step[data-step="identificacao"] .tenant-phone-field > span { min-height: 28px; }

/* Consistência das etapas do contrato — v85 */
.editor-panel .form-step:not([data-step="identificacao"]) .field > span,
.editor-panel .form-step:not([data-step="identificacao"]) .toggle-field {
  font-weight: 500;
}

.editor-panel .form-step .step-actions .button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

/* Navegação do formulário — v89 */
.contract-editor-back.button:hover,
.contract-editor-back.button:focus-visible {
  border-color: #6d4ce8 !important;
  background: #6d4ce8 !important;
  color: #fff !important;
}
.contract-editor-back.button:focus-visible { outline: 2px solid rgba(109, 76, 232, .35); outline-offset: 2px; }

@media (max-width: 640px) {
  .editor-panel .form-step .step-actions .button {
    min-height: 39px;
    padding-inline: 10px;
    font-size: 11px;
  }
}

/* Serviços em tablets — v87 */
@media (min-width: 641px) and (max-width: 920px) {
  .repeat-card--service {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 150px) 34px;
  }
}

@media (min-width: 1280px) {
  .header-actions { overflow-y: auto; }
  .sidebar-account { margin-top: auto; }
  .header-quick-actions { margin-top: 0; }

  .sidebar-collapse {
    position: fixed;
    z-index: 90;
    top: 50%;
    left: calc(280px - 15px);
    width: 30px;
    min-height: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 0 10px 10px 0;
    background: #263953;
    box-shadow: 5px 7px 16px rgba(17, 34, 59, .18);
    color: #e5edf8;
    cursor: pointer;
    transform: translateY(-50%);
    transition: left .22s ease, background .18s ease, color .18s ease;
  }
  .sidebar-collapse:hover,
  .sidebar-collapse:focus-visible { background: #6546df; color: #fff; outline: none; }
  .sidebar-collapse:focus-visible { box-shadow: 0 0 0 3px rgba(138, 108, 255, .32), 5px 7px 16px rgba(17, 34, 59, .18); }
  .sidebar-collapse__icon { width: 19px; height: 19px; display: grid; place-items: center; }
  .sidebar-collapse__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  body.sidebar-collapsed .sidebar-collapse { left: calc(76px - 15px); }
}

/* Menu sem setas e sem rolagem horizontal — v94 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.preview-collapsed .workspace,
.workspace {
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 921px) {
  .app-header,
  .header-actions,
  .header-menus,
  .header-menu,
  .workspace,
  .editor-panel {
    min-width: 0;
    max-width: 100%;
  }

  .workspace,
  body.preview-collapsed .workspace {
    overflow-x: hidden !important;
  }
}

/* Contexto ativo do menu principal — v96 */
.header-menu.is-active-group > .header-menu__trigger {
  border-color: #aa96ff;
  background: #eeeaff;
  color: #5f38d2;
  box-shadow: inset 3px 0 0 #7047e8;
}
.header-menu.is-active-group > .header-menu__trigger .header-menu__trigger-icon { color: currentColor; }
.header-menu__item.is-active-item {
  background: #eeeaff;
  color: #5733ca;
  box-shadow: inset 3px 0 0 #7047e8;
}
.header-menu__item.is-active-item > i { color: currentColor; }

@media (min-width: 1280px) {
  .header-menu.is-active-group > .header-menu__trigger {
    border-color: rgba(162, 137, 255, .45);
    background: linear-gradient(90deg, #6d4ce8, #4f34ae);
    color: #fff;
    box-shadow: inset 3px 0 0 #b9a9ff;
  }
  .header-menu.is-active-group > .header-menu__trigger .header-menu__trigger-icon { color: #fff; }
  .header-menu__item.is-active-item,
  body.home-mode #openWorkCenter.is-active-item {
    background: linear-gradient(90deg, rgba(109,76,232,.94), rgba(84,58,186,.45));
    color: #fff;
    box-shadow: inset 3px 0 0 #beaefe;
  }
  .header-menu__item.is-active-item > i,
  body.home-mode #openWorkCenter.is-active-item > i { color: #fff; }
}

html[data-theme="dark"] .header-menu.is-active-group > .header-menu__trigger { border-color: #7f65d6; background: #302756; color: #ded5ff; box-shadow: inset 3px 0 0 #a98eff; }
html[data-theme="dark"] .header-menu__item.is-active-item { background: #302756; color: #ded5ff; box-shadow: inset 3px 0 0 #a98eff; }
html[data-theme="dark"] .header-menu__item.is-active-item > i { color: currentColor; }

/* Histórico de clientes: abrir ou duplicar contrato — v98 */
.client-history-contract {
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: stretch;
  padding: 8px 9px 8px 12px;
  cursor: default;
}
.client-history-contract__open {
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(160px, 1fr) auto 120px;
  align-items: center;
  gap: 11px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.client-history-contract:hover,
.client-history-contract:focus-within { border-color: var(--brand-2); background: #f7faff; }
.client-history-contract__open:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.client-history-contract__duplicate {
  width: 34px;
  height: 34px;
  align-self: center;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #c9d5e2;
  border-radius: 8px;
  background: #fff;
  color: #536983;
  cursor: pointer;
}
.client-history-contract__duplicate svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.client-history-contract__duplicate:hover,
.client-history-contract__duplicate:focus-visible { border-color: #8f74e9; background: #f0edff; color: #5d3bd0; outline: none; }
.client-history-contract__duplicate:disabled { cursor: not-allowed; opacity: .48; }
html[data-theme="dark"] .client-history-contract:hover,
html[data-theme="dark"] .client-history-contract:focus-within { background: #202d3d; }
html[data-theme="dark"] .client-history-contract__duplicate { border-color: #46576c; background: #263342; color: #c9d5e5; }
html[data-theme="dark"] .client-history-contract__duplicate:hover,
html[data-theme="dark"] .client-history-contract__duplicate:focus-visible { border-color: #9f88f3; background: #342d57; color: #e5ddff; }

@media (max-width: 640px) {
  .client-history-contract { grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; }
  .client-history-contract__open { grid-template-columns: 76px minmax(0, 1fr); }
  .client-history-contract__open .status-badge,
  .client-history-contract__open .client-history-contract__money { grid-column: 1 / -1; }
}

/* Cabeçalho compacto e contratos em linha — v100. */
.work-center-contract__compact-summary,
.work-center-contract__compact-money { display: none; }

@media (max-width: 1279px) {
  .app-header {
    border-color: rgba(255, 255, 255, .11);
    background: var(--sidebar-background);
    box-shadow: 0 5px 18px rgba(12, 22, 37, .2);
  }

  .app-header .brand strong,
  .app-header .header-menu__trigger,
  .app-header .mobile-notification-button { color: #f3f6fb; }
  .app-header .brand span,
  .app-header .brand .brand__mobile-subtitle { color: #aeb9ca; }
  .app-header .brand > .online-status {
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .08);
  }
  .app-header .brand > .online-status span span { color: #b9c4d3; }
  .app-header .header-view-actions { border-color: rgba(255, 255, 255, .13); }
  .app-header .header-icon-button { color: #dbe4ef; }
  .app-header .header-icon-button:hover { border-color: rgba(164, 139, 255, .42); background: rgba(125, 91, 232, .25); color: #fff; }
  .app-header .header-menu__trigger:hover,
  .app-header .header-menu.is-open .header-menu__trigger {
    border-color: rgba(164, 139, 255, .5);
    background: rgba(109, 76, 232, .38);
    color: #fff;
  }

  html[data-theme="dark"] .app-header { background: var(--sidebar-background); border-color: rgba(255, 255, 255, .11); }
  html[data-theme="dark"] .app-header .brand { border-color: rgba(255, 255, 255, .12); }
  html[data-theme="dark"] .app-header .mobile-account-button { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
  html[data-theme="dark"] .app-header .mobile-notification-button > em,
  html[data-theme="dark"] .app-header .mobile-account-button::after { border-color: var(--sidebar-background); }
}

@media (max-width: 1360px) {
  .work-center-dialog.is-home-dashboard .work-center-list { padding: 8px 10px 18px; border: 0; }
  .work-center-dialog.is-home-dashboard .work-center-contract {
    grid-template-columns: 76px minmax(0, 1fr) auto 86px 40px;
    align-items: center;
    gap: 8px;
    min-height: 74px;
    margin-bottom: 8px;
    padding: 8px;
    overflow: visible;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    background: #fff;
  }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__number,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__client,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__service,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__total,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance { display: none; }
  .work-center-dialog.is-home-dashboard .work-center-contract > time {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 0;
    border: 0;
    color: var(--brand);
  }
  .work-center-dialog.is-home-dashboard .work-center-contract > time strong { color: var(--brand); font-size: 11px; }
  .work-center-dialog.is-home-dashboard .work-center-contract > time small { color: var(--muted); font-size: 9px; }
  .work-center-contract__compact-summary {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: grid;
    gap: 3px;
    pointer-events: none;
  }
  .work-center-contract__compact-summary strong,
  .work-center-contract__compact-summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .work-center-contract__compact-summary strong { color: var(--ink); font-size: 11px; }
  .work-center-contract__compact-summary small { color: var(--muted); font-size: 9px; }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__status-cell {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
  }
  .work-center-dialog.is-home-dashboard .work-center-contract__status-cell .status-badge { margin: 0; padding: 5px 7px; font-size: 9px; }
  .work-center-contract__compact-money {
    grid-column: 4;
    grid-row: 1;
    display: grid;
    justify-items: end;
    gap: 1px;
    min-width: 0;
    color: var(--ink);
    pointer-events: none;
    text-align: right;
  }
  .work-center-contract__compact-money small,
  .work-center-contract__compact-money em { overflow: hidden; max-width: 86px; color: var(--muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
  .work-center-contract__compact-money strong { font-size: 12px; line-height: 1.1; white-space: nowrap; }
  .work-center-contract__compact-money em { color: #bd4d56; }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__actions {
    grid-column: 5;
    grid-row: 1;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .work-center-actions-toggle { width: 36px; height: 34px; }
  .work-center-row-open { inset: 0 48px 0 0; z-index: 1; }
  .work-center-dialog.is-home-dashboard .work-center-contract > time,
  .work-center-dialog.is-home-dashboard .work-center-contract__compact-summary,
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__status-cell,
  .work-center-dialog.is-home-dashboard .work-center-contract__compact-money { position: relative; z-index: 2; pointer-events: none; }
  html[data-theme="dark"] .work-center-dialog.is-home-dashboard .work-center-contract { border-color: #34465b; background: #212121; }
}

@media (max-width: 520px) {
  .work-center-dialog.is-home-dashboard .work-center-contract {
    grid-template-columns: 68px minmax(0, 1fr) auto 38px;
    grid-template-rows: auto auto;
    min-height: 84px;
    gap: 5px 7px;
  }
  .work-center-dialog.is-home-dashboard .work-center-contract > time { grid-column: 1; grid-row: 1; }
  .work-center-contract__compact-summary { grid-column: 2; grid-row: 1; }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__status-cell { grid-column: 3; grid-row: 1; }
  .work-center-contract__compact-money { grid-column: 2 / 4; grid-row: 2; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 7px; }
  .work-center-contract__compact-money small,
  .work-center-contract__compact-money em { max-width: 96px; }
  .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__actions { grid-column: 4; grid-row: 1; }
}

/* Histórico de clientes: filtros por data e lista com rolagem própria — v101. */
.client-history-toolbar {
  grid-template-columns: minmax(240px, 1.35fr) minmax(180px, .95fr) minmax(170px, .9fr) minmax(132px, .62fr) minmax(132px, .62fr) minmax(140px, .7fr) auto;
}
.client-history-date-filter input,
.client-history-year-filter select { min-width: 0; }

@media (max-width: 1180px) and (min-width: 961px) {
  .client-history-toolbar { grid-template-columns: minmax(230px, 1.4fr) minmax(180px, 1fr) minmax(170px, 1fr); }
  .client-history-toolbar .button { width: 100%; }
}

@media (max-width: 960px) and (min-width: 641px) {
  .client-history-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-history-toolbar > * { min-width: 0; }
  .client-history-toolbar .button { width: 100%; }
}

@media (max-width: 640px) {
  .client-history-toolbar { grid-template-columns: minmax(0, 1fr); }
  .client-history-toolbar > * { min-width: 0; }
}

@media (max-width: 920px) {
  dialog.workspace-page .client-history-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(210px, 34dvh) auto;
  }
  dialog.workspace-page .client-history-list-panel {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid #dce4ec;
  }
  dialog.workspace-page .client-history-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  dialog.workspace-page .client-history-detail { min-width: 0; }
}

@media (min-width: 921px) {
  dialog.workspace-page .client-history-list-panel { align-self: start; }
  dialog.workspace-page .client-history-list {
    max-height: min(640px, calc(100dvh - 280px));
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-color: #9f91ea transparent;
    scrollbar-width: thin;
  }
  dialog.workspace-page .client-history-list::-webkit-scrollbar { width: 10px; }
  dialog.workspace-page .client-history-list::-webkit-scrollbar-thumb { border: 3px solid #f5f8fb; border-radius: 999px; background: #9f91ea; }
  dialog.workspace-page .client-history-list::-webkit-scrollbar-track { background: transparent; }
}

/* Páginas não usam mais o controle de fechamento no cabeçalho. */
.calendar-close { display: none !important; }

/* As ações globais do contrato permanecem no rodapé; no cabeçalho compacto,
   elas ocupavam espaço e competiam com os menus de navegação. */
@media (max-width: 1279px) {
  .header-quick-actions { display: none !important; }
}

/* Em tablets, o painel de detalhes deixa de disputar espaço com a grade do mês. */
@media (min-width: 761px) and (max-width: 960px) {
  .calendar-dialog {
    width: calc(100vw - 20px);
    width: calc(100dvw - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .calendar-shell {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .calendar-content {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .calendar-board {
    overflow: visible;
    padding: 15px 16px 18px;
  }

  .calendar-weekdays,
  .calendar-grid {
    width: 100%;
    min-width: 0;
  }

  .calendar-day { min-height: 82px; }

  .calendar-details {
    min-height: 220px;
    padding: 18px;
    border-top: 1px solid #dce4ec;
    border-left: 0;
  }
}

/* Paginação única para contratos, oportunidades e acervo. */
.system-pagination {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  padding: 10px 16px;
  border-top: 1px solid #e0e7ef;
  background: #f8fafc;
  color: #6d7c91;
}

.system-pagination__summary { font-size: 11px; line-height: 1.3; text-align: center; }
.system-pagination__summary strong { color: var(--ink); font-weight: 800; }
.system-pagination__controls { display: flex; align-items: center; justify-content: center; gap: 5px; }
.system-pagination .system-pagination__button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  background: #fff;
  color: #324962;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.system-pagination .system-pagination__button:hover:not(:disabled),
.system-pagination .system-pagination__button:focus-visible:not(:disabled) {
  border-color: #9e88ef;
  background: #f3efff;
  color: #5937d2;
  outline: 0;
}

.system-pagination .system-pagination__button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 10px rgba(109, 76, 232, .2);
}

.system-pagination .system-pagination__button:disabled { opacity: .42; cursor: default; }
.system-pagination__ellipsis { min-width: 14px; color: #8695a8; font-size: 14px; font-style: normal; text-align: center; }
.work-center-pagination.system-pagination { border: 1px solid #e0e5ee; border-top: 0; border-radius: 0 0 11px 11px; }

html[data-theme="dark"] .system-pagination { border-color: #394a5c; background: #111a26; color: #a8b6c8; }
html[data-theme="dark"] .system-pagination__summary strong { color: #edf3f9; }
html[data-theme="dark"] .system-pagination .system-pagination__button { border-color: #43566d; background: #202d3d; color: #e6edf5; }
html[data-theme="dark"] .system-pagination .system-pagination__button:hover:not(:disabled),
html[data-theme="dark"] .system-pagination .system-pagination__button:focus-visible:not(:disabled) { background: #302a4a; color: #c8bcff; }

@media (max-width: 640px) {
  #inventoryDialog .calendar-header { align-items: stretch; flex-direction: column; gap: 12px; }
  #inventoryDialog .inventory-header__actions { width: 100%; justify-content: stretch; gap: 7px; }
  #inventoryDialog .inventory-header__actions .button { min-width: 0; flex: 1 1 0; padding-inline: 7px; }

  .system-pagination { gap: 8px 10px; padding: 10px 12px; }
  .system-pagination__summary { width: 100%; }
}

@media print {
  @page {
    size: 210mm 297mm;
    margin: 0;
  }

  html,
  body {
    width: 210mm;
    height: auto;
    min-height: auto;
    display: block;
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
    background: white;
  }

  body.printing-contract > * { display: none !important; }
  body.printing-contract > .contract-print-sheet {
    width: 210mm !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body.printing-contract .contract-print-sheet > .pages {
    width: 210mm !important;
    min-height: 0 !important;
    display: block !important;
    margin: 0 !important;
  }

  .app-header,
  .editor-panel,
  .preview-toolbar,
    .calendar-dialog,
    .financial-dialog,
    .financial-entry-dialog,
    .work-center-dialog,
    .client-history-dialog,
    .messages-dialog,
    .checklist-dialog,
  .inventory-dialog,
  .piece-picker-dialog,
  .auth-dialog,
  .admin-dialog,
    .backup-dialog,
    .resource-dialog,
    .work-center-dialog.is-home-dashboard,
  .status-celebration,
  .mobile-bottom-nav,
  .toast {
    display: none !important;
  }

  .workspace,
  .contract-preview-dialog,
  .preview-panel,
  .document-stage,
  .pages {
    width: 210mm !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }

  .contract-preview-dialog {
    position: static !important;
    inset: auto !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .contract-page {
    width: 210mm;
    height: 296mm;
    min-height: 296mm;
    max-height: 296mm;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: none;
    break-after: page;
    break-inside: avoid-page;
    transform: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-contract .contract-print-sheet .contract-page { display: flex !important; }

  .contract-page:last-child {
    break-after: auto;
  }

  body.printing-checklist .workspace { display: none !important; }
  body.printing-checklist .checklist-print-sheet {
    width: 210mm;
    min-height: 297mm;
    display: block !important;
    box-sizing: border-box;
    padding: 12mm;
    background: #fff;
    color: #172231;
    font-family: Arial, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .checklist-print-sheet header { display: flex; align-items: center; gap: 8mm; padding-bottom: 5mm; border-bottom: .5mm solid #315f8f; }
  .checklist-print-sheet header img { width: 33mm; height: auto; }
  .checklist-print-sheet h1 { margin: 0 0 2mm; color: #315f8f; font-size: 18pt; }
  .checklist-print-sheet header p { margin: 0; font-size: 9pt; }
  .checklist-print-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin: 5mm 0; padding: 3mm; border: .3mm solid #b9c7d5; font-size: 8.5pt; }
  .checklist-print-sheet table { width: 100%; border-collapse: collapse; font-size: 8pt; }
  .checklist-print-sheet th,
  .checklist-print-sheet td { padding: 2mm; border: .25mm solid #9cacbd; text-align: left; vertical-align: top; }
  .checklist-print-sheet th { background: #eaf2f8; color: #274e77; }
  .checklist-print-sheet th:nth-child(1),
  .checklist-print-sheet th:nth-child(3),
  .checklist-print-sheet th:nth-child(4),
  .checklist-print-sheet td:nth-child(1),
  .checklist-print-sheet td:nth-child(3),
  .checklist-print-sheet td:nth-child(4) { width: 11mm; text-align: center; }
  .checklist-print-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; margin-top: 6mm; font-size: 8.5pt; }
  .checklist-print-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 18mm; margin-top: 20mm; }
  .checklist-print-signatures div { padding-top: 2mm; border-top: .3mm solid #333; font-size: 8.5pt; text-align: center; }

  body.printing-inventory > * { display: none !important; }
  body.printing-inventory > .inventory-print-sheet {
    width: 210mm;
    min-height: 297mm;
    display: block !important;
    box-sizing: border-box;
    padding: 12mm;
    background: #fff;
    color: #172231;
    font-family: Arial, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .inventory-print-sheet header { display: flex; align-items: center; gap: 8mm; padding-bottom: 5mm; border-bottom: .5mm solid #315f8f; }
  .inventory-print-sheet header img { width: 33mm; height: auto; }
  .inventory-print-sheet header p { margin: 0 0 1mm; color: #7050e8; font-size: 8.5pt; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  .inventory-print-sheet h1 { margin: 0 0 1mm; color: #173f67; font-size: 18pt; }
  .inventory-print-sheet header span { color: #52677e; font-size: 9pt; }
  .inventory-print-meta { display: flex; justify-content: space-between; gap: 6mm; margin: 5mm 0; color: #52677e; font-size: 8.5pt; }
  .inventory-print-sheet table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
  .inventory-print-sheet thead { display: table-header-group; }
  .inventory-print-sheet tr { break-inside: avoid-page; }
  .inventory-print-sheet th,
  .inventory-print-sheet td { padding: 2.5mm; border: .25mm solid #9cacbd; text-align: left; vertical-align: top; }
  .inventory-print-sheet th { background: #eaf2f8; color: #274e77; }
  .inventory-print-sheet th:nth-child(2),
  .inventory-print-sheet td:nth-child(2) { width: 35mm; text-align: right; white-space: nowrap; }
  .inventory-print-sheet th:nth-child(3),
  .inventory-print-sheet td:nth-child(3) { width: 42mm; text-align: center; }
}

/* Em tablets, as oportunidades priorizam os dados e levam as ações para uma linha própria. */
@media (min-width: 701px) and (max-width: 1040px) {
  .opportunity-list-heading { padding-inline: 24px; }
  .opportunity-list { padding-inline: 24px; }
  .opportunity-pagination { justify-content: center; padding-inline: 24px; }
  .opportunity-row {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
  }
  .opportunity-row__source { display: none; }
  .opportunity-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  .work-center-dialog.is-home-dashboard .work-center-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 700px) {
  .work-center-dialog.is-home-dashboard .work-center-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-bottom: 14px;
  }
  .work-center-dialog.is-home-dashboard .work-center-card {
    min-height: 112px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
    border-radius: 14px;
  }
  .work-center-dialog.is-home-dashboard .work-center-card > i { width: 38px; height: 38px; border-radius: 12px; }
  .work-center-dialog.is-home-dashboard .work-center-card > i svg { width: 20px; height: 20px; }
  .work-center-dialog.is-home-dashboard .work-center-card > .work-center-card__content { gap: 3px; padding-top: 1px; }
  .work-center-dialog.is-home-dashboard .work-center-card__content strong { font-size: 12px; }
  .work-center-dialog.is-home-dashboard .work-center-card__content b { font-size: 22px; }
  .work-center-dialog.is-home-dashboard .work-center-card__content small { font-size: 10px; }
}

/* Acervo de decorações — reorganização visual do cadastro e da lista editável. */
#inventoryDialog.inventory-dialog {
  width: min(1480px, calc(100vw - 48px));
  border: 1px solid #dce3ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 35, 59, .12);
}

#inventoryDialog .inventory-shell {
  background: #fff;
}

#inventoryDialog .inventory-header {
  align-items: flex-start;
  padding: 28px 30px 24px;
  border-bottom: 1px solid #e4e9f2;
  background: linear-gradient(115deg, #fbfcff 0%, #f7f5ff 100%);
}

#inventoryDialog .inventory-header > div:first-child {
  display: grid;
  gap: 5px;
}

#inventoryDialog .inventory-header > div:first-child > span {
  color: #6842e8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
}

#inventoryDialog .inventory-header h2 {
  margin: 0;
  color: #16233b;
  font-size: clamp(26px, 2.1vw, 30px);
  font-weight: 760;
  letter-spacing: -.028em;
  line-height: 1.12;
}

#inventoryDialog .inventory-header__actions {
  gap: 10px;
}

#inventoryDialog .inventory-header__actions .button,
#inventoryDialog #addInventoryPiece,
#inventoryDialog #applyInventoryBulk {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

#inventoryDialog .inventory-header__actions .button > i,
#inventoryDialog #addInventoryPiece > i,
#inventoryDialog #applyInventoryBulk > i {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

#inventoryDialog .inventory-header__actions .button > span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

#inventoryDialog .inventory-header__actions .button svg,
#inventoryDialog #addInventoryPiece svg,
#inventoryDialog #applyInventoryBulk svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#inventoryDialog .inventory-header__actions .button--quiet {
  color: #3b4161;
  border-color: #dce3ef;
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 38, 63, .03);
}

#inventoryDialog .inventory-header__actions .button--quiet:hover {
  color: #5834d6;
  border-color: #c7b9fa;
  background: #faf8ff;
}

#inventoryDialog .inventory-header__actions .button--primary,
#inventoryDialog #addInventoryPiece,
#inventoryDialog #applyInventoryBulk {
  border-color: #6842e8;
  background: #6842e8;
  box-shadow: 0 7px 16px rgba(104, 66, 232, .18);
}

#inventoryDialog .inventory-header__actions .button--primary:hover,
#inventoryDialog #addInventoryPiece:hover,
#inventoryDialog #applyInventoryBulk:hover {
  border-color: #5834d6;
  background: #5834d6;
}

#inventoryDialog .inventory-header .calendar-close {
  margin-left: 2px;
}

#inventoryDialog .inventory-add {
  grid-template-columns: minmax(300px, 1fr) minmax(175px, 205px) minmax(175px, 205px) auto;
  gap: 16px;
  padding: 20px 30px 0;
  border: 0;
  background: #fff;
}

#inventoryDialog .inventory-add .field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

#inventoryDialog .inventory-add .field > span,
#inventoryDialog .inventory-bulk-field > span,
#inventoryDialog .inventory-bulk-scope > span,
#inventoryDialog .inventory-list__header > span {
  color: #3a4863;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

#inventoryDialog .inventory-add input,
#inventoryDialog .inventory-bulk-field > input[type="number"],
#inventoryDialog .inventory-bulk-scope select,
#inventoryDialog .inventory-row input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d3dceb;
  border-radius: 8px;
  color: #16233b;
  background: #fff;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: 0 1px 1px rgba(29, 43, 66, .02);
}

#inventoryDialog .inventory-add input::placeholder,
#inventoryDialog .inventory-search input::placeholder {
  color: #8b98af;
}

#inventoryDialog .inventory-add input:focus,
#inventoryDialog .inventory-bulk-field > input[type="number"]:focus,
#inventoryDialog .inventory-bulk-scope select:focus,
#inventoryDialog .inventory-row input:focus,
#inventoryDialog .inventory-search input:focus {
  border-color: #8c70ed;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(104, 66, 232, .11);
}

#inventoryDialog .inventory-add .dialog-save-warning {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  color: #87510b !important;
  border-color: #eed79b;
  border-radius: 8px;
  background: #fff9e9;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

#inventoryDialog .inventory-add .dialog-save-warning > i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 17px;
  color: #b9790d;
}

#inventoryDialog .inventory-add .dialog-save-warning svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

#inventoryDialog .inventory-tools {
  align-items: end;
  gap: 18px;
  margin: 18px 30px 16px;
  padding: 15px 16px;
  border: 1px solid #e2def7;
  border-radius: 12px;
  background: #faf9ff;
}

#inventoryDialog .inventory-search {
  gap: 7px;
}

#inventoryDialog .inventory-search > span:first-child {
  color: #3a4863;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

#inventoryDialog .inventory-search__control {
  position: relative;
  display: block;
}

#inventoryDialog .inventory-search__control > i {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #71809a;
  pointer-events: none;
  transform: translateY(-50%);
}

#inventoryDialog .inventory-search__control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

#inventoryDialog .inventory-search input {
  min-height: 44px;
  padding: 10px 12px 10px 42px;
  border-color: #d3dceb;
  border-radius: 8px;
  font-size: 15px;
}

#inventoryDialog .inventory-tools > small {
  flex: 0 0 auto;
  padding: 0 2px 12px 0;
  color: #71809a;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

#inventoryDialog .inventory-bulk {
  gap: 14px;
  margin: 0 30px 16px;
  padding: 16px;
  border: 1px solid #e0e4f0;
  border-radius: 12px;
  background: #f7f8fc;
}

#inventoryDialog .inventory-bulk__heading {
  align-items: flex-start;
}

#inventoryDialog .inventory-bulk__heading > div {
  gap: 4px;
}

#inventoryDialog .inventory-bulk__heading strong {
  color: #16233b;
  font-size: 16px;
  font-weight: 720;
}

#inventoryDialog .inventory-bulk__heading small,
#inventoryDialog .inventory-bulk__heading > span {
  color: #71809a;
  font-size: 12px;
  line-height: 1.4;
}

#inventoryDialog .inventory-bulk__heading > span {
  padding-top: 2px;
  font-weight: 650;
}

#inventoryDialog .inventory-bulk__controls {
  grid-template-columns: minmax(230px, 1fr) minmax(230px, 1fr) minmax(180px, .75fr) auto;
  align-items: end;
  gap: 14px;
}

#inventoryDialog .inventory-bulk-field {
  grid-template-columns: 18px max-content minmax(100px, 135px);
  gap: 8px;
}

#inventoryDialog .inventory-bulk-field > input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #6842e8;
}

#inventoryDialog .inventory-bulk-field > input[type="number"],
#inventoryDialog .inventory-bulk-scope select {
  min-height: 42px;
  font-size: 14px;
}

#inventoryDialog .inventory-bulk-scope {
  gap: 7px;
}

#inventoryDialog .inventory-list {
  min-height: 0;
  margin: 0 30px;
  padding: 0;
  border: 1px solid #e0e6f0;
  border-radius: 12px;
  background: #fff;
  scrollbar-gutter: stable;
}

#inventoryDialog .inventory-list__header,
#inventoryDialog .inventory-row {
  grid-template-columns: minmax(0, 1fr) 170px 150px 158px;
}

#inventoryDialog .inventory-list__header {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid #e5eaf2;
  background: #f8f9fc;
}

#inventoryDialog .inventory-list__header > span {
  color: #596a84;
  font-size: 12px;
  font-weight: 750;
}

#inventoryDialog .inventory-row {
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid #edf0f5;
  transition: background .15s ease;
}

#inventoryDialog .inventory-row:first-child { padding-top: 7px; }
#inventoryDialog .inventory-row:last-child { border-bottom: 0; }
#inventoryDialog .inventory-row:hover { background: #faf9ff; }

#inventoryDialog .inventory-row .field {
  min-width: 0;
}

#inventoryDialog .inventory-row input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
}

#inventoryDialog .inventory-row__actions {
  justify-content: flex-end;
  gap: 8px;
}

#inventoryDialog .inventory-row__actions .button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  color: #6842e8;
  border-color: #cbbdf8;
  border-radius: 8px;
  background: #faf8ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

#inventoryDialog .inventory-row__actions .button:hover {
  color: #5834d6;
  border-color: #a98ff0;
  background: #f2efff;
}

#inventoryDialog .inventory-row__actions .button i,
#inventoryDialog .inventory-row__actions .button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

#inventoryDialog .inventory-row__actions .icon-button {
  width: 40px;
  height: 40px;
  color: #c64353;
  border: 1px solid #efc9cf;
  border-radius: 8px;
  background: #fffafb;
  font-size: 21px;
  line-height: 1;
}

#inventoryDialog .inventory-row__actions .icon-button:hover {
  color: #a83243;
  border-color: #e9a9b4;
  background: #fff1f3;
}

#inventoryDialog .inventory-pagination {
  min-height: 58px;
  margin: 14px 30px 20px;
  padding: 9px 0 0;
  border-top: 1px solid #e4e9f2;
  background: transparent;
}

html[data-theme="dark"] #inventoryDialog.inventory-dialog,
html[data-theme="dark"] #inventoryDialog .inventory-shell,
html[data-theme="dark"] #inventoryDialog .inventory-header,
html[data-theme="dark"] #inventoryDialog .inventory-list { background: #212121; border-color: #3c3c3c; }
html[data-theme="dark"] #inventoryDialog .inventory-header { background: linear-gradient(115deg, #242228 0%, #202020 100%); }
html[data-theme="dark"] #inventoryDialog .inventory-header h2,
html[data-theme="dark"] #inventoryDialog .inventory-add .field > span,
html[data-theme="dark"] #inventoryDialog .inventory-bulk__heading strong { color: #f0f0f0; }
html[data-theme="dark"] #inventoryDialog .inventory-add,
html[data-theme="dark"] #inventoryDialog .inventory-row { background: #212121; }
html[data-theme="dark"] #inventoryDialog .inventory-tools,
html[data-theme="dark"] #inventoryDialog .inventory-bulk,
html[data-theme="dark"] #inventoryDialog .inventory-list__header { border-color: #3f3f46; background: #29272e; }
html[data-theme="dark"] #inventoryDialog .inventory-row { border-color: #363636; }
html[data-theme="dark"] #inventoryDialog .inventory-row:hover { background: #29262f; }
html[data-theme="dark"] #inventoryDialog .inventory-add input,
html[data-theme="dark"] #inventoryDialog .inventory-bulk-field > input[type="number"],
html[data-theme="dark"] #inventoryDialog .inventory-bulk-scope select,
html[data-theme="dark"] #inventoryDialog .inventory-row input,
html[data-theme="dark"] #inventoryDialog .inventory-search input { color: #f0f0f0; border-color: #4a4a4a; background: #2a2a2a; }

@media (max-width: 980px) {
  #inventoryDialog.inventory-dialog { width: min(100%, calc(100vw - 24px)); }
  #inventoryDialog .inventory-header { padding: 22px; }
  #inventoryDialog .inventory-add { grid-template-columns: minmax(0, 1fr) minmax(155px, 190px) minmax(155px, 190px); padding-inline: 22px; }
  #inventoryDialog #addInventoryPiece { grid-column: 1 / -1; justify-self: end; }
  #inventoryDialog .inventory-tools,
  #inventoryDialog .inventory-bulk { margin-inline: 22px; }
  #inventoryDialog .inventory-bulk__controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #inventoryDialog #applyInventoryBulk { justify-self: end; }
  #inventoryDialog .inventory-list,
  #inventoryDialog .inventory-pagination { margin-inline: 22px; }
  #inventoryDialog .inventory-list__header,
  #inventoryDialog .inventory-row { grid-template-columns: minmax(0, 1fr) 145px 128px 148px; }
}

@media (max-width: 700px) {
  #inventoryDialog.inventory-dialog { width: 100%; border-radius: 0; }
  #inventoryDialog .inventory-header { align-items: stretch; flex-direction: column; padding: 18px 16px; }
  #inventoryDialog .inventory-header__actions { justify-content: stretch; flex-wrap: wrap; }
  #inventoryDialog .inventory-header__actions .button { flex: 1 1 150px; }
  #inventoryDialog .inventory-add { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  #inventoryDialog #addInventoryPiece { width: 100%; grid-column: auto; }
  #inventoryDialog .inventory-tools,
  #inventoryDialog .inventory-bulk { margin: 14px 16px; }
  #inventoryDialog .inventory-tools { align-items: stretch; flex-direction: column; }
  #inventoryDialog .inventory-tools > small { padding: 0; white-space: normal; }
  #inventoryDialog .inventory-bulk__controls { grid-template-columns: 1fr; }
  #inventoryDialog #applyInventoryBulk { width: 100%; justify-self: auto; }
  #inventoryDialog .inventory-list,
  #inventoryDialog .inventory-pagination { margin-inline: 16px; }
  #inventoryDialog .inventory-list__header { display: none; }
  #inventoryDialog .inventory-row { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  #inventoryDialog .inventory-row .field:first-child,
  #inventoryDialog .inventory-row__actions { grid-column: 1 / -1; }
  #inventoryDialog .inventory-row .field > .visually-hidden {
    width: auto;
    height: auto;
    position: static;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    display: block;
    margin-bottom: 5px;
    color: #3a4863;
    font-size: 12px;
    font-weight: 700;
  }
  #inventoryDialog .inventory-row__actions { justify-content: stretch; }
  #inventoryDialog .inventory-row__actions .button { flex: 1; }
}

/* Histórico de clientes — filtros e indicadores com leitura imediata. */
#clientHistoryDialog { container-type: inline-size; container-name: client-history-dialog; }

#clientHistoryDialog .client-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 16px 20px;
  padding: 14px 20px;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 35, 58, .04);
}

#clientHistoryDialog .client-history-toolbar > .inventory-search {
  min-width: 0;
  flex: 0 1 185px;
  display: grid;
  gap: 6px;
}

#clientHistoryDialog .client-history-toolbar > .client-history-search-filter {
  flex: 0 1 330px;
  min-width: min(100%, 300px);
}

#clientHistoryDialog .client-history-toolbar input,
#clientHistoryDialog .client-history-toolbar select { min-width: 0; }
#clientHistoryDialog .client-history-toolbar > label:nth-of-type(2) { flex-basis: 185px; }
#clientHistoryDialog .client-history-toolbar > label:nth-of-type(3) { flex-basis: 195px; }
#clientHistoryDialog .client-history-toolbar > .client-history-date-filter { flex: 0 1 145px; }
#clientHistoryDialog .client-history-toolbar > .client-history-year-filter { flex: 0 1 145px; }

#clientHistoryDialog .client-history-toolbar > .inventory-search > span:first-child {
  color: #53627a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 14px;
  text-transform: uppercase;
}

#clientHistoryDialog .client-history-toolbar input,
#clientHistoryDialog .client-history-toolbar select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  color: #25324a;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 450;
  line-height: 20px;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

#clientHistoryDialog .client-history-toolbar input::placeholder { color: #8b98ad; }

#clientHistoryDialog .client-history-toolbar input:focus,
#clientHistoryDialog .client-history-toolbar select:focus {
  border-color: #7c5cfc;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(108, 75, 246, .10);
}

#clientHistoryDialog .client-history-search-control,
#clientHistoryDialog .client-history-date-control {
  position: relative;
  display: block;
  min-width: 0;
}

#clientHistoryDialog .client-history-search-control > i,
#clientHistoryDialog .client-history-date-control > i {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #7888a3;
  pointer-events: none;
  transform: translateY(-50%);
}

#clientHistoryDialog .client-history-search-control > i { left: 12px; }

#clientHistoryDialog .client-history-search-control svg,
#clientHistoryDialog .client-history-date-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#clientHistoryDialog .client-history-search-control input { padding-left: 40px; }
#clientHistoryDialog .client-history-date-control input { padding-right: 40px; padding-left: 12px; }

#clientHistoryDialog .client-history-toolbar select {
  padding-right: 38px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353627A' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 14px;
}

#clientHistoryDialog #clearClientHistorySearch {
  flex: 0 0 120px;
  width: auto;
  min-width: 120px;
  min-height: 40px;
  align-self: end;
  justify-content: center;
  padding: 9px 13px;
  color: #6842e8;
  border-color: #d8ccff;
  border-radius: 8px;
  background: #faf8ff;
  font-size: 13px;
  font-weight: 650;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

#clientHistoryDialog #clearClientHistorySearch:hover {
  color: #5834d6;
  border-color: #bfaeff;
  background: #f4f0ff;
}

#clientHistoryDialog .client-value-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}

#clientHistoryDialog .client-history-detail {
  container-name: client-history-detail;
  container-type: inline-size;
}

#clientHistoryDialog .client-value-summary > .client-value-summary__card {
  min-width: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #e4e5fa;
  border-radius: 11px;
  background: #faf9ff;
  box-shadow: 0 2px 6px rgba(42, 35, 100, .035);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#clientHistoryDialog .client-value-summary > .client-value-summary__card:hover {
  border-color: #d8d0fa;
  background: #fff;
  box-shadow: 0 4px 12px rgba(62, 49, 130, .07);
}

#clientHistoryDialog .client-value-summary__card > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  color: #6842e8;
  border-radius: 11px;
  background: #f1edff;
}

#clientHistoryDialog .client-value-summary__card > i svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#clientHistoryDialog .client-value-summary__card > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

#clientHistoryDialog .client-value-summary__card span {
  color: #687792;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

#clientHistoryDialog .client-value-summary__card strong {
  min-width: 0;
  overflow: hidden;
  color: #6842e8;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 740;
  letter-spacing: -.012em;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#clientHistoryDialog .client-value-summary > .client-value-summary__card.has-balance,
#clientHistoryDialog .client-value-summary > .client-value-summary__card.has-balance strong {
  color: #6842e8;
  border-color: #e4e5fa;
  background: #faf9ff;
}

html[data-theme="dark"] #clientHistoryDialog .client-history-toolbar { border-color: #41414a; background: #27272b; box-shadow: none; }
html[data-theme="dark"] #clientHistoryDialog .client-history-toolbar > .inventory-search > span:first-child,
html[data-theme="dark"] #clientHistoryDialog .client-value-summary__card span { color: #aeb7c6; }
html[data-theme="dark"] #clientHistoryDialog .client-history-toolbar input,
html[data-theme="dark"] #clientHistoryDialog .client-history-toolbar select { color: #eee; border-color: #4a4a4a; background-color: #2b2b2f; }
html[data-theme="dark"] #clientHistoryDialog .client-value-summary > .client-value-summary__card,
html[data-theme="dark"] #clientHistoryDialog .client-value-summary > .client-value-summary__card.has-balance { border-color: #464250; background: #29272f; box-shadow: none; }
html[data-theme="dark"] #clientHistoryDialog .client-value-summary > .client-value-summary__card:hover { border-color: #645c78; background: #302d37; }
html[data-theme="dark"] #clientHistoryDialog .client-value-summary__card > i { background: #37304d; }

@container client-history-dialog (min-width: 1320px) {
  #clientHistoryDialog .client-history-toolbar {
    display: grid;
    grid-template-columns: minmax(320px, 1.75fr) minmax(170px, .9fr) minmax(180px, 1fr) repeat(3, minmax(135px, .72fr)) minmax(118px, .65fr);
  }
  #clientHistoryDialog .client-history-toolbar > .inventory-search,
  #clientHistoryDialog .client-history-toolbar > .client-history-search-filter,
  #clientHistoryDialog .client-history-toolbar > .client-history-date-filter,
  #clientHistoryDialog .client-history-toolbar > .client-history-year-filter { min-width: 0; }
  #clientHistoryDialog #clearClientHistorySearch { width: 100%; min-width: 0; }
}

@container client-history-detail (max-width: 720px) {
  #clientHistoryDialog .client-value-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container client-history-detail (max-width: 420px) {
  #clientHistoryDialog .client-value-summary { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  #clientHistoryDialog .client-history-toolbar { align-items: stretch; margin: 12px 14px; padding: 14px; }
  #clientHistoryDialog .client-history-toolbar > .inventory-search,
  #clientHistoryDialog .client-history-toolbar > .client-history-search-filter,
  #clientHistoryDialog .client-history-toolbar > .client-history-date-filter,
  #clientHistoryDialog .client-history-toolbar > .client-history-year-filter { min-width: min(100%, 220px); flex: 1 1 220px; }
  #clientHistoryDialog #clearClientHistorySearch { flex: 1 1 150px; }
}

@media (max-width: 500px) {
  #clientHistoryDialog .client-history-toolbar > .inventory-search,
  #clientHistoryDialog .client-history-toolbar > .client-history-search-filter,
  #clientHistoryDialog .client-history-toolbar > .client-history-date-filter,
  #clientHistoryDialog .client-history-toolbar > .client-history-year-filter,
  #clientHistoryDialog #clearClientHistorySearch { flex-basis: 100%; }
  #clientHistoryDialog .client-value-summary { grid-template-columns: minmax(0, 1fr); }
  #clientHistoryDialog .client-value-summary > .client-value-summary__card { min-height: 70px; }
}

/* Mantém a experiência operacional v123 acima das regras legadas do checklist. */
.checklist-shell { grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; background: #f4f6fa; }
.checklist-header { align-items: center; padding: 20px 24px; background: linear-gradient(135deg, #eef2ff 0%, #fff 72%); }
.checklist-header span { color: #6842e8; font-size: 12px; }
.checklist-header h2 { color: #17243d; font-size: clamp(22px, 2.3vw, 29px); line-height: 1.15; }
.checklist-header p { color: #687792; font-size: 13px; }
.checklist-summary { padding: 8px 24px 14px; border-bottom: 1px solid #dce3ef; background: #f4f6fa; }
.checklist-summary > div { min-height: 64px; padding: 10px 13px; border-color: #dde3ed; background: #fff; box-shadow: 0 2px 6px rgba(42, 35, 100, .035); }
.checklist-summary span { color: #687792; font-size: 11px; }
.checklist-summary strong { color: #6842e8; font-size: 22px; }
.checklist-summary small { color: #7888a3; font-size: 11px; }
.checklist-summary .has-issues { border-color: #f0c0c5; background: #fff8f8; }
.checklist-summary .has-issues strong { color: #c43c4b; }
.checklist-list { padding: 14px 24px 22px; }
.checklist-item-name span, .checklist-progress > span { color: #687792; font-size: 11px; }
.checklist-item-name strong { color: #17243d; font-size: 16px; line-height: 1.32; }
.checklist-item-name small { color: #7888a3; font-size: 13px; }
.checklist-footer { padding: 13px 24px; }
.checklist-footer .button { min-height: 42px; }
html[data-theme="dark"] .checklist-shell, html[data-theme="dark"] .checklist-phase-heading, html[data-theme="dark"] .checklist-summary { background: #111b29; }
html[data-theme="dark"] .checklist-header, html[data-theme="dark"] .checklist-phase-tabs, html[data-theme="dark"] .checklist-footer { background: #172538; border-color: #34465b; }
html[data-theme="dark"] .checklist-header h2, html[data-theme="dark"] .checklist-phase-heading h3, html[data-theme="dark"] .checklist-item-name strong { color: #f3f6fb; }

@media (max-width: 760px) {
  .checklist-header { align-items: flex-start; padding: 16px 13px; }
  .checklist-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px 10px 11px; }
  .checklist-summary > div { min-height: 58px; }
  .checklist-list { padding: 10px 10px 18px; }
  .checklist-footer { align-items: stretch; flex-direction: column; padding: 11px 10px; }
  .checklist-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Portal do cliente — gestão do link e acompanhamento pelo contrato */
.contract-section-actions{display:flex;align-items:center;gap:8px}.contract-portal-button>i{display:grid;place-items:center;width:18px;height:18px;border:1.5px solid currentColor;border-radius:50%;font-style:normal;font-size:0}.contract-portal-button>i:after{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.client-portal-dialog{width:min(920px,calc(100vw - 28px));max-height:min(820px,calc(100vh - 24px))}.client-portal-dialog .resource-shell{padding:0}.client-portal-dialog .resource-shell>header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px;border-bottom:1px solid #dce3ee;background:linear-gradient(120deg,#f6f8fc,#f6f3ff)}.client-portal-dialog .resource-shell>header span{display:block;color:#6842e8;font-size:12px;font-weight:800;letter-spacing:.055em;text-transform:uppercase}.client-portal-dialog .resource-shell>header h2{margin:4px 0 2px;font-size:25px}.client-portal-dialog .resource-shell>header p{margin:0;color:#687792}.client-portal-dialog .dialog-close{flex:0 0 auto;width:38px;height:38px;border:1px solid #dce3ee;border-radius:50%;background:#fff;color:#53627a;font-size:22px;cursor:pointer}.portal-admin-status{display:flex;align-items:center;gap:12px;margin:18px 26px 0;padding:13px 15px;border:1px solid #dce3ee;border-radius:10px;background:#f8fafc}.portal-admin-status i{width:11px;height:11px;border-radius:50%;background:#94a0b3;box-shadow:0 0 0 5px rgba(148,160,179,.12)}.portal-admin-status.is-active i{background:#12a474;box-shadow:0 0 0 5px rgba(18,164,116,.12)}.portal-admin-status span{display:grid}.portal-admin-status small{color:#687792}.portal-admin-link{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;align-items:end;gap:14px;margin:14px 26px;padding:16px;border:1px solid #e2def7;border-radius:11px;background:#faf9ff}.portal-admin-link>div{display:grid}.portal-admin-link small{color:#687792}.portal-admin-link label{display:grid;gap:5px;color:#53627a;font-size:12px;font-weight:750}.portal-admin-link select{height:40px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 10px}.portal-admin-generated{display:grid;grid-template-columns:1fr auto auto;gap:8px;margin:0 26px 14px}.portal-admin-generated input{min-width:0;height:42px;border:1px solid #cfc4fa;border-radius:8px;padding:0 12px;background:#fff;color:#53627a}.portal-admin-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 26px 14px}.portal-admin-summary article{padding:13px 14px;border:1px solid #e1ddf7;border-radius:9px;background:#fbfaff}.portal-admin-summary small{display:block;color:#687792;font-size:11px;font-weight:750;text-transform:uppercase}.portal-admin-summary strong{display:block;margin-top:3px;color:#6842e8;font-size:16px}.portal-admin-activity{margin:0 26px 14px;border:1px solid #dce3ee;border-radius:11px;overflow:hidden}.portal-admin-activity__heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 15px;border-bottom:1px solid #dce3ee;background:#f8fafc}.portal-admin-activity__heading>div{display:grid}.portal-admin-activity__heading small{color:#687792}.portal-admin-feed{max-height:290px;overflow:auto}.portal-admin-event{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 14px;border-bottom:1px solid #edf0f5}.portal-admin-event:last-child{border-bottom:0}.portal-admin-event>i{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#f1edff;color:#6842e8;font-style:normal;font-weight:800}.portal-admin-event>span{display:grid;min-width:0}.portal-admin-event>span small{color:#687792}.portal-admin-event>span em{color:#53627a;font-size:12px;font-style:normal;overflow-wrap:anywhere}.portal-admin-event>div{display:flex;align-items:center;gap:7px}.portal-admin-message{display:grid;grid-template-columns:1fr auto;align-items:end;gap:12px;margin:0 26px 24px;padding:15px;border:1px solid #dce3ee;border-radius:11px;background:#f8fafc}.portal-admin-message label{display:grid;gap:5px;color:#53627a;font-size:12px;font-weight:750}.portal-admin-message textarea{width:100%;border:1px solid #dce3ee;border-radius:8px;padding:9px 11px;resize:vertical;background:#fff}.portal-admin-message textarea:focus{outline:0;border-color:#7959f5;box-shadow:0 0 0 3px rgba(108,75,246,.1)}
@media(max-width:700px){.contract-section-actions{width:100%;justify-content:flex-end}.contract-portal-button span{display:none}.portal-admin-link{grid-template-columns:1fr}.portal-admin-generated{grid-template-columns:1fr 1fr}.portal-admin-generated input{grid-column:1/-1}.portal-admin-summary{grid-template-columns:1fr}.portal-admin-event{grid-template-columns:38px minmax(0,1fr)}.portal-admin-event>div{grid-column:2}.portal-admin-message{grid-template-columns:1fr}.client-portal-dialog .resource-shell>header,.portal-admin-status,.portal-admin-link,.portal-admin-generated,.portal-admin-summary,.portal-admin-activity,.portal-admin-message{margin-left:14px;margin-right:14px}.client-portal-dialog .resource-shell>header{margin:0;padding:20px 16px}}

/* Central de automações — v130 */
.automations-dialog{width:min(1240px,calc(100vw - 28px));height:min(880px,calc(100vh - 24px));max-height:none}.automations-shell{display:flex;flex-direction:column;height:100%;padding:0;background:#f5f7fb}.automations-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px 20px;border-bottom:1px solid #dce3ee;background:linear-gradient(120deg,#fff 0%,#f6f3ff 100%)}.automations-header>div:first-child>span,.automation-builder>header span{color:#6842e8;font-size:11px;font-weight:800;letter-spacing:.075em}.automations-header h2,.automation-builder>header h2{margin:5px 0 2px;color:#17243d;font-size:27px;line-height:1.15}.automations-header p,.automation-builder>header p{margin:0;color:#687792}.automations-header>div:last-child{display:flex;align-items:center;gap:9px}.automation-engine-status{display:flex;align-items:center;gap:12px;margin:16px 24px 0;padding:12px 15px;border:1px solid #d8e9e2;border-radius:11px;background:#f5fbf8}.automation-engine-status>i{width:11px;height:11px;border-radius:50%;background:#14a673;box-shadow:0 0 0 5px rgba(20,166,115,.11)}.automation-engine-status>span{display:grid;min-width:0}.automation-engine-status>span strong{color:#17243d}.automation-engine-status>span small{color:#687792}.automation-engine-status .text-button{margin-left:auto;white-space:nowrap}.automation-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin:14px 24px}.automation-summary article{display:flex;align-items:center;gap:11px;min-width:0;padding:13px 15px;border:1px solid #e0e4ee;border-radius:11px;background:#fff;box-shadow:0 2px 7px rgba(24,35,58,.035)}.automation-summary article>i{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#f1edff;color:#6842e8}.automation-summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.automation-summary article>span{display:grid;min-width:0}.automation-summary small{color:#687792;font-size:11px;font-weight:700;text-transform:uppercase}.automation-summary strong{color:#17243d;font-size:21px;line-height:1.15}.automation-tabs{display:flex;gap:4px;padding:0 24px;border-bottom:1px solid #dce3ee}.automation-tabs button{position:relative;padding:11px 16px;border:0;border-bottom:3px solid transparent;background:transparent;color:#687792;font-weight:750;cursor:pointer}.automation-tabs button.is-active{border-color:#6842e8;color:#6842e8}.automation-tabs em{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:5px;padding:0 5px;border-radius:999px;background:#e64f63;color:#fff;font-size:10px;font-style:normal}.automation-panel{display:none;min-height:0;overflow:auto;padding:16px 24px 24px}.automation-panel.is-active{display:block;flex:1}.automation-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 210px;gap:12px;margin-bottom:13px}.automation-toolbar label{display:grid;gap:5px;color:#53627a;font-size:11px;font-weight:750;text-transform:uppercase}.automation-toolbar input,.automation-toolbar select{height:41px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 12px;color:#25324a}.automation-toolbar input:focus,.automation-toolbar select:focus{outline:0;border-color:#7959f5;box-shadow:0 0 0 3px rgba(108,75,246,.1)}.automation-list{display:grid;gap:10px}.automation-rule{display:grid;grid-template-columns:42px 46px minmax(0,1fr) auto;align-items:center;gap:13px;padding:14px 15px;border:1px solid #dfe4ed;border-left:3px solid #c7cfdd;border-radius:11px;background:#fff;transition:180ms ease}.automation-rule:hover{border-color:#d3c9fa;box-shadow:0 4px 14px rgba(48,39,100,.06)}.automation-rule.is-active{border-left-color:#6842e8}.automation-toggle{display:flex;align-items:center;width:40px;height:23px;padding:3px;border:0;border-radius:999px;background:#cbd3df;cursor:pointer;transition:.18s}.automation-toggle i{width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(20,30,50,.22);transition:.18s}.automation-toggle[aria-pressed=true]{background:#6842e8}.automation-toggle[aria-pressed=true] i{transform:translateX(17px)}.automation-rule__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:#f1edff;color:#6842e8}.automation-rule__icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.automation-rule__main{display:grid;min-width:0;gap:4px}.automation-rule__main>span{display:flex;align-items:center;gap:8px}.automation-rule__main>span strong{color:#17243d;font-size:15px}.automation-rule__main>span em{padding:3px 7px;border-radius:999px;background:#f1edff;color:#6842e8;font-size:9px;font-style:normal;font-weight:800;text-transform:uppercase}.automation-rule__main>p{margin:0;color:#687792;font-size:12px}.automation-flow{display:flex;align-items:center;gap:7px;min-width:0;color:#53627a;font-size:12px}.automation-flow b{color:#6842e8;font-size:10px;text-transform:uppercase}.automation-flow i{color:#9aa6b8;font-style:normal}.automation-tags{display:flex;flex-wrap:wrap;gap:5px}.automation-tags small{padding:3px 7px;border-radius:999px;background:#f5f7fa;color:#6c7990;font-size:10px}.automation-rule__status{display:grid;justify-items:end;min-width:145px}.automation-rule__status strong{color:#14a673;font-size:12px}.automation-rule.is-paused .automation-rule__status strong{color:#7c899d}.automation-rule__status small{color:#8996a9;font-size:10px}.automation-rule__actions{grid-column:4;display:flex;justify-content:flex-end;gap:6px}.automation-more{width:32px;height:32px;border:1px solid #dce3ee;border-radius:8px;background:#fff;color:#53627a;cursor:pointer}.automation-more--danger{border-color:#f0cbd1;color:#c54256}.automation-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.automation-feed-heading>div{display:grid}.automation-feed-heading small{color:#687792}.automation-feed-heading select{height:38px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 10px}.automation-alert-list,.automation-history-list{display:grid;gap:9px}.automation-alert,.automation-run{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid #dfe4ed;border-radius:10px;background:#fff}.automation-alert>i,.automation-run>i{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#f1edff;color:#6842e8;font-style:normal;font-weight:850}.automation-alert.urgency-urgent>i,.automation-run.status-failed>i{background:#fff0f2;color:#d64258}.automation-alert.urgency-attention>i{background:#fff7e8;color:#d98400}.automation-alert>span,.automation-run>span{display:grid;min-width:0}.automation-alert p,.automation-run p{margin:2px 0;color:#53627a}.automation-alert small,.automation-run small{color:#8996a9}.automation-alert>div{display:flex;gap:7px}.automation-alert.is-read{opacity:.66}.automation-run>em{padding:5px 9px;border-radius:999px;background:#eef8f4;color:#16815e;font-size:10px;font-style:normal;font-weight:800;text-transform:uppercase}.automation-run.status-failed>em{background:#fff0f2;color:#c83b51}.automation-builder-dialog{width:min(920px,calc(100vw - 28px));max-height:calc(100vh - 24px)}.automation-builder{padding:0;background:#f6f8fb}.automation-builder>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid #dce3ee;background:#fff}.automation-builder-step{display:grid;grid-template-columns:38px minmax(0,1fr);gap:14px;margin:14px 20px;padding:18px;border:1px solid #dfe4ed;border-radius:12px;background:#fff}.automation-builder-step>i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#6842e8;color:#fff;font-style:normal;font-weight:800}.automation-builder-step>div{display:grid;gap:10px}.automation-builder-step>div>span{color:#6842e8;font-size:10px;font-weight:850;letter-spacing:.07em}.automation-builder-step>div>p{margin:-3px 0 0;color:#687792;font-size:12px}.automation-builder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.automation-builder .field{display:grid;gap:5px}.automation-builder .field>span{color:#53627a;font-size:11px;font-weight:750;text-transform:uppercase}.automation-builder input,.automation-builder select,.automation-builder textarea{width:100%;border:1px solid #dce3ee;border-radius:8px;background:#fff;color:#25324a;font:inherit}.automation-builder input,.automation-builder select{height:41px;padding:0 11px}.automation-builder textarea{padding:10px 11px;resize:vertical}.automation-builder input:focus,.automation-builder select:focus,.automation-builder textarea:focus{outline:0;border-color:#7959f5;box-shadow:0 0 0 3px rgba(108,75,246,.1)}.automation-message-field small{color:#7d8aa0;font-size:11px}.automation-checks{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.automation-checks>label,.automation-builder-footer>label{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #e2e6ee;border-radius:9px;background:#f8fafc}.automation-checks input,.automation-builder-footer input{flex:0 0 auto;width:17px;height:17px;margin-top:2px;accent-color:#6842e8}.automation-checks span,.automation-builder-footer span{display:grid}.automation-checks strong,.automation-builder-footer strong{color:#25324a;font-size:12px}.automation-checks small,.automation-builder-footer small{color:#7d8aa0;font-size:10px}.automation-number-suffix{display:flex!important;align-items:center;border:1px solid #dce3ee;border-radius:8px;background:#fff;overflow:hidden}.automation-number-suffix input{border:0!important;border-radius:0!important;box-shadow:none!important}.automation-number-suffix b{padding:0 11px;color:#687792}.automation-builder-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px;border-top:1px solid #dce3ee;background:rgba(255,255,255,.97)}.automation-builder-footer>label{padding:7px 10px}.automation-builder-footer>div{display:flex;gap:8px}.automation-test-result{display:grid;grid-template-columns:50px minmax(0,1fr);gap:14px;padding:22px}.automation-test-result>i{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#eef9f5;color:#159269;font-style:normal;font-size:22px}.automation-test-result>i.is-warning{background:#fff7e8;color:#d98400}.automation-test-result>div{display:grid;gap:10px}.automation-test-result dl{display:grid;grid-template-columns:repeat(3,1fr);margin:0;border:1px solid #dce3ee;border-radius:9px;overflow:hidden}.automation-test-result dl>div{padding:10px;border-right:1px solid #dce3ee}.automation-test-result dl>div:last-child{border:0}.automation-test-result dt{color:#687792;font-size:10px;text-transform:uppercase}.automation-test-result dd{margin:2px 0 0;color:#17243d;font-weight:700}.automation-test-result blockquote{margin:0;padding:13px;border-left:3px solid #6842e8;border-radius:0 8px 8px 0;background:#faf9ff;color:#53627a}.automation-scheduler-content{display:grid;grid-template-columns:1fr auto;gap:10px;padding:20px}.automation-scheduler-content label{display:grid;gap:5px}.automation-scheduler-content label span{color:#53627a;font-size:11px;font-weight:750;text-transform:uppercase}.automation-scheduler-content input{min-width:0;height:41px;border:1px solid #dce3ee;border-radius:8px;padding:0 11px;color:#53627a}.automation-scheduler-content p{grid-column:1/-1;margin:0;color:#687792;font-size:12px}
@media(max-width:900px){.automation-summary{grid-template-columns:repeat(2,1fr)}.automation-rule{grid-template-columns:42px 46px minmax(0,1fr)}.automation-rule__status{grid-column:3;justify-items:start}.automation-rule__actions{grid-column:3}.automation-checks{grid-template-columns:1fr}.automation-builder-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.automations-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.automations-header{padding:18px 15px}.automations-header>div:last-child .button--quiet{display:none}.automations-header>div:first-child p{display:none}.automations-header h2{font-size:22px}.automation-engine-status{margin:12px 12px 0}.automation-engine-status .text-button{display:none}.automation-summary{margin:12px;gap:7px}.automation-summary article{padding:10px}.automation-summary article>i{display:none}.automation-tabs{padding:0 12px}.automation-tabs button{flex:1;padding:10px 5px;font-size:11px}.automation-panel{padding:12px}.automation-toolbar{grid-template-columns:1fr}.automation-rule{grid-template-columns:38px minmax(0,1fr);gap:9px;padding:12px}.automation-rule__icon{display:none}.automation-rule__main{grid-column:2}.automation-flow{align-items:flex-start;flex-wrap:wrap}.automation-flow i{display:none}.automation-rule__status,.automation-rule__actions{grid-column:2}.automation-rule__actions{justify-content:flex-start;flex-wrap:wrap}.automation-alert,.automation-run{grid-template-columns:38px minmax(0,1fr)}.automation-alert>div,.automation-run>em{grid-column:2;justify-self:start}.automation-builder-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.automation-builder-step{grid-template-columns:1fr;margin:10px;padding:14px}.automation-builder-step>i{display:none}.automation-builder-grid{grid-template-columns:1fr}.automation-builder-footer{align-items:stretch;flex-direction:column}.automation-builder-footer>div{display:grid;grid-template-columns:1fr 1fr}.automation-test-result dl{grid-template-columns:1fr}.automation-test-result dl>div{border-right:0;border-bottom:1px solid #dce3ee}.automation-scheduler-content{grid-template-columns:1fr}.automation-scheduler-content p{grid-column:auto}}

/* Pré-pedidos — fase 2: criação administrativa e link seguro */
#workCenterPreorder svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.preorder-create-dialog{width:min(980px,calc(100vw - 28px));max-height:min(880px,calc(100dvh - 24px));padding:0}.preorder-create-shell{display:flex;flex-direction:column;min-height:0;background:#f5f7fb}.preorder-create-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:23px 25px 20px;border-bottom:1px solid #dce3ee;background:linear-gradient(120deg,#fff,#f6f3ff)}.preorder-create-header>div{min-width:0}.preorder-create-header span{color:#6842e8;font-size:11px;font-weight:800;letter-spacing:.075em}.preorder-create-header h2{margin:5px 0 3px;color:#17243d;font-size:27px;line-height:1.15}.preorder-create-header p{margin:0;color:#687792}.preorder-create-form{padding:19px 24px 0}.preorder-create-grid{display:grid;grid-template-columns:1.1fr 1.6fr .85fr;gap:13px}.preorder-create-grid .field{display:grid;gap:6px}.preorder-create-grid .field>span,.preorder-created>label>span:first-child{color:#53627a;font-size:11px;font-weight:750;text-transform:uppercase}.preorder-create-grid input,.preorder-create-grid select{width:100%;height:42px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 12px;color:#25324a;font:inherit}.preorder-create-grid input:focus,.preorder-create-grid select:focus,.preorder-created__link input:focus{outline:0;border-color:#7959f5;box-shadow:0 0 0 3px rgba(108,75,246,.1)}.preorder-create-grid .field small{color:#7d8aa0;font-size:11px}.preorder-create-grid__package{grid-column:span 2}.preorder-no-hold{display:flex;align-items:flex-start;gap:12px;margin-top:16px;padding:13px 14px;border:1px solid #f0d495;border-radius:10px;background:#fff9ea}.preorder-no-hold>i,.preorder-created__success>i{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#fff0c7;color:#b77100}.preorder-no-hold>i svg,.preorder-created__success>i svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9}.preorder-no-hold>span{display:grid;gap:2px}.preorder-no-hold strong{color:#704700}.preorder-no-hold small{color:#7d6742;line-height:1.45}.preorder-create-footer{display:flex;justify-content:flex-end;gap:9px;margin:16px -24px 0;padding:14px 24px;border-top:1px solid #dce3ee;background:#fff}.preorder-created{margin:18px 24px 0;padding:17px;border:1px solid #cfc4fa;border-radius:12px;background:#faf9ff}.preorder-created__success{display:flex;align-items:center;gap:12px}.preorder-created__success>i{background:#eaf8f2;color:#159269}.preorder-created__success span{display:grid;min-width:0}.preorder-created__success small{color:#6842e8;font-size:11px;font-weight:800}.preorder-created__success strong{color:#17243d;font-size:18px}.preorder-created__success p{margin:2px 0 0;color:#687792}.preorder-created>label{display:grid;gap:6px;margin-top:14px}.preorder-created__link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.preorder-created__link input{min-width:0;height:42px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 11px;color:#53627a}.preorder-created__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.preorder-recent{margin:18px 24px 24px;border:1px solid #dce3ee;border-radius:12px;background:#fff;overflow:hidden}.preorder-recent>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #e5e9f0;background:#f8fafc}.preorder-recent>header>div{display:grid}.preorder-recent>header small{color:#687792}.preorder-recent-list{max-height:260px;overflow:auto}.preorder-recent-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(170px,.85fr) auto;align-items:center;gap:12px;padding:12px 15px;border-bottom:1px solid #edf0f5}.preorder-recent-row:last-child{border-bottom:0}.preorder-recent-row>span{display:grid;min-width:0}.preorder-recent-row strong{color:#17243d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preorder-recent-row small{color:#687792}.preorder-recent-row em{justify-self:start;padding:4px 8px;border-radius:999px;background:#f1edff;color:#6842e8;font-size:10px;font-style:normal;font-weight:800}.preorder-recent-row em.is-inactive{background:#f1f3f6;color:#7b8799}.preorder-recent-row>div{display:flex;justify-content:flex-end;gap:6px}.preorder-recent-row .button{white-space:nowrap}.preorder-create-dialog .resource-empty{padding:26px}.preorder-create-dialog .auth-error{margin-top:10px}.preorder-create-dialog.is-result .preorder-create-form{display:none}.preorder-create-dialog.is-result .preorder-created{display:block}.preorder-create-dialog.is-result .preorder-recent{margin-top:14px}
html[data-theme="dark"] .preorder-create-shell{background:#171717}html[data-theme="dark"] .preorder-create-header,html[data-theme="dark"] .preorder-create-footer,html[data-theme="dark"] .preorder-recent,html[data-theme="dark"] .preorder-create-grid input,html[data-theme="dark"] .preorder-create-grid select,html[data-theme="dark"] .preorder-created__link input{background:#232323;border-color:#444;color:#ededed}html[data-theme="dark"] .preorder-create-header h2,html[data-theme="dark"] .preorder-created__success strong,html[data-theme="dark"] .preorder-recent-row strong{color:#f3f6fb}html[data-theme="dark"] .preorder-created{background:#252130;border-color:#6047a3}html[data-theme="dark"] .preorder-no-hold{background:#332a17;border-color:#70551f}html[data-theme="dark"] .preorder-recent>header{background:#202020;border-color:#444}html[data-theme="dark"] .preorder-recent-row{border-color:#363636}
@media(max-width:920px){.work-center-dialog.is-home-dashboard .work-center-header__actions{grid-template-columns:1fr 1fr 1fr repeat(3,38px)}.preorder-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preorder-create-grid__package{grid-column:span 1}.preorder-recent-row{grid-template-columns:minmax(0,1fr) auto}.preorder-recent-row>em{grid-column:1}.preorder-recent-row>div{grid-column:2;grid-row:1/3}}
@media(max-width:620px){.work-center-dialog.is-home-dashboard .work-center-header__actions{grid-template-columns:1fr 1fr}.work-center-dialog.is-home-dashboard #workCenterPreorder{grid-column:1/-1}.preorder-create-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.preorder-create-header{padding:18px 15px}.preorder-create-header h2{font-size:23px}.preorder-create-form{padding:15px 14px 0}.preorder-create-grid{grid-template-columns:1fr}.preorder-create-footer{margin:14px -14px 0;padding:13px 14px}.preorder-create-footer .button{flex:1}.preorder-created,.preorder-recent{margin-left:13px;margin-right:13px}.preorder-created__link{grid-template-columns:1fr}.preorder-created__actions{display:grid;grid-template-columns:1fr 1fr}.preorder-recent-row{grid-template-columns:1fr}.preorder-recent-row>em,.preorder-recent-row>div{grid-column:1;grid-row:auto}.preorder-recent-row>div{justify-content:flex-start;flex-wrap:wrap}}

/* Pré-pedidos — variação entre kit pronto e personalizado */
.preorder-create-grid>[hidden]{display:none!important}.preorder-kit-mode{display:grid;grid-column:span 2;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;margin:0;padding:0;border:0}.preorder-kit-mode legend{margin-bottom:6px;color:#53627a;font-size:11px;font-weight:750;text-transform:uppercase}.preorder-kit-mode label{position:relative;display:flex;align-items:center;min-width:0;min-height:58px;padding:10px 12px;border:1px solid #dce3ee;border-radius:9px;background:#fff;cursor:pointer;transition:border-color 160ms ease,background 160ms ease,box-shadow 160ms ease}.preorder-kit-mode label:has(input:checked){border-color:#a992ff;background:#f7f4ff;box-shadow:0 0 0 2px rgba(108,75,246,.07)}.preorder-kit-mode input{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.preorder-kit-mode label>span{display:grid;gap:2px;min-width:0;padding-left:24px}.preorder-kit-mode label>span:before{position:absolute;left:12px;top:50%;width:14px;height:14px;border:1.5px solid #9aa7ba;border-radius:50%;content:"";transform:translateY(-50%)}.preorder-kit-mode label:has(input:checked)>span:before{border:5px solid #6842e8;background:#fff}.preorder-kit-mode strong{color:#25324a;font-size:13px}.preorder-kit-mode small{overflow:hidden;color:#7d8aa0;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.preorder-kit-mode label:focus-within{border-color:#7959f5;box-shadow:0 0 0 3px rgba(108,75,246,.1)}html[data-theme="dark"] .preorder-kit-mode label{border-color:#444;background:#232323}html[data-theme="dark"] .preorder-kit-mode label:has(input:checked){border-color:#7959f5;background:#2b2538}html[data-theme="dark"] .preorder-kit-mode strong{color:#f3f6fb}@media(max-width:920px){.preorder-kit-mode{grid-column:1/-1}.preorder-create-grid__package{grid-column:1/-1}}@media(max-width:620px){.preorder-kit-mode{grid-template-columns:1fr}.preorder-kit-mode small{white-space:normal}}
.preorder-recent-documents{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;gap:10px;border-top:1px dashed #dfe4ec;padding-top:10px}.preorder-recent-documents>strong{color:#53627a;font-size:11px}.preorder-recent-documents>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.preorder-recent-documents a{text-decoration:none}html[data-theme="dark"] .preorder-recent-documents{border-color:#454545}html[data-theme="dark"] .preorder-recent-documents>strong{color:#bdc5d1}@media(max-width:620px){.preorder-recent-documents{align-items:flex-start;flex-direction:column}.preorder-recent-documents>div{justify-content:flex-start}}

/* Operação por QR Code — pré-pedidos, Fase 9 */
.checklist-shell{grid-template-rows:auto auto auto auto auto minmax(0,1fr) auto}
.checklist-alerts{display:grid;gap:8px;padding:10px 24px 0;background:#f4f6fa}.checklist-alerts[hidden]{display:none!important}
.checklist-payment,.checklist-pending{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid #dce3ee;border-radius:11px;background:#fff;box-shadow:0 2px 7px rgba(24,35,58,.035)}
.checklist-payment[hidden],.checklist-pending[hidden]{display:none!important}.checklist-payment>i,.checklist-pending>i{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#eef9f5;color:#16815e;font-size:19px;font-style:normal;font-weight:850}.checklist-payment>span,.checklist-pending>span{display:grid;min-width:0;gap:2px}.checklist-payment small,.checklist-pending small{color:#687792;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.checklist-payment strong,.checklist-pending strong{color:#17243d;font-size:15px}.checklist-payment em,.checklist-pending em{color:#687792;font-size:12px;font-style:normal}.checklist-payment.is-pending,.checklist-pending.has-pending{border-color:#efd294;background:#fffbf1}.checklist-payment.is-pending>i,.checklist-pending.has-pending>i{background:#fff0c9;color:#b77100}.checklist-payment.is-paid{border-color:#cae8dc;background:#f8fdfa}
.checklist-issues>div.is-resolved{border-color:#cfe5dc;background:#f7fcfa}.checklist-issues>div.is-resolved>span{color:#177553}.checklist-issues p em{display:block;margin-top:3px;color:#a82f3c;font-size:11px;font-style:normal;font-weight:750}.checklist-issue-actions{grid-column:3;grid-row:1/3;display:flex;align-items:flex-end;flex-direction:column;gap:5px}.checklist-issues .checklist-issue-actions a,.checklist-issues .checklist-issue-actions button{grid-column:auto;grid-row:auto;padding:4px 7px;border:0;background:transparent;color:#6842e8;font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap;cursor:pointer}.checklist-issues .checklist-issue-actions a:hover,.checklist-issues .checklist-issue-actions button:hover{text-decoration:underline}
.checklist-issue-photo{grid-column:1/-1}.checklist-issue-photo input{padding:7px 9px;background:#fafbfe}.checklist-issue-photo input::file-selector-button{margin-right:10px;padding:7px 10px;border:1px solid #d8ccff;border-radius:7px;background:#faf8ff;color:#6842e8;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.checklist-issue-photo small{color:#7888a3;font-size:11px}
#finalizeChecklist{background:#15956b;border-color:#15956b}#finalizeChecklist:hover:not(:disabled){background:#117a58;border-color:#117a58}
.checklist-print-operation{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px;padding:10px 12px;border:1px solid #dce3ee;border-radius:8px;background:#f8fafc}.checklist-print-operation p{margin:0;color:#53627a;font-size:12px}
html[data-theme="dark"] .checklist-alerts{background:#111b29}html[data-theme="dark"] .checklist-payment,html[data-theme="dark"] .checklist-pending{border-color:#34465b;background:#19283a}html[data-theme="dark"] .checklist-payment strong,html[data-theme="dark"] .checklist-pending strong{color:#f3f6fb}html[data-theme="dark"] .checklist-payment.is-pending,html[data-theme="dark"] .checklist-pending.has-pending{border-color:#71592f;background:#302817}html[data-theme="dark"] .checklist-issues>div.is-resolved{border-color:#315c4c;background:#183128}html[data-theme="dark"] .checklist-issue-photo input{background:#19283a;color:#e8edf5}
@media(max-width:760px){.checklist-alerts{padding:8px 10px 0}.checklist-payment,.checklist-pending{grid-template-columns:38px minmax(0,1fr);padding:11px}.checklist-payment>i,.checklist-pending>i{width:36px;height:36px}.checklist-payment .button{grid-column:1/-1;width:100%}.checklist-issues .checklist-issue-actions{grid-column:1/-1;grid-row:auto;align-items:flex-start;flex-direction:row;flex-wrap:wrap}.checklist-footer #finalizeChecklist{grid-column:1/-1}.checklist-print-operation{grid-template-columns:1fr}}
@media print{body.printing-checklist .checklist-print-operation{display:grid!important;grid-template-columns:1fr 1fr;margin-top:4mm;padding:2.5mm;border:.3mm solid #b9c7d5;background:#f8fafc}body.printing-checklist .checklist-print-operation p{font-size:8pt}.checklist-print-times{grid-template-columns:1fr 1fr}}

/* Contrato — ações no cabeçalho e campos de identificação alinhados. */
.contract-section-actions { flex-wrap: wrap; justify-content: flex-end; }
.contract-section-actions > .button { white-space: nowrap; }
.form-step[data-step="identificacao"] .document-field { display: grid; align-content: start; gap: 6px; }
.form-step[data-step="identificacao"] .document-field__heading { min-height: 28px; }
.form-step[data-step="identificacao"] .tenant-phone-field > span { min-height: 28px; }
.installments-card { scroll-margin-top: 18px; }
.form-step[data-step="pagamento"].installments-expanded { padding-bottom: 240px; }

/* Origem: portal-admin-layout-v279.css */
.client-portal-dialog {
  height: min(820px, calc(100dvh - 24px));
  overflow: hidden;
}
.client-portal-dialog .resource-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
}
.client-portal-dialog .resource-shell > header,
.client-portal-dialog .portal-admin-status,
.client-portal-dialog .portal-admin-link,
.client-portal-dialog .portal-admin-generated,
.client-portal-dialog .portal-admin-summary,
.client-portal-dialog .portal-admin-message {
  flex-shrink: 0;
}
.client-portal-dialog .portal-admin-activity {
  flex: 1 0 150px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}
.client-portal-dialog .portal-admin-feed {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.client-portal-dialog .portal-admin-message {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-bottom: 0;
  background: #f8fafc;
  box-shadow: 0 -8px 20px rgba(19, 32, 56, .08);
}
.client-portal-dialog .portal-admin-message textarea {
  min-height: 72px;
}
.portal-remove-signature { margin-top: 9px; }

/* Origem: content-font-scale.css */
/* Escala tipográfica do conteúdo central — v49.
   A navegação lateral e o contrato final são deliberadamente excluídos. */
body .workspace { font-size: 17px; }
body .workspace .theme-toggle span { font-size: 22px; }
body .workspace .theme-toggle b { font-size: 15px; }
body .workspace .preview-toggle span { font-size: 20px; }
body .workspace .preview-toggle b { font-size: 15px; }
body .workspace .button--small { font-size: 15px; }
body .workspace .progress-copy { font-size: 15px; }
body .workspace .draft-library__heading span { font-size: 11px; }
body .workspace .draft-library__heading strong { font-size: 17px; }
body .workspace .draft-library__heading small { font-size: 12px; }
body .workspace .draft-library__filters label > span { font-size: 11px; }
body .workspace .draft-library__body > p { font-size: 12px; }
body .workspace .library-results { font-size: 12px; }
body .workspace .step-nav__item { font-size: 12px; }
body .workspace .step-nav__item span { font-size: 15px; }
body .workspace .section-heading p { font-size: 14px; }
body .workspace .section-heading h2 { font-size: 27px; }
body .workspace .section-help { font-size: 15px; }
body .workspace .subsection-title h3 { font-size: 18px; }
body .workspace .subsection-title p { font-size: 15px; }
body .workspace .field > span { font-size: 15px; }
body .workspace .document-field__heading > span { font-size: 15px; }
body .workspace .document-type-option span { font-size: 14px; }
body .workspace .document-type-option span::before { font-size: 15px; }
body .workspace .field-hint { font-size: 12px; }
body .workspace .toggle-field--inline { font-size: 15px; }
body .workspace .availability-summary strong { font-size: 15px; }
body .workspace .availability-summary span { font-size: 14px; }
body .workspace .tables-consumption-item b { font-size: 12px; }
body .workspace .tables-consumption-item em { font-size: 11px; }
body .workspace .item-availability { font-size: 12px; }
body .workspace .catalog-item-name span { font-size: 12px; }
body .workspace .catalog-item-name strong { font-size: 15px; }
body .workspace .catalog-item-name small { font-size: 11px; }
body .workspace .repeat-card .field > span { font-size: 12px; }
body .workspace .icon-button { font-size: 22px; }
body .workspace .totals-card span { font-size: 14px; }
body .workspace .totals-card strong { font-size: 20px; }
body .workspace .installments-heading span { font-size: 11px; }
body .workspace .installments-heading h3 { font-size: 20px; }
body .workspace .installments-heading p { font-size: 12px; }
body .workspace .installments-summary span { font-size: 11px; }
body .workspace .installments-summary strong { font-size: 15px; }
body .workspace .installment-row__heading strong { font-size: 14px; }
body .workspace .installment-status { font-size: 11px; }
body .workspace .notice { font-size: 15px; }
body .workspace .pix-settings__copy span { font-size: 12px; }
body .workspace .pix-settings__copy h3 { font-size: 20px; }
body .workspace .pix-settings__copy p { font-size: 14px; }
body .workspace .pix-disabled-message { font-size: 14px; }
body .workspace .manual-date-note { font-size: 14px; }
body .workspace .company-logo-settings__copy strong { font-size: 15px; }
body .workspace .company-logo-settings__copy span { font-size: 12px; }
body .workspace .validation-item { font-size: 15px; }
body .workspace .validation-item::before { font-size: 14px; }
body .workspace .review-card span { font-size: 14px; }
body .workspace .review-card strong { font-size: 21px; }
body .workspace .financial-header > div:first-child > span { font-size: 12px; }
body .workspace .financial-header h2 { font-size: 29px; }
body .workspace .financial-header p { font-size: 14px; }
body .workspace .financial-period-nav > button:not(.button) { font-size: 27px; }
body .workspace .financial-period-nav > strong { font-size: 16px; }
body .workspace .financial-period-fields label { font-size: 12px; }
body .workspace .financial-period-fields select,
body .workspace .financial-period-fields input { font-size: 12px; }
body .workspace .financial-view-toggle button { font-size: 14px; }
body .workspace .financial-kpi span { font-size: 11px; }
body .workspace .financial-kpi strong { font-size: clamp(20px, 1.55vw, 26px); }
body .workspace .financial-kpi small { font-size: 11px; }
body .workspace .financial-panel > header strong { font-size: 15px; }
body .workspace .financial-panel > header span { font-size: 11px; }
body .workspace .financial-legend { font-size: 11px; }
body .workspace .financial-legend small { font-size: 11px; }
body .workspace .financial-chart-toggle button { font-size: 12px; }
body .workspace .financial-chart-bar.is-contracted b { font-size: 11px; }
body .workspace .financial-chart-month > span { font-size: 11px; }
body .workspace .financial-chart-empty { font-size: 14px; }
body .workspace .financial-chart-summary span { font-size: 11px; }
body .workspace .financial-chart-summary strong { font-size: 12px; }
body .workspace .financial-segment__heading span { font-size: 12px; }
body .workspace .financial-segment__heading strong { font-size: 14px; }
body .workspace .financial-segment small { font-size: 11px; }
body .workspace .financial-receivables-actions select { font-size: 11px; }
body .workspace .financial-transaction time { font-size: 12px; }
body .workspace .financial-transaction > span strong { font-size: 14px; }
body .workspace .financial-transaction > span small { font-size: 11px; }
body .workspace .financial-transaction > strong { font-size: 14px; }
body .workspace .financial-empty { font-size: 12px; }
body .workspace .financial-manual-filters select { font-size: 12px; }
body .workspace .financial-manual-row > span strong { font-size: 14px; }
body .workspace .financial-manual-row > span small { font-size: 11px; }
body .workspace .financial-manual-row time { font-size: 12px; }
body .workspace .financial-manual-value strong { font-size: 14px; }
body .workspace .financial-manual-value small { font-size: 11px; }
body .workspace .financial-manual-status { font-size: 11px; }
body .workspace .financial-notice > span { font-size: 14px; }
body .workspace .financial-notice p { font-size: 12px; }
body .workspace .receivables-toolbar .field > span { font-size: 11px; }
body .workspace .receivables-summary span { font-size: 11px; }
body .workspace .receivables-summary strong { font-size: 21px; }
body .workspace .receivables-list-heading strong { font-size: 15px; }
body .workspace .receivables-list-heading span { font-size: 11px; }
body .workspace .receivable-row time span { font-size: 11px; }
body .workspace .receivable-row time strong,
body .workspace .receivable-row > span strong { font-size: 12px; }
body .workspace .receivable-row > span small { font-size: 11px; }
body .workspace .receivable-row em { font-size: 11px; }
body .workspace .receivable-row__amount { font-size: 14px; }
body .workspace .receivable-row__action { font-size: 11px; }
body .workspace .receivables-footer span { font-size: 11px; }
body .workspace .contracted-toolbar .field > span { font-size: 11px; }
body .workspace .contracted-summary span { font-size: 11px; }
body .workspace .contracted-summary strong { font-size: 21px; }
body .workspace .contracted-list-heading strong { font-size: 15px; }
body .workspace .contracted-list-heading span { font-size: 11px; }
body .workspace .contracted-row time span,
body .workspace .contracted-row__money small { font-size: 11px; }
body .workspace .contracted-row time strong,
body .workspace .contracted-row__client strong { font-size: 12px; }
body .workspace .contracted-row__client small { font-size: 11px; }
body .workspace .contracted-row__money strong { font-size: 12px; }
body .workspace .contracted-footer span { font-size: 11px; }
body .workspace .revenue-toolbar .field > span { font-size: 11px; }
body .workspace .revenue-summary span { font-size: 11px; }
body .workspace .revenue-summary strong { font-size: 21px; }
body .workspace .revenue-summary small { font-size: 11px; }
body .workspace .revenue-comparison button > span { font-size: 11px; }
body .workspace .revenue-comparison button > strong { font-size: 11px; }
body .workspace .revenue-comparison button small { font-size: 11px; }
body .workspace .revenue-list-heading strong { font-size: 15px; }
body .workspace .revenue-list-heading span { font-size: 11px; }
body .workspace .revenue-row time span { font-size: 11px; }
body .workspace .revenue-row time strong,
body .workspace .revenue-row > span strong { font-size: 12px; }
body .workspace .revenue-row > span small { font-size: 11px; }
body .workspace .revenue-row__amount { font-size: 14px; }
body .workspace .revenue-footer span { font-size: 11px; }
body .workspace .income-history-toolbar .field > span { font-size: 11px; }
body .workspace .income-history-period-nav button { font-size: 24px; }
body .workspace .income-history-period-nav strong { font-size: 12px; }
body .workspace .income-history-summary span { font-size: 11px; }
body .workspace .income-history-summary strong { font-size: 21px; }
body .workspace .income-history-summary small { font-size: 11px; }
body .workspace .income-history-list-heading strong { font-size: 15px; }
body .workspace .income-history-list-heading span { font-size: 11px; }
body .workspace .income-history-row time span { font-size: 11px; }
body .workspace .income-history-row time strong,
body .workspace .income-history-row > span strong { font-size: 12px; }
body .workspace .income-history-row > span small { font-size: 11px; }
body .workspace .income-history-row em,
body .workspace .income-history-row__source { font-size: 11px; }
body .workspace .income-history-row__amount { font-size: 14px; }
body .workspace .income-history-footer span { font-size: 11px; }
body .workspace .work-center-header > div:first-child > span { font-size: 12px; }
body .workspace .work-center-header h2 { font-size: 29px; }
body .workspace .work-center-header p { font-size: 14px; }
body .workspace .work-center-card span { font-size: 14px; }
body .workspace .work-center-card strong { font-size: 28px; }
body .workspace .work-center-card small { font-size: 11px; }
body .workspace .work-center-list-heading strong { font-size: 16px; }
body .workspace .work-center-list-heading small,
body .workspace .work-center-list-heading > span { font-size: 12px; }
body .workspace .work-center-contract__open time { font-size: 14px; }
body .workspace .work-center-contract__client strong { font-size: 15px; }
body .workspace .work-center-contract__client small { font-size: 11px; }
body .workspace .work-center-contract__balance small { font-size: 11px; }
body .workspace .work-center-contract__balance strong { font-size: 15px; }
body .workspace .work-center-contract__status > span { font-size: 11px; }
body .workspace .work-center-contract__status select { font-size: 14px; }
body .workspace .status-badge { font-size: 11px; }
body .workspace .work-center-empty strong { font-size: 17px; }
body .workspace .client-history-list-heading strong { font-size: 15px; }
body .workspace .client-history-list-heading small { font-size: 12px; }
body .workspace .client-history-avatar { font-size: 17px; }
body .workspace .client-history-person__main strong { font-size: 14px; }
body .workspace .client-history-person__main small { font-size: 11px; }
body .workspace .client-history-person__meta b { font-size: 17px; }
body .workspace .client-history-person__meta small { font-size: 11px; }
body .workspace .client-history-empty strong,
body .workspace .client-history-list-empty strong { font-size: 17px; }
body .workspace .client-history-empty span,
body .workspace .client-history-list-empty span { font-size: 12px; }
body .workspace .client-profile-header span { font-size: 11px; }
body .workspace .client-profile-header h3 { font-size: 27px; }
body .workspace .client-profile-header small { font-size: 12px; }
body .workspace .client-next-event strong { font-size: 16px; }
body .workspace .client-contact-grid span,
body .workspace .client-value-summary span { font-size: 11px; }
body .workspace .client-contact-grid strong { font-size: 12px; }
body .workspace .client-value-summary strong { font-size: 18px; }
body .workspace .client-contract-history-heading strong { font-size: 15px; }
body .workspace .client-contract-history-heading span { font-size: 11px; }
body .workspace .client-history-contract time { font-size: 12px; }
body .workspace .client-history-contract__main strong { font-size: 14px; }
body .workspace .client-history-contract__main small { font-size: 11px; }
body .workspace .client-history-contract__money small { font-size: 11px; }
body .workspace .client-history-contract__money strong { font-size: 14px; }
body .workspace .client-history-contract__money em { font-size: 11px; }
body .workspace .messages-footer > span { font-size: 11px; }
body .workspace .work-center-empty span { font-size: 14px; }
body .workspace .calendar-header span,
body .workspace .calendar-details__heading span { font-size: 12px; }
body .workspace .calendar-header h2 { font-size: 27px; }
body .workspace .calendar-close { font-size: 30px; }
body .workspace .calendar-legend span { font-size: 12px; }
body .workspace .calendar-legend__symbol { font-size: 11px; }
body .workspace .calendar-weekdays { font-size: 12px; }
body .workspace .calendar-day__number { font-size: 15px; }
body .workspace .calendar-holiday-indicator b { font-size: 14px; }
body .workspace .calendar-holiday-indicator span { font-size: 11px; }
body .workspace .calendar-event-indicator b { font-size: 12px; }
body .workspace .calendar-event-indicator span { font-size: 12px; }
body .workspace .calendar-commemorations strong { font-size: 14px; }
body .workspace .calendar-commemorations small { font-size: 11px; }
body .workspace .calendar-event-day__date { font-size: 14px; }
body .workspace .calendar-event-day strong { font-size: 17px; }
body .workspace .calendar-event-day small { font-size: 12px; }
body .workspace .calendar-events-empty strong { font-size: 17px; }
body .workspace .calendar-events-empty span { font-size: 14px; }
body .workspace .calendar-details__empty strong { font-size: 18px; }
body .workspace .calendar-details__empty p,
body .workspace .calendar-details__none { font-size: 14px; }
body .workspace .calendar-details__heading strong { font-size: 17px; }
body .workspace .calendar-add-contract b { font-size: 22px; }
body .workspace .calendar-add-contract span { font-size: 14px; }
body .workspace .calendar-contract span { font-size: 15px; }
body .workspace .calendar-contract small { font-size: 12px; }
body .workspace .checklist-header span { font-size: 12px; }
body .workspace .checklist-header h2 { font-size: 27px; }
body .workspace .checklist-header p { font-size: 14px; }
body .workspace .checklist-summary span { font-size: 12px; }
body .workspace .checklist-summary strong { font-size: 24px; }
body .workspace .checklist-summary small { font-size: 11px; }
body .workspace .checklist-actions small { font-size: 12px; }
body .workspace .dialog-save-warning { font-size: 12px; }
body .workspace .checklist-item-name span,
body .workspace .checklist-row .field > span { font-size: 11px; }
body .workspace .checklist-item-name strong { font-size: 15px; }
body .workspace .checklist-item-name small { font-size: 11px; }
body .workspace .auth-brand > span { font-size: 12px; }
body .workspace .auth-brand h1 { font-size: 27px; }
body .workspace .auth-brand p { font-size: 15px; }
body .workspace .auth-error,
body .workspace .admin-create__actions small { font-size: 14px; }
body .workspace .auth-note { font-size: 12px; }
body .workspace .admin-create__heading strong { font-size: 17px; }
body .workspace .admin-create__heading small { font-size: 12px; }
body .workspace .admin-create__heading > i { font-size: 23px; }
body .workspace .admin-create > p { font-size: 12px; }
body .workspace .admin-list-heading strong { font-size: 15px; }
body .workspace .admin-row strong { font-size: 15px; }
body .workspace .admin-row span { font-size: 12px; }
body .workspace .backup-status-card strong,
body .workspace .backup-stat strong { font-size: 15px; }
body .workspace .backup-status-card small,
body .workspace .backup-stat span { font-size: 12px; }
body .workspace .backup-stat strong { font-size: 20px; }
body .workspace .backup-action-card strong { font-size: 15px; }
body .workspace .backup-action-card span { font-size: 12px; }
body .workspace .backup-history-heading strong { font-size: 15px; }
body .workspace .backup-history-heading span { font-size: 12px; }
body .workspace .backup-row strong { font-size: 14px; }
body .workspace .backup-row span { font-size: 12px; }
body .workspace .backup-row time { font-size: 14px; }
body .workspace .backup-footer p { font-size: 12px; }
body .workspace .tables-product-create > summary > span { font-size: 22px; }
body .workspace .tables-product-create > summary strong { font-size: 15px; }
body .workspace .tables-product-create > summary small { font-size: 11px; }
body .workspace .tables-kit-builder > div:first-child strong { font-size: 14px; }
body .workspace .tables-kit-builder > div:first-child small { font-size: 11px; }
body .workspace .tables-kit-component strong { font-size: 12px; }
body .workspace .tables-kit-component small { font-size: 11px; }
body .workspace .tables-kit-empty { font-size: 12px; }
body .workspace .tables-product-filter span { font-size: 11px; }
body .workspace .inventory-search span { font-size: 12px; }
body .workspace .inventory-tools small,
body .workspace .piece-picker-footer small { font-size: 14px; }
body .workspace .inventory-bulk__heading strong { font-size: 15px; }
body .workspace .inventory-bulk__heading small,
body .workspace .inventory-bulk__heading > span { font-size: 11px; }
body .workspace .inventory-bulk-field > span,
body .workspace .inventory-bulk-scope > span { font-size: 11px; }
body .workspace .inventory-pagination > span { font-size: 12px; }
body .workspace .tables-product-card__identity strong { font-size: 14px; }
body .workspace .tables-product-card__identity small,
body .workspace .tables-product-card__stock small { font-size: 11px; }
body .workspace .tables-product-card__identity em { font-size: 11px; }
body .workspace .tables-product-card__stock strong { font-size: 14px; }
body .workspace .tables-product-status { font-size: 11px; }
body .workspace .tables-product-card > summary > i { font-size: 16px; }
body .workspace .piece-picker-item strong { font-size: 15px; }
body .workspace .piece-picker-item small { font-size: 12px; }
body .workspace .inventory-empty strong { font-size: 17px; }
body .workspace .inventory-empty span { font-size: 14px; }
body .workspace .preview-toolbar strong { font-size: 16px; }
body .workspace .preview-toolbar span { font-size: 14px; }
body .workspace .zoom-controls .zoom-controls__fit { font-size: 14px; }
@media (max-width: 640px) {
body .workspace .draft-library__heading small { font-size: 11px; }
body .workspace .document-type-option span { font-size: 15px; }
body .workspace .financial-header h2 { font-size: 23px; }
body .workspace .financial-kpi strong { font-size: 21px; }
body .workspace .calendar-header h2 { font-size: 22px; }
body .workspace .calendar-weekdays { font-size: 11px; }
body .workspace .calendar-day__number { font-size: 14px; }
body .workspace .calendar-event-indicator b { font-size: 11px; }
body .workspace .checklist-header h2 { font-size: 22px; }
body .workspace .checklist-summary span { font-size: 11px; }
body .workspace .checklist-summary strong { font-size: 22px; }
body .workspace .admin-create__heading strong { font-size: 15px; }
body .workspace .work-center-header h2 { font-size: 24px; }
}
body .workspace .preview-dialog-close { font-size: 23px; }
body .workspace .notification-button em { font-size: 11px; }
body .workspace .home-command-bar > button > span:first-child { font-size: 24px; }
body .workspace .resource-header > div:first-child > span { font-size: 11px; }
body .workspace .resource-header h2 { font-size: 27px; }
body .workspace .resource-header p { font-size: 14px; }
body .workspace .resource-empty strong,
body .workspace .search-suggestions strong { font-size: 16px; }
body .workspace .global-search-box > span { font-size: 29px; }
body .workspace .global-search-box input { font-size: 21px; }
body .workspace .global-search-results em { font-size: 11px; }
body .workspace .notification-filters button { font-size: 12px; }
body .workspace .notification-row em { font-size: 11px; }
body .workspace .attachment-drop small { font-size: 11px; }
body .workspace .attachment-row > i,
body .workspace .activity-row > i { font-size: 11px; }
body .workspace .maintenance-history > header strong { font-size: 15px; }
body .workspace .maintenance-history > header small,
body .workspace .maintenance-history > header > span { font-size: 11px; }
body .workspace .maintenance-history-row strong { font-size: 12px; }
body .workspace .maintenance-history-row small,
body .workspace .maintenance-history-row p,
body .workspace .maintenance-history-row em { font-size: 11px; }
body .workspace .report-kpis span { font-size: 11px; }
body .workspace .report-kpis strong { font-size: 20px; }
body .workspace .report-bar-list > div { font-size: 12px; }
body .workspace .report-bar-list strong { font-size: 12px; }
body .workspace .read-only-banner { font-size: 14px; }
body .workspace .back-to-top span { font-size: 26px; }
body .workspace .back-to-top b { font-size: 11px; }
@media (max-width: 760px) {
body .workspace .resource-header h2 { font-size: 22px; }
}
body .workspace .settings-nav button i { font-size: 18px; }
body .workspace .settings-nav button span { font-size: 14px; }
body .workspace .settings-section__heading > span { font-size: 11px; }
body .workspace .settings-section__heading h3 { font-size: 27px; }
body .workspace .settings-section__heading p { font-size: 14px; }
body .workspace .settings-logo-card__copy strong { font-size: 15px; }
body .workspace .settings-logo-card__copy span { font-size: 12px; }
body .workspace .settings-logo-card > .field-hint { font-size: 11px; }
body .workspace .settings-control > span:first-child { font-size: 12px; }
body .workspace .settings-control > small { font-size: 11px; }
body .workspace .settings-color output { font-size: 12px; }
body .workspace .settings-number b { font-size: 12px; }
body .workspace .settings-switch strong { font-size: 14px; }
body .workspace .settings-switch small { font-size: 11px; }
body .workspace .settings-range strong { font-size: 14px; }
body .workspace .settings-range small { font-size: 12px; }
body .workspace .settings-data-actions span { font-size: 11px; }
body .workspace .settings-footer p { font-size: 11px; }
html[data-font-size] body .workspace { font-size: calc(17px * var(--ui-font-scale)); }
html[data-font-size="large"] body .workspace input,
html[data-font-size="large"] body .workspace select,
html[data-font-size="large"] body .workspace textarea { font-size: 17px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-header h2 { font-size: 30px; }
body .workspace .work-center-icon-button { font-size: 23px; }
body .workspace .work-center-dialog.is-home-dashboard .home-command-bar > button > span:first-child { font-size: 26px; }
body .workspace .work-center-dialog.is-home-dashboard .home-command-bar kbd { font-size: 12px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card span { font-size: 12px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card strong { font-size: 24px; }
body .workspace .work-center-alerts > header strong { font-size: 14px; }
body .workspace .work-center-alerts > header span { font-size: 11px; }
body .workspace .work-center-alerts > header button { font-size: 12px; }
body .workspace .work-center-alerts > div > button strong { font-size: 12px; }
body .workspace .work-center-alerts > div > button small { font-size: 11px; }
body .workspace .work-center-alerts > div > button b { font-size: 22px; }
body .workspace .work-center-alerts > div > p { font-size: 12px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search span { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search input,
body .workspace .work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search select { font-size: 12px; }
body .workspace .work-center-filter-chips span { font-size: 11px; }
body .workspace .work-center-table-head { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__open time strong { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__open time small,
body .workspace .work-center-contract__number,
body .workspace .work-center-contract__service small { font-size: 11px; }
body .workspace .work-center-contract__service strong { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__client strong { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__total { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__balance strong { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__status select { font-size: 11px; }
body .workspace .work-center-pagination { font-size: 11px; }
body .workspace .work-center-pagination button { font-size: 12px; }
body .workspace .home-side-card > header strong { font-size: 14px; }
body .workspace .home-side-card > header small { font-size: 11px; }
body .workspace .home-side-card > header button,
body .workspace .home-side-card > button { font-size: 11px; }
body .workspace .home-side-card > div > button time { font-size: 11px; }
body .workspace .home-side-card > div > button strong { font-size: 11px; }
body .workspace .home-side-card > div > button small { font-size: 11px; }
body .workspace .home-side-card > div > button em { font-size: 9px; }
body .workspace .home-side-card > div > p { font-size: 11px; }
@media (max-width: 760px) {
body .workspace .settings-nav button i { font-size: 15px; }
}
body .workspace .status-celebration__icon { font-size: 42px; }
body .workspace .status-celebration__title { font-size: 27px; }
body .workspace .status-celebration__copy { font-size: 15px; }
body .workspace .work-center-header__actions .button { font-size: 15px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-header h2 { font-size: 33px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-header p { font-size: 15px; }
body .workspace .work-center-dialog.is-home-dashboard .home-command-bar strong { font-size: 15px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card span { font-size: 14px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card strong { font-size: 29px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card small { font-size: 12px; }
body .workspace .work-center-alerts > header strong { font-size: 15px; }
body .workspace .work-center-alerts > header button { font-size: 13px; }
body .workspace .work-center-alerts > div > button strong { font-size: 14px; }
body .workspace .work-center-alerts > div > button small { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search span { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search input,
body .workspace .work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search select { font-size: 14px; }
body .workspace .work-center-list-heading strong { font-size: 17px; }
body .workspace .work-center-list-heading small { font-size: 12px; }
body .workspace .work-center-table-head { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__open time strong,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__client strong,
body .workspace .work-center-contract__service strong,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__total,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__balance strong { font-size: 13px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__open time small,
body .workspace .work-center-contract__number,
body .workspace .work-center-contract__service small,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__client small { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract__status select { font-size: 12px; }
body .workspace .home-side-card > header strong { font-size: 15px; }
body .workspace .home-side-card > header small { font-size: 11px; }
body .workspace .home-side-card > div > button strong { font-size: 13px; }
body .workspace .home-side-card > div > button small { font-size: 11px; }
@media (max-width: 920px) {
body .workspace .work-center-dialog.is-home-dashboard .work-center-header h2 { font-size: 28px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card span { font-size: 14px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card small { font-size: 11px; }
body .workspace .home-side-card > div > button strong { font-size: 14px; }
}
body .workspace .work-center-actions-toggle span { font-size: 20px; }
body .workspace .work-center-actions-menu > button { font-size: 14px; }
body .workspace .work-center-actions-menu__title { font-size: 11px; }
body .workspace .work-center-actions-menu > .work-center-status-action { font-size: 12px; }
body .workspace .work-center-status-action > b { font-size: 15px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > time strong,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__client strong,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__service strong,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__total,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance strong { font-size: 13px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > time small,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__number,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__client small,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__service small,
body .workspace .work-center-dialog.is-home-dashboard .work-center-contract > .work-center-contract__balance small { font-size: 11px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card span { font-size: 14px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card strong { font-size: 30px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card small { font-size: 12px; }
@media (max-width: 420px) {
body .workspace .work-center-dialog.is-home-dashboard .work-center-card span { font-size: 12px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card strong { font-size: 28px; }
body .workspace .work-center-dialog.is-home-dashboard .work-center-card small { font-size: 11px; }
}
body .workspace .admin-header h2 { font-size: 30px; }
body .workspace .admin-header p { font-size: 14px; }
body .workspace .admin-security-card strong { font-size: 14px; }
body .workspace .admin-security-card small { font-size: 11px; }
body .workspace .admin-permissions-panel > summary strong { font-size: 16px; }
body .workspace .admin-permissions-panel > summary small { font-size: 12px; }
body .workspace .admin-permissions-panel > summary > i:last-child { font-size: 24px; }
body .workspace .operator-permissions-grid strong { font-size: 12px; }
body .workspace .operator-permissions-grid small { font-size: 11px; }
body .workspace .operator-permissions-actions > small { font-size: 11px; }
body .workspace .admin-create__heading strong { font-size: 16px; }
body .workspace .admin-create__heading small { font-size: 12px; }
body .workspace .admin-photo-preview { font-size: 27px; }
body .workspace .admin-photo-field strong { font-size: 14px; }
body .workspace .admin-photo-field small { font-size: 11px; }
body .workspace .admin-list-heading strong { font-size: 16px; }
body .workspace .admin-list-heading small { font-size: 11px; }
body .workspace .admin-search input { font-size: 13px; }
body .workspace .admin-table-head { font-size: 11px; }
body .workspace .admin-user-avatar { font-size: 11px; }
body .workspace .admin-row__identity strong { font-size: 14px; }
body .workspace .admin-row__identity small { font-size: 11px; }
body .workspace .admin-role-badge strong { font-size: 11px; }
body .workspace .admin-active-status { font-size: 12px; }
body .workspace .admin-last-access { font-size: 12px; }
body .workspace .admin-last-access small { font-size: 11px; }
body .workspace .admin-actions-toggle span { font-size: 18px; }
body .workspace .admin-actions-menu > label,
body .workspace .admin-actions-menu > button { font-size: 12px; }
body .workspace .admin-empty strong { font-size: 14px; }
body .workspace .admin-empty span { font-size: 11px; }
body .workspace .admin-security-tip { font-size: 12px; }
/* O texto maior não deve ampliar cartões além da largura disponível no celular. */
@media (max-width: 760px) {
  body .workspace .maintenance-row > *,
  body .workspace .maintenance-history-row > * { min-width: 0; max-width: 100%; }
  body .workspace .maintenance-row input,
  body .workspace .maintenance-row select,
  body .workspace .maintenance-row textarea,
  body .workspace .maintenance-row button { width: 100%; max-width: 100%; }
  body .workspace .maintenance-history-row { overflow-wrap: anywhere; }
}

/* Origem: preorders-admin.css */
.preorders-admin-dialog{width:min(1560px,100%)}
.preorders-admin-shell{display:flex;min-height:calc(100vh - 42px);flex-direction:column;background:#f6f8fc;color:#17243d}
.preorders-admin-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #dfe5ef;background:linear-gradient(120deg,#fff 0%,#f7f4ff 100%);padding:25px 28px 21px}
.preorders-admin-header>div:first-child>span,.preorder-review-header span{color:#6842e8;font-size:11px;font-weight:850;letter-spacing:.075em}
.preorders-admin-header h2,.preorder-review-header h2{margin:5px 0 3px;color:#17243d;font-size:28px;line-height:1.12}
.preorders-admin-header p,.preorder-review-header p{margin:0;color:#687792;font-size:13px}
.preorders-admin-header>div:last-child{display:flex;align-items:center;gap:9px}
.preorders-admin-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;padding:16px 24px 0}
.preorders-admin-summary article{display:flex;min-width:0;align-items:center;gap:11px;border:1px solid #e1e5ee;border-radius:11px;background:#fff;padding:13px 15px;box-shadow:0 2px 7px rgba(24,35,58,.035)}
.preorders-admin-summary i{display:grid;flex:0 0 39px;width:39px;height:39px;place-items:center;border-radius:10px;background:#f1edff;color:#6842e8;font-size:14px;font-style:normal;font-weight:800}
.preorders-admin-summary span{display:grid;min-width:0}.preorders-admin-summary small{overflow:hidden;color:#687792;font-size:10px;font-weight:750;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.preorders-admin-summary strong{overflow:hidden;color:#17243d;font-size:20px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.preorders-admin-toolbar{display:grid;grid-template-columns:minmax(220px,1.25fr) 150px 150px minmax(190px,1fr) 210px auto;align-items:end;gap:11px;margin:14px 24px 0;border:1px solid #e1e5ed;border-radius:12px;background:#fff;padding:14px 15px;box-shadow:0 2px 8px rgba(24,35,58,.035)}
.preorders-admin-toolbar label{display:grid;min-width:0;gap:5px}.preorders-admin-toolbar label>span,.preorder-review-footer label>span{color:#53627a;font-size:10px;font-weight:750;letter-spacing:.015em;text-transform:uppercase}
.preorders-admin-toolbar input,.preorders-admin-toolbar select{width:100%;min-width:0;height:40px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 11px;color:#25324a;font:500 13px/1 Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif}
.preorders-admin-toolbar input:focus,.preorders-admin-toolbar select:focus,.preorder-review-footer textarea:focus{outline:0;border-color:#7959f5;box-shadow:0 0 0 3px rgba(108,75,246,.1)}
.preorders-admin-toolbar .button{height:40px;white-space:nowrap}
.preorders-admin-list-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:18px 25px 10px}.preorders-admin-list-heading>div{display:grid}.preorders-admin-list-heading strong{font-size:16px}.preorders-admin-list-heading small,.preorders-admin-list-heading>span{color:#7c899d;font-size:11px}
.preorders-admin-table-head,.preorders-admin-row{display:grid;grid-template-columns:115px minmax(145px,1.15fr) minmax(140px,1fr) 110px 105px 125px 100px 135px 120px 84px;align-items:center;gap:9px}
.preorders-admin-table-head{margin:0 24px;border:1px solid #dfe4ed;border-radius:10px 10px 0 0;background:#edf1f7;padding:10px 12px;color:#60708a;font-size:9px;font-weight:800;text-transform:uppercase}
.preorders-admin-list{display:grid;margin:0 24px;border:1px solid #dfe4ed;border-top:0;border-radius:0 0 10px 10px;background:#fff;overflow:hidden}
.preorders-admin-row{position:relative;width:100%;min-height:65px;border:0;border-bottom:1px solid #edf0f5;background:#fff;padding:10px 12px;text-align:left;cursor:pointer;transition:background 160ms ease,box-shadow 160ms ease}.preorders-admin-row:last-child{border-bottom:0}.preorders-admin-row:hover,.preorders-admin-row:focus-visible{z-index:1;outline:0;background:#faf9ff;box-shadow:inset 3px 0 #6842e8}
.preorders-admin-row>span{display:grid;min-width:0;gap:2px}.preorders-admin-row b,.preorders-admin-row strong{overflow:hidden;color:#17243d;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.preorders-admin-row small{overflow:hidden;color:#7b899e;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.preorders-admin-row>span:nth-child(5) strong,.preorders-admin-row>span:nth-child(6) strong{font-variant-numeric:tabular-nums}.preorders-admin-row>span:nth-child(6) strong{color:#6842e8}
.preorders-admin-status{justify-self:start;display:inline-flex!important;width:max-content;max-width:100%;border-radius:999px;background:#eef1f5;padding:5px 8px;color:#5f6d82!important;font-size:9px!important;font-style:normal;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.preorders-admin-status.status-awaiting_review{background:#fff3d7;color:#956000!important}.preorders-admin-status.status-payment_confirmed{background:#e5f7ef;color:#11805d!important}.preorders-admin-status.status-awaiting_payment{background:#f1edff;color:#6842e8!important}.preorders-admin-status.status-cancelled,.preorders-admin-status.status-expired{background:#fff0f2;color:#c33a51!important}
.preorders-admin-open{height:32px;border:1px solid #d8ccff;border-radius:8px;background:#faf8ff;color:#6842e8;font-size:10px;font-weight:750;cursor:pointer}.preorders-admin-open:hover{border-color:#ad99f8;background:#f3efff}
.preorders-admin-empty{padding:38px 20px;text-align:center;color:#71809a}.preorders-admin-pagination{margin:14px 24px 22px;justify-content:center}
.preorder-review-dialog{width:min(1060px,calc(100vw - 28px));max-height:calc(100vh - 24px);border:1px solid #dce3ee;border-radius:14px;background:#f6f8fb;padding:0;color:#17243d;box-shadow:0 24px 70px rgba(16,27,61,.2)}.preorder-review-dialog::backdrop{background:rgba(12,22,39,.48);backdrop-filter:blur(2px)}.preorder-review-shell{display:flex;max-height:calc(100vh - 26px);flex-direction:column}
.preorder-review-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #dfe4ed;background:#fff;padding:21px 23px 18px}.preorder-review-header h2{font-size:24px}.preorder-review-content{display:grid;grid-auto-rows:max-content;align-content:start;gap:12px;overflow:auto;padding:16px 20px 20px}
.preorder-review-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.preorder-review-overview article{display:grid;min-width:0;gap:3px;border:1px solid #e1ddf6;border-radius:10px;background:#faf9ff;padding:11px 12px}.preorder-review-overview small,.preorder-review-section dt{color:#687792;font-size:9px;font-weight:750;text-transform:uppercase}.preorder-review-overview strong{overflow:hidden;color:#6341eb;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.preorder-review-section{min-height:max-content;border:1px solid #e0e5ee;border-radius:11px;background:#fff;overflow:hidden}.preorder-review-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e9edf3;background:#f9fafc;padding:11px 13px}.preorder-review-section>header strong{font-size:13px}.preorder-review-section>header small{color:#7a879b;font-size:10px}.preorder-review-section dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.preorder-review-section dl>div{min-width:0;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:10px 12px}.preorder-review-section dl>div:nth-child(3n){border-right:0}.preorder-review-section dt{margin-bottom:3px}.preorder-review-section dd{overflow-wrap:anywhere;margin:0;color:#25324a;font-size:12px;font-weight:650}
.preorder-review-files,.preorder-review-items{display:grid;gap:7px;padding:11px 12px}.preorder-review-file,.preorder-review-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #e4e8ef;border-radius:9px;background:#fff;padding:9px 10px}.preorder-review-file>span,.preorder-review-item>span{display:grid;min-width:0}.preorder-review-file b,.preorder-review-item b{overflow:hidden;color:#25324a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.preorder-review-file small,.preorder-review-item small{color:#7d8aa0;font-size:9px}.preorder-review-file a{text-decoration:none}.preorder-review-item em{border-radius:999px;background:#eef1f5;padding:5px 8px;color:#627087;font-size:9px;font-style:normal;font-weight:800}.preorder-review-item em.is-held{background:#e5f7ef;color:#11805d}
.preorder-inventory-state{display:flex;align-items:center;gap:10px;margin:11px 12px 0;border:1px solid #dce3ee;border-radius:10px;background:#f8fafc;padding:10px 11px}.preorder-inventory-state i{display:grid;flex:0 0 31px;width:31px;height:31px;place-items:center;border-radius:9px;background:#edf1f7;color:#61718a;font-style:normal;font-weight:850}.preorder-inventory-state span{display:grid;min-width:0;gap:2px}.preorder-inventory-state strong{color:#25324a;font-size:11px}.preorder-inventory-state small{color:#748198;font-size:9px;line-height:1.4}.preorder-inventory-state.is-available{border-color:#cfe8df;background:#f2fbf7}.preorder-inventory-state.is-available i{background:#dff5ec;color:#0d8b62}.preorder-inventory-state.is-warning{border-color:#f0dca9;background:#fffaf0}.preorder-inventory-state.is-warning i{background:#fff0cf;color:#966100}.preorder-inventory-state.is-conflict{border-color:#f0cbd2;background:#fff6f7}.preorder-inventory-state.is-conflict i{background:#ffe5e9;color:#c3374d}.preorder-inventory-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px 12px 12px}.preorder-inventory-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #e5e9f0;border-radius:8px;background:#fff;padding:8px 9px}.preorder-inventory-item>span{display:grid;min-width:0;gap:2px}.preorder-inventory-item b{overflow:hidden;color:#25324a;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.preorder-inventory-item small{overflow:hidden;color:#7b899e;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.preorder-inventory-item em{color:#6842e8;font-size:9px;font-style:normal;font-weight:800;white-space:nowrap}.preorder-inventory-item.is-conflict{border-color:#efcbd2}.preorder-inventory-item.is-conflict em{color:#c3374d}
.preorder-review-payment{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:11px 12px}.preorder-review-payment>div{display:grid;gap:3px;border-radius:8px;background:#f7f8fb;padding:9px 10px}.preorder-review-payment small{color:#687792;font-size:9px;text-transform:uppercase}.preorder-review-payment strong{overflow:hidden;color:#25324a;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.preorder-review-payment .is-highlight strong{color:#6842e8}.preorder-review-proof{grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between;gap:10px;border:1px solid #d6efe5;background:#f2fbf7!important}.preorder-review-proof a{text-decoration:none}
.preorder-review-next{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #cfe8df;border-radius:10px;background:#f2fbf7;padding:12px}.preorder-review-next i,.preorder-review-warning i{display:grid;flex:0 0 32px;width:32px;height:32px;place-items:center;border-radius:9px;background:#dff5ec;color:#0d8b62;font-style:normal;font-weight:850}.preorder-review-next span,.preorder-review-warning span{display:grid}.preorder-review-next strong,.preorder-review-warning strong{font-size:11px}.preorder-review-next small,.preorder-review-warning small{color:#687792;font-size:10px;line-height:1.4}.preorder-review-next .button{min-width:142px}
.preorder-review-footer{position:sticky;bottom:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:10px 14px;border-top:1px solid #dce3ee;background:rgba(255,255,255,.98);padding:14px 20px}.preorder-review-footer>label{display:grid;grid-row:1/4;gap:5px}.preorder-review-footer textarea{width:100%;min-height:83px;resize:vertical;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:9px 10px;color:#25324a;font:500 12px/1.4 Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif}.preorder-review-warning{display:flex;align-items:flex-start;gap:9px}.preorder-review-warning i{background:#fff0cf;color:#966100}.preorder-review-error{color:#c3374d;font-size:11px;font-weight:650}.preorder-review-error:empty{display:none}.preorder-review-actions{display:flex;justify-content:flex-end;gap:8px}.preorder-review-actions .button{min-width:150px}
.preorder-conversion-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100vh - 28px);border:1px solid #dce3ee;border-radius:14px;background:#fff;padding:0;color:#17243d;box-shadow:0 24px 70px rgba(16,27,61,.22)}.preorder-conversion-dialog::backdrop{background:rgba(12,22,39,.52);backdrop-filter:blur(2px)}.preorder-conversion-shell{display:flex;max-height:calc(100vh - 30px);flex-direction:column}.preorder-conversion-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e2e6ee;background:linear-gradient(120deg,#fff,#f8f5ff);padding:20px 22px 17px}.preorder-conversion-header span{color:#6842e8;font-size:10px;font-weight:850;letter-spacing:.075em}.preorder-conversion-header h2{margin:5px 0 3px;color:#17243d;font-size:24px}.preorder-conversion-header p{margin:0;color:#687792;font-size:12px}.preorder-conversion-content{display:grid;gap:12px;overflow:auto;padding:16px 20px}.preorder-conversion-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.preorder-conversion-summary article{display:grid;min-width:0;gap:3px;border:1px solid #e4e7ee;border-radius:9px;background:#fafbfc;padding:10px 11px}.preorder-conversion-summary small{color:#6d7b91;font-size:9px;font-weight:750;text-transform:uppercase}.preorder-conversion-summary strong{overflow:hidden;color:#17243d;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.preorder-client-match{display:grid;gap:10px;border:1px solid #ddcffd;border-radius:11px;background:#faf8ff;padding:13px}.preorder-client-match>header{display:grid;gap:3px}.preorder-client-match>header strong{font-size:13px}.preorder-client-match>header small{color:#687792;font-size:10px;line-height:1.4}.preorder-client-differences{display:grid;gap:5px}.preorder-client-differences div{display:grid;grid-template-columns:100px minmax(0,1fr) minmax(0,1fr);gap:8px;border-top:1px solid #e8e1fb;padding-top:6px;font-size:10px}.preorder-client-differences b{color:#59677e}.preorder-client-differences span{overflow:hidden;color:#6b7890;text-overflow:ellipsis;white-space:nowrap}.preorder-client-options{display:grid;gap:7px}.preorder-client-options label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px;border:1px solid #dfd7f8;border-radius:9px;background:#fff;padding:9px 10px;cursor:pointer}.preorder-client-options input{margin-top:2px;accent-color:#6842e8}.preorder-client-options span{display:grid;gap:2px}.preorder-client-options strong{font-size:11px}.preorder-client-options small{color:#748198;font-size:9px;line-height:1.35}.preorder-conversion-check{display:flex;align-items:center;gap:10px;border:1px solid #cfe8df;border-radius:10px;background:#f2fbf7;padding:11px}.preorder-conversion-check i{display:grid;flex:0 0 31px;width:31px;height:31px;place-items:center;border-radius:9px;background:#dff5ec;color:#0d8b62;font-style:normal;font-weight:850}.preorder-conversion-check span{display:grid}.preorder-conversion-check strong{font-size:11px}.preorder-conversion-check small{color:#687792;font-size:9px;line-height:1.4}.preorder-conversion-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e2e6ee;background:#fbfcfe;padding:13px 20px}.preorder-conversion-footer .button{min-width:130px}
html[data-theme="dark"] .preorders-admin-shell,html[data-theme="dark"] .preorder-review-dialog{background:#17191d;color:#f2f4f8}html[data-theme="dark"] .preorders-admin-header,html[data-theme="dark"] .preorders-admin-summary article,html[data-theme="dark"] .preorders-admin-toolbar,html[data-theme="dark"] .preorders-admin-list,html[data-theme="dark"] .preorders-admin-row,html[data-theme="dark"] .preorder-review-header,html[data-theme="dark"] .preorder-review-section,html[data-theme="dark"] .preorder-review-footer{border-color:#3c414a;background:#22252a}html[data-theme="dark"] .preorders-admin-header h2,html[data-theme="dark"] .preorders-admin-summary strong,html[data-theme="dark"] .preorders-admin-row b,html[data-theme="dark"] .preorders-admin-row strong,html[data-theme="dark"] .preorder-review-header h2,html[data-theme="dark"] .preorder-review-section dd{color:#f1f3f7}html[data-theme="dark"] .preorders-admin-toolbar input,html[data-theme="dark"] .preorders-admin-toolbar select,html[data-theme="dark"] .preorder-review-footer textarea{border-color:#454b55;background:#1c1e22;color:#f1f3f7}html[data-theme="dark"] .preorders-admin-table-head{border-color:#404650;background:#292d33}html[data-theme="dark"] .preorders-admin-row:hover{background:#292530}
html[data-theme="dark"] .preorder-conversion-dialog{border-color:#3c414a;background:#17191d;color:#f2f4f8}html[data-theme="dark"] .preorder-conversion-header{border-color:#3c414a;background:linear-gradient(120deg,#22252a,#272231)}html[data-theme="dark"] .preorder-conversion-header h2,html[data-theme="dark"] .preorder-conversion-summary strong,html[data-theme="dark"] .preorder-client-match strong,html[data-theme="dark"] .preorder-client-options strong,html[data-theme="dark"] .preorder-conversion-check strong{color:#f1f3f7}html[data-theme="dark"] .preorder-conversion-summary article{border-color:#414650;background:#22252a}html[data-theme="dark"] .preorder-client-match{border-color:#574681;background:#25202f}html[data-theme="dark"] .preorder-client-differences div{border-color:#433a58}html[data-theme="dark"] .preorder-client-options label{border-color:#4b425f;background:#1c1e22}html[data-theme="dark"] .preorder-conversion-check{border-color:#315e50;background:#1c332b}html[data-theme="dark"] .preorder-conversion-footer{border-color:#3c414a;background:#22252a}
html[data-theme="dark"] .preorder-inventory-state,html[data-theme="dark"] .preorder-inventory-item{border-color:#454b55;background:#22252a}html[data-theme="dark"] .preorder-inventory-state strong,html[data-theme="dark"] .preorder-inventory-item b{color:#f1f3f7}html[data-theme="dark"] .preorder-inventory-state.is-available{border-color:#315e50;background:#1c332b}html[data-theme="dark"] .preorder-inventory-state.is-warning{border-color:#66542f;background:#30291d}html[data-theme="dark"] .preorder-inventory-state.is-conflict{border-color:#713b46;background:#342126}
@media(max-width:1540px){.preorders-admin-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.preorders-admin-table-head{display:none}.preorders-admin-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;background:transparent;overflow:visible}.preorders-admin-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border:1px solid #dfe4ed;border-radius:11px;padding:13px}.preorders-admin-row>span:before{display:block;margin-bottom:2px;color:#7b899e;font-size:8px;font-weight:800;text-transform:uppercase;content:attr(data-label)}.preorders-admin-row>span:nth-child(2),.preorders-admin-row>span:nth-child(3){grid-column:span 1}.preorders-admin-open{align-self:end}}
@media(max-width:760px){.preorders-admin-header{padding:18px 15px}.preorders-admin-header h2{font-size:23px}.preorders-admin-header p,.preorders-admin-header .button{display:none}.preorders-admin-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 12px 0}.preorders-admin-summary article{padding:10px}.preorders-admin-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 12px 0;padding:12px}.preorders-admin-search,.preorders-admin-toolbar label:nth-child(4),.preorders-admin-toolbar label:nth-child(5),.preorders-admin-toolbar .button{grid-column:1/-1}.preorders-admin-list-heading{align-items:start;padding:16px 13px 9px}.preorders-admin-list-heading>span{display:none}.preorders-admin-list{grid-template-columns:1fr;margin:0 12px}.preorders-admin-pagination{margin:13px 12px 20px}.preorder-review-dialog{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.preorder-review-shell{max-height:100dvh}.preorder-review-header{padding:17px 15px 14px}.preorder-review-header h2{font-size:21px}.preorder-review-content{padding:12px}.preorder-review-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.preorder-review-section dl{grid-template-columns:1fr}.preorder-review-section dl>div,.preorder-review-section dl>div:nth-child(3n){border-right:0}.preorder-review-payment{grid-template-columns:repeat(2,minmax(0,1fr))}.preorder-inventory-items{grid-template-columns:1fr}.preorder-review-footer{grid-template-columns:1fr;padding:12px}.preorder-review-footer>label{grid-row:auto}.preorder-review-actions{display:grid;grid-template-columns:1fr 1fr}.preorder-review-actions .button{min-width:0}.preorder-review-next{grid-template-columns:auto minmax(0,1fr)}.preorder-review-next .button{grid-column:1/-1;width:100%}.preorder-conversion-dialog{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.preorder-conversion-shell{max-height:100dvh}.preorder-conversion-header{padding:17px 15px 14px}.preorder-conversion-content{padding:13px}.preorder-conversion-summary{grid-template-columns:1fr}.preorder-client-differences div{grid-template-columns:80px minmax(0,1fr)}.preorder-client-differences div span:last-child{grid-column:2}.preorder-conversion-footer{padding:12px}}
@media(max-width:430px){.preorders-admin-row{grid-template-columns:1fr 1fr}.preorders-admin-row>span:nth-child(2),.preorders-admin-row>span:nth-child(3),.preorders-admin-row>span:nth-child(8){grid-column:1/-1}.preorder-review-payment{grid-template-columns:1fr}.preorder-review-actions{grid-template-columns:1fr}.preorder-review-overview{grid-template-columns:1fr 1fr}}

/* Fase 10 — histórico, auditoria e privacidade */
.preorder-history-timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;padding:10px 14px 13px}.preorder-history-event{position:relative;display:grid;grid-template-columns:15px minmax(0,1fr);gap:8px;min-width:0;padding:8px 0}.preorder-history-event:before{position:absolute;top:25px;bottom:-8px;left:5px;width:1px;background:#e3ddfa;content:""}.preorder-history-event:nth-last-child(-n+2):before{display:none}.preorder-history-dot{z-index:1;width:11px;height:11px;margin-top:4px;border:3px solid #ece7ff;border-radius:50%;background:#6842e8}.preorder-history-event>div{display:grid;min-width:0;gap:2px}.preorder-history-event>div>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.preorder-history-event time{color:#8995a8;font-size:9px;white-space:nowrap}.preorder-history-event strong{overflow:hidden;color:#25324a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.preorder-history-event small{overflow:hidden;color:#748198;font-size:9px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.preorder-history-source{display:inline-flex;width:max-content;border-radius:999px;background:#f1edff;padding:3px 6px;color:#6842e8;font-size:8px;font-style:normal;font-weight:800;text-transform:uppercase}.preorder-history-source.is-contract{background:#e8f5ff;color:#2475a9}
.preorder-history-versions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:11px 12px}.preorder-history-version{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:9px;border:1px solid #e5e8ef;border-radius:9px;background:#fff;padding:8px 9px}.preorder-history-version>span{display:grid;min-width:0;gap:2px}.preorder-history-version strong{color:#25324a;font-size:10px}.preorder-history-version small{overflow:hidden;color:#7b899e;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.preorder-history-version em{border-radius:999px;background:#e5f7ef;padding:4px 7px;color:#11805d;font-size:8px;font-style:normal;font-weight:800}.preorder-history-version .button{height:28px;padding:0 9px;font-size:9px}.preorder-history-feedback{min-height:0;padding:0 12px 10px;color:#11805d;font-size:10px;font-weight:700}.preorder-history-feedback:empty{display:none}
.preorder-security-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:11px 12px 8px}.preorder-security-grid article{display:grid;min-width:0;align-content:start;gap:3px;border:1px solid #e2ddf6;border-radius:9px;background:#faf9ff;padding:9px 10px}.preorder-security-grid small{color:#687792;font-size:8px;font-weight:800;text-transform:uppercase}.preorder-security-grid strong{overflow:hidden;color:#6341eb;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.preorder-security-grid span{color:#7a879b;font-size:8px;line-height:1.35}.preorder-protection-list{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 12px}.preorder-protection-list span{border-radius:999px;background:#eef8f4;padding:5px 8px;color:#147457;font-size:8px;font-weight:750}
.preorder-privacy-dialog{width:min(760px,calc(100vw - 28px));max-height:calc(100vh - 28px);border:1px solid #dce3ee;border-radius:14px;background:#f6f8fb;padding:0;color:#17243d;box-shadow:0 24px 70px rgba(16,27,61,.22)}.preorder-privacy-dialog::backdrop{background:rgba(12,22,39,.52);backdrop-filter:blur(2px)}.preorder-privacy-shell{display:flex;max-height:calc(100vh - 30px);flex-direction:column}.preorder-privacy-content{display:grid;gap:13px;overflow:auto;padding:16px 20px}.preorder-privacy-protections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.preorder-privacy-protections article{display:flex;min-width:0;align-items:flex-start;gap:8px;border:1px solid #dce8e3;border-radius:10px;background:#f7fcfa;padding:10px}.preorder-privacy-protections i{display:grid;flex:0 0 28px;width:28px;height:28px;place-items:center;border-radius:8px;background:#dff5ec;color:#0d8b62;font-size:11px;font-style:normal;font-weight:850}.preorder-privacy-protections span{display:grid;gap:2px}.preorder-privacy-protections strong{font-size:10px}.preorder-privacy-protections small{color:#687792;font-size:9px;line-height:1.4}.preorder-privacy-content>.field{display:grid;gap:5px;border:1px solid #e0e5ee;border-radius:10px;background:#fff;padding:12px}.preorder-privacy-content>.field>span{color:#53627a;font-size:10px;font-weight:800;text-transform:uppercase}.preorder-privacy-content>.field select{height:40px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 11px;color:#25324a;font:500 12px/1 Inter,"Segoe UI",system-ui,sans-serif}.preorder-privacy-content>.field select:focus{outline:0;border-color:#7959f5;box-shadow:0 0 0 3px rgba(108,75,246,.1)}.preorder-privacy-content>.field small{color:#748198;font-size:9px}.preorder-privacy-notice{display:flex;align-items:flex-start;gap:9px;border:1px solid #eedcae;border-radius:10px;background:#fffaf0;padding:10px 11px}.preorder-privacy-notice i{display:grid;flex:0 0 28px;width:28px;height:28px;place-items:center;border-radius:8px;background:#fff0cf;color:#966100;font-style:normal;font-weight:850}.preorder-privacy-notice span{display:grid;gap:2px}.preorder-privacy-notice strong{font-size:10px}.preorder-privacy-notice small{color:#687792;font-size:9px;line-height:1.4}.preorder-review-error.is-success{color:#11805d}
html[data-theme="dark"] .preorder-history-event strong,html[data-theme="dark"] .preorder-history-version strong,html[data-theme="dark"] .preorder-privacy-protections strong,html[data-theme="dark"] .preorder-privacy-notice strong{color:#f1f3f7}html[data-theme="dark"] .preorder-history-version,html[data-theme="dark"] .preorder-security-grid article,html[data-theme="dark"] .preorder-privacy-content>.field{border-color:#444a54;background:#22252a}html[data-theme="dark"] .preorder-security-grid article{background:#252130}html[data-theme="dark"] .preorder-privacy-dialog{border-color:#3c414a;background:#17191d;color:#f2f4f8}html[data-theme="dark"] .preorder-privacy-protections article{border-color:#315e50;background:#1c332b}html[data-theme="dark"] .preorder-privacy-content>.field select{border-color:#454b55;background:#1c1e22;color:#f1f3f7}html[data-theme="dark"] .preorder-privacy-notice{border-color:#66542f;background:#30291d}
@media(max-width:760px){.preorder-history-timeline,.preorder-history-versions{grid-template-columns:1fr}.preorder-history-event:nth-last-child(-n+2):before{display:block}.preorder-history-event:last-child:before{display:none}.preorder-security-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preorder-security-grid article:last-child{grid-column:1/-1}.preorder-privacy-dialog{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.preorder-privacy-shell{max-height:100dvh}.preorder-privacy-protections{grid-template-columns:1fr}.preorder-privacy-content{padding:13px}}

/* V143 — conferência simplificada e fluxo de assinatura após o contrato */
.preorder-review-close{display:inline-flex;flex:0 0 auto;align-items:center;gap:8px;height:38px;padding:0 11px 0 13px}.preorder-review-close span{color:#6842e8!important;font-size:11px!important;font-weight:750!important;letter-spacing:0!important;text-transform:none!important}.preorder-review-close b{display:grid;width:20px;height:20px;place-items:center;border-radius:6px;background:#f1edff;color:#6842e8;font-size:16px;line-height:1}
.preorder-history-details{overflow:hidden}.preorder-history-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f9fafc;padding:12px 13px;cursor:pointer;list-style:none;transition:background 160ms ease}.preorder-history-details>summary::-webkit-details-marker{display:none}.preorder-history-details>summary:hover,.preorder-history-details>summary:focus-visible{outline:0;background:#f5f2ff}.preorder-history-details>summary>span{display:grid;gap:2px}.preorder-history-details>summary strong{color:#17243d;font-size:13px}.preorder-history-details>summary small{color:#7a879b;font-size:10px}.preorder-history-details>summary i{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;background:#f1edff;color:#6842e8;font-size:15px;font-style:normal;font-weight:800;transition:transform 180ms ease}.preorder-history-details[open]>summary{border-bottom:1px solid #e9edf3}.preorder-history-details[open]>summary i{transform:rotate(180deg)}
.preorder-review-footer{display:grid;grid-template-columns:1fr;gap:0;padding:0}.preorder-review-payment-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:10px 14px;padding:14px 20px}.preorder-review-payment-controls[hidden]{display:none!important}.preorder-review-payment-controls>label{display:grid;grid-row:1/4;gap:5px}.preorder-review-payment-controls>label>span{color:#53627a;font-size:10px;font-weight:750;letter-spacing:.015em;text-transform:uppercase}.preorder-review-footer-close{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid #e7ebf1;background:#fbfcfe;padding:10px 20px}.preorder-review-payment-controls[hidden]+.preorder-review-footer-close{border-top:0}.preorder-review-footer-close span{margin-right:auto;color:#7b899e;font-size:10px}.preorder-review-footer-close .button{min-width:120px;height:36px}
html[data-theme="dark"] .preorder-history-details>summary,html[data-theme="dark"] .preorder-review-footer-close{border-color:#3c414a;background:#22252a}html[data-theme="dark"] .preorder-history-details>summary strong{color:#f1f3f7}html[data-theme="dark"] .preorder-history-details>summary:hover{background:#292530}
@media(max-width:760px){.preorder-review-close{height:36px;padding:0 9px}.preorder-review-close span{display:inline!important}.preorder-review-payment-controls{grid-template-columns:1fr;padding:12px}.preorder-review-payment-controls>label{grid-row:auto}.preorder-review-footer-close{padding:9px 12px}.preorder-review-footer-close span{display:none}.preorder-review-footer-close .button{width:100%}}

/* V144 — configuração central do Pix dos pré-pedidos */
.preorder-pix-settings-dialog{width:min(780px,calc(100vw - 28px))}.preorder-pix-settings-content{gap:12px}.preorder-pix-enabled{display:flex;align-items:center;gap:11px;border:1px solid #ded8f7;border-radius:11px;background:#faf9ff;padding:11px 13px;cursor:pointer}.preorder-pix-enabled input{width:17px;height:17px;accent-color:#6842e8}.preorder-pix-enabled span{display:grid;gap:2px}.preorder-pix-enabled strong{color:#25324a;font-size:12px}.preorder-pix-enabled small{color:#71809a;font-size:10px}.preorder-pix-settings-grid{display:grid;grid-template-columns:150px minmax(220px,1fr) minmax(180px,1fr);gap:11px}.preorder-pix-settings-grid .field{display:grid;min-width:0;gap:5px}.preorder-pix-settings-grid .field>span{color:#53627a;font-size:10px;font-weight:800;letter-spacing:.015em;text-transform:uppercase}.preorder-pix-settings-grid input,.preorder-pix-settings-grid select{width:100%;min-width:0;height:40px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 11px;color:#25324a;font:500 12px/1 Inter,"Segoe UI",system-ui,sans-serif}.preorder-pix-settings-grid input:focus,.preorder-pix-settings-grid select:focus{outline:0;border-color:#7959f5;box-shadow:0 0 0 3px rgba(108,75,246,.1)}.preorder-pix-key{grid-column:span 2}.preorder-pix-label{grid-column:span 2}.preorder-pix-amount-notice{display:flex;align-items:center;gap:10px;border:1px solid #cfe8df;border-radius:10px;background:#f2fbf7;padding:10px 12px}.preorder-pix-amount-notice i{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:9px;background:#dff5ec;color:#0d8b62;font-size:10px;font-style:normal;font-weight:850}.preorder-pix-amount-notice span{display:grid;gap:2px}.preorder-pix-amount-notice strong{color:#25324a;font-size:11px}.preorder-pix-amount-notice small{color:#687792;font-size:9px;line-height:1.45}
html[data-theme="dark"] .preorder-pix-enabled{border-color:#514969;background:#292530}html[data-theme="dark"] .preorder-pix-enabled strong,html[data-theme="dark"] .preorder-pix-amount-notice strong{color:#f1f3f7}html[data-theme="dark"] .preorder-pix-settings-grid input,html[data-theme="dark"] .preorder-pix-settings-grid select{border-color:#454b55;background:#1c1e22;color:#f1f3f7}html[data-theme="dark"] .preorder-pix-amount-notice{border-color:#315e50;background:#1c332b}
@media(max-width:760px){.preorder-pix-settings-dialog{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.preorder-pix-settings-grid{grid-template-columns:1fr}.preorder-pix-key,.preorder-pix-label{grid-column:auto}}

/* V209 — leitura dos estados de pagamento com cartão na conferência */
.preorder-review-proof>span{display:grid;min-width:0;gap:4px;align-content:center}
.preorder-review-proof>span small,.preorder-review-proof>span strong{display:block}
.preorder-review-proof>span strong{overflow:visible;overflow-wrap:anywhere;text-overflow:clip;white-space:normal;line-height:1.35}
.preorder-review-warning{min-width:0;align-items:center;gap:11px;border:1px solid #f0dca9;border-radius:10px;background:#fffaf0;padding:10px 12px}
.preorder-review-warning i{flex:0 0 32px}
.preorder-review-warning span{min-width:0;gap:3px}
.preorder-review-warning strong{color:#704700;line-height:1.3}
.preorder-review-warning small{overflow-wrap:anywhere;line-height:1.45}

/* Origem: preorders-edit-v294.css */
.preorder-edit-section > summary { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;color:#6140e9;list-style:none; }
.preorder-edit-section > summary::-webkit-details-marker { display:none; }
.preorder-edit-section > summary span { color:#687792;font-size:12px;font-weight:500; }
.preorder-edit-section > form { border-top:1px solid #e2e7f0;padding:16px; }
.preorder-edit-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.preorder-edit-grid label { display:grid;gap:6px;color:#394d70;font-size:12px;font-weight:700; }
.preorder-edit-grid input { box-sizing:border-box;width:100%;min-height:39px;border:1px solid #cfdbec;border-radius:8px;background:#fff;padding:8px 10px;color:#102446;font:inherit;font-weight:500; }
.preorder-edit-grid input:focus-visible { outline:2px solid #866bfa;outline-offset:1px; }
.preorder-edit-warning { margin:14px 0;color:#8b5900;font-size:12px;line-height:1.5; }
.preorder-edit-section [data-edit-error] { margin-bottom:8px; }
@media(max-width:600px) { .preorder-edit-grid { grid-template-columns:1fr; } .preorder-edit-section > summary { align-items:flex-start;flex-direction:column; } }
html[data-theme="dark"] .preorder-edit-grid input { border-color:#484d59;background:#20242b;color:#f4f5f7; }

/* Origem: receipts-settings-v147.css */
.receipts-settings-dialog{background:#f4f6fa!important;color:#17243d}.receipts-settings-shell{display:flex;min-height:100%;flex-direction:column}.receipts-settings-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-bottom:1px solid #dce3ed;background:linear-gradient(118deg,#edf5fd 0,#faf8ff 100%);padding:26px 30px}.receipts-settings-header>div>span{color:#6842e8;font-size:11px;font-weight:850;letter-spacing:.07em}.receipts-settings-header h2{margin:7px 0 4px;color:#17243d;font-size:29px;line-height:1.1}.receipts-settings-header p{margin:0;color:#687792;font-size:12px}.receipts-settings-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:16px;flex:1;padding:22px 30px 28px}.receipts-settings-intro{grid-column:1/-1;display:flex;align-items:center;gap:12px;border:1px solid #d9d0fa;border-radius:11px;background:#fbf9ff;padding:12px 14px}.receipts-settings-intro i{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:10px;background:#f1edff;color:#6842e8;font-size:12px;font-style:normal;font-weight:850}.receipts-settings-intro span{display:grid;gap:2px}.receipts-settings-intro strong{font-size:12px}.receipts-settings-intro small{color:#687792;font-size:10px}.receipts-settings-card{display:grid;align-content:start;gap:13px;border:1px solid #dce3ed;border-radius:13px;background:#fff;padding:18px;box-shadow:0 2px 8px rgba(24,35,58,.04)}.receipts-settings-card>header{border-bottom:1px solid #edf0f4;padding-bottom:13px}.receipts-settings-card>header span{color:#6842e8;font-size:9px;font-weight:850;letter-spacing:.07em}.receipts-settings-card>header h3{margin:5px 0 3px;color:#17243d;font-size:17px}.receipts-settings-card>header p{margin:0;color:#71809a;font-size:10px;line-height:1.45}.receipts-settings-card .preorder-pix-settings-grid{grid-template-columns:140px minmax(0,1fr);gap:11px}.receipts-settings-card .preorder-pix-key,.receipts-settings-card .preorder-pix-label{grid-column:span 1}.receipts-transfer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.receipts-transfer-grid .field{display:grid;min-width:0;gap:5px}.receipts-transfer-grid .field>span{color:#53627a;font-size:10px;font-weight:800;letter-spacing:.015em;text-transform:uppercase}.receipts-transfer-grid input{width:100%;min-width:0;height:40px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 11px;color:#25324a;font:500 12px/1 Inter,"Segoe UI",system-ui,sans-serif}.receipts-transfer-grid input:focus{outline:0;border-color:#7959f5;box-shadow:0 0 0 3px rgba(108,75,246,.1)}.receipts-transfer-institution,.receipts-transfer-receiver{grid-column:1/-1}.receipts-settings-future{grid-column:1/-1;display:flex;align-items:center;gap:11px;background:#fafbfc}.receipts-settings-future i{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:9px;background:#eef1f6;color:#71809a;font-style:normal}.receipts-settings-future span{display:grid;gap:2px}.receipts-settings-future strong{font-size:11px}.receipts-settings-future small{color:#71809a;font-size:9px}.receipts-settings-content>.preorder-review-error{grid-column:1/-1}.receipts-settings-footer{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #dce3ed;background:#fff;padding:14px 30px}.receipts-settings-footer .button{min-width:145px}
html[data-theme="dark"] .receipts-settings-dialog{background:#17191d!important;color:#f2f4f8}html[data-theme="dark"] .receipts-settings-header{border-color:#3c414a;background:linear-gradient(118deg,#202a35,#292530)}html[data-theme="dark"] .receipts-settings-header h2,html[data-theme="dark"] .receipts-settings-card h3,html[data-theme="dark"] .receipts-settings-intro strong,html[data-theme="dark"] .receipts-settings-future strong{color:#f1f3f7}html[data-theme="dark"] .receipts-settings-card,html[data-theme="dark"] .receipts-settings-intro,html[data-theme="dark"] .receipts-settings-future{border-color:#414650;background:#22252a}html[data-theme="dark"] .receipts-settings-footer{border-color:#3c414a;background:#22252a}html[data-theme="dark"] .receipts-transfer-grid input{border-color:#454b55;background:#1c1e22;color:#f1f3f7}
@media(max-width:1000px){.receipts-settings-content{grid-template-columns:1fr}.receipts-settings-card,.receipts-settings-intro,.receipts-settings-future,.receipts-settings-content>.preorder-review-error{grid-column:1}.receipts-settings-card .preorder-pix-settings-grid{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:700px){.receipts-settings-header{padding:20px 15px}.receipts-settings-header h2{font-size:24px}.receipts-settings-header p{font-size:11px}.receipts-settings-content{padding:14px}.receipts-settings-card{padding:14px}.receipts-settings-card .preorder-pix-settings-grid,.receipts-transfer-grid{grid-template-columns:1fr}.receipts-settings-card .preorder-pix-key,.receipts-settings-card .preorder-pix-label,.receipts-transfer-institution,.receipts-transfer-receiver{grid-column:1}.receipts-settings-footer{padding:12px 14px}.receipts-settings-footer .button{min-width:0;flex:1}}
.admin-image-lightbox{width:min(92vw,1100px);max-width:1100px;height:min(90vh,850px);max-height:90vh;border:0;border-radius:13px;background:rgba(12,20,34,.94);padding:42px 18px 18px;box-shadow:0 26px 80px rgba(0,0,0,.38)}.admin-image-lightbox::backdrop{background:rgba(5,10,18,.72);backdrop-filter:blur(4px)}.admin-image-lightbox>button{position:absolute;top:9px;right:10px;display:grid;width:28px;height:28px;place-items:center;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:rgba(255,255,255,.09);color:#fff;font-size:20px;cursor:pointer}.admin-image-lightbox img{display:block;width:100%;height:100%;object-fit:contain}
.receipts-card-config{grid-column:1/-1}.receipts-card-config__notice{margin:0;color:#53627a;font-size:12px;line-height:1.5}.receipts-card-config .receipts-transfer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.receipts-card-config .receipts-transfer-grid select{width:100%;min-width:0;height:40px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 11px;color:#25324a;font:500 12px/1 Inter,"Segoe UI",system-ui,sans-serif}.receipts-card-config__actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.receipts-card-config__actions [role="status"]{font-size:12px;color:#53627a}.receipts-card-config__actions .button{min-width:150px}html[data-theme="dark"] .receipts-card-config__notice,html[data-theme="dark"] .receipts-card-config__actions [role="status"]{color:#b8c3d2}html[data-theme="dark"] .receipts-card-config .receipts-transfer-grid select{border-color:#454b55;background:#1c1e22;color:#f1f3f7}@media(max-width:700px){.receipts-card-config .receipts-transfer-grid{grid-template-columns:1fr}}
.receipts-card-config__tests{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.receipts-card-config__tests .field{display:grid;gap:6px;min-width:0}.receipts-card-config__tests .field>span{color:#53627a;font-size:10px;font-weight:800;letter-spacing:.015em;text-transform:uppercase}.receipts-card-config__tests textarea{width:100%;min-width:0;resize:vertical;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:10px 11px;color:#25324a;font:500 12px/1.5 Inter,"Segoe UI",system-ui,sans-serif}.receipts-card-config__tests small{color:#71809a;font-size:10px;line-height:1.4}html[data-theme="dark"] .receipts-card-config__tests textarea{border-color:#454b55;background:#1c1e22;color:#f1f3f7}@media(max-width:700px){.receipts-card-config__tests{grid-template-columns:1fr}}
.receipts-card-config > .field{display:grid;gap:6px;max-width:520px}.receipts-card-config > .field[hidden]{display:none!important}.receipts-card-config > .field > span{color:#53627a;font-size:10px;font-weight:800;text-transform:uppercase}.receipts-card-config > .field input{width:100%;height:40px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 11px;color:#25324a;font:500 12px/1 Inter,"Segoe UI",system-ui,sans-serif}.receipts-card-config > .field small{color:#71809a;font-size:10px;line-height:1.4}html[data-theme="dark"] .receipts-card-config > .field input{border-color:#454b55;background:#1c1e22;color:#f1f3f7}
.receipts-card-config__production{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;border:1px solid #e7dafb;border-radius:10px;background:#faf7ff;padding:12px}.receipts-card-config__production[hidden],.receipts-card-config__production .field[hidden]{display:none!important}.receipts-card-config__production .field{display:grid;align-content:start;gap:6px;min-width:0}.receipts-card-config__production .field>span{color:#53627a;font-size:10px;font-weight:800;text-transform:uppercase}.receipts-card-config__production .field :is(select,input,textarea){width:100%;min-width:0;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:10px 11px;color:#25324a;font:500 12px/1.5 Inter,"Segoe UI",system-ui,sans-serif}.receipts-card-config__production .field :is(select,input){height:40px}.receipts-card-config__production .field textarea{resize:vertical}.receipts-card-config__production .field small{color:#71809a;font-size:10px;line-height:1.4}html[data-theme="dark"] .receipts-card-config__production{border-color:#554579;background:#282335}html[data-theme="dark"] .receipts-card-config__production .field :is(select,input,textarea){border-color:#454b55;background:#1c1e22;color:#f1f3f7}@media(max-width:700px){.receipts-card-config__production{grid-template-columns:1fr}}

/* Origem: ui-fixes-v150.css */
/* Central de trabalho: separação clara entre os blocos horizontais. */
.work-center-dialog.is-home-dashboard .home-command-bar{margin-bottom:25px;padding-bottom:0}
.work-center-dialog.is-home-dashboard .work-center-cards{margin-bottom:37px;padding-bottom:0}
.work-center-dialog.is-home-dashboard .work-center-alerts{margin-bottom:37px}

/* Pedidos em aberto: ações uniformes com inversão de cores. */
.preorders-admin-open{display:grid;place-items:center;min-width:76px;padding:0 10px;border-color:#d8ccff!important;background:#f1eaff!important;color:#6842e8!important;transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
.preorders-admin-open:hover,.preorders-admin-open:focus-visible{border-color:#6842e8!important;background:#6842e8!important;color:#f1eaff!important;box-shadow:0 5px 12px rgba(104,66,232,.18);outline:0}
.preorders-admin-open.is-confirmed{font-weight:800}

/* Pacotes: lista com 500px e ação abaixo alinhada à direita. */
.package-pieces{height:500px;max-height:500px}
.package-form>button[type="submit"]{grid-column:1/-1;justify-self:end;min-width:150px}

@media(max-width:760px){.work-center-dialog.is-home-dashboard .home-command-bar{margin-bottom:25px}.work-center-dialog.is-home-dashboard .work-center-cards,.work-center-dialog.is-home-dashboard .work-center-alerts{margin-bottom:24px}.package-pieces{height:500px}}
html[data-theme="dark"] .preorders-admin-open{border-color:#7156d9!important;background:#30274a!important;color:#cdbfff!important}
html[data-theme="dark"] .preorders-admin-open:hover,html[data-theme="dark"] .preorders-admin-open:focus-visible{border-color:#876cff!important;background:#7654ef!important;color:#eee9ff!important}

/* Origem: work-center-refinements-v151.css */
/* Busca global ocupando toda a largura útil da coluna principal. */
.work-center-dialog.is-home-dashboard .home-command-bar>button{width:100%;max-width:none}

/* Atenção necessária com o mesmo destaque e hierarquia da referência. */
.work-center-alerts{border-color:#f2c9cf;background:linear-gradient(100deg,#fff3f4 0%,#fff7f8 58%,#fff4f5 100%);box-shadow:0 2px 7px rgba(186,48,67,.035)}
.work-center-alerts>header{padding-bottom:11px}
.work-center-alerts>header strong{color:#d9364b;font-weight:800}
.work-center-alerts>header button{display:flex;align-items:center;gap:5px;padding:3px 0;color:var(--brand);font-weight:800}
.work-center-alerts>header button b{font:inherit}
.work-center-alerts>header button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}
.work-center-alerts>div>button{border-color:#e4e3eb;box-shadow:0 1px 3px rgba(35,43,64,.035)}

/* Barra lateral: sino correto e links principais com aparência de botão. */
.home-side-card>header .home-side-bell{border:1px solid #d8ccff;background:#faf8ff}
.home-side-card>header .home-side-bell svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.home-side-card>header button{display:inline-flex;flex:0 0 auto;align-items:center;gap:4px;font-weight:800;white-space:nowrap}
.home-side-card>header button b{font:inherit}
.home-side-card>.home-side-action{display:flex;width:calc(100% - 20px);min-height:34px;align-items:center;justify-content:center;gap:7px;margin:8px 10px 10px;border:1px solid #e6e0ff;border-radius:6px;background:#f7f4ff;color:var(--brand);font-size:9px;font-weight:800;text-align:center;transition:border-color .16s ease,background .16s ease,color .16s ease}
.home-side-card>.home-side-action:hover{border-color:#cfc2ff;background:#eee8ff;color:#5834d6}
.home-side-card>.home-side-action b{font-size:13px;line-height:1}

html[data-theme="dark"] .work-center-alerts{border-color:#653942;background:linear-gradient(100deg,#332326,#2b2225)}
html[data-theme="dark"] .home-side-card>.home-side-action{border-color:#51466f;background:#2b2538;color:#cbbcff}

/* Origem: interface-refinements-v152.css */
/* Ajustes de interface V152: carregamento, tipografia dos acervos e construtor de pacotes. */

.preorder-opening-loader[hidden]{display:none!important}
.preorder-opening-loader{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px;background:rgba(237,241,249,.58);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
.preorder-opening-loader{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;box-sizing:border-box}
.preorder-opening-loader::backdrop{background:transparent}
.preorder-opening-loader__card{display:grid;justify-items:center;gap:9px;min-width:min(330px,calc(100vw - 40px));padding:28px;border:1px solid #ded7ff;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 22px 60px rgba(24,38,67,.2);color:#14233d;text-align:center}
.preorder-opening-loader__card strong{font-size:17px}
.preorder-opening-loader__card small{color:#65728a;font-size:13px}
.preorder-opening-loader__spinner{width:58px;height:58px;margin-bottom:5px;border:8px solid #e9e4ff;border-right-color:#6940ed;border-top-color:#9479f4;border-radius:50%;animation:preorder-loader-spin .8s linear infinite}
@keyframes preorder-loader-spin{to{transform:rotate(360deg)}}

/* 16px é o equivalente web legível solicitado, sem comprometer o encaixe dos campos. */
#inventoryDialog .inventory-shell,#tablesCatalogDialog .inventory-shell{font-size:16px}
#inventoryDialog input,#inventoryDialog select,#inventoryDialog textarea,#inventoryDialog button,
#tablesCatalogDialog input,#tablesCatalogDialog select,#tablesCatalogDialog textarea,#tablesCatalogDialog button{font-size:16px}
#inventoryDialog .inventory-row .field>span,#tablesCatalogDialog .field>span{font-size:13px}
#inventoryDialog .inventory-summary,#inventoryDialog .inventory-table-head,
#tablesCatalogDialog .tables-product-card__meta,#tablesCatalogDialog .tables-product-card summary small{font-size:14px}

.package-form.package-form--builder{grid-template-columns:minmax(280px,1.35fr) minmax(250px,.9fr) 220px;align-items:end;gap:12px;padding:14px 20px 12px}
.package-form--builder .package-search{min-width:0}
.package-form--builder .package-pieces{height:500px;max-height:none;padding:0;border:0;border-radius:10px;background:transparent;overflow:visible}
.package-builder{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.package-builder__column{min-width:0;height:500px;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #d9e1ed;border-radius:10px;background:#fff}
.package-builder__column>header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 14px;border-bottom:1px solid #e2e7ef;background:#f8f9fc}
.package-builder__column>header strong{font-size:15px;color:#172844}
.package-builder__column>header small{font-size:12px;color:#69758c;text-align:right}
.package-builder__list{min-height:0;padding:4px 7px;overflow:auto;scrollbar-gutter:stable}
.package-builder__item{display:grid;grid-template-columns:30px minmax(0,1fr) 64px;align-items:center;gap:8px;min-height:47px;padding:6px 4px;border-bottom:1px solid #eef1f6;color:#1d2c45;font-size:15px}
.package-builder__item:last-child{border-bottom:0}
.package-builder__item:hover{background:#faf9ff}
.package-builder__item>span{line-height:1.3;overflow-wrap:anywhere}
.package-builder__item input[type=number]{width:64px;min-height:34px;padding:5px 6px;border:1px solid #d3dce7;border-radius:6px;font-size:14px}
.package-builder__toggle{width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;background:#f0ecff;color:#6540df;font-size:24px;font-weight:800;line-height:1;cursor:pointer;transition:.16s ease}
.package-builder__toggle:hover,.package-builder__toggle:focus-visible{background:#6842e8;color:#fff;transform:scale(1.05)}
.package-builder__toggle.is-remove{background:#fff0f2;color:#c4374c}
.package-builder__toggle.is-remove:hover,.package-builder__toggle.is-remove:focus-visible{background:#c4374c;color:#fff}
.package-builder__empty{height:100%;display:grid;place-content:center;justify-items:center;gap:5px;padding:24px;color:#77839a;text-align:center}
.package-builder__empty strong{color:#40506a}
.package-form--builder>button[type=submit]{grid-column:1/-1;justify-self:end;min-width:150px}

html[data-theme="dark"] .preorder-opening-loader{background:rgba(10,14,23,.62)}
html[data-theme="dark"] .preorder-opening-loader__card,html[data-theme="dark"] .package-builder__column{border-color:#45405f;background:#22212a;color:#f5f2ff}
html[data-theme="dark"] .package-builder__column>header{border-color:#3c3949;background:#292731}
html[data-theme="dark"] .package-builder__column>header strong,html[data-theme="dark"] .package-builder__item{color:#f2efff}
html[data-theme="dark"] .package-builder__item{border-color:#383542}
html[data-theme="dark"] .package-builder__item:hover{background:#2e2a3a}

@media(max-width:900px){.package-form.package-form--builder{grid-template-columns:1fr 210px}.package-form--builder .package-search{grid-column:1/-1}.package-builder{grid-template-columns:1fr}.package-form--builder .package-pieces{height:auto}.package-builder__column{height:360px}}
@media(max-width:620px){.package-form.package-form--builder{grid-template-columns:1fr}.package-form--builder .package-search{grid-column:1}.package-builder__column{height:320px}.preorder-opening-loader__card{padding:22px}}

/* Origem: preorders-tablet-v153.css */
/* Pedidos em aberto — composição específica para tablets. */
@media (min-width:761px) and (max-width:1180px){
  .preorders-admin-header{display:grid;grid-template-columns:minmax(190px,1fr) auto;align-items:center;gap:18px;padding:22px 24px}
  .preorders-admin-header>div:first-child{min-width:0}
  .preorders-admin-header h2{font-size:26px}
  .preorders-admin-header>div:last-child{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(112px,1fr);align-items:stretch;gap:8px}
  .preorders-admin-header>div:last-child>.button{width:100%;min-width:112px;min-height:46px;padding:0 12px;border-radius:10px;font-size:13px;font-weight:750;line-height:1.15;white-space:nowrap}
  .preorders-admin-header>div:last-child>.button:hover,.preorders-admin-header>div:last-child>.button:focus-visible{border-color:#6842e8;background:#6842e8;color:#fff;box-shadow:0 6px 15px rgba(104,66,232,.18)}
  .preorders-admin-header .calendar-close{align-self:center}

  .preorders-admin-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px 24px 0}
  .preorders-admin-summary article{gap:9px;padding:12px}
  .preorders-admin-summary i{flex-basis:37px;width:37px;height:37px}

  .preorders-admin-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:14px 24px 0}
  .preorders-admin-toolbar .button{width:100%}

  .preorders-admin-list-heading{padding:18px 25px 9px}
  .preorders-admin-table-head{display:none}
  .preorders-admin-list{display:grid;grid-template-columns:1fr;gap:8px;margin:0 24px;border:0;background:transparent;overflow:visible}
  .preorders-admin-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;width:100%;min-height:0;border:1px solid #dfe4ed;border-radius:11px;padding:12px 13px;background:#fff;box-shadow:0 2px 7px rgba(24,35,58,.035)}
  .preorders-admin-row:last-child{border-bottom:1px solid #dfe4ed}
  .preorders-admin-row>span{align-self:start}
  .preorders-admin-row>span:before{display:block;margin-bottom:3px;color:#7b899e;font-size:8px;font-weight:800;line-height:1.15;text-transform:uppercase;content:attr(data-label)}
  .preorders-admin-row b,.preorders-admin-row strong{font-size:11px}
  .preorders-admin-row small{font-size:9px}
  .preorders-admin-row>span:nth-child(2),.preorders-admin-row>span:nth-child(3){grid-column:auto}
  .preorders-admin-open{align-self:start;width:100%;min-width:0;height:32px;border-radius:8px;font-size:10px}
}

@media (min-width:761px) and (max-width:900px){
  .preorders-admin-header{grid-template-columns:205px minmax(0,1fr);gap:12px}
  .preorders-admin-header>div:last-child{grid-auto-columns:minmax(0,1fr);width:100%;gap:7px}
  .preorders-admin-header>div:last-child>.button{min-width:0;padding:0 8px;font-size:12px;white-space:normal}
  .preorders-admin-header p{font-size:12px;line-height:1.35}
  .preorders-admin-summary small{font-size:9px}
  .preorders-admin-summary strong{font-size:18px}
}

html[data-theme="dark"] .preorders-admin-row{border-color:#3c414a;background:#22252a}

/* Origem: preorders-delete-v154.css */
/* Exclusão definitiva de pré-pedidos e ações da lista. */
.preorders-admin-table-head,.preorders-admin-row{grid-template-columns:115px minmax(145px,1.15fr) minmax(140px,1fr) 110px 105px 125px 100px 135px 120px 154px}
.preorders-admin-actions{display:flex!important;flex-wrap:wrap;align-items:center!important;gap:4px 6px}
.preorders-admin-actions:before{flex:0 0 100%;width:100%}
.preorders-admin-actions .preorders-admin-open,.preorders-admin-actions .preorders-admin-delete{flex:1 1 0;min-width:0;height:32px;border-radius:8px;padding:0 8px;font-size:10px;font-weight:750;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
.preorders-admin-delete{border:1px solid #f0bcc4;background:#fff7f8;color:#bd2e45}
.preorders-admin-delete:hover,.preorders-admin-delete:focus-visible{outline:0;border-color:#c8354d;background:#c8354d;color:#fff;box-shadow:0 5px 12px rgba(200,53,77,.18)}
.preorders-admin-delete:disabled{cursor:wait;opacity:.65}

@media(min-width:1181px) and (max-width:1540px){.preorders-admin-list{grid-template-columns:1fr}.preorders-admin-row{grid-template-columns:repeat(5,minmax(0,1fr))}.preorders-admin-actions{align-self:start}.preorders-admin-actions .preorders-admin-open{align-self:auto;width:auto}.preorders-admin-actions .preorders-admin-open,.preorders-admin-actions .preorders-admin-delete{padding:0 6px;font-size:9px}}
@media(min-width:761px) and (max-width:1180px){.preorders-admin-list{grid-template-columns:1fr}.preorders-admin-row{grid-template-columns:repeat(5,minmax(0,1fr))}.preorders-admin-actions{align-self:start}.preorders-admin-actions .preorders-admin-open,.preorders-admin-actions .preorders-admin-delete{width:auto;padding:0 6px;font-size:9px}}
@media(max-width:760px){.preorders-admin-row{grid-template-columns:1fr 1fr}.preorders-admin-row>span:nth-child(2),.preorders-admin-row>span:nth-child(3),.preorders-admin-row>span:nth-child(8){grid-column:1/-1}.preorders-admin-actions{grid-column:1/-1!important}.preorders-admin-actions .preorders-admin-open,.preorders-admin-actions .preorders-admin-delete{min-height:38px;font-size:11px}}

html[data-theme="dark"] .preorders-admin-delete{border-color:#783846;background:#342329;color:#ffb8c4}
html[data-theme="dark"] .preorders-admin-delete:hover,html[data-theme="dark"] .preorders-admin-delete:focus-visible{border-color:#d44b63;background:#bd324a;color:#fff}

/* Origem: system-prompts-v155.css */
.system-prompt {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #10233f;
  background: transparent;
  overflow: visible;
}

.system-prompt::backdrop {
  background: rgba(15, 31, 54, .58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.system-prompt__card {
  margin: 0;
  padding: 26px;
  border: 1px solid #dfe5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 31, 54, .24);
}

.system-prompt__heading { display: flex; align-items: flex-start; gap: 15px; }
.system-prompt__icon {
  display: grid; place-items: center; flex: 0 0 48px; height: 48px;
  border-radius: 14px; background: #f0ebff; color: #6841e5;
}
.system-prompt__icon svg { width: 24px; height: 24px; stroke-width: 2.2; }
.system-prompt[data-tone="danger"] .system-prompt__icon { color: #c8374c; background: #fff0f2; }
.system-prompt[data-tone="warning"] .system-prompt__icon { color: #b97500; background: #fff6df; }
.system-prompt[data-tone="success"] .system-prompt__icon { color: #078755; background: #e7f8f0; }
.system-prompt__eyebrow { margin: 1px 0 5px; color: #6d43ee; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.system-prompt[data-tone="danger"] .system-prompt__eyebrow { color: #bd2d43; }
.system-prompt[data-tone="warning"] .system-prompt__eyebrow { color: #9e6500; }
.system-prompt[data-tone="success"] .system-prompt__eyebrow { color: #087b50; }
.system-prompt__title { margin: 0; font-size: 21px; line-height: 1.2; color: #10233f; }
.system-prompt__message { margin: 18px 0 0; color: #52647f; font-size: 14px; line-height: 1.65; white-space: pre-line; }
.system-prompt[data-tone="danger"] .system-prompt__title { color: var(--danger); }
.system-prompt[data-tone="success"] .system-prompt__title { color: var(--success); }
.system-prompt__notice { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #f0d6da; border-radius: 12px; background: #fff7f8; color: #8d2738; font-size: 13px; font-weight: 700; }
.system-prompt__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.system-prompt__button { min-height: 42px; padding: 0 20px; border: 1px solid #d8deea; border-radius: 11px; background: #fff; color: #263954; font: inherit; font-weight: 750; cursor: pointer; }
.system-prompt__button:hover { background: #f5f2ff; border-color: #bba8ff; color: #5631d2; }
.system-prompt__button--discard { border-color: #efb8c0; background: #fff8f9; color: #b5283e; }
.system-prompt__button--discard:hover { border-color: #ca3850; background: #fff0f2; color: #a51f35; }
.system-prompt__button--primary { border-color: #7046e8; background: linear-gradient(135deg, #7650ef, #5c31d7); color: #fff; box-shadow: 0 8px 20px rgba(104, 65, 229, .22); }
.system-prompt__button--primary:hover { background: #efeaff; color: #5c31d7; }
.system-prompt[data-tone="danger"] .system-prompt__button--primary { border-color: #ba2940; background: linear-gradient(135deg, #d8465c, #b8243b); box-shadow: 0 8px 20px rgba(190, 42, 64, .2); }
.system-prompt[data-tone="danger"] .system-prompt__button--primary:hover { background: #fff0f2; color: #b8243b; }
@media (max-width: 520px) { .system-prompt__card { padding: 21px; } .system-prompt__actions { flex-direction: column-reverse; } .system-prompt__button { width: 100%; } }

/* Origem: preorder-conversion-v160.css */
.preorder-conversion-loading {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
  min-height: 105px;
  place-content: center;
  color: #17243d;
  text-align: center;
}
.preorder-conversion-loading > span {
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  border: 5px solid #e9e4ff;
  border-top-color: #6842e8;
  border-radius: 50%;
  animation: preorder-conversion-spin .8s linear infinite;
}
.preorder-conversion-loading strong { font-size: 14px; }
.preorder-conversion-loading small { color: #687792; font-size: 11px; }
@keyframes preorder-conversion-spin { to { transform: rotate(360deg); } }

/* Origem: contract-flow-v161.css */
.step-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}.step-nav__progress{grid-column:1/-1}.step-nav__item{width:auto}.step-nav{--contract-step-count:3}
.contract-finalization{display:grid;gap:16px;margin-top:22px;padding-top:20px;border-top:1px solid #e1e6ef}.contract-finalization>.section-heading{margin-bottom:0}.contract-finalization .step-actions{margin-top:0}
.contract-options-dialog,.contract-qr-options-dialog{width:min(920px,calc(100vw - 28px));max-height:calc(100dvh - 28px);border:0;border-radius:16px;padding:0;background:#f7f8fc;box-shadow:0 24px 70px rgba(17,30,52,.25)}
.contract-options-dialog::backdrop,.contract-qr-options-dialog::backdrop{background:rgba(16,29,48,.62);backdrop-filter:blur(5px)}
.contract-options-shell{display:flex;max-height:calc(100dvh - 28px);flex-direction:column}.contract-options-content{min-height:0;overflow:auto;padding:20px}.contract-options-content>.form-step{display:block!important}.contract-options-content>.form-step>.section-heading,.contract-options-content>.form-step>.step-actions{display:none!important}.contract-options-content>.form-step>.section-help{margin-top:0}.contract-options-content .company-settings{margin-top:18px}
.contract-options-footer,.contract-qr-shortcuts{display:flex;justify-content:flex-end;gap:10px;padding:15px 20px;border-top:1px solid #dfe4ed;background:#fff}.contract-qr-shortcuts{justify-content:flex-start;border-top:0;border-bottom:1px solid #dfe4ed}.contract-qr-options-dialog .pix-settings{display:block;margin:0}.contract-qr-options-dialog .pix-settings__summary{display:none}.contract-qr-options-dialog .pix-settings__body{display:block!important;border-top:0}.contract-section-actions{flex-wrap:wrap}
@media(max-width:700px){.contract-options-dialog,.contract-qr-options-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.contract-options-shell{max-height:100dvh}.contract-options-footer,.contract-qr-shortcuts{align-items:stretch;flex-direction:column}.contract-options-footer .button,.contract-qr-shortcuts .button{width:100%}}

/* Origem: package-edit-v162.css */
.package-form--builder .package-form__actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px}
.package-form__actions .button{min-width:150px}
.package-form__actions [hidden]{display:none}
.package-row{grid-template-columns:minmax(0,1fr) auto}
.package-row>div{flex-wrap:wrap;align-items:center;justify-content:flex-end}
@media(max-width:620px){.package-row{align-items:flex-start}.package-row>div{justify-content:flex-start}.package-form__actions .button{min-width:0}}

/* Origem: preorder-link-v164.css */
.preorder-created__domain-note{margin:9px 0 0;color:#586985;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.preorder-created__domain-note strong{color:#3f2ca4}
html[data-theme="dark"] .preorder-created__domain-note{color:#c3bcd7}
html[data-theme="dark"] .preorder-created__domain-note strong{color:#beaaff}

/* Origem: preorder-link-manager-v165.css */
.preorder-link-manager__body{display:grid;gap:10px;padding:13px}
.preorder-link-manager__body p{margin:0;color:#586985;font-size:12px;line-height:1.5}
.preorder-link-manager__body>small{color:#62728c;font-size:11px;overflow-wrap:anywhere}
.preorder-link-manager__copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.preorder-link-manager__copy input,.preorder-link-manager__actions select{min-width:0;min-height:40px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:0 11px;color:#25324a;font:inherit}
.preorder-link-manager__actions{display:flex;align-items:end;justify-content:flex-end;gap:9px}
.preorder-link-manager__actions label{display:grid;gap:4px;color:#53627a;font-size:11px;font-weight:750}
.preorder-link-manager__message{min-height:1.3em;color:#4d35c2!important}
html[data-theme="dark"] .preorder-link-manager__copy input,html[data-theme="dark"] .preorder-link-manager__actions select{border-color:#454b55;background:#1c1e22;color:#f1f3f7}
@media(max-width:620px){.preorder-link-manager__copy{grid-template-columns:1fr}.preorder-link-manager__actions{justify-content:stretch}.preorder-link-manager__actions label,.preorder-link-manager__actions button{flex:1;min-width:0}}

/* Origem: preorder-pix-template-v166.css */
.receipts-settings-dialog #preorderPixBankTemplate {
  width: 100%;
  min-height: 84px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d5def0;
  border-radius: 9px;
  background: #fff;
  padding: 10px 12px;
  color: #17243d;
  font: inherit;
  overflow-wrap: anywhere;
}
.receipts-settings-dialog #preorderPixBankTemplate:focus {
  outline: 2px solid #6944e9;
  outline-offset: 1px;
}
.receipts-settings-dialog .preorder-pix-label small {
  display: block;
  margin-top: 5px;
  color: #687792;
  line-height: 1.35;
}

/* Origem: preorders-mobile-actions-v168.css */
/* Pedidos em aberto — ações disponíveis também em smartphones. */
@media (max-width: 760px) {
  .preorders-admin-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 18px 15px 16px;
  }

  .preorders-admin-header > div:first-child {
    min-width: 0;
  }

  .preorders-admin-header > div:last-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .preorders-admin-header > div:last-child > .button:not([hidden]) {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 9px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .preorders-admin-header > div:last-child > .button[hidden] {
    display: none !important;
  }

  .preorders-admin-header > div:last-child > .button:hover,
  .preorders-admin-header > div:last-child > .button:focus-visible {
    border-color: #6842e8;
    background: #6842e8;
    color: #fff;
  }

  .preorders-admin-header .calendar-close {
    display: none;
  }
}

/* Origem: typography-v174.css */
/* Hierarquia tipográfica compartilhada: tela, seção, subtítulo e texto de leitura. */
@font-face {
  font-family: "Modular Open Sans";
  src: url("assets/fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Modular Open Sans";
  src: url("assets/fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Modular Roboto";
  src: url("assets/fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Modular Roboto";
  src: url("assets/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Modular Poppins";
  src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Modular Poppins";
  src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Modular Poppins";
  src: url("assets/fonts/Poppins-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  --type-screen-size: 32px;
  --type-screen-line: 40px;
  --type-section-size: 22px;
  --type-section-line: 28px;
  --type-subtitle-size: 18px;
  --type-subtitle-line: 24px;
  --type-body-size: 15px;
  --type-body-line: 22px;
  --type-family: "Modular Open Sans", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}
html[data-font-family="roboto"] { --type-family: "Modular Roboto", "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }
html[data-font-family="poppins"] { --type-family: "Modular Poppins", "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }
html[data-font-family="system"] { --type-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }

@media screen {
  body { font-family: var(--type-family); }
  body :is(button, input, select, textarea, dialog) { font-family: var(--type-family) !important; }
  body .workspace,
  body .preorders-admin-shell,
  body .preorder-page,
  body .portal-shell { font-family: var(--type-family); font-size: var(--type-body-size); line-height: var(--type-body-line); }

  /* Títulos das telas principais, inclusive as telas abertas em janelas. */
  body .contract-editor-header__title h1,
  body .work-center-header h2,
  body .financial-header h2,
  body .calendar-header h2,
  body .checklist-header h2,
  body .resource-header h2,
  body .admin-header h2,
  body .preorders-admin-header h2,
  body #inventoryDialog .inventory-header h2,
  body #tablesCatalogDialog .inventory-header h2,
  body .receipts-settings-header h2,
  body .automations-header h2,
  body .preorder-create-header h2,
  body .preorder-hero h1,
  body .preorder-error h1,
  body .auth-brand h1,
  body #passwordRecoveryTitle,
  body .welcome-card h1,
  body .portal-error h1 {
    font-family: var(--type-family);
    font-size: var(--type-screen-size) !important;
    font-weight: 750;
    line-height: var(--type-screen-line) !important;
    letter-spacing: -.025em;
  }

  /* Títulos de etapas, blocos e janelas secundárias. */
  body .section-heading h2,
  body .checklist-phase-heading h3,
  body .preorder-review-header h2,
  body .preorder-conversion-header h2,
  body .preorder-flow__header h2,
  body .preorder-documents__header h2,
  body .preorder-payment__header h2,
  body .preorder-completion-dialog h2,
  body .portal-shell .section-heading h2,
  body #decisionDialog h2 {
    font-family: var(--type-family);
    font-size: var(--type-section-size) !important;
    font-weight: 700;
    line-height: var(--type-section-line) !important;
    letter-spacing: -.02em;
  }

  body .subsection-title h3 {
    font-family: var(--type-family);
    font-size: var(--type-subtitle-size) !important;
    line-height: var(--type-subtitle-line) !important;
  }

  /* Textos explicativos; rótulos, dados tabulares e indicadores preservam sua escala funcional. */
  body .work-center-header p,
  body .financial-header p,
  body .calendar-header p,
  body .checklist-header p,
  body .resource-header p,
  body .admin-header p,
  body .preorders-admin-header p,
  body .preorder-review-header p,
  body .preorder-conversion-header p,
  body .receipts-settings-header p,
  body .preorder-hero p,
  body .preorder-flow__header p,
  body .preorder-completion-dialog p,
  body .welcome-card p,
  body .portal-shell .section-heading p,
  body .contract-editor-header__title p,
  body .auth-brand p,
  body .preorder-error p,
  body .portal-error p,
  body .section-help,
  body .subsection-title p {
    font-family: var(--type-family);
    font-size: var(--type-body-size) !important;
    font-weight: 400;
    line-height: var(--type-body-line) !important;
    letter-spacing: 0;
  }

  /* O cabeçalho compacto do contrato precisa permitir duas linhas ao ampliar o título. */
  body .contract-editor-header__title h1 { white-space: normal; overflow: visible; text-overflow: clip; }
}

@media screen and (max-width: 640px) {
  :root { --type-screen-size: 28px; --type-screen-line: 36px; }
  body .contract-editor-header__title h1 { font-size: 26px !important; line-height: 34px !important; }
}

/* Origem: work-center-simplified-v176.css */
/* A Central usa toda a largura após a remoção da coluna de contexto redundante. */
.work-center-dialog.is-home-dashboard { width: 100%; max-width: none; }
.home-dashboard-layout { grid-template-columns: minmax(0, 1fr); }
.home-dashboard-main { width: 100%; }

/* Origem: work-center-priorities-v177.css */
.work-center-dialog.is-home-dashboard .home-command-bar {
  padding-bottom: 0;
  margin-bottom: 18px;
}

.work-center-dialog.is-home-dashboard .work-center-priorities-heading {
  margin-bottom: 12px;
}

.work-center-dialog.is-home-dashboard .work-center-priorities-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-section-size, 22px);
  line-height: 28px;
  font-weight: 700;
}

.work-center-dialog.is-home-dashboard .work-center-priorities-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--type-body-size, 14px);
  line-height: var(--type-body-line, 20px);
}

/* Reserva espaço dentro da área rolável para a borda e a sombra dos cartões. */
.work-center-dialog.is-home-dashboard .work-center-cards {
  padding: 4px 4px 22px;
  margin: -4px -4px 15px;
}

@media (max-width: 600px) {
  .work-center-dialog.is-home-dashboard .home-command-bar { margin-bottom: 14px; }
  .work-center-dialog.is-home-dashboard .work-center-priorities-heading { margin-bottom: 10px; }
}

/* Origem: admin-sections-v182.css */
/* Três seções recolhíveis, próximas entre si e com o mesmo controle visual. */
.admin-shell {
  grid-template-rows: none;
  grid-auto-rows: auto;
  align-content: start;
}

.admin-permissions-panel,
.admin-users-panel,
.admin-create-panel {
  margin: 12px 22px 0;
  overflow: hidden;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
}

.admin-permissions-panel { margin-top: 18px; }
.admin-create-panel { margin-bottom: 0; }

.admin-permissions-panel > summary,
.admin-users-panel > summary,
.admin-create-panel > summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.admin-permissions-panel > summary::-webkit-details-marker,
.admin-users-panel > summary::-webkit-details-marker,
.admin-create-panel > summary::-webkit-details-marker { display: none; }

.admin-permissions-panel > summary > span,
.admin-users-panel > summary > span,
.admin-create-panel > summary > span { display: grid; gap: 3px; }

.admin-permissions-panel > summary > i:last-child,
.admin-users-panel > summary > i:last-child,
.admin-create-panel > summary > i:last-child {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #cfdae5;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 19px;
  font-style: normal;
  line-height: 1;
  transition: transform .18s ease;
}

.admin-permissions-panel[open] > summary > i:last-child,
.admin-users-panel[open] > summary > i:last-child,
.admin-create-panel[open] > summary > i:last-child { transform: rotate(45deg); }

.admin-users-panel[open] > summary,
.admin-permissions-panel[open] > summary,
.admin-create-panel[open] > summary { border-bottom: 1px solid #e7ebf2; }

.admin-users-panel__content { padding-bottom: 4px; }
.admin-users-panel .admin-list-heading {
  grid-template-columns: minmax(220px, 310px) auto;
  justify-content: end;
  margin: 0 18px;
  padding: 10px 0;
}
.admin-users-panel .admin-table-head { margin-inline: 18px; }
.admin-users-panel .admin-list { min-height: 0; padding: 5px 18px 8px; }
.admin-security-tip { margin-top: 12px; }

html[data-theme="dark"] .admin-users-panel { border-color: #373a40; background: #26262a; }

@media (max-width: 640px) {
  .admin-permissions-panel,
  .admin-users-panel,
  .admin-create-panel { margin-right: 12px; margin-left: 12px; }
  .admin-users-panel .admin-list-heading { grid-template-columns: minmax(0, 1fr) auto; margin-inline: 12px; }
  .admin-users-panel .admin-table-head { margin-inline: 12px; }
  .admin-users-panel .admin-list { padding-inline: 12px; }
}

/* Origem: sidebar-overflow-v184.css */
/* A lista lateral pode rolar verticalmente, sem criar uma barra horizontal. */
@media (min-width: 1280px) {
  .app-header,
  .header-actions,
  .header-menus,
  .header-menu,
  .header-menu__panel {
    min-width: 0;
    max-width: 100%;
  }

  .header-actions {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .header-menu__item,
  .header-menu__trigger { box-sizing: border-box; max-width: 100%; }
}

/* Origem: contract-defaults-settings-v185.css */
.contract-defaults-grid { margin-bottom: 26px; }
.contract-defaults-other-heading { margin-top: 6px; }

@media (max-width: 640px) {
  .contract-defaults-grid { margin-bottom: 20px; }
}

/* Origem: client-portal-loading-v186.css */
.client-portal-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 36, 58, .48);
  backdrop-filter: blur(5px);
}

.client-portal-loading[hidden] { display: none; }

.client-portal-loading .preorder-conversion-loading {
  width: min(360px, 100%);
  min-height: 150px;
  padding: 26px;
  border: 1px solid #dce3ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(17, 30, 52, .24);
}

html[data-theme="dark"] .client-portal-loading .preorder-conversion-loading {
  border-color: #41414b;
  background: #24242b;
  color: #f4f4f5;
}

/* Origem: contract-signatures-v187.css */
/* As três linhas impressas acompanham a cor do texto do contrato. */
.contract-print-sheet .signature-line {
  border-bottom-color: #111;
}

/* Origem: contract-signature-upload-v188.css */
.contract-signature-settings {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
  margin-top: 18px;
}

.contract-signature-settings__preview {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed #cdd6e5;
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.contract-signature-settings__preview img {
  max-width: min(360px, 100%);
  max-height: 75px;
  object-fit: contain;
}

.contract-signature-settings__preview span { font-size: 13px; }
.contract-signature-settings__preview + .settings-logo-card__actions { flex-wrap: wrap; }

html[data-theme="dark"] .contract-signature-settings__preview {
  border-color: #4a5060;
  background: #24242b;
}

@media (max-width: 640px) {
  .contract-signature-settings { grid-template-columns: 1fr; }
  .contract-signature-settings__preview { grid-column: 1; grid-row: auto; }
}

/* Origem: ux-improvements-v220.css */
.preorder-create-dialog .preorder-create-header .preorder-create-close {
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #d9d0ff;
  border-radius: 50%;
  background: #f3efff;
  color: #633de2;
  font-size: 27px;
  line-height: 1;
}
.form-step[data-step="pagamento"] > .validation-summary[hidden] { display: none !important; }
.maintenance-row { font-size: 15px; }
.installments-card .installments-toggle i,
.installments-card[open] .installments-toggle i {
  transform: none;
  background: #fff;
}
.installments-card .installments-toggle i svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.installments-card[open] .installments-toggle i svg { transform: rotate(180deg); }
html[data-theme="dark"] .installments-card .installments-toggle i,
html[data-theme="dark"] .installments-card[open] .installments-toggle i { background: #1f2e40; }
.preorder-create-dialog .preorder-create-header .preorder-create-close:hover,
.preorder-create-dialog .preorder-create-header .preorder-create-close:focus-visible {
  border-color: #6842e8;
  background: #6842e8;
  color: #fff;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(104,66,232,.18);
}

.receipts-settings-dialog .receipts-settings-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.receipts-settings-dialog .receipts-settings-intro,
.receipts-settings-dialog .receipts-settings-card,
.receipts-settings-dialog .receipts-settings-content > .preorder-review-error {
  width: 100%;
}
.receipts-settings-dialog .receipts-settings-header p,
.receipts-settings-dialog .receipts-card-config__notice { font-size: 14px; line-height: 1.5; }
.receipts-settings-dialog .receipts-settings-intro strong,
.receipts-settings-dialog .preorder-pix-enabled strong,
.receipts-settings-dialog .preorder-pix-amount-notice strong { font-size: 15px; }
.receipts-settings-dialog .receipts-settings-intro small,
.receipts-settings-dialog .preorder-pix-enabled small,
.receipts-settings-dialog .preorder-pix-amount-notice small,
.receipts-settings-dialog .receipts-settings-card > header p,
.receipts-settings-dialog .receipts-card-config__tests small { font-size: 13px; line-height: 1.5; }
.receipts-settings-dialog .receipts-settings-card > header span,
.receipts-settings-dialog .preorder-pix-settings-grid .field > span,
.receipts-settings-dialog .receipts-transfer-grid .field > span,
.receipts-settings-dialog .receipts-card-config__tests .field > span { font-size: 12px; }
.receipts-settings-dialog .receipts-settings-card > header h3 { font-size: 20px; }
.receipts-settings-dialog .receipts-settings-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.receipts-settings-dialog .receipts-settings-card > header > div { min-width: 0; }
.receipts-settings-card__body { display: grid; gap: 13px; }
.receipts-settings-card__body[hidden] { display: none !important; }
.receipts-settings-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid #d5c9ff;
  border-radius: 9px;
  background: #f8f6ff;
  color: #6842e8;
  cursor: pointer;
}
.receipts-settings-toggle i {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.receipts-settings-toggle[aria-expanded="true"] i { transform: translateY(2px) rotate(225deg); }
.receipts-settings-toggle:hover { background: #eee8ff; }
.receipts-settings-toggle:focus-visible { outline: 2px solid #6842e8; outline-offset: 2px; }
html[data-theme="dark"] .receipts-settings-toggle { border-color: #7358be; background: #302548; color: #d6c9ff; }
.receipts-settings-dialog .preorder-pix-settings-grid input,
.receipts-settings-dialog .preorder-pix-settings-grid select,
.receipts-settings-dialog .preorder-pix-settings-grid textarea,
.receipts-settings-dialog .receipts-transfer-grid input,
.receipts-settings-dialog .receipts-transfer-grid select,
.receipts-settings-dialog .receipts-card-config__tests textarea { font-size: 15px !important; line-height: 1.4; }
.receipts-settings-dialog .receipts-settings-card .preorder-pix-settings-grid {
  grid-template-columns: minmax(190px,.8fr) minmax(0,2fr);
}
.receipts-settings-dialog .receipts-card-config__actions [role="status"] { font-size: 14px; }
html[data-theme="dark"] .preorder-create-dialog .preorder-create-header .preorder-create-close {
  border-color: #7358be;
  background: #302548;
  color: #d6c9ff;
}
html[data-theme="dark"] .preorder-create-dialog .preorder-create-header .preorder-create-close:hover,
html[data-theme="dark"] .preorder-create-dialog .preorder-create-header .preorder-create-close:focus-visible {
  background: #6842e8;
  color: #fff;
}

/* A lista de pré-pedidos mostra apenas os dados necessários à primeira leitura. */
.preorders-admin-table-head,
.preorders-admin-row {
  grid-template-columns: minmax(170px,1.5fr) minmax(170px,1.35fr) 120px 110px 110px minmax(145px,1fr) 130px;
}
.preorders-admin-row > span:nth-child(5) strong { color: #6842e8; }
.preorders-admin-actions { display: grid !important; }
.preorders-admin-actions select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d5c9ff;
  border-radius: 8px;
  background: #fff;
  color: #5631d2;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.preorders-admin-actions select:focus-visible { outline: 2px solid #6842e8; outline-offset: 2px; }
@media (min-width: 761px) and (max-width: 1540px) {
  .preorders-admin-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .preorders-admin-row > span:nth-child(n) { grid-column: auto; }
}
@media (max-width: 760px) {
  .preorders-admin-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .preorders-admin-row > span:nth-child(n) { grid-column: auto; }
  .preorders-admin-row > span:first-child,
  .preorders-admin-actions { grid-column: 1 / -1 !important; }
}
html[data-theme="dark"] .preorders-admin-actions select {
  border-color: #7358be;
  background: #292530;
  color: #e1d7ff;
}

/* Navegação: acesso direto à Central e grupos expansíveis com um único destaque ativo. */
@media (min-width: 1280px) {
  .header-menus > .sidebar-home-link {
    min-height: 43px;
    grid-template-columns: 33px minmax(0,1fr);
    gap: 10px;
    padding: 6px 12px;
    color: #e6ecf5;
  }
  .header-menus > .sidebar-home-link > i { width: 31px; height: 31px; color: #b9c7d9; background: transparent; }
  .header-menus > .sidebar-home-link strong { color: inherit; font-size: 14px; font-weight: 700; }
  .header-menus > .sidebar-home-link small { display: none; }
  .header-menus > .sidebar-home-link.is-active-item,
  body.home-mode .header-menus > .sidebar-home-link { background: linear-gradient(90deg,#6d4ce8,#4f34ae); color: #fff; box-shadow: inset 3px 0 0 #beaefe; }
  .header-menus > .sidebar-home-link.is-active-item > i,
  body.home-mode .header-menus > .sidebar-home-link > i { color: #fff; }
  .header-menu__trigger::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .18s ease;
  }
  .header-menu.is-open > .header-menu__trigger::after { transform: rotate(45deg); }
  .header-menu.is-open > .header-menu__trigger,
  .header-menu.is-active-group > .header-menu__trigger {
    border-color: rgba(162,137,255,.22);
    background: rgba(109,76,232,.16);
    color: #f0eaff;
    box-shadow: inset 3px 0 0 rgba(169,142,255,.8);
  }
  .header-menu__panel { margin-left: 17px; border-left: 1px solid rgba(178,162,235,.35) !important; padding-left: 8px !important; }
  .header-menu__panel .header-menu__item { min-height: 40px; }
  .header-menu__panel .header-menu__item.is-active-item { background: linear-gradient(90deg,#6d4ce8,#4f34ae); color: #fff; box-shadow: inset 3px 0 0 #beaefe; }
  body.sidebar-collapsed .sidebar-home-link { grid-template-columns: 1fr; justify-items: center; padding: 6px; }
  body.sidebar-collapsed .sidebar-home-link > span { display: none; }
  body.sidebar-collapsed .sidebar-home-link > i { margin: 0; }
  body.sidebar-collapsed .header-menu.is-open > .header-menu__panel { display: none !important; }
  body.sidebar-collapsed .header-menu__trigger::after { display: none; }
}
@media (min-width: 761px) and (max-width: 1279px) {
  .header-menus > .sidebar-home-link { width: auto; min-height: 36px; display: flex; gap: 7px; padding: 7px 10px; color: #f3f6fb; }
  .header-menus > .sidebar-home-link > i { width: 20px; height: 20px; background: transparent; color: inherit; }
  .header-menus > .sidebar-home-link > span { display: block; }
  .header-menus > .sidebar-home-link strong { color: inherit; font-size: 12px; }
  .header-menus > .sidebar-home-link small { display: none; }
  .header-menus > .sidebar-home-link.is-active-item { background: #6d4ce8; color: #fff; }
}
@media (max-width: 760px) {
  .header-menus > .sidebar-home-link { display: none; }
}
html[data-theme="dark"] .header-menu.is-open > .header-menu__trigger,
html[data-theme="dark"] .header-menu.is-active-group > .header-menu__trigger {
  border-color: rgba(162,137,255,.32);
  background: #302756;
  color: #ded5ff;
  box-shadow: inset 3px 0 0 #a98eff;
}

/* Contratos: texto dos campos na mesma escala da lista de pacotes. */
.editor-panel .field input,
.editor-panel .field select,
.editor-panel .field textarea,
.editor-panel .document-field > input,
.editor-panel .draft-library__filters input,
.editor-panel .draft-library select { font-size: 15px !important; line-height: 1.4; }
.editor-panel .field input,
.editor-panel .field select,
.editor-panel .document-field > input { min-height: 38px; }
.editor-panel .field > span,
.editor-panel .document-field__heading > span,
.editor-panel .draft-library__filters label > span { font-size: 14px; line-height: 1.35; }
.editor-panel .field > span small { font-size: 12px; }
.editor-panel .step-nav__item strong { font-size: 14px; line-height: 1.3; white-space: normal; text-align: center; }
.editor-panel .step-nav__item small { font-size: 12px; line-height: 1.3; white-space: normal; text-align: center; }
.editor-panel .draft-library__heading strong { font-size: 17px; }
.editor-panel .draft-library__heading span,
.editor-panel .draft-library__meta small { font-size: 12px; }
.editor-panel .contract-editor-breadcrumb { font-size: 12px; }
.editor-panel .step-actions .button,
.editor-panel .contract-editor-back { font-size: 14px; min-height: 38px; }
@media (max-width: 640px) {
  .editor-panel .step-nav__item strong { font-size: 12px; }
}

@media (max-width: 700px) {
  .receipts-settings-dialog .receipts-settings-card .preorder-pix-settings-grid { grid-template-columns: 1fr; }
  .receipts-settings-dialog .receipts-settings-card .preorder-pix-key,
  .receipts-settings-dialog .receipts-settings-card .preorder-pix-label { grid-column: 1; }
  .form-step[data-step="pagamento"] > .step-actions .step-actions__forward {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* Origem: opportunities-table-v261.css */
/* Lista de oportunidades com resumo lateral e ações preservadas. */
.resource-shell.opportunities-shell { grid-template-rows: auto auto auto minmax(0,1fr) auto; }
.opportunity-board { display:grid; grid-template-columns:minmax(0,1fr) 290px; min-height:0; margin:0 24px 14px; border:1px solid #e1e7f0; border-radius:12px; background:#fff; overflow:hidden; }
.opportunity-board:has(.opportunity-detail[hidden]) { grid-template-columns:1fr; }
.opportunity-table-panel { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; min-width:0; min-height:0; }
.opportunity-board .opportunity-list-heading { padding:17px 18px 15px; }
.opportunity-board .opportunity-list { display:block; min-height:0; padding:0; overflow:auto; }
.opportunity-table-head,.opportunity-board .opportunity-row { display:grid; grid-template-columns:minmax(185px,2.1fr) minmax(105px,.92fr) minmax(112px,1fr) minmax(115px,.95fr) minmax(125px,1.15fr); align-items:center; gap:10px; }
.opportunity-table-head { padding:11px 16px; border-block:1px solid #e7ebf2; background:#f8fafc; color:#60708c; font-size:10px; font-weight:800; }
.opportunity-board .opportunity-row { min-height:62px; padding:8px 16px; border:0; border-bottom:1px solid #e7ebf2; border-radius:0; box-shadow:none; cursor:pointer; }
.opportunity-board .opportunity-row:hover,.opportunity-board .opportunity-row.is-selected { background:#f8f6ff; }
.opportunity-board .opportunity-row.is-selected { box-shadow:inset 3px 0 #6940ee; }
.opportunity-board .opportunity-row:focus-visible { outline:2px solid #6940ee; outline-offset:-2px; }
.opportunity-board .opportunity-row__client .client-history-avatar,.opportunity-detail__person .client-history-avatar { width:36px; height:36px; flex-basis:36px; background:#eae3ff; color:#6940ee; font-size:15px; }
.opportunity-board .opportunity-row__client { gap:9px; }
.opportunity-board .opportunity-row__client strong { font-size:12px; }
.opportunity-board .opportunity-row__client small { font-size:11px; }
.opportunity-board .opportunity-row__date { gap:2px; }
.opportunity-board .opportunity-row__date strong,.opportunity-board .opportunity-row__source strong { font-size:12px; font-weight:600; }
.opportunity-board .opportunity-row__date small { font-size:10px; }
.opportunity-board .opportunity-row__source { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.opportunity-board .opportunity-row__status { display:block; }
.opportunity-board .opportunity-status { display:inline-flex; align-items:center; gap:6px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:5px 8px; border-radius:7px; background:#f0eaff; color:#6640db; font-size:10px; font-style:normal; font-weight:750; }
.opportunity-board .opportunity-status::before { content:""; width:6px; height:6px; flex:none; border-radius:50%; background:currentColor; }
.opportunity-board .opportunity-status--revisar,.opportunity-board .opportunity-status--aguardando { background:#fff2df; color:#ca7408; }
.opportunity-board .opportunity-status--convertida { background:#e4f7ed; color:#138b5e; }
.opportunity-board .opportunity-status--contatar { background:#ffeaed; color:#bf4053; }
.opportunity-board .opportunity-row__actions { justify-content:flex-end; flex-wrap:nowrap; gap:7px; }
.opportunity-board .opportunity-row__actions .button--conversion,.opportunity-board .opportunity-contact-action,.opportunity-board .opportunity-client-action { display:none; }
.opportunity-board .opportunity-row__actions .button--whatsapp { color:#078657; background:#fff; border-color:#32b279; box-shadow:none; }
.opportunity-board .opportunity-pagination { padding:10px 14px; border-top:1px solid #e7ebf2; }
.opportunity-detail { min-width:0; padding:17px 18px; border-left:1px solid #e7ebf2; }
.opportunity-detail[hidden] { display:none!important; }
.opportunity-detail > header { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#142344; font-size:15px; }
.opportunity-detail > header button { border:0; background:transparent; color:#647392; font-size:24px; cursor:pointer; }
.opportunity-detail__person { display:flex; align-items:center; gap:10px; margin:20px 0 10px; color:#142344; font-size:13px; }
.opportunity-detail dl { margin:0; }
.opportunity-detail dl > div { padding:13px 0; border-bottom:1px solid #e6ebf2; }
.opportunity-detail dt { color:#657493; font-size:11px; font-weight:700; }
.opportunity-detail dd { display:flex; align-items:center; gap:7px; margin:5px 0 0; color:#172949; font-size:12px; }
.opportunity-detail__dot { width:8px; height:8px; border-radius:50%; background:#6842e8; }
.opportunity-detail__dot--revisar,.opportunity-detail__dot--aguardando { background:#df8a15; }
.opportunity-detail__dot--convertida { background:#17a46e; }
.opportunity-detail__dot--contatar { background:#dc4056; }
.opportunity-detail__actions { display:grid; gap:7px; margin-top:18px; }
.opportunity-detail__actions .button { justify-content:center; min-height:38px; }
.opportunity-detail__actions svg { width:16px; height:16px; }
.opportunity-detail__client-link { justify-self:center; border:0; background:transparent; padding:8px; color:#6940ee; text-decoration:underline; cursor:pointer; }
html[data-theme="dark"] .opportunity-board,html[data-theme="dark"] .opportunity-detail { background:#252525; border-color:#3c3c3c; }
html[data-theme="dark"] .opportunity-table-head { background:#292929; border-color:#3c3c3c; }
html[data-theme="dark"] .opportunity-board .opportunity-row { border-color:#3c3c3c; }
html[data-theme="dark"] .opportunity-board .opportunity-row:hover,html[data-theme="dark"] .opportunity-board .opportunity-row.is-selected { background:#302a40; }
html[data-theme="dark"] .opportunity-detail > header,html[data-theme="dark"] .opportunity-detail__person,html[data-theme="dark"] .opportunity-detail dd { color:#eee; }
@media(max-width:1100px) { .opportunity-board { grid-template-columns:1fr; } .opportunity-detail { border-left:0; border-top:1px solid #e7ebf2; } }
@media(max-width:760px) { .opportunity-board { margin-inline:14px; } .opportunity-table-head { display:none; } .opportunity-board .opportunity-row { grid-template-columns:minmax(0,1fr) auto; gap:8px; } .opportunity-board .opportunity-row__date,.opportunity-board .opportunity-row__source,.opportunity-board .opportunity-row__status { grid-column:1; } .opportunity-board .opportunity-row__actions { grid-column:2; grid-row:1/5; } .opportunity-board .opportunity-row__date small { display:none; } }

/* Origem: action-controls-v262.css */
/* Tamanho único dos menus de três pontos em oportunidades, contratos e administração. */
.work-center-actions-toggle,
.admin-actions-toggle { width: 32px; height: 30px; flex: 0 0 32px; }
.work-center-actions-toggle > span,
.admin-actions-toggle > span,
body .workspace .work-center-actions-toggle > span,
body .workspace .admin-actions-toggle > span {
  display: block; margin: 0; color: inherit; font-size: 13px; font-weight: 800;
  letter-spacing: 0; line-height: 1; text-align: center;
}
.opportunity-detail__actions .button svg {
  width: 16px; height: 16px; flex: 0 0 16px; fill: none;
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Origem: sidebar-account-v263.css */
.sidebar-account { width:100%; text-decoration:none; cursor:pointer; border-radius:8px; }
.sidebar-account:hover,.sidebar-account:focus-visible { background:rgba(255,255,255,.08); }
.sidebar-account:focus-visible { outline:2px solid #bbaaff; outline-offset:2px; }

/* Origem: admin-user-edit-v266.css */
.admin-edit-dialog { width: min(520px, calc(100vw - 28px)); max-width: none; }
.admin-edit-form { display: grid; }
.admin-edit-form header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid #e3e8f2; background: #faf9ff; }
.admin-edit-form header span { color: #6842e8; font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.admin-edit-form h2 { margin: 5px 0 6px; font-size: 22px; line-height: 1.2; }
.admin-edit-form p { margin: 0; color: #667794; font-size: 13px; line-height: 1.45; }
.admin-edit-form .calendar-close { position: static; display: grid !important; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid #d8d1ff; border-radius: 50%; color: #6741e7; background: #f5f2ff; font-size: 24px; line-height: 1; cursor: pointer; }
.admin-edit-form__fields { display: grid; gap: 18px; padding: 22px 24px; }
.admin-edit-form__fields .field { display: grid; gap: 7px; margin: 0; }
.admin-edit-form__fields .field > span { color: #3c5174; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-edit-form__fields input { box-sizing: border-box; width: 100%; min-height: 42px; border: 1px solid #d5dfed; border-radius: 8px; padding: 0 11px; color: #10213f; background: #fff; font: inherit; }
.admin-edit-form__fields input:focus { outline: 2px solid #bcb0ff; border-color: #6941ed; }
.admin-edit-form__fields small { color: #70809d; font-size: 12px; }
.admin-edit-form footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 24px; border-top: 1px solid #e3e8f2; }
#adminEditError { margin-right: auto; color: #bd2d43; font-size: 12px; }
@media (max-width: 540px) { .admin-edit-form header, .admin-edit-form__fields, .admin-edit-form footer { padding-left: 18px; padding-right: 18px; } .admin-edit-form footer { flex-wrap: wrap; } #adminEditError { flex-basis: 100%; } }

/* Origem: admin-actions-v267.css */
.admin-users-panel { overflow: visible; }
.admin-actions-menu.opens-up { top: auto; bottom: 38px; }
@media (max-width: 760px) {
  .admin-actions-menu { position: absolute; top: 38px; right: 0; bottom: auto; left: auto; width: min(220px, calc(100vw - 40px)); }
  .admin-actions-menu.opens-up { top: auto; bottom: 38px; }
}

/* Origem: preorders-messages-v269.css */
.preorder-review-messages__list { display: grid; gap: 10px; padding: 13px; }
.preorder-review-footer[hidden] { display: none !important; }
.preorder-review-messages__list article { padding: 11px 13px; border: 1px solid #ded9f4; border-radius: 9px; background: #faf9ff; }
.preorder-review-messages__list article > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.preorder-review-messages__list strong { color: #17243d; font-size: 11px; }
.preorder-review-messages__list time, .preorder-review-messages__list span { color: #677894; font-size: 9px; }
.preorder-review-messages__list span { display: block; margin-top: 3px; color: #6842e8; font-weight: 750; }
.preorder-review-messages__list p { margin: 7px 0 0; color: #25344e; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.preorder-history-event .preorder-history-message { margin: 5px 0; color: #354662; font-size: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-theme="dark"] .preorder-review-messages__list article { border-color: #494057; background: #272331; }
html[data-theme="dark"] .preorder-review-messages__list strong, html[data-theme="dark"] .preorder-review-messages__list p { color: #f0edf7; }
html[data-theme="dark"] .preorder-history-event .preorder-history-message { color: #d4d9e5; }

/* Origem: preorder-contact-v272.css */
.preorder-contact-dialog { width: min(510px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #dce3ef; border-radius: 14px; background: #fff; color: #14233f; box-shadow: 0 26px 70px rgba(17, 30, 53, .28); }
.preorder-contact-dialog::backdrop { background: rgba(16, 27, 47, .54); backdrop-filter: blur(3px); }
.preorder-contact-dialog form { display: grid; }
.preorder-contact-dialog header { display: flex; justify-content: space-between; gap: 15px; padding: 20px 22px; border-bottom: 1px solid #e2e8f1; background: #faf9ff; }
.preorder-contact-dialog header span { color: #6842e8; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.preorder-contact-dialog h2 { margin: 5px 0; font-size: 21px; }
.preorder-contact-dialog p { margin: 0; color: #657793; font-size: 12px; line-height: 1.45; }
.preorder-contact-dialog header button { align-self: flex-start; border: 0; background: transparent; color: #657793; font-size: 25px; cursor: pointer; }
.preorder-contact-dialog__body { display: grid; gap: 10px; padding: 22px; }
.preorder-contact-dialog__body .field { display: grid; gap: 7px; margin: 0; }
.preorder-contact-dialog__body input { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid #d8e0ed; border-radius: 8px; padding: 0 11px; font: inherit; }
.preorder-contact-dialog__body small { color: #667792; font-size: 11px; line-height: 1.4; }
#preorderContactError { color: #ba2944; font-size: 12px; }
.preorder-contact-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid #e2e8f1; }
html[data-theme="dark"] .preorder-contact-dialog { border-color: #404650; background: #202329; color: #f1f3f7; }
html[data-theme="dark"] .preorder-contact-dialog header { border-color: #404650; background: #292631; }
html[data-theme="dark"] .preorder-contact-dialog__body input { border-color: #454b55; background: #1c1e22; color: #f1f3f7; }

/* Origem: responsive-ux-v295.css */
/* Ajustes de leitura e identificação de ações nos tamanhos compactos. */
.financial-period-nav > strong,
.calendar-toolbar > strong {
  text-transform: none;
}

.work-center-dialog.is-home-dashboard .work-center-card small {
  font-size: 11px;
  line-height: 1.4;
}

.financial-kpi span,
.financial-kpi small {
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .calendar-event-indicator {
    gap: 3px;
    padding: 4px;
  }
  .calendar-event-indicator span {
    display: none;
  }
  .calendar-event-indicator b {
    min-width: 22px;
    height: 22px;
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  .preorders-admin-summary article {
    align-items: flex-start;
    min-height: 76px;
  }
  .preorders-admin-summary small {
    overflow: visible;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }
  .preorders-admin-summary strong {
    font-size: 18px;
  }

  .contract-section-actions {
    flex-wrap: wrap;
  }
  .contract-portal-button {
    order: -1;
    flex: 1 0 100%;
    min-height: 40px;
  }
  .contract-portal-button span {
    display: inline;
  }

  .calendar-event-indicator {
    min-width: 28px;
    min-height: 28px;
    margin-top: 4px;
    padding: 3px;
  }
  .calendar-event-indicator b {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .contract-editor-header__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .contract-editor-back {
    justify-self: end;
    min-height: 36px;
    font-size: 11px;
  }
  .contract-editor-back span {
    display: inline;
  }
}

/* Origem: responsive-ux-v296.css */
/* Legibilidade e conteúdo completo em painéis compactos. */
.financial-chart-summary strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

@media (min-width: 701px) and (max-width: 1100px) {
  .financial-chart-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .financial-chart-summary > div:nth-child(2) {
    border-right: 0;
  }
  .financial-chart-summary > div:nth-child(-n+2) {
    border-bottom: 1px solid #e3e9ef;
  }

  #clientHistoryDialog .client-history-toolbar > label:nth-of-type(2) {
    flex: 1 1 260px;
  }
  #clientHistoryDialog .client-history-toolbar > .client-history-date-filter {
    flex: 1 1 180px;
  }
}

@media (max-width: 700px) {
  .report-kpis span,
  .report-return-kpis span,
  .report-return-kpis small,
  .report-return-list small,
  .report-return-contracts small {
    font-size: 11px;
    line-height: 1.4;
  }
  .report-return-kpis strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .report-return-list strong {
    overflow: visible;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .report-return-list > article {
    grid-template-columns: minmax(0, 1fr);
  }
  .report-return-list > article .button {
    grid-column: 1;
  }
  .report-bar-list > div {
    grid-template-columns: minmax(0, 1fr) auto;
    font-size: 11px;
  }
  .report-bar-list > div > span {
    grid-column: 1 / -1;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .report-bar-list strong {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .editor-panel .form-step .step-actions .button {
    min-height: 44px;
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .opportunity-board .opportunity-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .opportunity-board .opportunity-row__client,
  .opportunity-board .opportunity-row__date,
  .opportunity-board .opportunity-row__source,
  .opportunity-board .opportunity-row__status,
  .opportunity-board .opportunity-row__actions {
    grid-column: 1;
    grid-row: auto;
  }
  .opportunity-board .opportunity-row__client strong,
  .opportunity-board .opportunity-row__client small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .opportunity-board .opportunity-row__client strong {
    font-size: 13px;
  }
  .opportunity-board .opportunity-row__status .opportunity-status {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: 11px;
    line-height: 1.3;
  }
  .opportunity-board .opportunity-row__actions {
    justify-content: flex-start;
  }
  .opportunity-board .opportunity-row__actions .button {
    min-height: 40px;
    font-size: 12px;
  }
  .opportunity-board .opportunity-row__actions .opportunity-more-button {
    min-width: 40px;
    height: 40px;
  }
}

/* Origem: responsive-ux-v297.css */
/* Relatórios: manter valores e nomes completos em telas de tablet. */
@media (min-width: 701px) and (max-width: 1100px) {
  .report-kpis,
  .report-return-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-kpis strong,
  .report-return-kpis strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .report-bar-list > div {
    grid-template-columns: minmax(0, 1fr) auto;
    font-size: 11px;
  }

  .report-bar-list > div > span {
    grid-column: 1 / -1;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Origem: responsive-ux-v298.css */
/* Próximos retornos: mostrar o nome completo mesmo nos cartões estreitos. */
@media (min-width: 701px) and (max-width: 1100px) {
  .report-return-list > article > span strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.4;
  }
}

/* Controles densos mantêm a mesma composição, com área de toque adequada. */
@media (pointer: coarse) {
  .header-menu__trigger,
  .header-quick-actions .button,
  .financial-period-nav > button:not(.button),
  .financial-chart-toggle button,
  .financial-receivables-actions select,
  .financial-manual-filters select,
  .receivables-toolbar select,
  .contracted-toolbar select,
  .revenue-toolbar select,
  .income-history-toolbar select,
  .installments-toggle,
  .installment-message,
  .installment-paid {
    min-height: 44px;
  }

  .financial-period-nav > button:not(.button) {
    width: 44px;
    height: 44px;
  }

  .installments-toggle i {
    width: 44px;
    height: 44px;
  }

  .financial-chart-toggle button {
    min-width: 44px;
  }
}

/* Origem: preorder-review-v299.css */
/* Janela de pré-pedido: cartões claros, ícones e hierarquia da referência. */
.preorder-review-dialog {
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100dvh - 28px);
  border: 1px solid #dbe4f3;
  border-radius: 16px;
  background: #f4f7fc;
  color: #102449;
  box-shadow: 0 30px 85px rgba(5, 24, 56, .27);
}
.preorder-review-dialog::backdrop { background: rgba(7, 21, 47, .62); }
.preorder-review-shell { max-height: calc(100dvh - 30px); }
.preorder-review-dialog svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.preorder-review-header {
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-color: #e3eaf5;
  background: linear-gradient(110deg, #fff 15%, #f9faff);
}
.preorder-review-header__icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  background: #f0eaff;
  color: #6334fa;
}
.preorder-review-header__icon svg { width: 29px; height: 29px; }
.preorder-review-header__title { flex: 1; min-width: 0; }
.preorder-review-header__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.preorder-review-header__eyebrow #preorderReviewNumber { color: #592bfa; font-size: 12px; font-weight: 850; letter-spacing: .01em; }
.preorder-review-header__eyebrow em { border-radius: 999px; background: #eee9ff; padding: 4px 9px; color: #6334fa; font-size: 11px; font-style: normal; font-weight: 800; }
.preorder-review-header h2 { margin: 4px 0; color: #102449; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.15; overflow-wrap: anywhere; }
.preorder-review-header p { color: #72819b; font-size: 12px; }
.preorder-review-header__actions { display: flex; flex: 0 0 auto; gap: 9px; align-items: center; }
.preorder-review-header__actions .button { min-height: 41px; border-radius: 9px; font-size: 12px; font-weight: 750; }
.preorder-review-header__contract { box-shadow: 0 7px 17px rgba(93, 50, 238, .21); }
.preorder-review-header__contract[hidden] { display: none !important; }
.preorder-review-close { padding: 0 16px; border-color: #d6e0ef; background: #fff; color: #183263; }
.preorder-review-close::before { content: none; }
.preorder-review-content { gap: 12px; padding: 14px 16px 22px; background: #f4f7fc; }
.preorder-review-overview { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.preorder-review-overview article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 11px;
  border: 1px solid #e1e8f3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(18, 44, 82, .035);
}
.preorder-review-overview article > i,
.preorder-review-payment > div > i {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: #eaf1ff;
  color: #1161ee;
}
.preorder-review-overview article > span,
.preorder-review-payment > div > span { display: grid; min-width: 0; gap: 3px; }
.preorder-review-overview small,
.preorder-review-payment small { color: #71809e; font-size: 10px; font-weight: 600; line-height: 1.3; text-transform: none; }
.preorder-review-overview strong,
.preorder-review-payment strong { overflow: visible; color: #102449; font-size: 12px; line-height: 1.34; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.preorder-review-overview .is-success > i,
.preorder-review-payment .is-green > i { background: #dff8eb; color: #00a36b; }
.preorder-review-overview .is-purple > i,
.preorder-review-payment .is-highlight > i { background: #eee7ff; color: #6535f2; }
.preorder-review-overview .is-orange > i { background: #fff2dd; color: #ef8b09; }
.preorder-review-overview .is-danger > i,
.preorder-review-payment .is-danger > i { background: #ffe8ec; color: #db3350; }
.preorder-review-overview .is-danger strong,
.preorder-review-payment .is-danger strong { color: #b92540; }
.preorder-review-overview .is-green strong,
.preorder-review-payment .is-green strong { color: #00885b; }
.preorder-review-section { border-color: #dfe7f2; border-radius: 11px; box-shadow: 0 2px 8px rgba(20, 46, 80, .025); }
.preorder-review-section > header {
  min-height: 45px;
  padding: 10px 14px;
  border-color: #e4ebf4;
  background: linear-gradient(100deg, #fff, #f8faff);
}
.preorder-review-section > header small { color: #7383a0; font-size: 10px; text-align: right; }
.preorder-review-section__heading { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.preorder-review-section__heading strong { color: #102449; font-size: 13px; }
.preorder-review-section__icon { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; color: #1765f2; }
.preorder-review-section__icon svg { width: 19px; height: 19px; }
.preorder-customer-section dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preorder-customer-section dl > div {
  display: block;
  min-height: 79px;
  padding: 11px 13px;
  border-color: #e7edf5;
}
.preorder-review-field__icon { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #eaf1ff; color: #1463ef; }
.preorder-review-field__icon svg { width: 16px; height: 16px; }
.preorder-customer-section dt { display: flex; align-items: center; gap: 10px; margin: 0; color: #72829e; font-size: 10px; font-weight: 600; text-transform: none; }
.preorder-customer-section dd { margin: -10px 0 0 40px; color: #12264d; font-size: 12px; line-height: 1.4; }
.preorder-review-files { gap: 0; padding: 5px 11px; }
.preorder-review-file { grid-template-columns: auto minmax(0, 1fr) auto auto auto; min-height: 57px; gap: 10px; padding: 8px 5px; border: 0; border-bottom: 1px solid #e7edf5; border-radius: 0; }
.preorder-review-file:last-child { border-bottom: 0; }
.preorder-review-file__icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; background: #ffebef; color: #e52943; }
.preorder-review-file__icon svg { width: 18px; height: 18px; }
.preorder-review-file b { overflow: visible; color: #14284f; font-size: 12px; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.preorder-review-file small { font-size: 10px; }
.preorder-review-file__status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; background: #e3f9ef; padding: 5px 8px; color: #009b68; font-size: 10px; font-style: normal; font-weight: 750; white-space: nowrap; }
.preorder-review-file__status svg { width: 12px; height: 12px; }
.preorder-review-file time { color: #7c8ba4; font-size: 10px; white-space: nowrap; }
.preorder-review-file .button,
.preorder-review-proof .button { min-height: 34px; border: 1px solid #d6e0f0; background: #fff; color: #1b386e; font-size: 11px; text-decoration: none; }
.preorder-review-payment { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; }
.preorder-review-payment > div:not(.preorder-review-proof) { display: flex; align-items: center; min-width: 0; gap: 9px; border: 1px solid #eef2f8; background: #f8faff; padding: 10px; }
.preorder-review-payment .is-highlight strong { color: #6030ee; }
.preorder-review-proof { min-height: 49px; border-color: #d6f0e4; border-radius: 9px; background: #f0fbf6 !important; }
.preorder-review-proof > span small { font-size: 10px; }
.preorder-review-proof > span strong { font-size: 12px; }
.preorder-review-items { padding: 10px 12px; }
.preorder-review-items__empty { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 95px; }
.preorder-review-items__empty > i { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: #f2efff; color: #9a80fc; }
.preorder-review-items__empty > i svg { width: 43px; height: 43px; stroke-width: 1.3; }
.preorder-review-items__empty > span { display: grid; gap: 4px; }
.preorder-review-items__empty strong { color: #14284f; font-size: 13px; }
.preorder-review-items__empty small { color: #71819c; font-size: 11px; }
.preorder-review-item b,
.preorder-inventory-item b { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
.preorder-inventory-state { min-height: 52px; border-radius: 9px; }
.preorder-inventory-state strong { font-size: 12px; }
.preorder-inventory-state small { font-size: 10px; }
.preorder-link-manager__body { gap: 11px; }
.preorder-link-manager__intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6d7d99; font-size: 11px; }
.preorder-link-manager__status { border-radius: 999px; padding: 5px 10px; font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.preorder-link-manager__status.is-closed { background: #ffedef; color: #d33147; }
.preorder-link-manager__status.is-active { background: #e4f8ed; color: #008d60; }
.preorder-link-manager__notice { display: flex; align-items: center; gap: 11px; border: 1px solid #ffd8dd; border-radius: 9px; background: #fff4f5; padding: 10px 12px; }
.preorder-link-manager__notice > i { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #ffe3e7; color: #e13248; }
.preorder-link-manager__notice > span { display: grid; gap: 3px; }
.preorder-link-manager__notice strong { color: #172b52; font-size: 11px; }
.preorder-link-manager__notice small { color: #74819a; font-size: 10px; }
.preorder-link-manager__actions .button { min-height: 39px; }
.preorder-review-next { border-color: #cbeedf; background: #f1fcf7; }
.preorder-review-next strong { color: #14284f; font-size: 12px; }
.preorder-review-next small { font-size: 10px; }
.preorder-history-details > summary { justify-content: initial; gap: 10px; background: #fff; }
.preorder-history-details[open] > summary > .preorder-review-section__icon { transform: none; }
.preorder-history-details > summary > span { flex: 1; min-width: 0; }
.preorder-history-details > summary strong { color: #102449; font-size: 13px; }
.preorder-history-details > summary small { font-size: 10px; }
.preorder-history-event strong,
.preorder-history-event small { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.preorder-security-grid { gap: 8px; }
.preorder-security-grid article { display: flex; align-items: center; gap: 9px; min-height: 60px; border-color: #e4eafa; background: #f8faff; }
.preorder-security-grid article > i { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #ede8ff; color: #6538ef; }
.preorder-security-grid article > i svg { width: 17px; height: 17px; }
.preorder-security-grid article > span { display: grid; min-width: 0; gap: 3px; }
.preorder-security-grid small { color: #72819b; font-size: 10px; font-weight: 600; text-transform: none; }
.preorder-security-grid strong { overflow: visible; color: #5b31e9; font-size: 12px; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.preorder-security-grid span span { color: #7a879b; font-size: 9px; line-height: 1.35; }
.preorder-protection-list span { font-size: 9px; }
.preorder-review-footer { border-color: #dfe7f2; }
.preorder-review-footer .button { min-height: 39px; }
@media (max-width: 1120px) {
  .preorder-review-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preorder-review-payment { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preorder-security-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .preorder-review-dialog { width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .preorder-review-shell { max-height: 100dvh; }
  .preorder-review-header { align-items: flex-start; flex-wrap: wrap; padding: 14px; }
  .preorder-review-header__icon { flex-basis: 43px; width: 43px; height: 43px; border-radius: 12px; }
  .preorder-review-header__icon svg { width: 22px; height: 22px; }
  .preorder-review-header__title { flex: 1 1 calc(100% - 58px); }
  .preorder-review-header__actions { width: 100%; justify-content: flex-end; }
  .preorder-review-content { padding: 12px; }
  .preorder-review-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preorder-customer-section dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preorder-customer-section dl > div:nth-child(3n) { border-right: 1px solid #e7edf5; }
  .preorder-customer-section dl > div:nth-child(2n) { border-right: 0; }
  .preorder-review-payment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preorder-security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preorder-security-grid article:last-child { grid-column: auto; }
  .preorder-review-file { grid-template-columns: auto minmax(0, 1fr) auto; }
  .preorder-review-file time { display: none; }
}
@media (max-width: 480px) {
  .preorder-review-header h2 { font-size: 21px; }
  .preorder-review-overview { gap: 7px; }
  .preorder-review-overview article { min-height: 72px; padding: 8px; gap: 7px; }
  .preorder-review-overview article > i { flex-basis: 28px; width: 28px; height: 28px; }
  .preorder-review-overview svg { width: 16px; height: 16px; }
  .preorder-review-overview strong { font-size: 11px; }
  .preorder-customer-section dl, .preorder-review-payment, .preorder-security-grid { grid-template-columns: 1fr; }
  .preorder-customer-section dl > div:nth-child(3n), .preorder-customer-section dl > div:nth-child(2n) { border-right: 0; }
  .preorder-review-payment > div:not(.preorder-review-proof) { min-height: 55px; }
  .preorder-review-file { grid-template-columns: auto minmax(0, 1fr); }
  .preorder-review-file__status { grid-column: 2; justify-self: start; }
  .preorder-review-file .button { grid-column: 2; justify-self: start; }
  .preorder-link-manager__intro { align-items: flex-start; flex-direction: column; }
  .preorder-review-section > header { align-items: flex-start; }
  .preorder-review-section > header small { max-width: 42%; }
}
html[data-theme="dark"] .preorder-review-dialog,
html[data-theme="dark"] .preorder-review-content { background: #171e2b; color: #ecf1fb; }
html[data-theme="dark"] .preorder-review-header,
html[data-theme="dark"] .preorder-review-section > header { background: #222b3b; border-color: #364156; }
html[data-theme="dark"] .preorder-review-overview article,
html[data-theme="dark"] .preorder-review-section { background: #202a39; border-color: #364156; }
html[data-theme="dark"] .preorder-review-header h2,
html[data-theme="dark"] .preorder-review-section__heading strong,
html[data-theme="dark"] .preorder-review-overview strong,
html[data-theme="dark"] .preorder-customer-section dd,
html[data-theme="dark"] .preorder-review-payment strong,
html[data-theme="dark"] .preorder-review-file b,
html[data-theme="dark"] .preorder-review-items__empty strong { color: #f1f5ff; }
html[data-theme="dark"] .preorder-review-payment > div:not(.preorder-review-proof),
html[data-theme="dark"] .preorder-security-grid article { background: #263145; border-color: #3a4860; }
html[data-theme="dark"] .preorder-link-manager__notice { background: #392930; border-color: #70414b; }
html[data-theme="dark"] .preorder-link-manager__notice strong { color: #f6edf1; }

/* Origem: preorders-open-v300.css */
/* Pedidos em aberto — apresentação inspirada na referência, preservando a navegação do sistema. */
#preordersAdminDialog .preorders-admin-shell{background:#f6f8fd;color:#0d2048;padding-bottom:30px}
#preordersAdminDialog .preorders-admin-header{align-items:center;border:0;background:transparent;padding:26px 24px 12px}
#preordersAdminDialog .preorders-admin-header h2{font-size:clamp(24px,2.4vw,34px);font-weight:850;letter-spacing:-.035em;color:#0c1e45}
#preordersAdminDialog .preorders-admin-header p{font-size:13px;color:#62799d}
#preordersAdminDialog .preorders-admin-header>div:last-child{flex-wrap:wrap;justify-content:flex-end}
#preordersAdminDialog .preorders-admin-header .button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border-radius:8px;font-size:12px;font-weight:750}
#preordersAdminDialog .preorders-admin-header .button--primary,#preordersAdminDialog #applyPreordersAdminFilters{background:linear-gradient(120deg,#5930f5,#4526ed);color:#fff;box-shadow:0 5px 13px #522ef02c}
#preordersAdminDialog .preorders-admin-header .button--quiet{border:1px solid #dbe3f0;background:#fff;color:#142b58}
#preordersAdminDialog .preorders-admin-header .calendar-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid #dbe3f0;border-radius:8px;background:#fff;color:#294369}
#preordersAdminDialog .preorders-admin-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:8px 24px 0}
#preordersAdminDialog .preorders-admin-summary article{min-height:92px;border-color:#e0e8f3;border-radius:12px;box-shadow:0 5px 18px #16346309}
#preordersAdminDialog .preorders-admin-summary i{width:42px;height:42px;flex-basis:42px;border-radius:12px;background:#eeeaff;color:#693bfa;font-size:18px}
#preordersAdminDialog .preorders-admin-summary article:nth-child(2) i{background:#fff0df;color:#f39315}
#preordersAdminDialog .preorders-admin-summary article:nth-child(3) i{background:#e2f8ed;color:#0aab70}
#preordersAdminDialog .preorders-admin-summary article:nth-child(4) i{background:#e8f0ff;color:#1465e8}
#preordersAdminDialog .preorders-admin-summary small{white-space:normal;color:#51698e;font-size:10px;line-height:1.35;text-transform:none}
#preordersAdminDialog .preorders-admin-summary strong{font-size:21px;color:#102149}
#preordersAdminDialog .preorders-admin-toolbar{grid-template-columns:repeat(12,minmax(0,1fr));gap:11px;margin:15px 24px 0;border-color:#e0e8f3;border-radius:12px;padding:0 14px 15px;box-shadow:0 5px 18px #16346309}
#preordersAdminDialog .preorders-admin-toolbar h3{grid-column:1/-1;margin:0 -14px 2px;border-bottom:1px solid #e7edf6;background:#f9fbff;padding:12px 15px;color:#172c54;font-size:14px}
#preordersAdminDialog .preorders-admin-toolbar label{grid-column:span 3}
#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(5),#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(6),#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(7){grid-column:span 4}
#preordersAdminDialog .preorders-admin-toolbar label>span{color:#18345f;font-size:11px;text-transform:none}
#preordersAdminDialog .preorders-admin-toolbar input,#preordersAdminDialog .preorders-admin-toolbar select{height:39px;border-color:#d6e0ef;border-radius:7px;font-size:12px}
#preordersAdminDialog .preorders-admin-toolbar .button{grid-column:span 2;height:38px;border-radius:7px;font-size:11px;font-weight:750}
#preordersAdminDialog #clearPreordersAdminFilters{grid-column:9/11}
#preordersAdminDialog #applyPreordersAdminFilters{grid-column:11/13}
#preordersAdminDialog .preorders-admin-results{display:grid;grid-template-columns:minmax(0,1fr) 235px;align-items:start;gap:12px;margin:15px 24px 0}
#preordersAdminDialog .preorders-admin-main,#preordersAdminDialog .preorders-admin-aside>section{min-width:0;border:1px solid #e1e8f3;border-radius:12px;background:#fff;box-shadow:0 5px 18px #16346309}
#preordersAdminDialog .preorders-admin-list-heading{align-items:center;padding:17px 15px 13px}
#preordersAdminDialog .preorders-admin-list-heading strong{font-size:16px;color:#0d214a}
#preordersAdminDialog .preorders-admin-list-heading small{margin-top:4px;font-size:11px}
#preordersAdminDialog .preorders-admin-list-heading>span{color:#357f62;font-size:10px}
#preordersAdminDialog .preorders-admin-table-head,#preordersAdminDialog .preorders-admin-row{grid-template-columns:minmax(90px,1.3fr) minmax(85px,1.15fr) minmax(76px,.8fr) minmax(72px,.7fr) minmax(72px,.7fr) minmax(68px,.75fr) minmax(88px,1fr) minmax(88px,.85fr) minmax(95px,.85fr);gap:8px}
#preordersAdminDialog .preorders-admin-table-head{margin:0 8px;border:0;border-radius:8px;background:#f1f5fb;padding:11px 9px;color:#4d6488;font-size:9px}
#preordersAdminDialog .preorders-admin-list{display:block;margin:0 8px;border:0;background:#fff}
#preordersAdminDialog .preorders-admin-row{min-height:72px;padding:10px 9px;border-color:#e7edf5}
#preordersAdminDialog .preorders-admin-row>span{min-width:0}
#preordersAdminDialog .preorders-admin-row strong{font-size:11px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
#preordersAdminDialog .preorders-admin-row small{font-size:10px;white-space:normal;line-height:1.3}
#preordersAdminDialog .preorders-admin-row>span:nth-child(5) strong{color:#5a33e6}
#preordersAdminDialog .preorders-admin-progress i{display:block;height:6px;border-radius:99px;background:#e0e7ee;overflow:hidden}
#preordersAdminDialog .preorders-admin-progress i b{display:block;height:100%;border-radius:99px;background:#17b77b}
#preordersAdminDialog .preorders-admin-status{width:auto;max-width:100%;white-space:normal;font-size:9px!important;line-height:1.25}
#preordersAdminDialog .preorders-admin-actions{display:flex;align-items:center;gap:5px}
#preordersAdminDialog .preorders-admin-open{height:31px;padding:0 7px;border-color:#d6c6ff;background:#fff;font-size:10px}
#preordersAdminDialog .preorders-admin-actions select{width:32px;height:31px;border:1px solid #d6e0ef;border-radius:7px;background:#fff;color:#14305d;font-size:13px;cursor:pointer}
#preordersAdminDialog .preorders-admin-pagination{margin:13px 12px 16px}
#preordersAdminDialog .preorders-admin-tip{margin:0 12px 12px;border:1px solid #ded5ff;border-radius:9px;background:#faf8ff;padding:11px;color:#536d99;font-size:11px}
#preordersAdminDialog .preorders-admin-tip strong{margin-right:8px;color:#5833ef}
#preordersAdminDialog .preorders-admin-aside{display:grid;gap:12px}
#preordersAdminDialog .preorders-admin-aside>section{overflow:hidden}
#preordersAdminDialog .preorders-admin-aside h3{margin:0;border-bottom:1px solid #e8edf5;padding:13px;color:#142b56;font-size:13px}
#preordersAdminDialog #preordersAdminOperational>div{display:flex;align-items:center;gap:10px;margin:0 10px;border-bottom:1px solid #e8edf5;padding:12px 2px}
#preordersAdminDialog #preordersAdminOperational>div:last-child{border:0}
#preordersAdminDialog #preordersAdminOperational i{display:grid;flex:0 0 35px;width:35px;height:35px;place-items:center;border-radius:50%;background:#e9efff;color:#245ee7;font-size:14px;font-style:normal;font-weight:800}
#preordersAdminDialog #preordersAdminOperational>div:nth-child(1) i{background:#fff1e2;color:#ee8a0c}
#preordersAdminDialog #preordersAdminOperational>div:nth-child(3) i{background:#e4f8ee;color:#08a56e}
#preordersAdminDialog #preordersAdminOperational span,#preordersAdminDialog .preorders-admin-upcoming span{display:grid;min-width:0;gap:2px}
#preordersAdminDialog #preordersAdminOperational strong,#preordersAdminDialog .preorders-admin-upcoming strong{color:#122751;font-size:13px}
#preordersAdminDialog #preordersAdminOperational small,#preordersAdminDialog .preorders-admin-upcoming small{color:#667c9e;font-size:10px;line-height:1.3}
#preordersAdminDialog #preordersAdminUpcoming p{padding:8px 14px;color:#667c9e;font-size:11px}
#preordersAdminDialog .preorders-admin-upcoming{display:flex;gap:10px;margin:0 11px;border-bottom:1px solid #e8edf5;padding:11px 2px}
#preordersAdminDialog .preorders-admin-upcoming:last-child{border:0}
#preordersAdminDialog .preorders-admin-upcoming i,#preordersAdminDialog .preorders-admin-aside li i{flex:0 0 9px;width:9px;height:9px;margin-top:4px;border-radius:50%;background:#6540fb}
#preordersAdminDialog .preorders-admin-upcoming:nth-child(2) i{background:#fb8a20}
#preordersAdminDialog .preorders-admin-upcoming:nth-child(3) i{background:#16b47a}
#preordersAdminDialog .preorders-admin-aside ul{display:grid;gap:12px;margin:0;padding:14px;list-style:none}
#preordersAdminDialog .preorders-admin-aside li{display:flex;gap:10px}
#preordersAdminDialog .preorders-admin-aside li span{display:grid;gap:2px}
#preordersAdminDialog .preorders-admin-aside li strong{color:#1a2e55;font-size:10px}
#preordersAdminDialog .preorders-admin-aside li small{color:#647b9e;font-size:10px}
#preordersAdminDialog .preorders-admin-aside li .is-review{background:#fa8b20}
#preordersAdminDialog .preorders-admin-aside li .is-confirmed{background:#18b775}
#preordersAdminDialog .preorders-admin-aside li .is-contract{background:#7089af}
@media(max-width:1300px){#preordersAdminDialog .preorders-admin-results{grid-template-columns:1fr}#preordersAdminDialog .preorders-admin-aside{grid-template-columns:repeat(3,minmax(0,1fr))}#preordersAdminDialog .preorders-admin-table-head,#preordersAdminDialog .preorders-admin-row{grid-template-columns:minmax(100px,1.3fr) minmax(100px,1.1fr) 90px 75px 75px 70px minmax(100px,1fr) 90px 95px}}
@media(max-width:1050px){#preordersAdminDialog .preorders-admin-summary{grid-template-columns:repeat(3,minmax(0,1fr))}#preordersAdminDialog .preorders-admin-header{align-items:flex-start;flex-direction:column}#preordersAdminDialog .preorders-admin-header>div:last-child{justify-content:flex-start}#preordersAdminDialog .preorders-admin-toolbar label{grid-column:span 6}#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(5),#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(6),#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(7){grid-column:span 4}#preordersAdminDialog .preorders-admin-table-head{display:none}#preordersAdminDialog .preorders-admin-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 12px}#preordersAdminDialog .preorders-admin-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;border:1px solid #e1e8f3;border-radius:10px;padding:13px}#preordersAdminDialog .preorders-admin-row>span:before{display:block;margin-bottom:3px;color:#607699;font-size:9px;font-weight:750;text-transform:uppercase;content:attr(data-label)}#preordersAdminDialog .preorders-admin-row>span:nth-child(2),#preordersAdminDialog .preorders-admin-row>span:nth-child(3),#preordersAdminDialog .preorders-admin-row>span:nth-child(8){grid-column:auto}}
@media(max-width:760px){#preordersAdminDialog .preorders-admin-header{padding:18px 14px 8px}#preordersAdminDialog .preorders-admin-header p{display:block;font-size:12px}#preordersAdminDialog .preorders-admin-header .button{display:inline-flex;min-height:36px}#preordersAdminDialog .preorders-admin-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 12px 0}#preordersAdminDialog .preorders-admin-summary article{min-height:75px;padding:9px}#preordersAdminDialog .preorders-admin-summary strong{font-size:17px}#preordersAdminDialog .preorders-admin-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 12px 0;padding:0 12px 12px}#preordersAdminDialog .preorders-admin-toolbar h3{grid-column:1/-1;margin:0 -12px}#preordersAdminDialog .preorders-admin-toolbar label,#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(5),#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(6),#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(7){grid-column:1/-1}#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(2),#preordersAdminDialog .preorders-admin-toolbar label:nth-of-type(3){grid-column:span 1}#preordersAdminDialog #clearPreordersAdminFilters{grid-column:1}#preordersAdminDialog #applyPreordersAdminFilters{grid-column:2}#preordersAdminDialog .preorders-admin-results{margin:12px}#preordersAdminDialog .preorders-admin-list{grid-template-columns:1fr}#preordersAdminDialog .preorders-admin-aside{grid-template-columns:1fr}#preordersAdminDialog .preorders-admin-list-heading>span{display:block;font-size:9px}#preordersAdminDialog .preorders-admin-row{grid-template-columns:repeat(2,minmax(0,1fr))}#preordersAdminDialog .preorders-admin-row>span:nth-child(8){grid-column:auto}}
@media(max-width:430px){#preordersAdminDialog .preorders-admin-header>div:last-child{display:grid;grid-template-columns:1fr 1fr;width:100%}#preordersAdminDialog .preorders-admin-header .calendar-close{position:absolute;right:13px;top:13px}#preordersAdminDialog .preorders-admin-summary article:last-child{grid-column:1/-1}#preordersAdminDialog .preorders-admin-row>span:nth-child(2),#preordersAdminDialog .preorders-admin-row>span:nth-child(3),#preordersAdminDialog .preorders-admin-row>span:nth-child(8){grid-column:auto}}
html[data-theme="dark"] #preordersAdminDialog .preorders-admin-shell{background:#171b27;color:#f1f4fa}html[data-theme="dark"] #preordersAdminDialog .preorders-admin-main,html[data-theme="dark"] #preordersAdminDialog .preorders-admin-aside>section,html[data-theme="dark"] #preordersAdminDialog .preorders-admin-toolbar,html[data-theme="dark"] #preordersAdminDialog .preorders-admin-summary article{border-color:#394252;background:#242b38}html[data-theme="dark"] #preordersAdminDialog .preorders-admin-header h2,html[data-theme="dark"] #preordersAdminDialog .preorders-admin-summary strong,html[data-theme="dark"] #preordersAdminDialog .preorders-admin-list-heading strong,html[data-theme="dark"] #preordersAdminDialog .preorders-admin-aside strong{color:#f1f4fa}html[data-theme="dark"] #preordersAdminDialog .preorders-admin-row{border-color:#394252;background:#242b38}html[data-theme="dark"] #preordersAdminDialog .preorders-admin-table-head,html[data-theme="dark"] #preordersAdminDialog .preorders-admin-toolbar h3{background:#2b3444;border-color:#394252;color:#ecf1fa}

/* Origem: preorders-open-v301.css */
/* V301: tabela enxuta e alinhada aos dados essenciais. */
#preordersAdminDialog .preorders-admin-table-head,
#preordersAdminDialog .preorders-admin-row{
  grid-template-columns:minmax(145px,1.55fr) minmax(145px,1.5fr) minmax(110px,.9fr) minmax(105px,.9fr) minmax(145px,1.15fr) minmax(142px,1fr);
  gap:12px;
}
#preordersAdminDialog .preorders-admin-row>span:nth-child(4) strong{color:#5735ed}
#preordersAdminDialog .preorders-admin-actions{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:7px}
#preordersAdminDialog .preorders-admin-actions .preorders-admin-open{flex:1;min-width:89px}
#preordersAdminDialog .preorders-admin-actions select{flex:0 0 34px;width:34px;height:32px;padding:0 2px}
#preordersAdminDialog .preorders-admin-row>span:nth-child(5) strong{color:inherit}
@media(max-width:1300px){
  #preordersAdminDialog .preorders-admin-table-head,
  #preordersAdminDialog .preorders-admin-row{grid-template-columns:minmax(145px,1.55fr) minmax(145px,1.5fr) minmax(105px,.85fr) minmax(100px,.85fr) minmax(145px,1.15fr) minmax(140px,1fr)}
}
@media(max-width:1050px){
  #preordersAdminDialog .preorders-admin-table-head{display:none}
  #preordersAdminDialog .preorders-admin-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  #preordersAdminDialog .preorders-admin-row>span:nth-child(2),
  #preordersAdminDialog .preorders-admin-row>span:nth-child(3),
  #preordersAdminDialog .preorders-admin-row>span:nth-child(6){grid-column:auto}
}
@media(max-width:580px){
  #preordersAdminDialog .preorders-admin-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  #preordersAdminDialog .preorders-admin-row>span:nth-child(1),
  #preordersAdminDialog .preorders-admin-row>span:nth-child(2),
  #preordersAdminDialog .preorders-admin-row>span:nth-child(6){grid-column:1/-1}
}

/* Origem: preorders-open-v302.css */
/* V302: um único menu de ações, com largura e alinhamento uniformes. */
#preordersAdminDialog .preorders-admin-table-head>span:last-child{text-align:center}
#preordersAdminDialog .preorders-admin-row .preorders-admin-actions{display:flex;align-items:center;justify-content:center;min-width:0}
#preordersAdminDialog .preorders-admin-row .preorders-admin-actions select{
  appearance:none;
  -webkit-appearance:none;
  display:block;
  flex:0 0 auto;
  width:105px;
  height:36px;
  margin:0;
  border:1px solid #d8caff;
  border-radius:8px;
  background:#f8f5ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235a35e6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  padding:0 27px 0 13px;
  color:#5935e8;
  font:750 11px/1 Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif;
  cursor:pointer;
}
#preordersAdminDialog .preorders-admin-row .preorders-admin-actions select:hover{border-color:#ab94fa;background-color:#f1ebff}
#preordersAdminDialog .preorders-admin-row .preorders-admin-actions select:focus-visible{outline:2px solid #6544f6;outline-offset:2px}
@media(max-width:1050px){#preordersAdminDialog .preorders-admin-row .preorders-admin-actions{justify-content:flex-start}}
html[data-theme="dark"] #preordersAdminDialog .preorders-admin-row .preorders-admin-actions select{border-color:#7463a6;background-color:#2d2940;color:#e7dcff}

/* Origem: preorders-confirm-v303.css */
/* Confirmação integral no detalhe sem comprimir o cabeçalho em telas menores. */
#preorderReviewDialog .preorder-review-header__actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
#preorderReviewDialog #confirmPreorderInDetail{min-height:38px;white-space:normal;text-align:center;line-height:1.25}
@media(max-width:760px){
  #preorderReviewDialog .preorder-review-header__actions{width:100%;justify-content:flex-start}
  #preorderReviewDialog #confirmPreorderInDetail{flex:1 1 180px}
}

/* Origem: work-center-ux-v307.css */
/* Central: prioridades acionáveis, panorama sob demanda e filtros progressivos. */
.work-center-dialog.is-home-dashboard .work-center-cards {
  display: block;
  overflow: visible;
  padding: 0 0 18px;
}
.work-center-priority-grid,
.work-center-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.work-center-dialog.is-home-dashboard .work-center-summary-card {
  width: 100%;
  min-height: 120px;
  box-shadow: none;
}
.work-center-dialog.is-home-dashboard .work-center-summary-card:hover,
.work-center-dialog.is-home-dashboard .work-center-summary-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 7px 18px rgba(29, 41, 67, .08);
}
.work-center-dialog.is-home-dashboard .work-center-summary-card.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.work-center-dialog.is-home-dashboard .work-center-summary-card em {
  margin-top: 3px;
  color: var(--brand-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}
.work-center-dialog.is-home-dashboard .work-center-summary-card.is-active em { color: var(--brand); }
.work-center-overview { margin-top: 12px; }
.work-center-overview > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}
.work-center-overview > summary::-webkit-details-marker { display: none; }
.work-center-overview > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); }
.work-center-overview[open] > summary::after { transform: rotate(225deg); }
.work-center-overview > summary span { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; }
.work-center-overview__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; }
.work-center-overview__grid .work-center-summary-card { min-height: 110px; }
.work-center-dialog.is-home-dashboard .work-center-toolbar {
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 190px)) auto auto;
  align-items: end;
  gap: 10px;
}
.work-center-advanced { min-width: 0; }
.work-center-advanced > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cbd6e6;
  border-radius: 9px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  list-style: none;
}
.work-center-advanced > summary::-webkit-details-marker { display: none; }
.work-center-advanced > summary::after { content: ""; width: 7px; height: 7px; margin: -4px 0 0 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.work-center-advanced[open] { grid-column: 1 / -1; grid-row: 2; }
.work-center-advanced[open] > summary { justify-content: flex-start; margin-bottom: 9px; }
.work-center-advanced[open] > summary::after { transform: rotate(225deg); }
.work-center-advanced__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.work-center-dialog.is-home-dashboard .work-center-toolbar > .button { min-height: 44px; }
.work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search span { font-size: 12px; }
.work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search input,
.work-center-dialog.is-home-dashboard .work-center-toolbar .inventory-search select { min-height: 44px; font-size: 13px; }
.work-center-dialog.is-home-dashboard .work-center-list-heading small { font-size: 12px; }
.notification-summary { margin: 0; padding: 12px 20px; border-bottom: 1px solid #e2e7ef; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }
.notification-filters button { min-height: 40px; font-size: 12px; }
.notification-filters button[data-notification-filter="attention"] { border-color: #e8c4a3; color: #8a4a11; }
.notification-filters button[data-notification-filter="attention"].is-active { background: #a75b19; color: #fff; }
html[data-theme="dark"] .work-center-overview > summary,
html[data-theme="dark"] .work-center-advanced > summary,
html[data-theme="dark"] .notification-summary { border-color: #444; background: #282828; color: #eee; }
html[data-theme="dark"] .notification-filters button[data-notification-filter="attention"] { border-color: #875a37; color: #ffd3a8; }
html[data-theme="dark"] .notification-filters button[data-notification-filter="attention"].is-active { color: #fff; }

@media (max-width: 1360px) {
  .work-center-priority-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-center-overview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .work-center-dialog.is-home-dashboard .work-center-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-center-dialog.is-home-dashboard .work-center-toolbar .work-center-search { grid-column: 1 / -1; }
  .work-center-advanced[open] { grid-column: 1 / -1; grid-row: auto; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar > .button { width: 100%; }
}
@media (max-width: 620px) {
  .work-center-priority-grid { grid-template-columns: 1fr; }
  .work-center-overview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-center-dialog.is-home-dashboard .work-center-summary-card { min-height: 96px; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-center-advanced__fields { grid-template-columns: 1fr; }
  .notification-summary { padding-inline: 14px; }
}
@media (max-width: 390px) {
  .work-center-overview__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .work-center-dialog.is-home-dashboard .work-center-toolbar { grid-template-columns: 1fr; }
  .work-center-dialog.is-home-dashboard .work-center-toolbar .work-center-search { grid-column: auto; }
  .work-center-advanced[open] { grid-column: auto; }
}

/* Origem: interface-quality-v309.css */
/* v309 — qualidade transversal: legibilidade, acesso por teclado e estabilidade responsiva */
:root {
  --text-secondary-aa: #46566f;
  --text-subtle-aa: #596980;
  --focus-ring: #7657f2;
  --focus-ring-shadow: rgba(118, 87, 242, .24);
}

body {
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #dcd3ff; color: #1d123e; }

:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px var(--focus-ring-shadow) !important;
}

:where(button, input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: .62;
}

/* Metadados continuam compactos, mas não ficam abaixo do piso legível. */
dialog :where(small, dt, th),
.workspace :where(.resource-empty span, .pagination-summary, .field-help),
.opportunity-table-head,
.opportunity-board .opportunity-row__client small,
.opportunity-board .opportunity-row__date small,
.opportunity-detail dt,
.automation-summary small,
.automation-toolbar label,
.automation-rule__status small,
.automation-tags small {
  font-size: 12px;
  line-height: 1.45;
}

dialog :where(small, dt, th, time),
dialog :where([class*="status"], [class*="meta"], [class*="help"], [class*="note"]),
dialog :where([class*="heading"] > span, [class*="summary"] span, [class*="row"] small) {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

:where(.resource-header p, .resource-empty span, .field-help, .pagination-summary,
  .opportunity-board small, .opportunity-detail dt, .automation-rule__main > p,
  .automation-rule__status small, .automation-engine-status small) {
  color: var(--text-secondary-aa) !important;
}

dialog :where(small, dt, [class*="meta"], [class*="help"], [class*="note"], header p) {
  color: var(--text-secondary-aa) !important;
}

.financial-dialog :where(.financial-chart-month > span, .financial-chart-summary span,
  .financial-legend, .financial-segment small, .financial-kpi span, .financial-kpi small,
  .financial-transaction small, .financial-manual-row small),
.receivables-dialog :where(span, small, em, time),
.contracted-dialog :where(span, small, time),
#preordersAdminDialog :where(.preorders-admin-table-head, .preorders-admin-status,
  .preorders-admin-row small, .preorders-admin-row strong, .preorders-admin-aside small,
  .preorders-admin-aside strong) {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.app-loading__indicator i,
.app-loading__bar i {
  animation: none !important;
}

.app-loading__indicator i { opacity: .78; }
.app-loading__bar i { width: 68%; transform: none; }

.opportunity-board,
.opportunity-board > *,
.opportunity-table-head,
.opportunity-board .opportunity-row {
  min-width: 0;
  max-width: 100%;
}

.opportunity-board { overflow-x: clip; }
.opportunity-board .opportunity-row > * { min-width: 0; }

/* Evita que listas extensas custem layout e pintura fora da área visível. */
:where(#inventoryList, #packagesList, #maintenanceList, #maintenanceHistoryList,
  #activityList, #tablesCatalogList, #adminList, #backupList) > :where(article, div) {
  content-visibility: auto;
  contain-intrinsic-size: auto 72px;
}

/* Páginas internas abertas via <dialog open> são painéis, não modais. */
dialog.workspace-page {
  overflow-x: clip;
  color: var(--ink);
}

dialog.workspace-page::backdrop { display: none; }

html[data-theme="dark"] {
  --text-secondary-aa: #c6ceda;
  --text-subtle-aa: #b6c0cf;
  --focus-ring: #b9a7ff;
  --focus-ring-shadow: rgba(185, 167, 255, .28);
}

html[data-theme="dark"] ::selection { background: #7258d8; color: #fff; }

@media (pointer: coarse), (max-width: 760px) {
  :where(button, .button, [role="button"], summary, select,
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
    textarea) {
    min-height: 44px;
  }

  :where(.icon-button, .dialog-close, .calendar-close, .preorders-admin-actions select,
    [data-close-resource], [aria-label*="Fechar"], [aria-label*="Abrir"]) {
    min-width: 44px;
    min-height: 44px;
  }

  .opportunity-board .opportunity-row__actions,
  .resource-actions,
  .dialog-actions {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  dialog :where(small, dt, th) { font-size: 12.5px; }
  .workspace-page :where(h1, h2, h3, p, span, strong, small) { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Origem: interface-quality-v310.css */
/* v310 — correções conjuntas da auditoria Impeccable */
:root {
  --meta-text-aa: #46566f;
  --brand-text-aa: #5634c7;
  --success-text-aa: #176b4d;
  --warning-text-aa: #80500b;
  --danger-text-aa: #9b283c;
  --info-text-aa: #245f9e;
}

/* Escala funcional: metadados nunca dependem de texto microscópico. */
:where(.online-status strong, .header-menu__heading, .header-menu__item small,
  .sidebar-account small, #sidebarUserRole, .client-lookup__person small,
  .client-lookup__history, .financial-manual-status, .report-return-kpis small,
  .work-center-dialog.is-home-dashboard .work-center-card small,
  .work-center-dialog.is-home-dashboard .work-center-contract small,
  .contract-editor-header__title p, .section-heading p,
  .lease-details-card .subsection-title p, .admin-security-tip) {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

:where(.workspace-page, .editor-panel) :where(label, legend) {
  font-size: 13px;
  line-height: 1.4;
}

:where(.workspace-page, .editor-panel) :where(input, select, textarea, button) {
  font-size: max(13px, 1em);
}

:where(.financial-dialog, .reports-dialog, .work-center-dialog, .preorders-admin-dialog)
  :where(strong, b, output, time, [class*="amount"], [class*="total"], [class*="value"]) {
  font-variant-numeric: tabular-nums;
}

/* Cores semânticas com contraste AA para textos normais sobre superfícies claras. */
:where(.section-heading p, .opportunity-eyebrow, .opportunity-list-heading small,
  .work-center-dialog.is-home-dashboard .work-center-card b,
  .step-nav__item.is-active, .step-nav__item.is-active small) {
  color: var(--brand-text-aa) !important;
}

:where(.work-center-dialog.is-home-dashboard .work-center-contract__balance strong,
  .tone-success strong, .status-confirmado, .status-quitado,
  .preorders-admin-status.is-confirmed) {
  color: var(--success-text-aa) !important;
}

:where(.status-aguardando, .installment-status--pending, .financial-manual-status,
  .receivable-row.is-today em) {
  color: var(--warning-text-aa) !important;
}

:where(.resource-header p, .field-help, .pagination-summary, .contract-editor-header__title p,
  .lease-details-card .subsection-title p, .work-center-dialog.is-home-dashboard small) {
  color: var(--meta-text-aa) !important;
}

html[data-theme="dark"] {
  --meta-text-aa: #c6ceda;
  --brand-text-aa: #c6b7ff;
  --success-text-aa: #8fe0bf;
  --warning-text-aa: #f0c178;
  --danger-text-aa: #ffabb7;
  --info-text-aa: #a9cff7;
}

/* A regra anterior usava :where(), cuja especificidade perdia para componentes. */
@media (pointer: coarse), (max-width: 900px) {
  html body :where(button, .button, [role="button"], summary, select,
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
    textarea) {
    min-height: 44px !important;
  }

  html body :where(.icon-button, .dialog-close, .calendar-close,
    .mobile-notification-button, .financial-period-nav > button,
    .preorders-admin-actions select, [data-close-resource],
    [aria-label*="Fechar"], [aria-label*="Abrir"]) {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  html body :where(input, select, textarea) { font-size: 16px !important; }
  html body :where(.button--small, .button--quiet, .button--danger) { padding-block: 9px; }
}

@media (max-width: 520px) {
  .mobile-brand strong { max-width: 14ch; }
  .workspace-page :where(p, li, dd) { font-size: max(14px, 1em); }
}

@media (forced-colors: active) {
  :where(.status-badge, [class*="status"], [class*="tone-"]) {
    border: 1px solid currentColor !important;
  }
}

/* v312 — Central de automações: segurança visual, responsividade e acessibilidade. */
.automation-builder-dialog {
  overflow: hidden;
}

.automation-builder {
  width: 100%;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.automation-builder-step {
  min-height: max-content;
  align-items: start;
}

.automation-builder-step + .automation-builder-step {
  margin-top: 18px;
}

.automation-builder-footer {
  z-index: 3;
  box-shadow: 0 -8px 24px rgba(23, 36, 61, .06);
}

.automation-tabs button,
.automation-toggle,
.automation-more {
  min-width: 44px;
  min-height: 44px;
}

.automation-toggle {
  width: 44px;
  height: 28px;
}

.automation-toggle i {
  width: 20px;
  height: 20px;
}

.automation-toggle[aria-pressed="true"] i {
  transform: translateX(16px);
}

.automation-rule__main > span em,
.automation-tags small,
.automation-rule__status small,
.automation-run > em,
.automation-test-result dt,
.automation-checks small,
.automation-builder-footer small {
  font-size: 12px;
  line-height: 1.35;
}

.automation-rule__main > p,
.automation-flow,
.automation-engine-status small,
.automation-feed-heading small,
.automation-scheduler-content p,
.automation-builder-step > div > p,
.automation-test-note {
  font-size: 13px;
  line-height: 1.45;
}

.automation-test-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #eadba9;
  border-radius: 8px;
  background: #fffaf0;
  color: #71551c;
}

.automation-scheduler-dialog {
  width: min(820px, calc(100vw - 28px));
}

.automation-scheduler-dialog .resource-shell,
.automation-scheduler-dialog .resource-header {
  width: 100%;
  max-width: none;
}

.automation-scheduler-dialog .resource-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.automation-scheduler-dialog .calendar-close {
  display: inline-grid;
  flex: 0 0 44px;
}

.automation-scheduler-content {
  grid-template-columns: minmax(0, 1fr);
}

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

.automation-scheduler-actions .button {
  min-height: 44px;
}

html[data-theme="dark"] .automations-shell,
html[data-theme="dark"] .automation-builder {
  background: var(--soft);
}

html[data-theme="dark"] .automations-header,
html[data-theme="dark"] .automation-builder > header,
html[data-theme="dark"] .automation-summary article,
html[data-theme="dark"] .automation-rule,
html[data-theme="dark"] .automation-alert,
html[data-theme="dark"] .automation-run,
html[data-theme="dark"] .automation-builder-step,
html[data-theme="dark"] .automation-builder-footer,
html[data-theme="dark"] .automation-scheduler-dialog .resource-shell {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
}

html[data-theme="dark"] .automation-engine-status {
  border-color: #315c50;
  background: #172b28;
}

html[data-theme="dark"] :where(.automations-header h2, .automation-builder > header h2,
  .automation-summary strong, .automation-rule__main strong, .automation-builder strong,
  .automation-feed-heading strong, .automation-alert strong, .automation-run strong) {
  color: var(--ink);
}

html[data-theme="dark"] :where(.automations-header p, .automation-engine-status small,
  .automation-rule__main p, .automation-flow, .automation-tags small,
  .automation-rule__status small, .automation-alert p, .automation-alert small,
  .automation-run p, .automation-run small, .automation-builder-step > div > p,
  .automation-message-field small, .automation-checks small, .automation-builder-footer small,
  .automation-scheduler-content p) {
  color: var(--muted);
}

html[data-theme="dark"] :where(.automation-toolbar input, .automation-toolbar select,
  .automation-builder input, .automation-builder select, .automation-builder textarea,
  .automation-scheduler-content input, .automation-feed-heading select) {
  border-color: var(--line);
  background: #111a26;
  color: var(--ink);
}

html[data-theme="dark"] .automation-checks > label,
html[data-theme="dark"] .automation-builder-footer > label,
html[data-theme="dark"] .automation-tags small {
  border-color: var(--line);
  background: #1c2939;
}

html[data-theme="dark"] .automation-test-note {
  border-color: #745f2e;
  background: #2d281d;
  color: #f3d993;
}

@media (max-width: 900px) {
  .automation-builder-dialog {
    width: min(100vw - 16px, 760px);
    max-width: none;
  }

  .automation-builder-grid,
  .automation-checks {
    grid-template-columns: 1fr;
  }

  .automation-rule {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .automation-rule__icon {
    display: none;
  }

  .automation-rule__main,
  .automation-rule__status,
  .automation-rule__actions {
    grid-column: 2;
    justify-items: start;
  }

  .automation-rule__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .automations-dialog,
  .automation-builder-dialog {
    inset: 0;
    width: 100%;
    min-width: 0;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .automation-builder {
    max-height: 100dvh;
  }

  .automation-builder > header {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 16px;
  }

  .automation-builder > header h2 {
    font-size: 22px;
  }

  .automation-builder > header p {
    font-size: 13px;
  }

  .automation-builder-step {
    width: auto;
    min-width: 0;
    margin: 10px;
    padding: 14px;
  }

  .automation-builder-step > div,
  .automation-builder .field,
  .automation-checks > label {
    min-width: 0;
  }

  .automation-builder-footer {
    padding: 10px;
  }

  .automations-header {
    flex-direction: column;
  }

  .automations-header > div:last-child {
    width: 100%;
  }

  .automations-header > div:last-child .button--primary {
    flex: 1;
  }

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

  .automation-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .automation-tabs button {
    flex: 0 0 auto;
    min-width: 112px;
    font-size: 13px;
  }

  .automation-rule {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .automation-scheduler-dialog {
    width: calc(100vw - 16px);
  }

  .automation-scheduler-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation-rule,
  .automation-toggle,
  .automation-toggle i {
    transition-duration: .01ms !important;
  }
}
