/* Safor client visual system. All data and permissions remain in the shared app. */
body[data-portal="clients"]{--ink:#173832;--muted:#647a74;--border:#dde8e2;--brand:#007e71;background:#f4f6f1;color:var(--ink);font-family:Inter,"Segoe UI",sans-serif}
body[data-portal="clients"] main{max-width:1600px;padding:34px 42px;margin:auto;width:100%;box-sizing:border-box}
body[data-portal="clients"] aside{background:#103d35;color:#fff;border:0;padding:30px 20px}
body[data-portal="clients"] aside .brand{color:#fff;letter-spacing:1px}
body[data-portal="clients"] aside .brand b{color:#b6e9c7}
body[data-portal="clients"] aside .logo{background:#c6f2d4;color:#103d35;border-radius:12px}
body[data-portal="clients"] .nav-caption{color:#a4c2b5;letter-spacing:1.8px;font-size:10px;margin-top:44px}
body[data-portal="clients"] nav{gap:7px}
body[data-portal="clients"] nav button{border-radius:12px;padding:14px;color:#cee0d7;font-size:14px;background:transparent;font-weight:500;min-height:48px}
body[data-portal="clients"] nav button.active{background:#c6f2d4;color:#103d35;font-weight:700;box-shadow:0 5px 16px #001a1520}
body[data-portal="clients"] nav button:hover{background:#245348;color:#fff}
body[data-portal="clients"] .sidebar-foot{color:#c0d4c7;border-color:#ffffff20}
body[data-portal="clients"] .sidebar-foot p{color:#b0c8bd;line-height:1.7;overflow-wrap:anywhere}
body[data-portal="clients"] .sidebar-foot button{color:#d6e7dd;background:#ffffff0b;border:1px solid #ffffff25}
body[data-portal="clients"] header{margin-bottom:28px}
body[data-portal="clients"] h1{font-size:30px;letter-spacing:-1px}
body[data-portal="clients"] h2{letter-spacing:-.6px}
body[data-portal="clients"] .eyebrow{font-size:10px;letter-spacing:1.6px;color:#54766c;font-weight:700}
body[data-portal="clients"] .pill{background:#e4ebdf;color:#39594c;padding:10px 14px;border:1px solid #d8e2d2;border-radius:50px;letter-spacing:.8px}
body[data-portal="clients"] button{border-radius:10px;min-height:44px;font-family:inherit}
body[data-portal="clients"] button:focus-visible,body[data-portal="clients"] summary:focus-visible{outline:3px solid #c27b24;outline-offset:3px}
body[data-portal="clients"] input,body[data-portal="clients"] select,body[data-portal="clients"] textarea{border-radius:10px;border-color:#ccdcd3;background:#fff}
body[data-portal="clients"] .card{border-radius:18px;border:1px solid #dce6dd;box-shadow:0 4px 20px #23433304;padding:24px}
body[data-portal="clients"] .quiet{background:#edf3ed;color:#214b3f}
body[data-portal="clients"] .muted{color:#60756e;line-height:1.6}
body[data-portal="clients"] footer{color:#6b8176;margin-top:35px}
.client-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;border-radius:24px;background:#163f35;color:#fff;padding:35px 38px;min-height:230px;box-sizing:border-box}
.client-hero:after{content:"";position:absolute;right:-80px;top:-220px;width:570px;height:570px;border:1px solid #c6f2d429;border-radius:50%;pointer-events:none}
.hero-kicker{display:block;color:#bbe2bc;font-size:10px;font-weight:700;letter-spacing:2px;margin-bottom:17px}
.client-hero h2{font-size:clamp(26px,3vw,40px);line-height:1.17;margin:0;font-weight:650;letter-spacing:-1.5px}
.client-hero h2 em{font-style:normal;color:#c6f2d4}
.client-hero p{color:#cee1d4;font-size:13px;margin:18px 0 0;line-height:1.6}
.hero-orbit{flex:0 0 180px;height:180px;border:1px solid #c6f2d430;position:relative;border-radius:50%;display:grid;place-items:center;z-index:1}
.orbit-logo{display:grid;place-items:center;width:86px;height:86px;font-size:60px;font-weight:800;color:#173d33;background:#c6f2d4;border-radius:25px;transform:rotate(-9deg);box-shadow:0 12px 35px #05251c66}
.orbit-tag{position:absolute;right:-8px;bottom:5px;background:#f5f3e8;color:#294c3f;border-radius:20px;padding:10px 17px;font-size:12px;font-weight:700}
.home-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:32px 0 17px}
.home-heading h2{font-size:23px;margin:6px 0 0}.home-date{font-size:12px;color:#5e7668;text-transform:capitalize}
.home-metrics{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:14px}
.metric{padding:23px 20px;border:1px solid #dce6dd;border-radius:18px;background:#fff;display:flex;flex-direction:column;gap:12px;min-width:0}
.metric>span{font-size:12px;color:#506e60;font-weight:600}.metric strong{font-size:clamp(25px,2.5vw,37px);letter-spacing:-1.4px;line-height:1.1;overflow-wrap:anywhere}.metric small{font-size:11px;color:#5e7466;line-height:1.55}
.metric-primary{background:#dff0cf;border-color:#d4e7c0}.metric-primary strong{color:#234c32}
.home-stores{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
body[data-portal="clients"] .home-store{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;color:#234338;padding:17px;border:1px solid #d7e2d9;box-shadow:none}
body[data-portal="clients"] .home-store[aria-pressed="true"]{border:2px solid #297e60;padding:16px;background:#f2f8ed}
.store-monogram{width:42px;height:42px;border-radius:13px;flex-shrink:0;display:grid;place-items:center;background:#e2ede1;font-size:20px;font-weight:700}
.store-info{flex:1;min-width:0}.store-info strong{font-size:14px;display:block}.store-info small{display:block;font-size:11px;color:#657c6c;margin-top:6px;line-height:1.6}
.home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}
body[data-portal="clients"] .home-actions button{position:relative;text-align:left;padding:22px;background:#fff;border:1px solid #dce6dd;color:#204537;border-radius:17px;display:grid;grid-template-columns:40px 1fr;column-gap:12px}
.action-symbol{grid-row:1/3;width:40px;height:40px;border-radius:12px;background:#f4efe1;color:#917347;display:grid;place-items:center;font-size:24px}
.home-actions strong{font-size:14px;padding-right:14px}.home-actions small{font-size:11px;font-weight:400;color:#62796b;margin-top:7px;line-height:1.5}.action-arrow{position:absolute;right:14px;top:13px;color:#698779}
.home-analysis{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;margin:24px 0}.home-analysis h2{font-size:20px;margin:8px 0}.home-chart-label{font-size:11px;min-height:32px}
.home-chart{display:flex;align-items:stretch;gap:10px;min-height:180px;margin-top:22px}.chart-day{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;gap:10px}.chart-day>span{font-size:9px;min-height:24px;color:#3c6554;overflow-wrap:anywhere}.chart-day small{font-size:10px;color:#6b8274;line-height:1.4}.chart-track{height:120px;display:flex;align-items:end;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#eaf0e8 39px,#eaf0e8 40px);border-bottom:1px solid #d8e5d8}.chart-bar{width:66%;margin:0 auto;border-radius:6px 6px 0 0;background:#32866b;min-height:3px}.chart-day:last-child .chart-bar{background:#a1c883}.chart-bar.missing{background:#c5cfc7!important}
.rank-product{display:flex;align-items:center;gap:10px;padding:17px 0;border-bottom:1px solid #e8ede5}.rank-product:last-child{border-bottom:0}.rank-number{font-size:12px;display:grid;place-items:center;background:#f0f4eb;color:#5a775f;border-radius:10px;width:29px;height:32px;flex-shrink:0}.rank-product>div{flex:1;min-width:0}.rank-product strong{font-size:12px;display:block;overflow-wrap:anywhere}.rank-product small{display:block;font-size:10px;color:#64796a;margin-top:6px;line-height:1.5}.rank-product b{font-size:12px;white-space:nowrap}
body[data-portal="clients"] .live-table{padding:0;overflow:hidden;box-shadow:none}.live-table summary{padding:20px;cursor:pointer}.live-table summary:hover{background:#f1f6ee}.live-table-lines{padding:0 20px 15px}
body[data-portal="clients"] .live-sections{padding:5px;background:#edf2e9;border-radius:12px;gap:5px}body[data-portal="clients"] .live-sections button{border:0;background:transparent}body[data-portal="clients"] .live-sections button[aria-pressed="true"]{background:white;color:#215c42;box-shadow:0 2px 8px #25472b10}
body[data-portal="clients"] dialog{border:1px solid #dce6dd;border-radius:22px;box-shadow:0 30px 100px #0c2e3540;padding:28px}body[data-portal="clients"] dialog::backdrop{background:#0d302964;backdrop-filter:blur(5px)}
body[data-portal="clients"] #login .login-art{background:#163f35}body[data-portal="clients"] #login .login-card{background:#fafbf7}body[data-portal="clients"] .login-art h2{letter-spacing:-2px;color:#e4f6da}
@media(min-width:701px) and (max-width:1150px){body[data-portal="clients"] main{padding:28px 24px}.home-metrics{grid-template-columns:repeat(2,1fr)}.home-analysis{grid-template-columns:1fr}.home-actions{gap:8px}.home-actions strong{font-size:12px}.hero-orbit{flex-basis:120px;height:120px}.home-actions .action-symbol{display:none}.home-actions button{grid-template-columns:1fr!important}}
@media(max-width:700px){body[data-portal="clients"] main{padding:20px 16px}body[data-portal="clients"] aside{padding:14px 16px}body[data-portal="clients"] nav{background:#103d35;border:0}body[data-portal="clients"] nav button{font-size:10px;padding:7px 3px;gap:6px;min-height:54px}body[data-portal="clients"] .sidebar-foot button{min-height:40px}body[data-portal="clients"] h1{font-size:25px}body[data-portal="clients"] .card{padding:18px}body[data-portal="clients"] header{margin-bottom:20px}.client-hero{padding:27px 22px;min-height:210px;border-radius:19px}.client-hero h2{font-size:29px}.client-hero p{max-width:235px;font-size:12px}.hero-orbit{display:none}.home-heading{align-items:start;gap:10px;margin-top:27px;flex-wrap:wrap}.home-heading h2{font-size:21px}.home-date{font-size:11px}.home-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:18px 14px;gap:11px}.metric strong{font-size:27px}.metric>span{font-size:11px}.metric small{font-size:10px}.home-stores{grid-template-columns:1fr}.home-actions{grid-template-columns:1fr;gap:10px}body[data-portal="clients"] .home-actions button{padding:17px}.home-analysis{grid-template-columns:1fr;gap:14px}.home-chart{gap:5px}.home-chart .chart-day>span{font-size:8px}.home-chart .chart-day small{font-size:9px}body[data-portal="clients"] dialog{padding:18px;border-radius:18px}.home-analysis .card-head{align-items:start}.home-analysis .quiet{font-size:11px}.home-room .live-sections{flex-wrap:wrap}.home-room .live-table summary{padding:16px}.home-room .live-table{padding:0}body[data-portal="clients"] #mobile-more{color:#cee0d7;background:transparent}}
@media(prefers-reduced-motion:reduce){body[data-portal="clients"] *{scroll-behavior:auto!important;transition:none!important}}
@media print{.client-hero,.home-actions,.home-stores{display:none}.home-analysis{display:block}.chart-track{print-color-adjust:exact}}

body[data-portal="clients"] button.metric{color:#193c2d;text-align:left;cursor:pointer;white-space:normal;font:inherit;transition:box-shadow .15s,transform .15s}body[data-portal="clients"] button.metric:hover{box-shadow:0 6px 20px #123d3518;transform:translateY(-2px)}body[data-portal="clients"] button.metric:focus-visible{outline:3px solid #007f73;outline-offset:3px}.metric>span{display:flex;justify-content:space-between;gap:8px}#home-rooms-dialog{width:min(1050px,95vw)}

.sales-document summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;list-style:revert}.sales-document summary>span{min-width:0}.sales-document small{display:block;color:#60766d;margin-top:5px;overflow-wrap:anywhere}.sales-document summary>b{white-space:nowrap}.sales-document-body{margin-top:20px;border-top:1px solid #dce6dd;padding-top:12px}.document-pagination{display:flex;justify-content:space-between;gap:12px}.sales-document summary:focus-visible{outline:3px solid #007f73;outline-offset:5px}
/* Sales trend: a fixed SVG plot keeps the monetary scale proportional. */
.sales-trend-card{overflow:hidden}.sales-trend-card .home-chart-label{min-height:0;margin:8px 0 20px;font-size:12px}.sales-trend-card .home-chart{display:block;min-height:0;margin-top:0}.sales-summary{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:20px;padding:2px 0 22px;border-bottom:1px solid #e6eeeb}.sales-summary>div{display:flex;flex-direction:column;gap:6px;min-width:0}.sales-summary span{font-size:11px;color:#637a80}.sales-summary strong{font-size:20px;letter-spacing:-.6px;font-variant-numeric:tabular-nums;color:#183e45;line-height:1.25}.sales-summary .sales-summary-total strong{font-size:30px;color:#086f66}.sales-summary small{font-size:10px;color:#71888c}.sales-chart-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding-top:10px}.sales-trend-svg{display:block;width:100%;min-width:540px;height:auto;overflow:visible;font-family:inherit}.sales-grid{stroke:#e7eeeb;stroke-width:1;stroke-dasharray:3 5}.sales-zero{stroke:#b9cbc5;stroke-dasharray:none}.sales-axis{fill:#71858a;font-size:10px;font-variant-numeric:tabular-nums}.sales-day{fill:#60777c;font-size:11px}.sales-value{fill:#2b5358;font-size:10px;font-weight:600;font-variant-numeric:tabular-nums}.sales-current-label{fill:#5c8449;font-size:7px;font-weight:700;letter-spacing:.6px}.sales-bar{transition:filter .15s}.sales-negative{fill:#bb7359}.sales-hit{fill:transparent}.sales-point{outline:none;cursor:default}.sales-point:hover .sales-bar,.sales-point:focus .sales-bar{filter:brightness(1.17)}.sales-point:focus .sales-hit{fill:#08756e0a;stroke:#08756e;stroke-width:1;stroke-dasharray:3 3}.sales-tooltip{visibility:hidden;pointer-events:none}.sales-tooltip rect{fill:#163f43}.sales-tooltip text{fill:white;font-size:11px;font-weight:600}.sales-point:hover .sales-tooltip,.sales-point:focus .sales-tooltip{visibility:visible}.sales-missing{stroke:#9aaca7;stroke-width:3;stroke-dasharray:4 4}.sales-missing-label{fill:#8b9c98;font-size:9px}.sales-chart-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-top:10px;border-top:1px solid #e6eeeb;font-size:10px;color:#75898a}.sales-chart-foot>span:first-child{display:flex;align-items:center;gap:6px}.sales-chart-foot i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#108d81}.sales-chart-foot .sales-legend-today{background:#8ebc72;margin-left:10px}.sales-trend-empty{padding:55px 20px;text-align:center;background:#f4f8f6;border-radius:12px;color:#647b7e}.sales-trend-empty strong{color:#214c50}.sales-trend-empty p{font-size:12px}
@media(max-width:700px){.sales-summary{gap:12px;grid-template-columns:1fr 1fr}.sales-summary-total{grid-column:1/-1}.sales-summary .sales-summary-total strong{font-size:30px}.sales-summary strong{font-size:20px}.sales-chart-foot{font-size:10px}.sales-trend-card .home-chart-label{font-size:11px}.sales-chart-scroll{margin-right:-6px;padding-bottom:6px}}
@media print{.sales-chart-scroll{overflow:visible}.sales-trend-svg{min-width:0;print-color-adjust:exact}.sales-tooltip{display:none}}
.trend-period-label{display:inline-flex;margin:0}.trend-period-label select{width:auto;max-width:100%;min-height:38px;padding:6px 32px 6px 12px;border:1px solid #cde0d9;border-radius:9px;background:#f0f7f3;color:#17675e;font-size:12px;font-weight:600;cursor:pointer}.trend-period-label .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.trend-custom{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px;margin:12px 0;background:#f3f8f5;border-radius:10px}.trend-custom[hidden]{display:none}.trend-custom label{flex:1;min-width:130px;margin:0;font-size:12px}.trend-custom input{margin-top:5px;min-height:42px}.trend-custom button{min-height:42px}.trend-range-message:empty{display:none}.trend-range-message{color:#9e4531;font-size:12px}.sales-trend-card .home-chart-label{line-height:1.5}
