:root {
  color: #171b32; background: #f1f3fa; font: 100%/1.55 "Segoe UI", system-ui, sans-serif;
  --navy: #15172f; --primary: #5433cc; --muted: #555d76; --line: #dce0ed;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.16; letter-spacing: -.045em; margin-bottom: 0; }
h2 { font-size: 1.12rem; margin-bottom: 1rem; letter-spacing: -.015em; }
h3 { margin-top: 1.25rem; }
a { color: #4b2aba; font-weight: 650; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #8a65ff; outline-offset: 3px; }
small, .muted { color: var(--muted); }
small { display: block; font-size: .86rem; overflow-wrap: anywhere; }
.shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: white; padding: 1.6rem 1rem; display: flex; flex-direction: column; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: white; text-decoration: none; font-weight: 750; font-size: 1.25rem; line-height: 1.25; }
.brand small { margin-top: .15rem; color: #cdc3fa; font-size: .77rem; }
.avatar { display: grid; place-items: center; flex: none; border-radius: .75rem; width: 2.55rem; aspect-ratio: 1; background: #744df0; color: white; font-weight: 800; }
.scr-logo { display: block; width: 5.2rem; height: auto; flex: none; }
.sidebar .brand { justify-content: center; }
.sidebar .brand .scr-logo { width: min(9rem, 100%); }
.nav-topic { margin-bottom: .45rem; }
.nav-topic summary { cursor: pointer; padding: .55rem .65rem; color: #d4ccec; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.nav-topic[open] summary { margin-bottom: .15rem; }
.settings-tabs { margin-bottom: 1rem; }
.sidebar nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .65rem; margin-bottom: .15rem; border-radius: .55rem; color: #e1dcf0; font-size: .92rem; text-decoration: none; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #332968; color: white; }
.sidebar nav a span { color: #d3c3ff; text-align: center; width: 1.2rem; }
.sidebar nav a[data-mural-alert]:has(.mural-unread:not([hidden])) {
  background: #61283f;
  color: white;
}
.mural-unread {
  margin-inline-start: auto;
  padding: .16rem .38rem;
  border-radius: .35rem;
  background: #ffe1e9;
  color: #6b1236;
  font-size: .72rem;
}
.nav-topic:not([open]):has(.mural-unread:not([hidden])) > summary {
  color: #ffd4df;
  text-decoration: underline;
  text-decoration-color: #f9a2bd;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar nav a[data-mural-alert]:has(.mural-unread:not([hidden])),
  .nav-topic:not([open]):has(.mural-unread:not([hidden])) > summary {
    animation: mural-pulse 1.8s ease-in-out infinite;
  }
}
@keyframes mural-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px transparent; }
  50% { box-shadow: inset 0 0 0 2px #ff9bbc; }
}
.warranty-sidebar { border: 1px solid #454064; border-radius: .65rem; padding: .7rem; }
.warranty-sidebar h2 { font-size: .92rem; margin: 0 0 .45rem; color: #f1edff; }
.warranty-links { display: grid; gap: .15rem; }
.warranty-links a { display: flex; justify-content: space-between; gap: .45rem; align-items: center; padding: .35rem .4rem; border-radius: .4rem; color: #e1dcf0; text-decoration: none; font-size: .87rem; }
.warranty-links a:hover, .warranty-links a[aria-current] { background: #332968; color: white; }
.warranty-links strong { text-align: center; min-width: 1.65rem; }
.profile { margin-top: auto; border-top: 1px solid #454064; padding: 1rem .25rem 0; display: flex; gap: .65rem; align-items: center; overflow-wrap: anywhere; }
.avatar { width: 2.1rem; background: #43368a; }
.text-button { background: none; border: 0; color: #d6caff; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.shell main { width: 100%; max-width: 96rem; margin: auto; align-self: start; margin-top: 0; padding: clamp(1rem, 4vw, 3rem); }
.page-heading, .section-head, .actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.page-heading { margin-bottom: 1.7rem; }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .13em; color: #512ab8; margin-bottom: .4rem; }
.button { background: var(--primary); color: white; display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; border: 1px solid transparent; border-radius: .55rem; padding: .55rem .95rem; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { background: #4423b2; }
.button:disabled { opacity: .55; cursor: default; }
.button.whatsapp-button { background: #146c46; }
.button.whatsapp-button:hover { background: #105638; }
.whatsapp-icon { width: 1.25rem; height: 1.25rem; margin-right: .35rem; flex: none; }
.customer-comments-dashboard { margin-bottom: 1rem; }
.customer-comments-dashboard summary { cursor: pointer; font-weight: 700; }
.customer-comments-dashboard summary .badge { margin-inline-start: .45rem; }
.customer-comments-list li { flex-wrap: wrap; gap: .65rem; }
.customer-comments-list li > div { flex: 1 1 10rem; }
.customer-comment-form { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; }
.customer-comment-form h2 { margin: 0; }
.shop-site { background: #f4f5f8; color: #171a2d; }
.shop-site [hidden] { display: none !important; }
.shop-site .shop-bar { background: #15172f; color: white; }
.shop-bar-top, .shop-navigation { max-width: 90rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.shop-bar-top { padding-block: .9rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.shop-brand { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .8rem; color: white; font-weight: 750; text-decoration: none; }
.shop-brand .scr-logo { width: clamp(5.8rem, 13vw, 8rem); height: auto; }
.shop-cart-link { position: relative; flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; color: white; background: #232640; border: 1px solid #575a77; border-radius: .6rem; cursor: pointer; }
.shop-cart-link svg { width: 1.55rem; height: 1.55rem; }
.shop-cart-link span { position: absolute; inset: -.42rem -.42rem auto auto; min-width: 1.4rem; background: #e7cf89; color: #252034; border-radius: 999px; padding: .1rem .28rem; font-size: .75rem; font-weight: 800; }
.shop-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .3rem; padding-block: .38rem; border-top: 1px solid #393c55; }
.shop-navigation > a, .shop-navigation summary { display: inline-flex; gap: .55rem; align-items: center; padding: .45rem .65rem; color: #f3f1ff; font-size: .95rem; font-weight: 650; text-decoration: none; border-radius: .4rem; }
.shop-navigation details { position: relative; max-width: 100%; }
.shop-navigation summary { cursor: pointer; list-style: none; }
.shop-navigation summary::-webkit-details-marker { display: none; }
.shop-navigation summary::after { content: ''; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.12rem) rotate(45deg); flex: none; }
.shop-navigation a:hover, .shop-navigation a[aria-current], .shop-navigation summary:hover, .shop-navigation details[open] summary, .shop-navigation details:has(a[aria-current]) summary { background: #302954; color: #f6dfa0; }
.shop-navigation details > div { position: absolute; z-index: 3; top: calc(100% + .25rem); inset-inline-start: 0; min-width: 12rem; width: max-content; max-width: min(24rem, calc(100vw - 2rem)); padding: .35rem; border: 1px solid #565979; border-radius: .55rem; background: #20233d; box-shadow: 0 .7rem 1.6rem #11132936; }
.shop-navigation details a { display: block; color: #f3f1ff; padding: .5rem .65rem; border-radius: .35rem; text-decoration: none; overflow-wrap: anywhere; }
.shop-main { max-width: 90rem; margin: 0 auto; padding: clamp(1.25rem, 4.5vw, 3.5rem) clamp(1rem, 4vw, 3rem); }
.shop-catalog-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1.4rem; }
.shop-catalog-heading h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); }
.shop-catalog-heading label { flex: 0 1 24rem; min-width: min(100%, 14rem); }
.shop-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.shop-cart, .shop-empty, .shop-dialog { background: white; border: 1px solid #dcddea; border-radius: .9rem; }
.shop-product { min-width: 0; }
.shop-product-tile { display: grid; width: 100%; padding: 0; color: inherit; font: inherit; background: white; border: 1px solid #dadcec; border-radius: .75rem; cursor: pointer; overflow: hidden; text-align: left; }
.shop-product-tile:hover { border-color: #a18ae5; box-shadow: 0 .35rem 1rem #2e215014; }
.shop-product-image { position: relative; width: 100%; aspect-ratio: 1.18; background: #fff; display: block; }
.shop-product-image img, .shop-product-image .shop-image-placeholder { position: absolute; inset: .55rem; width: calc(100% - 1.1rem); height: calc(100% - 1.1rem); object-fit: contain; }
.shop-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 6rem; background: #eeeff5; color: #737990; border-radius: .45rem; }
.shop-image-placeholder svg { width: 2.1rem; height: 2.1rem; }
.shop-price { font-size: 1.3rem; color: #211657; }
.shop-tile-caption { display: grid; gap: .25rem; line-height: 1.25; padding: .8rem .85rem; border-top: 1px solid #eff0f6; }
.shop-tile-name { font-size: 1rem; overflow-wrap: anywhere; }
.shop-dialog { width: min(48rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 2rem); padding: 1.15rem; color: #171a2d; overscroll-behavior: contain; }
.shop-dialog::backdrop { background: #15172f80; }
.shop-dialog header { display: flex; align-items: start; justify-content: space-between; gap: .65rem; margin-bottom: 1rem; }
.shop-dialog header h2 { margin: 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.shop-cart-dialog { max-width: 32rem; }
.shop-product-details { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.15rem; align-items: start; }
.shop-product-info { display: grid; gap: .75rem; }
.shop-product-info p { color: #515670; overflow-wrap: anywhere; margin: 0; }
.shop-gallery-main { display: block; width: 100%; height: clamp(10rem, 32vw, 17rem); object-fit: contain; border: 1px solid #eff0f6; border-radius: .55rem; }
.shop-thumbnails { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.shop-thumbnails button { padding: .1rem; background: white; border: 1px solid #dcddea; border-radius: .35rem; cursor: pointer; }
.shop-thumbnails button[aria-pressed=true] { border-color: #4b2aba; }
.shop-thumbnails img { display: block; width: 3.3rem; height: 2.6rem; object-fit: contain; }
.shop-product-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; }
.shop-product-controls input[type=number] { width: 5rem; }
.shop-product-controls .button { flex: 1; width: auto; }
.shop-cart, .shop-empty { padding: 1.25rem; }
.shop-cart-items { margin: .7rem 0; padding: 0; list-style: none; }
.shop-cart-items li { display: flex; justify-content: space-between; gap: .8rem; margin: .55rem 0; }
.shop-cart-items li span { overflow-wrap: anywhere; }
.shop-cart-items strong { white-space: nowrap; }
.shop-cart-items li > div { display: grid; justify-items: end; }
.shop-remove { border: 0; background: none; color: #452690; padding: .2rem 0; font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; }
.shop-total { display: flex; justify-content: space-between; gap: .65rem; border-block: 1px solid #dcddea; padding: .75rem 0; }
.shop-checkout { border: 0; padding: 0; margin: 1rem 0; min-width: 0; }
.shop-checkout legend { margin-bottom: .55rem; font-weight: 750; }
.shop-freight { padding: .8rem; border: 1px solid #dcddea; border-radius: .55rem; min-width: 0; margin: 0; }
.shop-freight legend { padding-inline: .3rem; margin: 0; }
.shop-freight-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .55rem; }
.shop-freight-actions label { flex: 1 1 8rem; }
.shop-freight p { margin: 0; }
.button.shop-primary { width: 100%; background: #2d206c; }
.button.shop-primary:hover { background: #422a99; }
.shop-checkout-note, .shop-unavailable { color: #515670; font-size: .875rem; }
.shop-footer { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: 0 auto; max-width: 90rem; padding: 1.5rem clamp(1rem, 4vw, 3rem); border-top: 1px solid #dcddea; color: #444861; }
.shop-receipt { max-width: 56rem; }
.shop-admin-image { display: block; width: min(14rem, 100%); max-height: 12rem; object-fit: contain; }
.shop-admin-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .65rem; }
.shop-admin-photos > div { background: #f4f5f8; padding: .55rem; border-radius: .55rem; }
.shop-categories ul { padding-left: 1.25rem; }
.shop-categories ul li { display: list-item; border: 0; padding: .25rem 0; }
.shop-menu-settings input[type=number] { width: 6rem; }
.shop-menu-settings input[type=text], .shop-menu-settings input:not([type]) { min-width: 11rem; }
.shop-menu-child { display: inline-block; width: 1.1rem; height: .65rem; margin-right: .45rem; border: solid var(--line); border-width: 0 0 2px 2px; }
@media (max-width: 620px) {
  .shop-catalog-heading label { flex: 1 1 100%; }
  .shop-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: .65rem; }
  .shop-product-details { grid-template-columns: minmax(0, 1fr); }
  .shop-navigation details { position: static; }
  .shop-navigation { position: relative; }
  .shop-navigation details > div { top: 100%; inset-inline-start: 1rem; }
}
.secondary { background: white; border-color: #cfc5ee; color: #4b2aba; }
.secondary:hover { background: #ede7fd; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .85rem; margin-bottom: 1.3rem; }
.metric { padding: 1rem; border-radius: .8rem; display: flex; flex-direction: column; justify-content: space-between; gap: .65rem; font-weight: 650; overflow-wrap: anywhere; }
.metric strong { font-size: 2.1rem; line-height: 1; }
.metric-link { text-decoration: none; border: 1px solid transparent; }
.metric-link:hover, .metric-link[aria-current] { border-color: currentColor; }
.metric-link small { color: inherit; margin-top: .2rem; font-weight: 500; }
.violet, .s0 { background: #e9e0ff; color: #45259b; }
.blue, .s1 { background: #dceaff; color: #164e98; }
.amber, .s2 { background: #fff0cc; color: #794609; }
.green, .s4 { background: #d7f5e9; color: #125941; }
.s3 { background: #d8f4f7; color: #075566; }
.s5 { background: #eaf1d1; color: #3b5012; }
.s6 { background: #fce4e9; color: #8e2541; }
.s7 { background: #ecedff; color: #403b91; }
.s8 { background: #ffeddc; color: #8a360c; }
.s9 { background: #faf3bf; color: #5d4b09; }
.s10 { background: #cdeee9; color: #06594f; }
.s11 { background: #f2dfef; color: #70255f; }
.s12 { background: #f1e4d8; color: #69432b; }
.service-type-0 { background: #d9f4e9; color: #145642; }
.service-type-1 { background: #dceaff; color: #164e98; }
.service-type-2 { background: #f6e5ff; color: #662c88; }
.panel { background: white; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(.85rem, 2.4vw, 1.45rem); min-width: 0; }
.section-head { margin-bottom: .9rem; }
.section-head h2 { margin: 0; }
.section-head > span:not(.badge) { color: var(--muted); font-size: .9rem; }
.filters, .field-grid, .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto; align-items: end; margin-bottom: 1rem; }
.filters > a { align-self: center; }
.order-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: .95rem; }
label { display: grid; gap: .35rem; font-weight: 650; font-size: .9rem; }
input, select, textarea { border: 1px solid #c9cde0; border-radius: .5rem; min-height: 2.65rem; padding: .52rem .65rem; width: 100%; font: inherit; font-size: 1rem; font-weight: 400; background: white; color: inherit; }
select { appearance: none; padding-right: 1.8rem; background-image: linear-gradient(45deg, transparent 50%, #625884 50%), linear-gradient(135deg, #625884 50%, transparent 50%); background-position: right 1rem center, right .7rem center; background-size: .3rem .3rem; background-repeat: no-repeat; }
textarea { resize: vertical; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
td, th { padding: .75rem .55rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { background: #f2f1f9; }
td:last-child { white-space: nowrap; }
.badge { display: inline-block; padding: .24rem .55rem; border-radius: 1rem; font-size: .84rem; font-weight: 700; white-space: normal; }
.empty { text-align: center; padding: 2.5rem .5rem; }
.empty p { color: var(--muted); margin: .45rem 0 .7rem; }
.notice { padding: .75rem; background: #fff0cc; color: #754009; border-radius: .5rem; }
.rows, .timeline { padding: 0; margin: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.customer-search { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; margin-bottom: 1rem; }
.customer-search label { flex: 1 1 14rem; }
.customer-search > a { align-self: center; }
.customer-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; align-items: start; }
.customer-editor { width: min(50rem, calc(100% - 1.5rem)); }
.workflow-panel { margin-top: 1rem; }
.acceptance-links { margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.acceptance-links :is(h3, p, .quote-actions) { margin: 0; }
.acceptance-links [data-tracking-copy-status]:empty { display: none; }
.help-tools { max-width: 42rem; margin-bottom: 1.6rem; }
.help-tools [role=status] { margin: .35rem 0 0; }
.help-tools [role=status]:empty { display: none; }
.help-group + .help-group { margin-top: 1.5rem; }
.help-group h2 { margin-bottom: .5rem; }
.help-topic { border-top: 1px solid var(--line); }
.help-topic summary { padding: .75rem .3rem; color: #392589; font-weight: 700; cursor: pointer; }
.help-topic summary:hover { background: #f6f5ff; }
.help-answer { max-width: 65ch; padding: 0 .4rem 1rem .9rem; }
.help-answer ol { margin: 0 0 .65rem; padding-left: 1.15rem; }
.help-answer li + li { margin-top: .35rem; }
.technical-lines { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.shipment-list li { align-items: end; flex-wrap: wrap; }
.shipment-post { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.delivery-image img { display: block; width: min(10rem, 100%); max-height: 8rem; object-fit: contain; border-radius: .4rem; }
.accessory-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .55rem; margin: .6rem 0; }
.accessory-list { padding-left: 1.2rem; margin: .35rem 0; }
.accessory-list li { overflow-wrap: anywhere; }
.accessory-list .badge { margin-left: .3rem; }
@media (max-width: 620px) {
  .customer-list li { grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .75rem; }
  .customer-list small { grid-column: 1; }
  .customer-list li > a { grid-column: 2; grid-row: 1 / 3; }
}
.timeline li { border-left: 2px solid #ddd0fc; padding: .1rem 0 1rem .7rem; }
.timeline li small { margin-top: .35rem; }
.timeline .history-note { margin: .35rem 0 0; }
.quick-status { display: inline-block; border-radius: 1rem; text-decoration: none; }
.quick-status:hover .badge { box-shadow: 0 0 0 1px currentColor; }
.status-dialog { width: min(54rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); padding: 1.25rem; border: 1px solid var(--line); border-radius: .9rem; color: inherit; }
.status-dialog::backdrop { background: #15172f70; }
.status-dialog .section-head { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.status-dialog h3 { margin-bottom: .65rem; }
.status-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: .75rem; }
.status-history td:first-child { white-space: nowrap; }
.status-history td:last-child { white-space: normal; }
@media (max-width: 600px) { .status-fields { grid-template-columns: 1fr; } }
.photos { display: flex; gap: .5rem; flex-wrap: wrap; }
.photos img { display: block; object-fit: cover; width: 6rem; height: 5rem; border-radius: .5rem; }
.photos a[data-open-photo] { cursor: zoom-in; border-radius: .5rem; }
.photo-viewer { border: 0; border-radius: .85rem; padding: 0; background: #17192a; max-width: calc(100% - 1.5rem); max-height: calc(100% - 1.5rem); }
.photo-viewer::backdrop { background: #101120bf; }
.photo-viewer-content { display: grid; justify-items: center; gap: .6rem; padding: .75rem; }
.photo-viewer-content form { justify-self: end; }
.photo-viewer-content img { display: block; width: auto; height: auto; max-width: min(70rem, calc(100vw - 3rem)); max-height: calc(100vh - 6rem); object-fit: contain; }
.quote { margin-top: 1rem; }
.quote-share { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.dashboard-editor { margin-bottom: 1rem; }
.dashboard-editor summary { width: fit-content; color: #4b2aba; cursor: pointer; font-weight: 700; }
.dashboard-editor form { margin-top: .65rem; padding: .85rem; background: white; border: 1px solid var(--line); border-radius: .65rem; }
.dashboard-editor .quote-share { margin: 0; }
.staff-notice-panel { margin-bottom: 1rem; }
.mural-form summary { width: fit-content; color: #4b2aba; cursor: pointer; font-weight: 700; }
.mural-form form { margin-top: 1rem; }
.staff-notice-panel .section-head { margin-bottom: .6rem; }
.notice-list { display: grid; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.staff-notice { display: flex; flex-wrap: wrap; gap: .65rem 1rem; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: .65rem; padding: .75rem .85rem; background: #f8f7ff; overflow-wrap: anywhere; }
.staff-notice.is-read { background: white; }
.staff-notice-title, .staff-notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.staff-notice p { margin: .3rem 0; }
.mural-receipts { margin: .45rem 0 0; padding-inline-start: 1.15rem; font-size: .85rem; }
.staff-notice-actions .button { min-height: 2.1rem; padding: .35rem .65rem; }
.staff-notice-editor { margin-top: .7rem; }
.staff-notice-editor summary { width: fit-content; color: #4b2aba; cursor: pointer; font-weight: 700; }
.staff-notice-editor form { margin-top: .85rem; }
.notice-recipients { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; max-height: 10rem; overflow: auto; }
.notice-empty { margin: .35rem 0; }
.restock-quantity { display: flex; align-items: center; gap: .45rem; }
.restock-quantity input { width: 8rem; }
.quote-stock { margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: .65rem; background: #f8f7ff; }
.quote-stock h3 { margin-top: 0; }
.dashboard-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .55rem; }
.customer-intake { max-width: 54rem; margin: 2rem auto; padding: clamp(1rem, 4vw, 2rem); }
.customer-intake .notice, .intake-equipment { margin: 1rem 0; }
.order-actions-cell { text-align: right; vertical-align: top; }
.order-value { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-line { margin-top: .25rem; }
.stock-search-tools { margin-bottom: .85rem; }
.stock-search-tools [role=status]:not(:empty) { margin-top: .3rem; }
.order-actions summary { list-style: none; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; cursor: pointer; border: 1px solid #cbd0ee; border-radius: .5rem; color: #4330a3; background: #f6f5ff; }
.order-actions summary::-webkit-details-marker { display: none; }
.order-actions summary span { display: block; width: .43rem; height: .43rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.1rem) rotate(45deg); }
.order-actions[open] summary span { transform: translateY(.1rem) rotate(225deg); }
.order-action-links { display: grid; gap: .1rem; padding: .3rem; margin-top: .45rem; border: 1px solid var(--line); border-radius: .45rem; background: white; text-align: left; }
.order-action-links a { padding: .35rem .45rem; border-radius: .25rem; text-decoration: none; }
.order-action-links a:hover { background: #f1edff; }
.stock-picker { min-width: 0; position: relative; }
.stock-suggestions { position: absolute; z-index: 2; top: 100%; left: 0; min-width: 100%; width: max-content; max-width: min(20rem, 100% + 5rem); max-height: 15rem; overflow: auto; background: white; border: 1px solid var(--line); border-radius: .45rem; box-shadow: 0 6px 15px #15172f24; }
.stock-suggestions button, .stock-suggestions span { display: block; width: 100%; padding: .5rem .65rem; border: 0; background: white; color: inherit; text-align: left; font: inherit; font-size: .9rem; overflow-wrap: anywhere; }
.stock-suggestions button { cursor: pointer; }
.stock-suggestions button:hover, .stock-suggestions button:focus-visible { background: #f1edff; outline-offset: -3px; }
.quote-item { display: grid; grid-template-columns: minmax(0,2fr) minmax(6rem,.55fr) minmax(9rem,.8fr) auto; gap: .65rem; align-items: end; }
.quote-item select, .quote-item input { min-width: 0; }
.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: .85rem; }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: min(36rem, 90vh); max-width: 57rem; margin: 5vh auto; border-radius: 1rem; box-shadow: 0 20px 70px #22134a20; overflow: hidden; }
.auth-intro { background: radial-gradient(ellipse at bottom right, #6238c4, transparent 75%), var(--navy); color: white; padding: clamp(1.25rem, 5vw, 3.25rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.auth-intro .eyebrow { color: #e3d7ff; }
.auth-intro h1 { margin-bottom: .85rem; }
.auth-card { background: white; padding: clamp(1.25rem, 5vw, 3.25rem); align-content: center; }
.auth-card h2 { font-size: 1.55rem; }
.invite-result { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.invite-result p { margin: 0; }
.read-only main :is(form[method="post"]:not([data-mural-read]), .dashboard-editor, .staff-notice-editor,
  a[href="/os/nova"], a[href="/os/lote"], a[href="/vendas/nova"], a[href="/envios#registrar-envio"],
  a[href^="/envios?origem="], a[href*="?novo=1"], a[href^="https://wa.me/"], a[href^="mailto:"],
  a[href^="/estoque/"]:not([href="/estoque/reposicao"], [href$="/historico"]), a[href^="/servicos/"], a[href$="/fiscal"],
  a[href^="/cadastros/"]:not([href*="/ficha"])[aria-haspopup="dialog"]) { display: none; }
.deny-os-create main :is(a[href="/os/nova"], a[href="/os/lote"]),
.deny-os-edit main :is(.dashboard-editor, form[method="post"][action^="/os/"]:not([data-photos]):not([action$="/fiscal"]):not([action="/os/lote"]), form[data-photos]:not([action="/os/nova"]) :is(button[type="submit"], button:not([type]), input[type="file"]), a[href^="https://wa.me/"], a[href^="mailto:"]),
.deny-estoque-edit main :is(form[method="post"][action^="/estoque"], form[action$="/orcamento/estoque"], a[href^="/estoque/"]:not([href="/estoque/reposicao"], [href$="/historico"])),
.deny-servicos-edit main :is(form[method="post"][action^="/servicos"], a[href^="/servicos/"]),
.deny-clientes-edit main :is(form[method="post"][action^="/cadastros/clientes"], a[href^="/cadastros/clientes/"]:not([href*="/ficha"]), a[href*="?novo=1"]),
.deny-vendas-edit main a[href="/vendas/nova"],
.deny-envios-view main a[href^="/envios"],
.deny-envios-edit main :is(form[method="post"][action^="/envios"], form[action="/frete/cotar"], a[href^="/envios?origem="], a[href="/envios#registrar-envio"]),
.deny-avisos-edit main :is(.staff-notice-editor, form[method="post"][action^="/avisos/"]),
.deny-fiscal-view main a[href$="/fiscal"],
.deny-fiscal-edit main form[method="post"][action$="/fiscal"] { display: none; }
.print-sheet, .error-page { padding: 2rem; max-width: 55rem; margin: 2rem auto; background: white; }
.print-sheet dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.print-sheet dt { font-weight: 700; }
.print-sheet dd { margin: 0; overflow-wrap: anywhere; }
.print-sheet .actions { margin-bottom: 1.5rem; }
.print-dialog { width: min(55rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); padding: 0; border: 1px solid var(--line); border-radius: .9rem; color: inherit; overscroll-behavior: contain; }
.print-dialog::backdrop { background: #15172f70; }
.print-dialog > header { position: sticky; top: 0; z-index: 1; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: white; }
.print-dialog > header h2 { margin: 0; }
.print-dialog .print-sheet { margin: 0; padding: clamp(1rem, 4vw, 2rem); }
.print-dialog .print-header { flex-wrap: wrap; }
.print-dialog .document-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
[data-document-status] { margin: .9rem 1rem; }
[data-document-status]:empty { margin: 0; }
.document-print-output { display: none; }
.thermal-settings { margin: 0 auto 1rem; max-width: 31rem; }
.thermal-settings-fields { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; }
.thermal-settings-fields label { flex: 1 1 6rem; }
[data-label-status]:not(:empty) { margin-top: .45rem; }
.thermal-content { box-sizing: border-box; width: min(var(--thermal-width, 60mm), 100%); min-height: var(--thermal-height, 39mm); margin: 0 auto;
  padding: calc(2.5mm * var(--thermal-scale, 1)) calc(3mm * var(--thermal-scale, 1)); display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: calc(1mm * var(--thermal-scale, 1));
  border: 1px solid #a1a1a1; border-radius: 1mm; text-align: center; color: #000; background: #fff; }
.thermal-content h1 { margin: 0; font-size: calc(20pt * var(--thermal-scale, 1)); line-height: 1.04; letter-spacing: -.025em; }
.thermal-content p { margin: 0; }
.thermal-type { font-size: calc(11pt * var(--thermal-scale, 1)); line-height: 1.1; font-weight: 800; text-transform: uppercase; }
.thermal-name { max-width: 100%; overflow-wrap: anywhere; font-size: calc(11pt * var(--thermal-scale, 1)); line-height: 1.13; font-weight: 650; }
.thermal-name-small { font-size: calc(9pt * var(--thermal-scale, 1)); }
.thermal-name-compact { font-size: calc(6.75pt * var(--thermal-scale, 1)); line-height: 1.08; }
.thermal-content + .thermal-content { margin-top: .75rem; }
.print-sheet [data-closing-detail] { resize: vertical; }
.print-sheet [data-closing-detail] + small { margin-bottom: 1rem; }
.print-section h2 { break-after: avoid; }
.print-sheet { color: #181937; font-size: .95rem; }
.print-header { border-top: .32rem solid #5433cc; border-bottom: 1px solid #c9c1e6; padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: end; gap: .8rem; }
.print-header h1 { font-size: 2rem; }
.print-brand { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: .5rem; }
.print-brand .scr-logo { width: 4.25rem; }
.print-id { text-align: right; white-space: nowrap; }
.print-id strong { display: block; font-size: 1.35rem; line-height: 1.15; color: #4b2aba; }
.print-id span, .print-summary span { font-size: .84rem; color: #515875; }
.print-summary { display: grid; grid-template-columns: 1.35fr 1fr; gap: .65rem; padding: .7rem .85rem; margin: .8rem 0 1.25rem; background: #f1edff; border: 1px solid #ded5fa; border-radius: .4rem; }
.print-summary strong { display: block; }
.print-section { margin-top: 1rem; }
.print-section h2 { color: #4b2aba; border-bottom: 1px solid #ded5fa; margin-bottom: .5rem; padding-bottom: .22rem; font-size: 1rem; }
.print-section dl, .print-section p { margin: 0; }
.print-section dt { font-size: .84rem; color: #515875; }
.print-section table tfoot { color: #372286; }
.print-section .print-quote-note { margin-top: .65rem; }
.print-company { display: grid; gap: .15rem; padding: .7rem 0; font-size: .84rem; overflow-wrap: anywhere; }
.intake-preview summary { cursor: pointer; font-weight: 700; }
.intake-terms { margin: .7rem 0; padding-left: 1.3rem; }
.intake-terms li { margin-bottom: .6rem; }
.intake-terms p { margin: .15rem 0 0; }
.intake-signatures { display: grid; grid-template-columns: .75fr 1fr 1fr; gap: 1rem; margin-top: 1.7rem; text-align: center; break-inside: avoid; }
.intake-signatures span { display: block; min-height: 1.15rem; border-bottom: 1px solid currentColor; font-size: .8rem; }
.intake-signatures small { margin-top: .3rem; }
@media (max-width: 1050px) {
  .quote-item { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
  .quote-item button { justify-self: start; }
}
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { gap: .75rem; padding: 1rem; }
  .sidebar nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .25rem; align-items: start; }
  .warranty-links { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
  .profile { padding-top: .6rem; }
}
@media (max-width: 620px) {
  .auth, .two { grid-template-columns: 1fr; }
  .auth { margin: 0; border-radius: 0; }
  .metrics, .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-grid { grid-template-columns: 1fr; }
}
.serial-history-list { margin: .25rem 0 0; padding-left: 1.1rem; font-size: .85rem; overflow-wrap: anywhere; }
[data-serial-history] [role=status]:not(:empty) { margin-top: .3rem; }
[hidden] { display: none !important; }
.customer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.customer-grid input, .customer-grid select { min-width: 0; }
.postal-lookup { display: flex; flex-wrap: wrap; align-items: end; gap: .35rem; }
.postal-lookup label { flex: 1 1 6rem; min-width: 0; }
.postal-lookup button { white-space: nowrap; }
.postal-result { margin: .55rem 0 0; color: var(--muted); font-size: .88rem; }
.postal-result:empty { margin: 0; }
.cpf-lookup { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.cpf-lookup small { flex: 1 1 14rem; }
.cpf-lookup .lookup-note { flex-basis: 100%; }
.cpf-lookup .lookup-note:empty { display: none; }
.settings-panel { max-width: 40rem; }
.fiscal-option { padding: .8rem; border: 1px solid var(--line); border-radius: .55rem; }
.fiscal-option .table-scroll { margin-top: .65rem; }
.fiscal-confirm { display: grid; gap: .5rem; max-width: 27rem; }
.fiscal-confirm input[type="range"] { padding: 0; accent-color: var(--primary); }
.fiscal-confirm .button { justify-self: start; }
.customer-address { border: 1px solid var(--line); border-radius: .55rem; padding: .85rem; margin: 0; min-width: 0; }
.customer-address legend { font-weight: 700; padding: 0 .3rem; }
.customer-mode { border: 0; margin: 0; padding: 0; min-width: 0; }
.customer-modes { display: flex; flex-wrap: wrap; gap: .45rem 1.15rem; margin-bottom: .8rem; }
.check-label { display: flex; align-items: center; gap: .45rem; }
.check-label input { width: 1.05rem; height: 1.05rem; min-height: 0; accent-color: var(--primary); flex: none; }
@media (max-width: 1150px) { .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 475px) { .customer-grid { grid-template-columns: minmax(0, 1fr); } }
@page { size: A4; margin: 16mm; }
@page etiqueta-os { size: 60mm 40mm; margin: 0; }
@media print {
  body, :root { background: white; color: black; }
  .print-sheet { padding: 0; margin: 0; max-width: none; }
  .document-print-output { display: block; }
  .document-print-output ~ .shell { display: none; }
  .thermal-label { page: etiqueta-os; }
  .thermal-content { margin: 0; border: 0; border-radius: 0; }
  .thermal-content + .thermal-content { margin-top: 0; break-before: page; }
  .standalone:has(> .thermal-label) { margin: 0; padding: 0; }
  .print-header, .print-summary, .print-sheet th { print-color-adjust: exact; }
  .print-sheet td, .print-sheet th { padding: .4rem .5rem; }
  .intake-terms li { break-inside: avoid; }
  .no-print { display: none; }
  .table-scroll { overflow: visible; }
  tr { break-inside: avoid; }
  h1, h2 { break-after: avoid; }
}
