:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #263849;
  background: #eef2f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #193757;
  --navy-deep: #102a46;
  --blue: #287ab5;
  --cyan: #32a6c8;
  --green: #22a06b;
  --border: #dce4ea;
  --muted: #718293;
  --shadow: 0 10px 30px rgb(18 48 74 / 8%);
  --header-height: 52px;
}

.os-filter-panel { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; padding:18px; background:#fff; border:1px solid #dce1e8; border-radius:4px; box-shadow:0 1px 3px rgba(16,24,40,.06); }
.os-filter-panel label { display:flex; flex-direction:column; gap:5px; color:#4b5565; font-size:12px; font-weight:600; }
.os-filter-panel input,.os-filter-panel select { min-height:36px; border:1px solid #cbd2dc; border-radius:3px; padding:7px 10px; background:#fff; }
.os-filter-panel .primary-button { align-self:end; min-height:36px; }
.os-stage-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:16px; }
.os-stage-card { background:#f6f8fb; border:1px solid #dce1e8; border-top:3px solid var(--stage-color); border-radius:4px; min-height:230px; overflow:hidden; }
.os-stage-card>header,.os-stage-card>footer { display:flex; justify-content:space-between; gap:8px; padding:12px 14px; background:#fff; }
.os-stage-card>header strong { display:grid; place-items:center; min-width:25px; height:25px; border-radius:13px; color:#fff; background:var(--stage-color); }
.os-order-card { display:flex; flex-direction:column; gap:5px; margin:12px; padding:12px; border-left:3px solid var(--stage-color); border-radius:3px; background:#fff; box-shadow:0 1px 3px rgba(16,24,40,.09); }
.os-order-card span { font-size:13px; }.os-order-card small { color:#667085; }
.os-stage-card>footer { margin-top:auto; border-top:1px solid #e5e8ed; font-size:12px; }
.os-summary-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.os-summary-grid article { padding:18px; background:#fff; border:1px solid #dce1e8; border-radius:4px; }
.os-summary-grid h2 { margin:0 0 16px; font-size:16px; }
.summary-bars { display:grid; gap:12px; }.summary-bars span { position:relative; z-index:0; padding:8px 10px; background:#edf0f5; overflow:hidden; }.summary-bars span::before { content:''; position:absolute; inset:0 auto 0 0; width:var(--value); background:rgba(41,84,171,.2); z-index:-1; }
@media (max-width:1000px) { .os-filter-panel { grid-template-columns:repeat(2,minmax(0,1fr)); }.os-stage-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .os-filter-panel,.os-stage-grid,.os-summary-grid { grid-template-columns:1fr; } }
.financial-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin:16px 0; }.financial-kpis article { display:flex; flex-direction:column; gap:8px; min-height:105px; padding:18px; border:1px solid #dce1e8; border-radius:4px; background:#fff; box-shadow:0 1px 3px rgba(16,24,40,.06); }.financial-kpis span { color:#667085; font-size:12px; font-weight:700; text-transform:uppercase; }.financial-kpis strong { font-size:22px; color:#263849; }.financial-kpis .positive { color:#15803d; }.financial-kpis .negative { color:#c2413a; }
.financial-columns { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.financial-columns>article { padding:18px; border:1px solid #dce1e8; border-radius:4px; background:#fff; }.financial-columns h2 { margin:0 0 14px; font-size:16px; }.financial-entry { display:grid; grid-template-columns:100px 1fr auto; gap:10px; align-items:center; padding:12px 0; border-top:1px solid #edf0f4; font-size:13px; }.financial-entry span { color:#667085; }.financial-entry strong { color:#263849; }
@media (max-width:900px) { .financial-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.financial-columns { grid-template-columns:1fr; } } @media (max-width:520px) { .financial-kpis { grid-template-columns:1fr; }.financial-entry { grid-template-columns:1fr; } }
.agenda-calendar,.agenda-events { margin-top:16px; padding:18px; border:1px solid #dce1e8; border-radius:4px; background:#fff; }.agenda-calendar>header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }.agenda-calendar h2,.agenda-events h2 { margin:0; font-size:17px; }.agenda-calendar>header button { width:36px; height:34px; border:1px solid #cbd2dc; background:#fff; cursor:pointer; }.agenda-weekdays,.agenda-days { display:grid; grid-template-columns:repeat(7,1fr); }.agenda-weekdays b { padding:10px; border-bottom:1px solid #dce1e8; color:#667085; text-align:center; font-size:12px; }.agenda-days button { min-height:76px; padding:10px; border:0; border-right:1px solid #edf0f4; border-bottom:1px solid #edf0f4; background:#fff; text-align:right; vertical-align:top; cursor:pointer; }.agenda-days button:nth-child(7n) { border-right:0; }.agenda-days button:hover { background:#f3f7fd; }.agenda-days button.today { color:#fff; background:#2954ab; font-weight:800; }.agenda-days button.empty { color:#c8ced8; background:#fafbfc; }.empty-state { display:flex; flex-direction:column; align-items:center; gap:8px; padding:38px 20px; color:#667085; text-align:center; }.empty-state .app-icon { width:38px; height:38px; opacity:.45; }.empty-state strong { color:#344054; }
@media (max-width:640px) { .agenda-calendar { padding:10px; }.agenda-days button { min-height:52px; padding:6px; }.agenda-weekdays b { padding:7px 2px; } }
.settings-toggle-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 20px; }.settings-toggle-grid label { display:flex; align-items:center; gap:8px; padding:9px 0; border-bottom:1px solid #edf0f4; }.settings-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.settings-card-grid article { display:flex; flex-direction:column; gap:9px; min-height:150px; padding:22px; border:1px solid #dce1e8; border-radius:4px; background:#fff; }.settings-card-grid article>span { color:#667085; font-size:12px; text-transform:uppercase; }.settings-card-grid article>strong { font-size:20px; }.settings-card-grid progress { width:100%; accent-color:#2954ab; }.brand-settings-card { display:grid; grid-template-columns:240px 1fr; gap:30px; align-items:center; padding:28px; border:1px solid #dce1e8; background:#fff; }.brand-settings-card img { width:100%; max-height:180px; object-fit:contain; }.brand-settings-card div { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }.brand-settings-card h2,.brand-settings-card p { margin:0; }.certificate-options .app-icon { width:42px; height:42px; color:#2954ab; }.certificate-options button { align-self:flex-start; margin-top:auto; }.integration-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.integration-grid article { display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:center; padding:16px; border:1px solid #dce1e8; background:#fff; }.integration-grid article>span { grid-column:2; color:#a0443c; font-size:11px; }.integration-grid article>button { grid-column:2; justify-self:start; border:0; color:#2954ab; background:transparent; cursor:pointer; }.integration-grid small { display:block; margin-top:4px; color:#667085; }
@media (max-width:850px) { .integration-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.brand-settings-card { grid-template-columns:1fr; }.brand-settings-card img { max-width:220px; } } @media (max-width:560px) { .settings-toggle-grid,.settings-card-grid,.integration-grid { grid-template-columns:1fr; } }
.reports-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.reports-grid button { display:grid; grid-template-columns:38px 1fr auto; gap:12px; align-items:center; min-height:86px; padding:16px; border:1px solid #dce1e8; border-radius:4px; color:#344054; background:#fff; text-align:left; cursor:pointer; transition:.15s ease; }.reports-grid button:hover { border-color:#8ea8cf; box-shadow:0 5px 15px rgba(41,84,171,.12); transform:translateY(-1px); }.reports-grid .app-icon { width:30px; height:30px; color:#2954ab; }.reports-grid span { display:flex; flex-direction:column; gap:5px; }.reports-grid small { color:#667085; }.reports-grid b { color:#98a2b3; font-size:24px; } @media (max-width:900px) { .reports-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } } @media (max-width:560px) { .reports-grid { grid-template-columns:1fr; } }
.report-dialog-backdrop { position:fixed; inset:0; z-index:90; display:grid; place-items:center; padding:20px; background:rgb(12 30 47 / 58%); }.report-dialog { width:min(780px,100%); max-height:calc(100vh - 40px); overflow:auto; border-radius:6px; background:#fff; box-shadow:0 24px 70px rgb(5 24 40 / 30%); }
.report-dialog>header,.report-dialog>footer { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:18px 22px; border-bottom:1px solid var(--border); }.report-dialog>header h2 { margin:4px 0 0; font-size:20px; }.report-dialog>header>button { border:0; background:transparent; font-size:28px; cursor:pointer; }.report-dialog>footer { border-top:1px solid var(--border); border-bottom:0; }.report-dialog>footer span { color:var(--muted); font-size:11px; }
.report-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:24px 22px; }.report-filter-grid label { display:grid; gap:6px; color:#526173; font-size:12px; font-weight:700; }.report-filter-grid input:not([type="checkbox"]),.report-filter-grid select { width:100%; min-height:42px; padding:9px 11px; border:1px solid var(--border); border-radius:4px; background:#fff; }.report-filter-grid .report-checkbox { display:flex; align-items:center; gap:9px; min-height:42px; padding-top:20px; }
.shipping-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 18px; }.shipping-summary article { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:15px 17px; border:1px solid var(--border); border-radius:5px; background:#fff; }.shipping-summary span { color:var(--muted); font-size:12px; }.shipping-summary strong { color:#2954ab; font-size:24px; }.shipping-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:0 0 18px; padding:16px; border:1px solid var(--border); border-radius:5px; background:#f8fafc; }.shipping-filters label { display:grid; gap:6px; color:#526173; font-size:12px; font-weight:700; }.shipping-filters select { min-height:40px; padding:8px 10px; border:1px solid var(--border); border-radius:4px; background:#fff; }.shipping-check { display:flex !important; align-items:center; gap:8px; padding-top:20px; }.status-pill { display:inline-flex; padding:4px 8px; border-radius:999px; background:#eef3ff; color:#2954ab; font-size:11px; font-weight:700; }.table-action { border:0; background:transparent; color:#2954ab; cursor:pointer; font-weight:700; }.shipping-footer { display:flex; align-items:center; justify-content:flex-end; gap:15px; margin-top:16px; color:var(--muted); font-size:12px; }
@media (max-width:600px) { .report-filter-grid { grid-template-columns:1fr; }.report-dialog>footer { align-items:stretch; flex-direction:column; }.report-dialog>footer button { width:100%; } }
@media (max-width:800px) { .shipping-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .shipping-filters { grid-template-columns:1fr; }.shipping-footer { align-items:stretch; flex-direction:column; }.shipping-footer button { width:100%; } }

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { min-width: 320px; overflow: hidden; font-size: 14px; }
button, input, select, textarea { font: inherit; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); margin: 1px 0 0; }
button { color: inherit; }
.app-icon { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; vertical-align: middle; }
.app-icon.w35 {width: auto; height: 35px;}
/* Form typography follows the 14px body baseline, including legacy-specific forms. */

form .required > label::after,
form label.required > span:first-child::after,
form th.required::after,
form strong.required::after { color: #f00; content: '*'; display: inline; }

.top-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(110deg, var(--navy-deep), var(--navy) 58%, #245f87);
  box-shadow: 0 3px 16px rgb(10 35 58 / 24%);
}

.header-left, .header-actions { display: flex; align-items: stretch; }
.header-button, .pdv-button, .user-button {
  position: relative;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.header-button { width: 52px; display: grid; place-items: center; border-right: 1px solid rgb(255 255 255 / 10%); }
.header-button.mobile-menu-button, .header-button.mobile-actions-toggle, .header-button.mobile-app-launcher-button { display: none; }
.header-button.app-launcher-button > svg.app-icon {width: auto; height: 18px;}
header.mobile-actions-expanded > #mobile-header-actions > button.mobile-actions-toggle > svg.app-icon { fill: red; }
.header-button:hover, .header-button.active { background: rgb(255 255 255 / 11%); }
.brand { min-width: 235px; display: flex; align-items: center; gap: 3px; padding: 0 16px; color: inherit; text-decoration: none; }
.brand-mark { width: 50.4px; height: 40.5px; display: block; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 20%)); }
.brand-copy { position: relative; display: flex; flex-direction: column; margin-left: -4px; line-height: 1.05; }
.brand-copy strong { font-size: 26px; font-weight: 850; letter-spacing: .025em; }
.brand-copy .brand-dot { color: #ed5d5d; }
.brand-copy small { position: absolute; top: calc(100% - 1px); right: 0; font-size: 8px; font-weight: 750; letter-spacing: .12em; line-height: 1; opacity: .72; white-space: nowrap; }
.pdv-button { width: 52px; display: grid; flex: 0 0 52px; place-items: center; padding: 0; background: rgb(26 141 116 / 70%); font-weight: 700; letter-spacing: .03em; }
.pdv-button .app-icon { width: 30px; height: 30px; }
.pdv-button:hover { background: rgb(26 151 123 / 90%); }
.action-badge { position: absolute; top: 5px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 10px; background: #ed5d5d; font-size: 9px; font-weight: 800; }
.user-button { display: flex; align-items: center; gap: 9px; padding: 0 14px; border-left: 1px solid rgb(255 255 255 / 10%); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid rgb(255 255 255 / 55%); border-radius: 50%; background: #2f85b2; font-size: 10px; font-weight: 800; }
.user-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.user-copy strong { font-size: 12px; }
.user-copy small { max-width: 150px; margin-top: 4px; overflow: hidden; opacity: .65; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-button > .app-icon { width: 16px; }
.account-menu { position: fixed; z-index: 55; top: calc(var(--header-height) + 8px); right: 10px; width: min(350px, calc(100vw - 20px)); padding: 16px; border: 1px solid var(--border); border-radius: 10px; color: #263849; background: #fff; box-shadow: 0 18px 45px rgb(8 29 46 / 25%); }
.account-menu header { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.account-menu header .avatar { width: 38px; height: 38px; color: #fff; }
.account-menu header div { min-width: 0; display: flex; flex-direction: column; }
.account-menu header strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu header small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu label { display: grid; gap: 7px; padding: 14px 0; color: #526879; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.account-menu select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; color: #263849; background: #fff; outline: none; font-size: 12px; text-transform: none; }
.account-menu select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(40 122 181 / 10%); }
.account-link-button { width:100%; min-height:38px; padding:8px 10px; border:0; border-top:1px solid var(--border); color:#40586c; background:#fff; text-align:left; cursor:pointer; }.account-link-button:hover { color:var(--blue); background:#f7fafc; }
.account-error { margin: 0 0 12px; padding: 9px 10px; border-radius: 6px; color: #a32626; background: #fff0f0; font-size: 11px; }
.logout-button { width: 100%; height: 40px; border: 1px solid #d9e1e7; border-radius: 7px; color: #526879; background: #f7f9fb; cursor: pointer; font-size: 11px; font-weight: 750; margin-top: 20px;}
.logout-button:hover { color: #a32626; border-color: #efcaca; background: #fff5f5; }

.app-shell { position: fixed; inset: 0; overflow: hidden; }
.app-body { --side-navigation-width: 290px; position: absolute; inset: 0; height: auto; min-height: 0; overflow: hidden; padding-top: var(--header-height); }
.app-body.navigation-push-open main#main-content { width: calc(100% - var(--side-navigation-width)); margin-left: var(--side-navigation-width); }
main#main-content {
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden scroll;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background-color: #f9f9f9;
}
main#main-content::-webkit-scrollbar { width: 0; height: 0; }
main#main-content > .main-content { width: 100%; margin: 0 auto; }
main#main-content > .main-content > section { margin: 15px 15px;}
main#main-content > .main-content[data-layout="pos"] { width: 100%; max-width: none; min-height: calc(100vh - var(--header-height) - 36px); color: #263849; }
.main-scrollbar { position: absolute; z-index: 20; top: var(--header-height); right: 0; bottom: 0; width: 15px; opacity: .6; background: transparent; outline: none; transition: width .2s ease-in-out, background-color .2s linear, opacity .2s linear; touch-action: none; }
.main-scrollbar:focus-visible { box-shadow: inset 0 0 0 2px rgb(41 84 171 / 24%); }
.main-scrollbar-thumb { position: absolute; right: 2px; width: 6px; min-height: 32px; border-radius: 6px; background: #245f87; cursor: grab; transition: width .2s ease-in-out; }
.main-scrollbar:hover .main-scrollbar-thumb, .main-scrollbar.focused .main-scrollbar-thumb, .main-scrollbar.dragging .main-scrollbar-thumb { width: 21px; }
.main-scrollbar.dragging .main-scrollbar-thumb { cursor: grabbing; }
.side-navigation {
  position: fixed;
  z-index: 45;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--side-navigation-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: #fff;
  box-shadow: 14px 0 28px rgb(26 56 82 / 12%);
}
.company-identity { display: grid; place-items: center; flex: 0 0 auto; gap: 10px; min-height: 155px; padding: 15px 18px 14px; border-bottom: 1px solid var(--border); background: #f7f9fb; text-align: center; }
.company-logo { display: block; width: min(170px, 100%); height: 105px; object-fit: contain; }
.company-identity strong { width: 100%; overflow: hidden; color: #344b5e; font-size: 13px; font-weight: 750; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.navigation-scroll-region { position: relative; min-height: 0; flex: 1 1 auto; }
.side-navigation nav { height: 100%; overflow-x: hidden; overflow-y: auto; padding: 10px; scrollbar-width: none; }
.side-navigation nav::-webkit-scrollbar { width: 0; height: 0; }
.nav-scrollbar { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 15px; opacity: 0; background: transparent; outline: none; pointer-events: none; transition: width .2s ease-in-out, background-color .2s linear, opacity .2s linear; touch-action: none; }
.navigation-scroll-region:hover .nav-scrollbar, .nav-scrollbar:focus, .nav-scrollbar.dragging { opacity: .6; pointer-events: auto; }
.nav-scrollbar:hover, .nav-scrollbar.focused, .nav-scrollbar.dragging { width: 25px; opacity: .7; background: rgb(238 238 238 / 70%); }
.nav-scrollbar:focus-visible { box-shadow: inset 0 0 0 2px rgb(41 84 171 / 24%); }
.nav-scrollbar-thumb { position: absolute; right: 2px; width: 6px; min-height: 32px; border-radius: 6px; background: #2954ab; cursor: grab; transition: width .2s ease-in-out; }
.nav-scrollbar:hover .nav-scrollbar-thumb, .nav-scrollbar.focused .nav-scrollbar-thumb, .nav-scrollbar.dragging .nav-scrollbar-thumb { width: 21px; }
.nav-scrollbar.dragging .nav-scrollbar-thumb { cursor: grabbing; }
.nav-group { margin-bottom: 3px; }
.nav-item { width: 100%; min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 0; border-radius: 7px; color: inherit; background: transparent; cursor: pointer; text-align: left; text-decoration: none; font-size: 13px; font-weight: 650; }
.nav-item:hover, .nav-item.selected { color: var(--blue); background: #edf6fb; }
.nav-item.nav-item-subdued { opacity: .3; }
.nav-item.unavailable:disabled { opacity: 1; cursor: default; }
.nav-item.unavailable:disabled:hover { color: #607482; background: transparent; }
.nav-item .app-icon { width: 18px; }
.nav-item .nav-chevron { width: 15px; margin-left: auto; }
.nav-children { display: grid; padding: 1px 0 7px 43px; }
.nav-children a, .nav-placeholder { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 6px; border: 0; color: #617384; background: transparent; text-align: left; text-decoration: none; font: inherit; font-size: 12px; }
.nav-children a > .app-icon, .nav-placeholder > .app-icon { width: 15px; height: 15px; }
.nav-children a:hover { color: var(--blue); }
.nav-children a.selected { color: var(--blue); font-weight: 750; }
.nav-placeholder:disabled { opacity: 1; cursor: default; }
.nav-subgroup { display: grid; margin: 3px 0 5px; border-left: 1px solid #dce5eb; }
.nav-children-hidden-functions .nav-subgroup { border-left: 2px solid red; }
.nav-subgroup-toggle { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 6px 5px 10px; border: 0; color: #80909d; background: transparent; cursor: pointer; text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nav-subgroup-toggle:hover { color: var(--blue); }
.nav-subgroup-title { min-width: 0; display: flex; align-items: center; gap: 8px; }
.nav-subgroup-title .app-icon { width: 15px; height: 15px; }
.nav-subgroup-chevron { width: 13px; height: 13px; transition: transform .16s ease; }
.nav-subgroup-chevron.expanded { transform: rotate(90deg); }
.nav-subgroup-children { display: grid; }
.nav-subgroup-item { padding-left: 17px; }
.overlay-scrim { position: fixed; z-index: 40; inset: var(--header-height) 0 0; border: 0; background: rgb(12 31 48 / 35%); backdrop-filter: blur(1px); }
.utility-panel { position: fixed; z-index: 46; top: var(--header-height); right: 0; bottom: 0; width: min(390px, 100vw); overflow-y: auto; background: #f6f8fa; box-shadow: -14px 0 35px rgb(12 31 48 / 22%); }
.app-panel { position: fixed; z-index: 46; top: calc(var(--header-height) + 8px); left: 10px; right: auto; margin-right: 10px; bottom: auto; width: auto; max-width: 50%; height: auto; max-height: calc(100vh - 100px); overflow-y: auto; border: 2px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 18px 45px rgb(8 29 46 / 25%); }
:is(.utility-panel, .app-panel) > header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; color: #fff; background: var(--navy); }
:is(.utility-panel, .app-panel) > header > div { flex: 1; min-width: 0; }
.app-panel .feature-search { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--border); border-radius: 7px; outline: none; }
.app-panel .feature-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(40 122 181 / 10%); }
:is(.utility-panel, .app-panel) h2 { margin: 0; font-size: 19px; }
:is(.utility-panel, .app-panel) header button { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgb(255 255 255 / 9%); cursor: pointer; margin-left: 15px;}
:is(.utility-panel, .app-panel) section { padding: 20px; }
.panel-card { position: relative; margin-bottom: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 3px 10px rgb(18 48 74 / 4%); }
.panel-card.unread { border-left: 3px solid var(--cyan); }
.panel-card strong { font-size: 13px; }
.panel-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.panel-card time { display: block; margin-top: 10px; color: #9aa6b0; font-size: 10px; }
.panel-search { display: grid; gap: 7px; margin-bottom: 18px; font-size: 12px; font-weight: 700; }
.panel-search input { height: 42px; padding: 0 13px; border: 1px solid var(--border); border-radius: 7px; outline: none; }
.panel-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(40 122 181 / 10%); }
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.feature-grid button { min-height: 105px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.feature-grid .app-icon { color: var(--blue); }
.feature-empty { grid-column: 1 / -1; margin: 0; padding: 18px; color: var(--muted); text-align: center; }

.welcome-card { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 38px; border-radius: 12px; color: #fff; background: linear-gradient(115deg, #173858 10%, #20577d 62%, #27869a); box-shadow: var(--shadow); }
.eyebrow { opacity: .65; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.welcome-card h1 { margin: 9px 0 10px; font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.03em; }
.welcome-card p { max-width: 700px; margin: 0; opacity: .72; font-size: 14px; line-height: 1.65; }
.release-badge { min-width: 155px; padding: 16px 18px; border: 1px solid rgb(255 255 255 / 17%); border-radius: 8px; background: rgb(255 255 255 / 7%); }
.release-badge span { display: block; margin-bottom: 6px; opacity: .55; font-size: 9px; letter-spacing: .13em; }
.release-badge strong { font-size: 12px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.status-grid article { min-height: 105px; display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.status-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: #eaf3f9; }
.status-icon.online { color: var(--green); background: #e8f7f1; }
.status-grid small, .module-card header small { display: block; margin-bottom: 5px; color: #8998a5; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.status-grid strong { display: block; font-size: 14px; }
.status-grid p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr); gap: 18px; }
.module-card { border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.module-card > header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.module-card h2 { margin: 0; font-size: 17px; }
.module-card header button { border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; }
.quick-actions button, .quick-actions a { min-height: 135px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px; border: 1px solid var(--border); border-radius: 9px; color: inherit; background: #fff; cursor: pointer; text-align: left; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.quick-actions button:hover, .quick-actions a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(20 54 78 / 10%); }
.quick-actions button > span, .quick-actions a > span { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 8px; color: var(--blue); background: #eaf3f9; }
.quick-actions strong { font-size: 13px; }
.quick-actions small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.migration-card ol { margin: 0; padding: 22px; list-style: none; }
.migration-card li { position: relative; display: flex; align-items: center; gap: 13px; min-height: 62px; }
.migration-card li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 47px; bottom: -15px; width: 1px; background: var(--border); }
.migration-card li > span { position: relative; z-index: 1; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); background: #fff; font-size: 11px; font-weight: 800; }
.migration-card li.done > span { border-color: var(--green); color: #fff; background: var(--green); }
.migration-card li strong, .migration-card li small { display: block; }
.migration-card li strong { font-size: 12px; }
.migration-card li small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.loading-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(11 31 48 / 57%); backdrop-filter: blur(2px); }
.loading-card { min-width: min(330px, 90vw); display: flex; flex-direction: column; align-items: center; padding: 30px; border-radius: 12px; background: #fff; box-shadow: 0 25px 70px rgb(0 0 0 / 25%); }
.loading-card small { margin-top: 7px; color: var(--muted); }
.spinner { width: 37px; height: 37px; margin-bottom: 17px; border: 3px solid #dce7ee; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
.app-boot-screen { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); color: #fff; background: radial-gradient(ellipse at 50% 42%, #294f72 0%, #193757 52%, #102943 100%); }
.app-boot-card { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.app-boot-card img { width: 64px; height: 64px; object-fit: contain; }
.app-boot-spinner { width: 30px; height: 30px; margin-top: 30px; border: 3px solid rgb(255 255 255 / 28%); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.app-boot-card p { margin: 14px 0 0; color: rgb(255 255 255 / 84%); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .app-boot-spinner { animation-duration: 1.8s; } }
@keyframes spin { to { transform: rotate(360deg); } }

.login-page { height: 100vh; min-height: 0; overflow-y: auto; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 75% 18%, rgb(46 140 169 / 30%), transparent 34%), linear-gradient(135deg, #102a46, #193f62 58%, #1d6578); }
.login-card { width: min(440px, 100%); overflow: hidden; border: 1px solid rgb(255 255 255 / 20%); border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgb(4 19 31 / 38%); }
.login-brand { min-height: 98px; display: flex; align-items: center; gap: 2px; padding: 15px 30px; color: #fff; background: linear-gradient(110deg, var(--navy-deep), var(--navy) 62%, #245f87); }
.login-brand img { width: 82px; height: 66px; object-fit: contain; filter: drop-shadow(0 3px 4px rgb(0 0 0 / 20%)); }
.login-brand > span { position: relative; display: flex; flex-direction: column; margin-left: -7px; line-height: 1; }
.login-brand strong { font-size: 31px; font-weight: 850; letter-spacing: .025em; }
.login-brand strong b { color: #ed5d5d; }
.login-brand small { position: absolute; top: calc(100% + 3px); right: 0; font-size: 10px; font-weight: 750; letter-spacing: .14em; opacity: .72; }
.login-copy { padding: 30px 32px 14px; }
.login-copy .eyebrow { color: var(--blue); }
.login-copy h1 { margin: 8px 0; color: var(--navy-deep); font-size: 27px; letter-spacing: -.025em; }
.login-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-card form { display: grid; gap: 15px; padding: 12px 32px 30px; }
.login-card label { display: grid; gap: 7px; color: #4d6274; font-size: 11px; font-weight: 750; }
.login-card input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(40 122 181 / 12%); }
.login-card form button { height: 47px; margin-top: 3px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); cursor: pointer; font-weight: 800; }
.login-card form button:hover { background: #216da4; }
.login-card form button:disabled { cursor: wait; opacity: .65; }
.login-error { margin: 0; padding: 10px 12px; border-radius: 7px; color: #a32626; background: #fff0f0; font-size: 12px; }
.login-card footer { padding: 14px 24px; border-top: 1px solid var(--border); color: #8696a4; background: #f8fafb; text-align: center; font-size: 10px; }

.legacy-page-heading > div:first-child,
.pos-title > div:first-child { min-width: 0; }
.legacy-page-heading h1,
.pos-title h1,
.not-found-page h1 {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.legacy-page-heading h1::-webkit-scrollbar,
.pos-title h1::-webkit-scrollbar,
.not-found-page h1::-webkit-scrollbar { display: none; }
.legacy-page-heading h1 .app-icon,
.pos-title h1 .app-icon { flex: 0 0 auto; }
.page-title-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.product-form-panel .eyebrow { color: var(--blue); }
.primary-button, .secondary-button, .warning-button, .cancel-button, .danger-button { min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-weight: bold; }
.primary-button { border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.primary-button:hover { background: #216da4; }
.secondary-button { border: 1px solid var(--border); color: #526879; background: #fafafa; }
.success-button { border-color: #008d4c !important; color: #fff !important; background: #00a65a !important; }
.success-button:hover { background: #008d4c !important; }
.warning-button { border: 1px solid #eea236; color: #fff; background: #f0ad4e; }
.warning-button:hover { border-color: #d58512; background: #ec971f; }
.cancel-button { border-color: #d73925 !important; color: #fff !important; background: #dd4b39 !important; }
.cancel-button:hover { background: #c23321 !important; }
.success-button::before, .cancel-button::before { display: inline-block; margin-right: 7px; font-weight: 900; line-height: 1; }
.success-button::before { content: '\2713'; }
.cancel-button::before { content: '\2715'; }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .55; }
.product-form-panel label { display: grid; gap: 6px; color: #536979; font-size: 10px; font-weight: 800; letter-spacing: .025em; }
.product-form-panel input:not([type="checkbox"]), .product-form-panel textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; color: #263849; background: #fff; outline: none; font-size: 12px; font-weight: 500; letter-spacing: normal; }
.product-form-panel input:focus, .product-form-panel textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(40 122 181 / 10%); }
.offline-notice { display: flex; align-items: center; gap: 7px; color: #9b6815; font-size: 11px; font-weight: 750; white-space: nowrap; }
.offline-notice .app-icon { width: 18px; }
.page-error { margin: 0 0 14px; padding: 11px 13px; border: 1px solid #f2caca; border-radius: 7px; color: #9e2929; background: #fff3f3; font-size: 12px; }
.product-list-card { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.product-table-wrap { overflow-x: auto; }
.product-table { width: 100%; border-collapse: collapse; }
.product-table th { padding: 12px 16px; color: #82919d; background: #f7f9fb; text-align: left; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.product-table td { padding: 14px 16px; border-top: 1px solid #edf1f4; font-size: 12px; vertical-align: middle; }
.product-table td > strong, .product-table td > small { display: block; }
.product-table td > small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 12px; color: #16764e; background: #e8f7f1; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-pill.inactive { color: #75616b; background: #f0edef; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions button, .product-cards footer button, .pagination button { padding: 6px 8px; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.row-actions button:disabled, .product-cards footer button:disabled, .pagination button:disabled { cursor: not-allowed; opacity: .4; }
.row-actions .danger-link, .product-cards footer .danger-link { color: #b94444; }
.empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); font-size: 12px; }
.empty-state .app-icon { width: 38px; height: 38px; margin-bottom: 5px; color: #9babb7; }
.empty-state strong { color: #405568; font-size: 14px; }
.pagination { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; align-items: center; gap: 9px; }
.pagination strong { color: #526879; font-size: 10px; }
.product-cards { display: none; }
.form-backdrop { position: fixed; z-index: 80; inset: var(--header-height) 0 0; display: flex; justify-content: flex-end; background: rgb(10 29 46 / 48%); backdrop-filter: blur(1px); }
.product-form-panel { width: min(650px, 100vw); height: 100%; overflow-y: auto; background: #fff; box-shadow: -16px 0 45px rgb(8 29 46 / 24%); }
.product-form-panel > header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.product-form-panel h2 { margin: 5px 0 0; color: var(--navy-deep); font-size: 21px; }
.close-form { width: 38px; height: 38px; border: 0; border-radius: 50%; color: #617384; background: #f3f6f8; cursor: pointer; font-size: 24px; line-height: 1; }
.product-form-panel form { padding: 22px 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.product-form-panel label > small { color: #b33a3a; font-weight: 600; }
.product-form-panel textarea { resize: vertical; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; padding: 16px; border: 1px solid var(--border); border-radius: 8px; }
.option-grid label { display: flex; align-items: center; gap: 8px; color: #4f6475; font-size: 11px; letter-spacing: normal; }
.product-form-panel form > footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.back-link { padding: 0; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.editor-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.success-message { margin: 0 0 14px; padding: 11px 13px; border: 1px solid #bde5d4; border-radius: 7px; color: #16764e; background: #effaf5; font-size: 12px; }
.editor-loading { min-height: 340px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: #fff; box-shadow: var(--shadow); font-size: 12px; }
.product-editor { overflow: visible; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.editor-tabs { position: sticky; z-index: 20; top: 0; display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); border-radius: 10px 10px 0 0; background: #f7f9fb; scrollbar-width: thin; }
.editor-tabs button { min-width: max-content; min-height: 48px; padding: 0 17px; border: 0; border-right: 1px solid #e8edf1; color: #697b8a; background: transparent; cursor: pointer; font-weight: 750; }
.editor-tabs button:hover { color: var(--blue); background: #f0f6fa; }
.editor-tabs button.active { position: relative; color: var(--blue); background: #fff; }
.editor-tabs button.active::after { content: ''; position: absolute; right: 14px; bottom: 0; left: 14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.editor-section { min-height: 480px; padding: 26px; }
.editor-section > header { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #edf1f4; }
.editor-section > header h2, .editor-card h3 { margin: 0; color: var(--navy-deep); }
.editor-section > header h2 { font-size: 19px; }
.editor-section > header p, .editor-card > p, .card-title-row p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.editor-grid { display: grid; gap: 16px; }
.editor-grid.two-columns { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.editor-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editor-grid.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.editor-grid .span-2 { grid-column: span 2; }
.editor-grid .span-4 { grid-column: 1 / -1; }
.editor-grid.adaptive-form-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.editor-grid.adaptive-form-grid > label { grid-column: span var(--form-field-span, 3); min-width: 0; }
.form-date-time-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .8fr); align-items: center; gap: 0; }
.editor-section label { display: grid; align-content: start; gap: 2px; color: #536979; font-weight: bold; letter-spacing: .025em; }
.editor-section input:not([type="checkbox"]), .editor-section select, .editor-section textarea, .repeat-row input, .repeat-row select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; color: #263849; background: #fff; outline: none; font-size: 12px; font-weight: 500; letter-spacing: normal; }
.form-date-time-pair > span { display: grid; place-items: center; min-height: 42px; padding: 0 7px; border-block: 1px solid var(--border); color: #657785; background: #f4f7f9; font-size: 11px; font-weight: 700; }
/* Joined controls keep their outer corners; touching corners stay square, including scoped forms. */
.input-group > :is(input, select, button):not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group > :is(input, select, button):not(:first-child) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.editor-section textarea { resize: vertical; }
.editor-section input:focus, .editor-section select:focus, .editor-section textarea:focus, .repeat-row input:focus, .repeat-row select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(40 122 181 / 10%); }
.editor-section input[readonly] { color: #526879; background: #e9ecef; font-weight: 800; }
.editor-section label > small { color: #b33a3a; font-weight: 600; }
.switch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.switch-grid > label { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid var(--border); border-radius: 8px; color: #435a6c; background: #fbfcfd; cursor: pointer; }
.switch-grid span { display: grid; gap: 4px; }
.switch-grid small { color: var(--muted); font-size: 9px; font-weight: 500; }
.editor-card { margin-top: 20px; padding: 20px; border: 1px solid var(--border); border-radius: 9px; background: #fbfcfd; }
.editor-card h3 { font-size: 14px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-title-row.sub { margin: 18px 0 10px; }
.card-title-row button, .editor-card > button { min-height: 34px; padding: 0 11px; border: 1px solid #cbd8e1; border-radius: 6px; color: var(--blue); background: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.card-title-row .danger-link { color: #b94444; }
.conversion-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(180px, .65fr); align-items: end; gap: 14px; margin-top: 18px; }
.conversion-grid fieldset { display: grid; grid-template-columns: minmax(95px, .7fr) minmax(150px, 1.3fr); gap: 9px; margin: 0; padding: 13px; border: 1px solid var(--border); border-radius: 8px; }
.conversion-grid fieldset:last-child { grid-template-columns: 1fr; }
.conversion-grid legend { padding: 0 5px; color: var(--navy); font-size: 10px; font-weight: 800; }
.equivalence { align-self: center; color: var(--muted); font-size: 10px; white-space: nowrap; }
.standalone-check { min-height: 42px; display: flex !important; align-items: center !important; gap: 9px !important; margin: 17px 0; }
.section-notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid #cfe3ef; border-radius: 7px; color: #416b82; background: #eff7fb; font-size: 11px; line-height: 1.5; }
.responsive-table { overflow-x: auto; }
.responsive-table table { width: 100%; min-width: 800px; border-collapse: collapse; }
.responsive-table th { padding: 9px; color: #7c8d9a; background: #f0f4f6; text-align: left; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.responsive-table td { padding: 8px; border-top: 1px solid #e6ecef; font-size: 11px; }
.responsive-table td button, .repeat-row > button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #b94444; background: #fff0f0; cursor: pointer; font-size: 17px; }
.repeat-list { display: grid; gap: 9px; }
.repeat-row { display: grid; align-items: center; gap: 9px; }
.repeat-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.repeat-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.repeat-row.composition { grid-template-columns: 2fr repeat(4, minmax(90px, .7fr)) auto; }
.empty-inline { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.field-error-inline { margin: 5px 0 0; color: #b33a3a; font-size: 11px; font-weight: 700; }
.image-upload-button { display: inline-flex !important; cursor: pointer; }
.image-upload-button input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.image-upload-button span { min-height: 36px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid #cbd8e1; border-radius: 6px; color: var(--blue); background: #fff; font-size: 10px; font-weight: 800; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.media-grid > .empty-inline { grid-column: 1 / -1; }
.media-card { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.media-card > img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: contain; background: #f2f5f7; }
.media-card > label { padding: 11px; }
.media-card > footer { display: grid; grid-template-columns: 32px auto 32px 1fr; align-items: center; gap: 5px; padding: 0 11px 11px; }
.media-card > footer span { color: var(--muted); text-align: center; font-size: 10px; }
.media-card > footer button { min-height: 30px; border: 1px solid var(--border); border-radius: 5px; color: var(--blue); background: #fff; cursor: pointer; font-weight: 800; }
.media-card > footer button:disabled { cursor: not-allowed; opacity: .35; }
.media-card > footer .danger-link { margin-left: 5px; color: #b94444; }
.variation-list { display: grid; gap: 14px; }
.variation-list .editor-card { margin-top: 0; }
.editor-footer { position: sticky; z-index: 19; bottom: 0; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 25px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; background: rgb(255 255 255 / 96%); box-shadow: 0 -8px 20px rgb(18 48 74 / 6%); backdrop-filter: blur(7px); }
.editor-footer-navigation, .editor-footer-actions { display: flex; align-items: center; gap: 10px; }
.editor-footer-actions { margin-left: auto; }
.editor-footer-navigation .secondary-button { width: 42px; padding: 0; font-size: 17px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.legacy-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1px; margin-bottom: 15px; padding: 5px 15px; border-bottom: 1px solid #d9e0e5; background: #fbfbfb; box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);}
.legacy-page-heading h1 { display: flex; align-items: center; gap: 10px; margin: 5px 0 4px; color: #333; font-size: 24px; font-weight: 500; }
.legacy-page-heading h1 .app-icon { width: 23px; height: 23px; }
.legacy-page-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.page-history-navigation { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.page-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 7px; overflow-x: auto; color: #73818b; white-space: nowrap; scrollbar-width: none; -ms-overflow-style: none; font-size: 14px; }
.page-breadcrumb::-webkit-scrollbar { display: none; }
.page-breadcrumb a { text-decoration: none;}
.page-breadcrumb a:hover { text-decoration: underline; }
.page-breadcrumb strong { color: #3f4d56; font-weight: 800; }
.page-breadcrumb > span[aria-hidden="true"] { color: #b2bbc1; }
.history-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.history-actions button { width: 34px; height: 32px; border: 1px solid #d2d8dc; border-radius: 3px; color: #667784; background: #fff; cursor: pointer; }
.legacy-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.legacy-toolbar-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.legacy-action { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; border: 1px solid transparent; border-radius: 3px; color: #fff; cursor: pointer; box-shadow: inset 0 -1px rgb(0 0 0 / 9%); font-size: 12px; font-weight: 650; }
.legacy-action .app-icon { width: 15px; height: 15px; }
.legacy-action.success { border-color: #008d4c; background: #00a65a; }
.legacy-action.maroon { border-color: #b13c5a; background: #d81b60; }
.legacy-action.info { border-color: #00acd6; background: #00c0ef; }
.legacy-action.primary { border-color: #286090; background: #337ab7; }
.legacy-search { min-width: min(100%, 430px); display: grid; grid-template-columns: minmax(170px, 1fr) 38px auto; }
.legacy-search input, .advanced-search-panel input:not([type="checkbox"]), .advanced-search-panel select { width: 100%; height: 34px; padding: 6px 10px; border: 1px solid #d2d6de; color: #555; background: #fff; outline: none; border-radius: 7px 0 0 7px;}
.legacy-search button { min-height: 34px; padding: 0 11px; border: 1px solid #d2d6de; border-left: 0; color: #555; background: #fff; cursor: pointer; font-size: 11px; }
.legacy-search button .app-icon, .transaction-item-search button .app-icon { width: 16px; height: 16px; vertical-align: middle; }
.search-icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; }
.search-icon-button { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.legacy-search button.primary-button, .legacy-action.primary-button { border-color: var(--blue); color: #fff; background: var(--blue); }
.legacy-search button.primary-button:hover, .legacy-action.primary-button:hover { background: #216da4; }
.advanced-search-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.advanced-search-button { margin-left: 4px; }
.advanced-search-label { display: inline-flex; align-items: center; gap: 5px; }
.advanced-search-icon { display: none; }
.legacy-search input:focus, .advanced-search-panel input:focus, .advanced-search-panel select:focus { border-color: #3c8dbc; }
.advanced-search-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 12px; margin: 0 0 15px; padding: 15px; border: 1px solid #d2d6de; border-top: 3px solid #3c8dbc; background: #fff; }
.advanced-search-panel label { display: grid; gap: 6px; color: #555; font-size: 11px; font-weight: 700; }
.legacy-table-card { overflow: hidden; border-top: 3px solid #d2d6de; background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / 10%); }
.legacy-table-wrap { overflow-x: auto; }
.legacy-table { width: 100%; min-width: 1120px; border-collapse: collapse; color: #333; background: #fff; }
.legacy-table.simple { min-width: 650px; }
.legacy-table th, .legacy-table td { padding: 9px 8px; border: 1px solid #e1e5e8; text-align: left; vertical-align: middle; }
.legacy-table th { color: #3c8dbc; background: #f8fafb; font-weight: 750; white-space: nowrap; }
.legacy-table th.action-column { text-align: center; }
.legacy-table tbody tr:hover { background: #f5f9fc; }
.legacy-table .center { text-align: center; }
.legacy-status { display: inline-flex; padding: 3px 7px; border-radius: 3px; font-size: 10px; font-weight: 800; }
.legacy-status.active { color: #16824f; background: #e8f7ef; }
.legacy-row-actions { display: flex; justify-content: center; gap: 4px; }
.legacy-row-actions button { width: 29px; height: 27px; border: 1px solid #d2d6de; border-radius: 3px; color: #3c8dbc; background: #fff; cursor: pointer; }
.legacy-row-actions button:last-child { color: #dd4b39; }
.legacy-pagination { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 12px; color: #667784; font-size: 11px; }
.legacy-pagination div { display: flex; }
.legacy-pagination button, .legacy-pagination strong { min-width: 34px; height: 31px; display: grid; place-items: center; margin-left: -1px; padding: 0 9px; border: 1px solid #ddd; color: #337ab7; background: #fff; font-size: 11px; }
.legacy-pagination strong { color: #fff; background: #337ab7; }
.legacy-pagination button:disabled { color: #aaa; cursor: not-allowed; }
.box {   
  border: #CCCCCC solid 1px;
  border-top: 1px solid #CCCCCC;
  margin-bottom: 20px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  margin: 0 15px;
}
.top-border {border: 1px solid var(--border); border-top: 3px solid #3c8dbc; border-radius: 7px;}
.client-editor { border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.alert { margin: 0 0 16px; padding: 15px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; line-height: 1.45; }
.alert-success { color: #3c763d; background: #dff0d8; border-color: #d6e9c6; }
.alert-info { color: #31708f; background: #d9edf7; border-color: #bce8f1; }
.alert-warning { color: #8a6d3b; background: #fcf8e3; border-color: #faebcc; }
.alert-danger { color: #a94442; background: #f2dede; border-color: #ebccd1; }
.alert strong { color: inherit; }
.nfe-form-page > form > .alert { margin: 16px 24px 0; }
.nfe-form-page .editor-section { min-height: 0; padding: 20px 24px 24px; border-bottom: 1px solid #e7edf1; }
.nfe-form-page .editor-section > header { margin-bottom: 18px; padding-bottom: 12px; }
.nfe-checks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }
.nfe-check { display: inline-flex !important; align-items: center !important; gap: 8px !important; margin-top: 16px; color: #435a6c !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: normal !important; cursor: pointer; }
.nfe-checks .nfe-check { margin-top: 0; }
.nfe-subsection { margin-top: 20px; padding: 17px; border: 1px solid #dce5eb; border-radius: 7px; background: #f8fafb; }
.nfe-subsection h3 { margin: 0 0 15px; color: var(--navy-deep); font-size: 14px; }
.nfe-foreign-row { margin: 12px 0; padding: 14px; border: 1px solid #dce5eb; border-radius: 6px; background: #fff; }
.nfe-foreign-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nfe-foreign-row-heading button { min-height: 30px; padding: 4px 9px; font-size: 11px; }
.nfe-inline-group { margin-top: 15px; }
.nfe-product-tabs { position: static; margin: -2px 0 0; border: 1px solid var(--border); border-radius: 5px 5px 0 0; }
.nfe-product-content { min-height: 125px; padding: 16px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 5px 5px; }
.nfe-product-table { min-width: 780px; }
.nfe-product-table input, .nfe-product-table select { min-width: 80px; width: 100%; min-height: 34px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 5px; background: #fff; font: inherit; }
.nfe-product-table th:first-child { width: auto; }
.nfe-product-table td.nfe-product-number { width: 1%; padding: 0 8px; background: rgb(0 0 0 / 3%); text-align: center; white-space: nowrap; }
.nfe-product-table .nProduto { margin: 0; font-size: 14px; font-weight: 600; }
.nfe-product-table td:nth-child(3), .nfe-product-table td:nth-child(4), .nfe-product-table td:nth-child(5) { width: 13%; }
.nfe-product-table .nfe-row-actions { white-space: nowrap; }
.nfe-row-actions button { min-height: 30px; padding: 4px 9px; font-size: 11px; }
.nfe-product-table .editar-produto .app-icon, .nfe-form-page .remove-produto .app-icon { width: 14px; height: 14px; }
.nfe-row-actions button + button { margin-left: 5px; }
.table-empty, .legacy-table td.table-empty { margin: 0; padding: 22px 10px; color: var(--muted); text-align: center; font-size: 12px; }
.nfe-add-row, .nfe-calculate { margin-top: 14px; }
.nfe-product-detail { margin-bottom: 14px; border: 1px solid #dce5eb; border-radius: 7px; background: #fff; }
.nfe-product-detail-surface { padding: 15px; }
.nfe-product-detail label { display: grid; align-content: start; gap: 7px; color: #536979; font-size: 10px; font-weight: 800; letter-spacing: .025em; }
.nfe-product-detail input:not([type="checkbox"]), .nfe-product-detail select, .nfe-product-detail textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; color: #263849; background: #fff; font-size: 12px; font-weight: 500; }
.nfe-product-detail input:focus, .nfe-product-detail select:focus, .nfe-product-detail textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(40 122 181 / 10%); }
.nfe-product-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e7edf1; color: var(--navy-deep); font-size: 13px; }
.nfe-product-detail-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.nfe-product-detail-actions button { padding: 4px 9px; font-size: 11px; }
.nfe-product-detail-heading button { min-width: 34px; min-height: 30px; cursor: pointer; }
.nfe-product-detail-heading .nfe-product-modal-close { border: 1px solid var(--border); border-radius: 5px; }
.nfe-product-detail.is-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; margin: 0; padding: 15px; border: 0; border-radius: 0; background: rgb(20 37 52 / 70%); }
.nfe-product-detail.is-modal .nfe-product-detail-surface { width: min(100%, 1100px); max-height: min(90vh, 900px); overflow-y: auto; padding: 20px; border-radius: 9px; background: #fff; box-shadow: 0 20px 55px rgb(0 0 0 / 25%); }
.nfe-product-detail.is-modal .nfe-product-detail-heading { margin-bottom: 12px; }
.nfe-product-detail.is-modal .nfe-product-modal-close { color: #fff; background: #dd4b39; font-size: 20px; line-height: 1; }
.nfe-product-detail.is-modal .nfe-product-tabs { margin-bottom: 17px; }
.nfe-payment-list { margin-top: 15px; }
.nfe-payment-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 12px; margin: 0 0 12px; }
.nfe-payment-row > button { min-height: 42px; }
.nfe-additional-grid textarea { min-height: 120px; }
.nfe-additional-grid small { color: var(--muted) !important; }
.nfe-form-page .editor-footer-actions { flex-wrap: wrap; justify-content: flex-end; }
.nfe-form-page .editor-footer-actions button:disabled, .nfe-form-page .nfe-calculate:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 720px) {
  main#main-content > .nfe-form-page:has(.editor-footer) { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .nfe-form-page .editor-section { padding: 16px 14px 20px; }
  .nfe-form-page > form > .alert { margin: 12px 14px 0; }
  .nfe-payment-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nfe-payment-row > button { grid-column: 2; justify-self: end; }
  .nfe-product-detail.is-modal { padding: 5px; }
  .nfe-product-detail.is-modal .nfe-product-detail-surface { max-height: calc(100dvh - 10px); padding: 12px; }
  .nfe-form-page .editor-footer { justify-content: flex-end; padding: 8px 9px calc(8px + env(safe-area-inset-bottom)); }
  .nfe-form-page .editor-footer-actions { gap: 5px; }
  .nfe-form-page .editor-footer-actions button { min-height: 38px; padding: 5px 7px; font-size: 10px; }
}
.classification-card { margin-bottom: 14px; padding: 18px 22px; background: #fff; }
.classification-card > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.classification-card > header .app-icon { width: 24px; color: #3c8dbc; }
.classification-card h2, .classification-card p { margin: 0; }
.classification-card h2 { font-size: 15px; }
.classification-card p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.classification-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.classification-grid label { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e0e6ea; border-radius: 5px; color: #4b6070; background: #f9fbfc; cursor: pointer; font-weight: 800; text-transform: uppercase; }
.empty-editor-card { min-height: 270px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-editor-card > .app-icon { width: 44px; height: 44px; margin-bottom: 12px; color: #8aa0af; }
.empty-editor-card > span { margin: 5px 0 15px; color: var(--muted); font-size: 11px; }
.empty-editor-card > button { min-height: 36px; padding: 0 13px; border: 1px solid #00a65a; border-radius: 4px; color: #fff; background: #00a65a; cursor: pointer; font-size: 11px; font-weight: 750; }
.client-files-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 15px; }
.file-drop { min-height: 130px; display: flex !important; align-items: center !important; justify-content: center; flex-direction: column; gap: 8px !important; border: 1px dashed #9eb2bf; border-radius: 7px; color: #3c8dbc !important; background: #f8fbfd; cursor: pointer; }
.file-drop .app-icon { width: 32px; height: 32px; }
.file-drop input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; overflow: hidden; clip: rect(0 0 0 0); }
.editor-section > header h2 { display: flex; align-items: center; gap: 9px; }
.editor-section > header h2 .app-icon { width: 20px; height: 20px; }
.fade-enter-active, .fade-leave-active { transition: opacity .16s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.panel-enter-active, .panel-leave-active { transition: transform .2s ease; }
.panel-enter-from, .panel-leave-to { transform: translateX(100%); }
.navigation-enter-active, .navigation-leave-active { transition: transform .2s ease; }
.navigation-enter-from, .navigation-leave-to { transform: translateX(-100%); }

@media (max-width: 950px) {
  .optional-action, .user-copy { display: none; }
  .brand { min-width: 0; padding: 0 15px; }
  .content-grid { grid-template-columns: 1fr; }
  .editor-grid.four-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid .span-4 { grid-column: span 2; }
  .editor-grid.adaptive-form-grid > label { grid-column: span 6; }
  .conversion-grid { grid-template-columns: 1fr; }
  .equivalence { text-align: center; }
  .repeat-row.composition { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repeat-row.composition > button { justify-self: end; }
  .classification-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legacy-toolbar { align-items: stretch; flex-direction: column; }
  .legacy-search { width: 100%; }
}

@media (max-width: 720px) {
  .app-panel { max-width: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .header-button { width: 46px; }
  .header-button.mobile-menu-button { display: grid; }
  .header-button.desktop-menu-button, .header-button.app-launcher-button { display: none; }
  .header-actions > .header-button { display: none; }
  .header-actions > .header-button.mobile-actions-toggle { display: grid; }
  .top-header.mobile-actions-expanded .header-left, .top-header.mobile-actions-expanded .header-actions .user-button, .top-header.mobile-actions-expanded .header-actions .pdv-button { display: none; }
  .top-header.mobile-actions-expanded .header-actions { width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .top-header.mobile-actions-expanded .header-actions::-webkit-scrollbar { display: none; }
  .top-header.mobile-actions-expanded .header-actions > .header-button { display: grid; flex: 0 0 46px; }
  .top-header.mobile-actions-expanded .header-actions .mobile-actions-toggle { position: sticky; left: 0; z-index: 1; order: -2; background: var(--navy-deep); }
  .top-header.mobile-actions-expanded .header-actions .mobile-app-launcher-button { order: -1; margin-left: auto; }
  .brand { min-width: 0; padding: 0 8px; }
  .brand-mark { width: 44.8px; height: 36px; }
  .brand-copy strong { font-size: 23px; }
  .nav-scrollbar-thumb { right: 0; width: 4px; }
  .nav-scrollbar:hover .nav-scrollbar-thumb, .nav-scrollbar.focused .nav-scrollbar-thumb, .nav-scrollbar.dragging .nav-scrollbar-thumb { right: 2px; width: 21px; }
  .main-scrollbar-thumb { right: 0; width: 4px; }
  .main-scrollbar:hover .main-scrollbar-thumb, .main-scrollbar.focused .main-scrollbar-thumb, .main-scrollbar.dragging .main-scrollbar-thumb { right: 2px; width: 21px; }
  .user-button { gap: 4px; padding: 0 6px; }
  main#main-content { min-height: 0; }
  main#main-content > .main-content:has(.editor-footer) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .welcome-card { min-height: 210px; align-items: flex-start; flex-direction: column; padding: 25px; }
  .release-badge { width: 100%; }
  .status-grid { grid-template-columns: 1fr; gap: 10px; }
  .status-grid article { min-height: 88px; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-actions button, .quick-actions a { min-height: 100px; }
  .page-title-actions { align-items: stretch; flex-direction: column; }
  .product-table-wrap { display: none; }
  .product-cards { display: grid; gap: 10px; padding: 10px; background: #f5f7f9; }
  .product-cards article { padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
  .product-cards article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .product-cards header div { min-width: 0; display: grid; gap: 4px; }
  .product-cards header small { color: var(--muted); font-size: 9px; }
  .product-cards header strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
  .product-cards dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 15px 0; }
  .product-cards dl div { padding: 9px; border-radius: 6px; background: #f7f9fb; }
  .product-cards dt { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
  .product-cards dd { margin: 5px 0 0; font-size: 11px; font-weight: 750; }
  .product-cards footer { display: flex; justify-content: flex-end; border-top: 1px solid #edf1f4; padding-top: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .option-grid { grid-template-columns: 1fr; }
  .editor-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .editor-section { min-height: 430px; padding: 17px; }
  .editor-grid.two-columns, .editor-grid.three-columns, .editor-grid.four-columns, .switch-grid { grid-template-columns: 1fr; }
  .editor-grid.adaptive-form-grid { grid-template-columns: 1fr; }
  .editor-grid.adaptive-form-grid > label { grid-column: auto; }
  .form-date-time-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, .75fr); }
  .editor-grid .span-2, .editor-grid .span-4 { grid-column: auto; }
  .conversion-grid fieldset { grid-template-columns: 1fr 1fr; }
  .repeat-row.two, .repeat-row.three, .repeat-row.composition { grid-template-columns: 1fr; padding: 12px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
  .repeat-row > button, .repeat-row.composition > button { justify-self: end; }
  .editor-footer { position: fixed; z-index: 30; inset-inline: 0; bottom: 0; width: 100%; max-width: none; margin: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-radius: 0; }
  .editor-footer-navigation, .editor-footer-actions { gap: 7px; }
  .legacy-page-heading, .legacy-pagination { align-items: stretch; flex-direction: column; }
  .page-history-navigation { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 7px; }
  .page-breadcrumb { grid-column: 2; grid-row: 1; justify-self: stretch; }
  .page-history-navigation > .history-actions { display: contents; }
  .page-history-navigation > .history-actions button:first-child { grid-column: 1; grid-row: 1; }
  .page-history-navigation > .history-actions button:last-child { grid-column: 3; grid-row: 1; }
  .legacy-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .legacy-search { min-width: 0; grid-template-columns: minmax(0, 1fr) 38px; }
  /* Keep the input and search actions on one row at narrow widths. */
  .legacy-search button[aria-label^="Pesquisar"] { grid-column: auto; border-left: 1px solid #d2d6de; }
  .legacy-search.advanced-search-form { grid-template-columns: minmax(0, 1fr) 38px 38px; }
  .legacy-search .advanced-search-button { grid-column: auto; border-left: 0; }
  .advanced-search-button { width: 38px; min-width: 38px; padding: 0 !important; }
  .advanced-search-button .advanced-search-label { display: none; }
  .advanced-search-button .advanced-search-icon { display: inline; font-size: 16px; line-height: 1; }
  .advanced-search-panel, .classification-grid, .client-files-grid { grid-template-columns: 1fr; }
  .legacy-pagination div { overflow-x: auto; }
}

@media (max-width: 430px) {
  .brand-copy { display: none; }
  .app-body { --side-navigation-width: min(310px, 92vw); }
}

.pos-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.pos-title h1 { display:flex; align-items:center; gap:8px; margin:3px 0 0; font-size:22px; }
.pos-title>button { padding:8px 12px; border:1px solid #cbd2dc; background:#fff; cursor:pointer; }
.pos-workspace { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr); border:1px solid #dce1e8; background:#fff; min-height:560px; }
.pos-product-panel,.pos-order-panel { padding:18px; }
.pos-product-panel { border-right:5px solid rgba(233,233,233,.85); }
.pos-product-panel h2 { margin:0 0 12px; font-size:14px; text-transform:uppercase; }
.pos-search { width:100%; height:48px; padding:0 14px; border:2px solid #2954ab; font-size:16px; }
.pos-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:15px; }
.pos-fields label { display:flex; flex-direction:column; gap:5px; color:#5b6675; font-size:11px; font-weight:800; text-transform:uppercase; }
.pos-fields .wide { grid-column:span 2; }
.pos-fields input,.pos-fields select { min-height:43px; min-width:0; padding:8px; border:1px solid #cbd2dc; background:#fff; }
.pos-discount { display:grid; grid-template-columns:60px 1fr; }
.pos-item-actions,.pos-order-actions { display:flex; gap:8px; margin-top:16px; }
.pos-item-actions button,.pos-order-actions button { min-height:42px; padding:0 14px; border:0; background:#e7ebf0; font-weight:800; text-transform:uppercase; cursor:pointer; }
.pos-item-actions .primary-button { color:#fff; background:#2954ab; }
.pos-identity { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pos-identity button { display:flex; flex-direction:column; gap:4px; padding:12px; border:0; color:#fff; background:#19966a; text-align:left; cursor:pointer; }
.pos-identity button+button { background:#2954ab; }
.pos-identity small { font-size:9px; opacity:.8; }
.pos-cart { min-height:285px; margin-top:12px; border:1px solid #dce1e8; }
.pos-cart>header { display:flex; justify-content:space-between; padding:10px 12px; color:#fff; background:#344b63; font-size:12px; text-transform:uppercase; }
.pos-total { display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding:16px; color:#fff; background:#213f5e; text-transform:uppercase; }
.pos-total strong { font-size:27px; }
.pos-order-actions button { flex:1; }
.pos-order-actions .danger { color:#fff; background:#c94b46; }
.pos-order-actions .finish { color:#fff; background:#19966a; }
.pos-secondary { display:flex; gap:10px; margin-top:12px; }
.pos-secondary button { display:flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid #dce1e8; background:#fff; cursor:pointer; }
.pos-operation-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:10px; }
.pos-operation-grid article { display:flex; flex-direction:column; gap:8px; padding:14px; border:1px solid #dce1e8; background:#fff; }
.pos-operation-grid span { color:#667085; font-size:12px; }
.pos-operation-grid button { align-self:flex-start; border:0; color:#2954ab; background:none; cursor:pointer; }
.pos-shortcuts { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; margin-top:10px; padding:14px; border:1px solid #dce1e8; background:#fff; }
.pos-shortcuts span { padding:8px; background:#f2f4f7; font-size:11px; font-weight:700; }

@media (max-width:1050px) {
  .pos-workspace { grid-template-columns:1fr; }
  .pos-product-panel { border-right:0; border-bottom:5px solid rgba(233,233,233,.85); }
  .pos-operation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pos-shortcuts { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:620px) {
  .pos-fields { grid-template-columns:1fr 1fr; }
  .pos-fields .wide { grid-column:span 2; }
  .pos-identity { grid-template-columns:1fr; }
  .pos-item-actions,.pos-order-actions { flex-direction:column; }
  .pos-operation-grid,.pos-shortcuts { grid-template-columns:1fr; }
  .pos-product-panel,.pos-order-panel { padding:12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Telas introdutórias de módulos ainda sem fluxo transacional. */
.feature-introduction-card { min-height: 360px; display: grid; grid-template-columns: 110px minmax(0, 720px); gap: 28px; align-items: start; padding: 42px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.feature-introduction-icon { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: #f1f4f7; color: #697783; }
.feature-introduction-icon .app-icon { width: 46px; height: 46px; }
.feature-introduction-card h2 { margin: 4px 0 10px; font-size: 23px; }
.feature-introduction-card p { margin: 0 0 24px; color: #66737f; line-height: 1.65; }
.feature-introduction-card ul { margin: 10px 0 25px; padding-left: 20px; color: #4c5963; line-height: 1.9; }
.feature-introduction-card .text-button { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); }
.feature-introduction-card .text-button .app-icon { width: 18px; height: 18px; }
@media (max-width: 700px) { .feature-introduction-card { grid-template-columns: 1fr; padding: 24px; } .feature-introduction-icon { width: 70px; height: 70px; } }
.entity-advanced-search { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:12px; align-items:end; margin-bottom:14px; padding:16px; border:3px dashed var(--border); border-radius:4px; background:#fff; }
.entity-advanced-search .advanced-search-field { grid-column:span var(--advanced-search-span, 3); display:grid; gap:5px; min-width:0; color:#536474; font-size:11px; font-weight:700; }
.entity-advanced-search input:not([type="checkbox"]),.entity-advanced-search select { min-width:0; width:100%; height:38px; padding:8px 10px; border:1px solid var(--border); border-radius:4px; background:#fff; color:var(--text); }
.advanced-search-range { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px; }
.advanced-search-checkbox { display:flex; align-items:center; gap:8px; min-height:38px; font-size:13px; font-weight:500; }
.entity-advanced-search .advanced-search-actions { grid-column:1/-1; display:flex; justify-content:flex-end; gap:7px; }
.entity-advanced-search button { min-height:38px; }
@media (max-width:1050px) { .entity-advanced-search .advanced-search-field { grid-column:span 6; } }
@media (max-width:560px) { .entity-advanced-search .advanced-search-field { grid-column:1/-1; }.advanced-search-range { grid-template-columns:1fr; }.entity-advanced-search .advanced-search-actions button { flex:1; } }
.confirmation-dialog { width:min(440px,100%); padding:24px; border-radius:6px; background:#fff; box-shadow:0 24px 70px rgb(5 24 40 / 30%); }.confirmation-dialog>header { display:flex; gap:14px; align-items:flex-start; }.confirmation-dialog>header>.app-icon { width:32px; height:32px; color:#c2413a; }.confirmation-dialog h2 { margin:3px 0 0; font-size:20px; }.confirmation-dialog p { margin:20px 0 8px; color:#667085; line-height:1.5; }.confirmation-dialog>strong { display:block; padding:11px 12px; border-radius:4px; background:#f5f7f9; }.confirmation-dialog>footer { display:flex; justify-content:flex-end; gap:9px; margin-top:22px; }.danger-button { color:#fff; border-color:#b42318 !important; background:#b42318 !important; }.danger-button:hover { border-color:#8f1c13 !important; background:#981f16 !important; }
.legacy-row-actions button:disabled { opacity:.3; cursor:not-allowed; }
.panel-primary-action { width:100%; min-height:42px; margin-top:10px; color:#fff; border:0; border-radius:3px; background:var(--blue); cursor:pointer; }
.panel-link-card { width:100%; font:inherit; color:inherit; text-align:left; cursor:pointer; }.panel-link-card:hover { border-color:#9bb5ca; background:#f7fafc; }
.table-section-title { padding:15px 18px; border-bottom:1px solid var(--border); }.table-section-title h2 { margin:0; font-size:16px; }
.home-heading { margin-bottom:0; }.dashboard-card { border:1px solid var(--border); border-radius:4px; background:#fff; box-shadow:0 1px 3px rgb(16 24 40 / 5%); overflow:hidden; }.dashboard-card>header { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid #edf0f4; }.dashboard-card>header>div { display:flex; align-items:center; gap:9px; }.dashboard-card h2 { margin:0; font-size:15px; }.dashboard-card>header .app-icon { width:20px; height:20px; color:var(--blue); }.dashboard-card>header button { border:0; color:var(--blue); background:transparent; cursor:pointer; font-size:11px; font-weight:700; }
.home-reminders>header>div:last-child { gap:4px; }.home-reminders>header>div:last-child button { min-height:30px; padding:6px 10px; border:1px solid var(--border); color:#526173; background:#fff; }.home-empty { min-height:115px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; padding:18px; color:var(--muted); text-align:center; }.home-empty>.app-icon { width:30px; height:30px; opacity:.45; }.home-empty>button { border:0; color:var(--blue); background:transparent; cursor:pointer; }.home-empty.compact { min-height:100px; }.home-dashboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.home-total { min-height:100px; display:flex; flex-direction:column; justify-content:center; gap:7px; padding:20px; }.home-total span { color:var(--muted); font-size:12px; }.home-total strong { color:#bd3b35; font-size:25px; }.home-total.positive strong { color:#168057; }.home-notification { display:grid; gap:4px; padding:13px 16px; border-bottom:1px solid #edf0f4; }.home-notification span { color:var(--muted); font-size:12px; }.home-apps>div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:18px; }.home-apps>div button { display:grid; place-items:center; gap:7px; min-height:78px; border:1px solid var(--border); border-radius:4px; color:#41586b; background:#f9fbfc; cursor:pointer; }.home-apps>div .app-icon { width:25px; height:25px; color:var(--blue); }
.home-reminders>header>div:last-child button.active { color:#fff; border-color:var(--blue); background:var(--blue); }.home-reminder-form { display:grid; gap:12px; padding:18px; }.home-reminder-form label { display:grid; gap:6px; color:#526173; font-size:12px; font-weight:700; }.home-reminder-form textarea { width:100%; padding:10px; border:1px solid var(--border); border-radius:4px; resize:vertical; }.home-reminder-form>div { display:flex; justify-content:flex-end; gap:8px; }
@media (max-width:760px) { .home-dashboard-grid { grid-template-columns:1fr; }.home-apps>div { grid-template-columns:repeat(2,minmax(0,1fr)); }.home-reminders>header { align-items:flex-start; flex-direction:column; } }
.not-found-page { min-height:calc(100vh - 130px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:30px; text-align:center; }.not-found-page>.app-icon { width:58px; height:58px; color:#9aa8b5; }.not-found-page h1 { margin:5px 0 0; font-size:27px; }.not-found-page p { max-width:480px; margin:0 0 12px; color:var(--muted); }.not-found-page>div { display:flex; gap:9px; }
.skip-link { position:fixed; z-index:120; top:-60px; left:12px; padding:10px 14px; color:#fff; background:#102a46; border-radius:0 0 5px 5px; text-decoration:none; transition:top .15s ease; }.skip-link:focus { top:0; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }
.settings-modules-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.settings-modules-grid article { padding:15px; border:1px solid var(--border); border-radius:4px; }.settings-modules-grid article>header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }.settings-modules-grid article>header select { min-height:34px; padding:5px 8px; border:1px solid var(--border); }.settings-modules-grid article>label { display:flex; align-items:center; gap:8px; padding:7px 0; border-top:1px solid #edf0f4; font-size:12px; }
@media (max-width:700px) { .settings-modules-grid { grid-template-columns:1fr; } }
.integration-actions { grid-column:2; display:flex; flex-wrap:wrap; gap:7px; }.integration-actions button { min-height:34px; padding:7px 10px; border:1px solid var(--blue); border-radius:3px; color:var(--blue); background:#fff; cursor:pointer; }.integration-actions button:first-child { color:#fff; background:var(--blue); }.certificate-warning { grid-column:1/-1; margin:0; padding:12px 14px; border-left:3px solid #c47a24; color:#7a531e; background:#fff8eb; }
.plan-overview { display:grid; gap:16px; }.plan-overview .legacy-table-card>h2,.plan-resources>header,.plan-payment { margin:0; padding:15px 18px; border-bottom:1px solid var(--border); }.plan-overview h2 { margin:0; font-size:16px; }.plan-payment { display:grid; grid-template-columns:52px 1fr; gap:16px; border:1px solid var(--border); background:#fff; }.plan-payment>.app-icon { width:42px; height:42px; color:var(--blue); }.plan-payment strong { display:block; margin-top:10px; }.plan-payment p { color:var(--muted); }.plan-payment button,.plan-resources button { margin:0 7px 0 0; border:0; color:var(--blue); background:transparent; cursor:pointer; }.plan-resources { border:1px solid var(--border); background:#fff; }.plan-resources>header { display:flex; justify-content:space-between; }.plan-resources dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; }.plan-resources dl>div { display:flex; justify-content:space-between; gap:12px; padding:12px 16px; border-right:1px solid #edf0f4; border-bottom:1px solid #edf0f4; }.plan-resources dt { color:#536474; }.plan-resources dd { margin:0; font-weight:800; }.plan-resources dd.enabled { color:#168057; }.status-chip { display:inline-block; padding:4px 8px; border-radius:12px; font-size:11px; font-weight:700; }.status-chip.active { color:#146c4c; background:#e7f7ef; }.status-chip.overdue { color:#a63a34; background:#fdeceb; }
@media (max-width:700px) { .plan-resources dl { grid-template-columns:1fr; }.plan-payment { grid-template-columns:1fr; } }
.brand-settings-actions { display:flex !important; flex-direction:row !important; flex-wrap:wrap; gap:8px !important; }.brand-settings-actions button { min-height:38px; }
.sortable-heading { padding:0; border:0; color:inherit; background:transparent; font:inherit; cursor:pointer; }.sortable-heading:hover,.sortable-heading:focus-visible { color:var(--blue); text-decoration:underline; }
.standalone-field { display:grid; gap:6px; margin-top:18px; color:#526173; font-size:12px; font-weight:700; }.standalone-field textarea { width:100%; padding:10px; border:1px solid var(--border); border-radius:4px; resize:vertical; }.recipient-table { display:grid; margin-bottom:12px; border:1px solid var(--border); }.recipient-heading,.recipient-row { display:grid; grid-template-columns:170px 1fr 80px; gap:10px; align-items:center; padding:10px 12px; }.recipient-heading { color:#526173; background:#f5f7f9; font-size:11px; text-transform:uppercase; }.recipient-row { border-top:1px solid var(--border); }.recipient-row select,.recipient-row input { min-width:0; width:100%; height:38px; padding:7px 9px; border:1px solid var(--border); }.recipient-row button { width:38px; height:38px; border:1px solid var(--border); color:#b42318; background:#fff; cursor:pointer; }.recipient-row button:disabled { opacity:.35; }
@media (max-width:600px) { .recipient-heading { display:none; }.recipient-row { grid-template-columns:1fr 42px; }.recipient-row select { grid-column:1/-1; } }
.checklist-field { grid-column:1/-1; }.form-checklist { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--border); border-radius:4px; }.form-checklist label { display:flex !important; flex-direction:row !important; align-items:center; gap:8px !important; padding:10px 12px; border-bottom:1px solid #edf0f4; font-weight:400 !important; }.form-checklist span { color:#344054 !important; font-weight:400 !important; }
@media (max-width:600px) { .form-checklist { grid-template-columns:1fr; } }
.agenda-days button.selected { box-shadow:inset 0 0 0 2px var(--blue); }.agenda-days button:disabled { cursor:default; }.agenda-advanced { margin-top:-2px; }
.domain-field { display:grid; gap:6px; }.domain-field label { display:grid; gap:6px; }.domain-field small,.domain-upload-grid small,.domain-upload-grid em { color:var(--muted); font-size:11px; }.domain-upload-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:18px; }.domain-upload-grid label { display:grid; gap:8px; padding:15px; border:1px solid var(--border); border-radius:4px; }.domain-upload-grid em { font-style:normal; }.color-field { display:grid; grid-template-columns:48px 1fr; gap:7px; }.color-field input[type=color] { padding:2px; }.domain-address { display:flex; align-items:center; max-width:720px; border:1px solid var(--border); border-radius:4px; overflow:hidden; }.domain-address span { padding:10px; color:#526173; background:#f5f7f9; white-space:nowrap; }.domain-address input { min-width:80px; flex:1; border:0 !important; }.domain-own-toggle { display:flex !important; flex-direction:row !important; gap:8px !important; margin-top:15px; }.domain-guide>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.domain-guide article { padding:15px; border:1px solid var(--border); }.domain-guide h3 { margin-top:0; }.domain-guide dl { display:grid; grid-template-columns:140px 1fr; margin:0; }.domain-guide dt,.domain-guide dd { margin:0; padding:7px; border-bottom:1px solid #edf0f4; }
@media (max-width:700px) { .domain-upload-grid,.domain-guide>div { grid-template-columns:1fr; }.domain-address { align-items:stretch; flex-direction:column; }.domain-guide dl { grid-template-columns:1fr; } }
.transaction-item-groups { display:grid; gap:16px; }.transaction-item-editor { border:1px solid var(--border); border-radius:4px; overflow:hidden; }.transaction-item-editor>header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 13px; background:#f5f7f9; }.transaction-item-editor>header button { border:0; color:var(--blue); background:transparent; cursor:pointer; font-weight:700; }.transaction-item-search { display:flex; gap:7px; padding:12px; }.transaction-item-search input { min-width:0; flex:1; height:38px; padding:8px 10px; border:1px solid var(--border); }.transaction-item-search button { width:40px; border:1px solid var(--border); background:#fff; cursor:pointer; }.transaction-item-search button { display:grid; place-items:center; font-size:0; }.transaction-item-search button::before { content:''; width:16px; height:16px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m10.5 3a7.5 7.5 0 1 0 4.7 13.3l4.2 4.2 1.4-1.4-4.2-4.2A7.5 7.5 0 0 0 10.5 3zm0 2a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11z'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m10.5 3a7.5 7.5 0 1 0 4.7 13.3l4.2 4.2 1.4-1.4-4.2-4.2A7.5 7.5 0 0 0 10.5 3zm0 2a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11z'/%3E%3C/svg%3E") center/contain no-repeat; }.transaction-empty { padding:22px !important; color:var(--muted); text-align:center; }
.item-number-input { width:90px; min-height:32px; padding:5px 7px; border:1px solid var(--border); }.item-remove-button { width:32px; height:32px; border:1px solid var(--border); color:#b42318; background:#fff; cursor:pointer; }
.profile-tabs { position:static; }
.profile-photo-editor { display:grid; grid-template-columns:180px minmax(0,1fr); gap:28px; align-items:center; }
.profile-photo-preview { display:grid; place-items:center; width:180px; height:180px; overflow:hidden; border:1px solid var(--border); border-radius:50%; color:#9aa8b4; background:#f2f5f7; }
.profile-photo-preview .app-icon { width:88px; height:88px; }
.profile-photo-editor>div:last-child { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.profile-photo-editor small { max-width:520px; color:var(--muted); line-height:1.5; }
.profile-file-field { display:flex; flex-direction:column; gap:7px; color:#526173; font-size:12px; font-weight:700; }
.profile-file-field input { min-height:42px; padding:7px; border:1px solid var(--border); background:#fff; }
@media (max-width: 620px) { .profile-photo-editor { grid-template-columns:1fr; justify-items:center; text-align:center; }.profile-photo-editor>div:last-child { align-items:stretch; width:100%; }.profile-photo-editor small { text-align:left; } }
.table-icon-action { border:0; color:var(--blue); background:transparent; cursor:pointer; }
@media (max-width: 380px) { .top-header:not(.mobile-actions-expanded) .brand-copy { display: none; } }
/* Customer area */
.customer-area-banner { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; padding:20px 22px; border:1px solid #cbd8ee; border-radius:6px; background:linear-gradient(110deg,#eef4ff,#fff); }.customer-area-banner strong { display:block; color:#1d3557; font-size:18px; }.customer-area-banner p { margin:5px 0 0; color:var(--muted); }.customer-area-tabs { display:flex; gap:4px; margin-bottom:18px; border-bottom:1px solid var(--border); }.customer-area-tabs button { border:0; border-bottom:3px solid transparent; padding:11px 15px; background:transparent; color:var(--muted); cursor:pointer; }.customer-area-tabs button.active { border-bottom-color:#2954ab; color:#2954ab; font-weight:700; }.customer-area-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:16px; }.customer-area-help { padding:20px; }.customer-area-help h2 { margin-top:0; }.customer-area-help ul { margin:0; padding-left:20px; color:var(--muted); line-height:1.8; }.customer-area-empty { display:grid; justify-items:center; gap:10px; padding:50px 20px; text-align:center; }.customer-area-empty .app-icon { width:40px; height:40px; color:#2954ab; }
@media (max-width:700px) { .customer-area-banner { align-items:stretch; flex-direction:column; }.customer-area-banner .primary-button { width:100%; }.customer-area-grid { grid-template-columns:1fr; }.customer-area-tabs { overflow:auto; }.customer-area-tabs button { white-space:nowrap; } }
