:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#282c2b;background:#f6f6f3;font-synthesis:none;--ink:#292d2c;--muted:#606866;--line:#dfdfd9;--paper:#ffffff;--base:#f6f6f3;--accent:#171717;--accent-dark:#343434;--accent-pale:#eeeeeb;--good:#286c57;--bad:#a34240;--warn:#906522;--nav:#000000;--shadow:0 12px 34px rgba(23,29,27,.07)}
*{box-sizing:border-box}html{min-width:320px}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-underline-offset:3px}::selection{background:#d4e8e6;color:#261b20}:focus-visible{outline:3px solid #397574;outline-offset:2px}input,select{accent-color:var(--accent);caret-color:var(--accent)}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.startup{min-height:100vh;display:grid;place-items:center;color:var(--muted)}.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(280px,43%) 1fr}.auth-intro{background:var(--nav);color:#f5f1ec;padding:clamp(2rem,6vw,6rem);display:flex;flex-direction:column;justify-content:space-between}.wordmark{font-size:.93rem;letter-spacing:.01em;font-weight:700;line-height:1.35}.wordmark small{display:block;color:#d3cec8;font-weight:400;letter-spacing:.1em;text-transform:uppercase;font-size:.63rem;margin-top:.4rem}.auth-intro h1{font-size:clamp(2rem,3vw,3.6rem);font-weight:560;line-height:1.08;letter-spacing:-.035em;max-width:12ch;margin:6rem 0 1rem}.auth-intro p{color:#e0dcd6;line-height:1.65;max-width:38ch}.auth-foot{font-size:.83rem;color:#bfc5c1}.auth-panel{display:grid;place-items:center;padding:2rem}.auth-box{width:min(100%,440px)}.auth-box>h1{font-size:1.7rem;font-weight:650;letter-spacing:-.025em;margin:0 0 .5rem}.auth-box>p{color:var(--muted);line-height:1.55;margin:0 0 2rem}.auth-options{display:grid;gap:.7rem;margin:1.2rem 0}.auth-box .field{margin:1rem 0}.auth-note{font-size:.81rem;line-height:1.5;color:var(--muted);margin-top:1.5rem}.auth-error{margin-top:1rem}.google-slot{min-height:44px}
.workspace{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}.sidebar{background:var(--nav);color:#f7f2ed;padding:29px 17px 22px;display:flex;flex-direction:column;gap:2rem;position:sticky;top:0;height:100vh}.sidebar .wordmark{padding:0 11px}.nav-list{display:grid;gap:4px}.nav-link{width:100%;border:0;background:transparent;color:#dce0dc;border-radius:10px;text-align:left;padding:12px 13px;font-size:.91rem;display:flex;align-items:center;gap:11px}.nav-link:hover{background:#383e3c;color:#fff}.nav-link.active{background:#f8f4ee;color:#242b29;font-weight:650}.nav-icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;fill:none;flex:none}.sidebar-end{margin-top:auto;border-top:1px solid #48504d;padding:17px 11px 0}.profile-name{font-size:.9rem;font-weight:650;overflow-wrap:anywhere}.profile-meta{font-size:.76rem;color:#c3ccc7;margin-top:4px}.logout{border:0;background:transparent;color:#f1dfe6;padding:12px 0 0;font-size:.79rem}.logout:hover{text-decoration:underline}.main{min-width:0}.topbar{min-height:77px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:15px clamp(20px,3vw,42px);background:var(--paper)}.topbar-title{font-weight:680;font-size:1.08rem;letter-spacing:-.02em}.topbar-context{color:var(--muted);font-size:.81rem;margin-top:3px}.topbar-actions{display:flex;align-items:center;gap:9px}.content{padding:30px clamp(20px,3vw,42px) 70px;max-width:1600px;margin:auto}.page-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head h1{font-size:1.75rem;line-height:1.15;letter-spacing:-.035em;margin:0;font-weight:690}.page-head p{margin:7px 0 0;color:var(--muted);font-size:.91rem;line-height:1.5}.head-actions{display:flex;gap:8px;flex-wrap:wrap}.mobile-nav{display:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font-weight:610;font-size:.87rem;padding:10px 15px;min-height:40px;white-space:nowrap;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}.btn:hover{background:#f5f1ed;border-color:#bdbab5}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{background:var(--accent-dark);border-color:var(--accent-dark)}.btn.quiet{background:transparent;border-color:transparent}.btn.quiet:hover{background:#eeeae6}.btn.danger{color:var(--bad)}.btn.small{min-height:33px;padding:6px 10px;font-size:.79rem}.btn.full{width:100%}.text-button{border:0;background:none;color:var(--accent-dark);padding:4px 0;font-size:.84rem;font-weight:650}.text-button:hover{text-decoration:underline}.pill{display:inline-flex;align-items:center;border-radius:50px;background:#ecebe5;color:#4a5350;padding:5px 9px;font-size:.73rem;font-weight:640}.pill.warning{background:#fbf0db;color:#715013}.pill.success{background:#e2f1e9;color:#236047}.pill.error{background:#f9e8e6;color:#8a3534}
.filterbar{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:15px 18px;display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:23px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label,.field-label{font-size:.77rem;font-weight:660;color:#4a5350}.field input,.field select,.field textarea{width:100%;min-height:40px;border:1px solid #cfd2cc;border-radius:8px;background:#fff;color:var(--ink);padding:9px 11px;font-size:.88rem}.field input:hover,.field select:hover{border-color:#aeb3ac}.field input:disabled,.field select:disabled{background:#f3f3f0}.field small{color:var(--muted);line-height:1.45}.filterbar .field{min-width:170px}.filterbar .field.month{min-width:150px}.filterbar .field.scope{min-width:210px}.filterbar .filter-note{font-size:.8rem;color:var(--muted);padding-bottom:11px}.filters-reset{margin-left:auto}.section-title{font-size:1.08rem;font-weight:670;margin:0;letter-spacing:-.015em}.section-sub{font-size:.78rem;color:var(--muted);margin:5px 0 0;line-height:1.45}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}.metric{border:1px solid var(--line);border-radius:13px;background:var(--paper);padding:19px 19px 17px;min-width:0}.metric-label{color:var(--muted);font-size:.8rem;font-weight:620}.metric-value{font-size:clamp(1.35rem,2vw,2rem);font-weight:680;letter-spacing:-.035em;font-variant-numeric:tabular-nums;margin:11px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-note{font-size:.77rem;color:var(--muted);line-height:1.4}.metric.important{background:#e9f0ee;border-color:#d4e0dc}.metric.important .metric-label{color:#315650}.metric.important .metric-value{color:#203f39}.metric .negative{color:var(--good)}.metric .positive{color:var(--bad)}.progress{height:6px;background:#e8e4df;border-radius:5px;overflow:hidden;margin-top:12px}.progress>span{display:block;height:100%;background:var(--accent);border-radius:5px;max-width:100%}
.chart-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:14px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:20px;min-width:0}.panel.span-all{grid-column:1/-1}.panel-header{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:18px}.panel-header .pill{flex:none}.chart{width:100%;height:auto;display:block}.chart text{font-family:inherit;fill:#68716c;font-size:11px}.chart .gridline{stroke:#e8e9e4;stroke-width:1}.chart .bar{fill:#41746c}.chart .bar:nth-of-type(even){fill:#789d96}.chart .goal-line{stroke:#b59d79;stroke-width:2;fill:none;stroke-dasharray:5 5}.chart .actual-line{stroke:#41746c;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}.legend{display:flex;gap:17px;flex-wrap:wrap;font-size:.75rem;color:var(--muted);margin-top:11px}.legend span{display:inline-flex;align-items:center;gap:7px}.legend i{width:12px;height:3px;background:#41746c;display:inline-block}.legend .goal i{background:#b59d79}.stack{display:grid;gap:12px}.rank-row{display:grid;grid-template-columns:minmax(105px,1fr) minmax(80px,1.6fr) auto;gap:12px;align-items:center;font-size:.79rem}.rank-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-track{height:9px;border-radius:5px;background:#f0ede9;overflow:hidden}.rank-fill{height:100%;background:#41746c;border-radius:5px}.rank-value{font-variant-numeric:tabular-nums;text-align:right;min-width:83px;font-weight:630}.rank-small{color:var(--muted);font-size:.72rem;margin-top:3px}.chart-foot{font-size:.75rem;color:var(--muted);line-height:1.5;margin-top:15px}.dashboard-tail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.empty{padding:24px;color:var(--muted);font-size:.88rem;line-height:1.55;background:#f7f6f2;border-radius:9px}.empty strong{display:block;color:var(--ink);font-size:.94rem;margin-bottom:4px}.notice{border:1px solid #ead9ae;background:#fbf5e7;color:#6d5225;border-radius:10px;padding:11px 14px;font-size:.82rem;line-height:1.5;margin-bottom:18px}.notice.error{border-color:#eac7c4;background:#fbefee;color:#843b3a}.notice.success{border-color:#bddbcc;background:#e9f5ed;color:#24583d}.notice.info{border-color:#d7dbd7;background:#f0f2ef;color:#4d5951}.notice button{border:0;background:none;text-decoration:underline;color:inherit;font:inherit;font-weight:650;padding:0 0 0 8px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px;background:var(--paper)}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;padding:13px 16px;border-bottom:1px solid #e9e9e4;font-size:.84rem;vertical-align:top}th{font-size:.73rem;letter-spacing:.01em;color:#57615c;font-weight:700;background:#faf9f5;white-space:nowrap}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#faf9f6}td.number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}td .sub{color:var(--muted);font-size:.74rem;margin-top:4px}.detail-row td{background:#f7f6f2;padding:13px 18px}.detail-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:9px;font-size:.77rem}.detail-list span{display:block;color:var(--muted);margin-top:3px}.table-action{white-space:nowrap;display:flex;gap:10px;align-items:center}
.form-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,.72fr);gap:17px;align-items:start}.form-panel{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:23px}.form-panel h2{font-size:1.07rem;margin:0 0 5px}.form-panel p{color:var(--muted);font-size:.81rem;line-height:1.5;margin:0 0 21px}.form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-fields .wide{grid-column:1/-1}.lines-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:28px 0 12px}.lines-head h2{margin:0}.line-list{display:grid;gap:10px}.sale-line{background:#f8f7f3;border:1px solid #e6e6df;border-radius:11px;padding:15px;display:grid;grid-template-columns:minmax(140px,1.6fr) minmax(68px,.54fr) minmax(100px,.8fr) minmax(105px,.7fr) 35px;gap:10px;align-items:end}.sale-line .field{min-width:0}.sale-line .line-net{font-size:.84rem;font-variant-numeric:tabular-nums;min-height:40px;display:flex;align-items:center}.line-net-wrap{display:flex;flex-direction:column;gap:7px}.remove-line{width:35px;height:40px;border:0;background:transparent;border-radius:8px;color:#86565f;font-size:1.2rem}.remove-line:hover{background:#f0e9e9}.line-hint{grid-column:1/-1;font-size:.74rem;color:var(--muted)}.totals{display:grid;gap:12px}.total-row{display:flex;justify-content:space-between;gap:12px;font-size:.86rem}.total-row strong{font-variant-numeric:tabular-nums;white-space:nowrap}.total-row.main{border-top:1px solid var(--line);padding-top:14px;margin-top:3px;font-size:1rem}.totals-note{font-size:.76rem;line-height:1.5;color:var(--muted);margin-top:11px}.form-actions{display:flex;gap:10px;margin-top:24px;flex-wrap:wrap}.reason-field{margin-top:18px}.side-note{font-size:.77rem;color:var(--muted);line-height:1.55;margin:18px 0 0}.quality-list{display:grid;gap:12px}.quality-row{padding:15px 0;border-bottom:1px solid var(--line)}.quality-row:last-child{border-bottom:0}.quality-row strong{display:block;margin-bottom:4px}.quality-row p{font-size:.82rem;color:var(--muted);margin:0;line-height:1.5}
.skeleton{background:linear-gradient(90deg,#ecece7 20%,#f7f6f2 50%,#ecece7 80%);background-size:220% 100%;border-radius:8px;animation:shimmer 1.4s linear infinite;height:18px;margin:10px 0}.skeleton.wide{width:92%}.skeleton.mid{width:56%}.skeleton.big{height:125px}@keyframes shimmer{to{background-position-x:-220%}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:1170px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.sale-line{grid-template-columns:minmax(150px,1.7fr) minmax(70px,.5fr) minmax(100px,.8fr) minmax(100px,.75fr) 35px}}@media(max-width:900px){.workspace{grid-template-columns:1fr}.sidebar{display:none}.mobile-nav{display:flex;gap:4px;overflow-x:auto;padding:8px 16px;background:var(--nav)}.mobile-nav .nav-link{width:auto;white-space:nowrap;font-size:.81rem;padding:10px 12px}.mobile-nav .nav-link.active{background:#f8f4ee}.topbar{min-height:67px}.chart-grid{grid-template-columns:1fr 1fr}}@media(max-width:680px){.auth-page{grid-template-columns:1fr}.auth-intro{padding:27px 24px 31px;gap:28px}.auth-intro h1{font-size:2rem;margin:25px 0 8px;max-width:16ch}.auth-intro p{font-size:.84rem;margin:0}.auth-foot{display:none}.auth-panel{padding:35px 23px}.content{padding:22px 16px 65px}.topbar{padding:13px 16px}.topbar-context{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-actions .btn{padding:8px 10px;font-size:.77rem}.page-head{align-items:start;flex-direction:column;gap:13px}.page-head h1{font-size:1.52rem}.filterbar{padding:13px;gap:11px}.filterbar .field,.filterbar .field.month,.filterbar .field.scope{flex:1 1 140px;min-width:130px}.filters-reset{margin-left:0}.metric-grid,.chart-grid,.dashboard-tail{grid-template-columns:1fr}.metric-grid{gap:9px}.metric{padding:16px}.metric-value{font-size:1.55rem}.panel.span-all{grid-column:auto}.panel{padding:16px}.form-panel{padding:17px}.form-fields{grid-template-columns:1fr}.sale-line{grid-template-columns:1fr 1fr 35px}.sale-line .sku-field{grid-column:1/-1}.sale-line .line-net-wrap{grid-column:1/3}.sale-line .remove-line{grid-column:3;grid-row:2}.line-hint{grid-column:1/-1}.rank-row{grid-template-columns:minmax(78px,1fr) minmax(55px,1.1fr) auto;gap:7px}.rank-value{min-width:73px;font-size:.73rem}.rank-name{font-size:.74rem}}
.report-note{border:1px solid #d9d8d2;border-radius:10px;background:#efefeb;color:#47524c;margin-bottom:19px;font-size:.81rem}.report-note summary{cursor:pointer;list-style:none;padding:11px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center;font-weight:620;line-height:1.4}.report-note summary::-webkit-details-marker{display:none}.report-note summary::before{content:"ⓘ";font-size:1rem;margin-right:3px}.report-note summary span{margin-left:auto;color:var(--accent-dark);white-space:nowrap;font-weight:650}.report-note[open] summary span{font-size:0}.report-note[open] summary span::after{content:"Ocultar detalles";font-size:.81rem}.report-note-body{border-top:1px solid #d9d8d2;padding:8px 16px 12px;line-height:1.5}.report-note-body p{margin:7px 0}.report-note-body ul{padding-left:20px;margin:8px 0}.chart-details{margin-top:12px;font-size:.78rem;color:var(--muted)}.chart-details summary{cursor:pointer;color:var(--accent-dark);font-weight:650}.chart-details ol{padding-left:20px;margin:10px 0 0}.chart-details li{padding:5px 0;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.chart-details li span{overflow-wrap:anywhere}.chart-details li strong{white-space:nowrap;color:var(--ink)}
@media(max-width:900px){.mobile-nav{scrollbar-width:none;-ms-overflow-style:none}.mobile-nav::-webkit-scrollbar{display:none}.mobile-nav::after{content:"›";color:#f8f4ee;background:var(--nav);position:sticky;right:-16px;padding:7px 2px 7px 8px;font-size:1.25rem;line-height:1;align-self:center}}
@media(max-width:480px){.filterbar{display:grid;grid-template-columns:minmax(0,1fr)}.filterbar .field,.filterbar .field.month,.filterbar .field.scope{width:100%;min-width:0}.filterbar select{min-width:0}.filterbar .filter-note{padding:0}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric:nth-child(-n+3),.metric:nth-child(8){grid-column:1/-1}.metric:nth-child(n+4):nth-child(-n+7){padding:14px}.metric:nth-child(n+4):nth-child(-n+7) .metric-value{font-size:1.27rem;white-space:normal}.metric:nth-child(n+4):nth-child(-n+7) .metric-note{font-size:.71rem}.report-note summary{align-items:start}.report-note summary span{font-size:.72rem;white-space:normal;text-align:right}}

.mobile-logout{display:none}@media(max-width:900px){.mobile-logout{display:inline-flex}.topbar-actions{flex-wrap:wrap;justify-content:flex-end}.topbar .pill{font-size:.65rem}.topbar-title .pill{margin-left:4px}.topbar-context{white-space:normal}}

.bar-list{display:grid;gap:20px}.bar-heading{display:flex;justify-content:space-between;gap:18px;font-size:.83rem;line-height:1.45;margin-bottom:7px}.bar-heading span{overflow-wrap:anywhere}.bar-heading strong{white-space:nowrap;font-variant-numeric:tabular-nums}.bar-track{height:9px;position:relative;background:#eeeae7;border-radius:6px}.bar-track span{display:block;height:9px;background:#41746c;border-radius:6px}.bar-track i{position:absolute;top:-3px;width:2px;height:15px;background:#806137}.bar-meta{font-size:.73rem;color:var(--muted);margin-top:8px}.daily-scroll{overflow:auto}.daily-chart{min-width:560px}.source-links{display:flex;gap:24px;flex-wrap:wrap;padding-left:20px}.quality-list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.content>.panel{margin-bottom:14px}

.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:.8rem}

@media(max-width:480px){.metric:nth-child(6){grid-column:1/-1}}

/* Mobile workspace, revised after seller demo feedback. */
.brand-lockup{display:flex;align-items:center;min-width:0}.brand-lockup img{display:block;width:min(100%,210px);height:auto;object-fit:contain;flex:none}.mobile-brand{display:none}
.btn,.btn.small{min-height:44px}.text-button{min-height:44px;padding:10px 6px}.danger{color:var(--bad)}
.bulk-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;flex-wrap:wrap}.bulk-actions label,.select-cell label{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}.bulk-actions input,.select-cell input{width:22px;height:22px;flex:none}.mobile-only{display:none}
.auth-box .auth-note{margin:24px 0 0}.table-action{flex-wrap:wrap}.form-panel{scroll-margin-bottom:100px}.field input,.field select{min-height:44px}.line-hint{overflow-wrap:anywhere}
@media(max-width:900px){
 .auth-page{display:flex;flex-direction:column;min-height:100dvh}.auth-intro{padding:18px 22px;display:block}.auth-intro>div:not(.brand-lockup){display:none}.auth-intro .wordmark{font-size:1rem}.auth-panel{padding:26px 22px;display:block}.auth-box{margin:auto}.auth-box>p{margin-bottom:20px}.auth-box .field{margin:4px 0}
 .mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:space-evenly;gap:3px;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid #454545;background:#121212;overflow:visible}
 .mobile-nav::after{display:none}.mobile-nav .nav-link{flex:1;min-width:0;min-height:55px;padding:7px 3px;flex-direction:column;justify-content:center;gap:5px;font-size:.73rem;white-space:normal;text-align:center;line-height:1.2;border-radius:8px}.mobile-nav .nav-icon{width:20px;height:20px}.mobile-nav .nav-link.active{background:#fff;color:#121212}
 .content{padding-bottom:calc(105px + env(safe-area-inset-bottom))}.topbar{gap:10px}.topbar-title{font-size:1rem}.topbar-actions{gap:6px}.field input,.field select,.field textarea{font-size:16px}.remove-line{width:44px;height:44px}.sale-line{grid-template-columns:1fr 1fr 44px}.auth-note{font-size:.81rem}.form-actions .btn{flex:1}.metric-value{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:680px){
 .mobile-only{display:inline}.bulk-actions{align-items:stretch}.bulk-actions>.btn{width:100%}
 .sales-table{border:0;border-radius:0;background:none;overflow:visible}.sales-table table,.sales-table tbody{display:block;min-width:0}.sales-table thead{display:none}.sales-table .sale-record{display:block;background:var(--paper);border:1px solid var(--line);border-radius:13px;margin-bottom:14px;padding:12px}.sales-table .sale-record td{display:block;border:0;padding:6px 4px;text-align:left;white-space:normal;overflow-wrap:anywhere}.sales-table td[data-label]::before{content:attr(data-label);display:inline-block;min-width:90px;color:var(--muted);font-weight:500;font-size:.8rem}.sales-table .sub{padding-left:90px}.sales-table .table-action{border-top:1px solid var(--line);padding-top:5px;justify-content:space-between}.sales-table .detail-row,.sales-table .detail-row td{display:block;min-width:0}.sales-table .detail-row{margin:-10px 0 14px}.sales-table .detail-list{grid-template-columns:1fr}.pagination{flex-wrap:wrap}
}

@media(min-width:681px) and (max-width:900px){.sale-line{grid-template-columns:minmax(130px,1.5fr) minmax(75px,.7fr) minmax(150px,1fr) minmax(90px,.7fr) 44px}}

dialog{width:min(480px,calc(100% - 32px));max-height:80dvh;overflow:auto;border:1px solid var(--line);border-radius:13px;padding:24px;color:var(--ink);background:var(--paper)}dialog::backdrop{background:rgba(0,0,0,.5)}dialog h2{font-size:1.25rem;margin:0 0 12px}dialog p,dialog li{line-height:1.5}dialog ul{padding-left:20px;overflow-wrap:anywhere}

.months-toggle{width:100%;min-height:44px;margin-top:18px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--accent-dark);font-weight:680;padding:15px 8px 2px}.months-toggle:hover{color:var(--ink)}
.unit-price{grid-column:1/-1;color:#385d56;background:#eef4f1;border-radius:8px;padding:9px 11px;font-size:.76rem;font-weight:620;line-height:1.45}
.inline-warning{margin:0 0 12px;border-left:4px solid #a34240;background:#fbefee;color:#7f3432;border-radius:8px;padding:10px 12px;font-size:.8rem;font-weight:650;line-height:1.45}
.sale-line.duplicate-sku{border-color:#c96864;background:#fff8f7;box-shadow:0 0 0 2px rgba(163,66,64,.12)}.sale-line.duplicate-sku .sku-field input{border-color:#a34240}.line-duplicate{grid-column:1/-1;color:#8a3534;font-size:.76rem;font-weight:650;line-height:1.4}

/* Mobile visual refinement and horizontal company wordmark. */
@media(max-width:900px){
 body{background:#f4f3ef}
 .auth-intro{background:#000;padding:15px 20px}.auth-intro .brand-lockup img{width:min(100%,315px)}
 .auth-panel{padding:28px 20px 40px}.auth-box{max-width:430px}.auth-box>h1{font-size:1.55rem}.auth-box>p{font-size:.94rem}
 .topbar{position:sticky;top:0;z-index:15;min-height:calc(72px + env(safe-area-inset-top));padding:calc(12px + env(safe-area-inset-top)) 14px 12px;background:#000;border-bottom:0;color:#fff}
 .mobile-brand{display:block;min-width:0;flex:1}.mobile-brand .brand-lockup img{width:min(100%,225px)}
 .topbar-copy{display:none}.topbar-actions{flex:none;gap:8px;flex-wrap:nowrap}.topbar-actions>.pill{background:#242424;color:#f2f2f2}.topbar-new-sale{display:none}.mobile-logout{border-color:#4d4d4d;background:#111;color:#fff;padding-inline:12px}.mobile-logout:hover{background:#242424;border-color:#696969}
 .content{padding:20px 14px calc(96px + env(safe-area-inset-bottom))}.page-head{margin-bottom:18px}.page-head h1{font-size:clamp(1.45rem,7vw,1.75rem)}.page-head p{font-size:.88rem}
 .filterbar,.panel,.form-panel,.sales-table .sale-record{border:0;box-shadow:0 3px 18px rgba(23,29,27,.07)}
 .filterbar{padding:15px;margin-bottom:18px}.metric-grid{gap:10px;margin-bottom:18px}.metric{border:0;box-shadow:0 3px 16px rgba(23,29,27,.06);padding:16px}.metric.important{box-shadow:inset 0 0 0 1px #d4e0dc,0 3px 16px rgba(23,29,27,.05)}
 .chart-grid,.dashboard-tail{gap:12px}.panel{padding:17px}.panel-header{margin-bottom:15px}.section-title{font-size:1.02rem}
 .mobile-nav{background:#000;border-top:0;box-shadow:0 -8px 24px rgba(0,0,0,.16);padding-top:6px}.mobile-nav .nav-link{color:#d7d7d7;min-height:58px;border-radius:10px}.mobile-nav .nav-link.active{background:#f7f5f0;color:#111}.mobile-nav .nav-link span{font-weight:600}
}
@media(max-width:480px){
 .topbar{min-height:calc(68px + env(safe-area-inset-top))}.mobile-brand .brand-lockup img{width:min(100%,205px)}
 .auth-intro .brand-lockup img{width:min(100%,300px)}.auth-panel{padding-top:25px}
 .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric:nth-child(-n+3),.metric:nth-child(6),.metric:nth-child(8){grid-column:1/-1}
 .metric:nth-child(n+4):nth-child(-n+7){padding:14px}.metric-label{font-size:.76rem}.metric-note{font-size:.73rem}
 .form-panel{padding:15px}.sale-line{padding:13px}.page-head .head-actions,.page-head .head-actions .btn{width:100%}
}

/* Installation is secondary to login and daily work. */
#install-guide { max-width:420px; width:calc(100% - 32px); max-height:calc(100dvh - 32px); padding:0; overflow:hidden; border:1px solid #dfdfd9; border-radius:13px; color:#292d2c; background:#fff; }
#install-guide[open] { display:flex; flex-direction:column; }
#install-guide .install-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px 12px; flex:none; }
#install-guide h2 { margin:0; }
#install-guide .install-content { padding:0 20px; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
#install-guide .install-content>p:first-child { margin-top:0; }
#install-guide ol { padding-left:24px; }
#install-guide .install-footer { padding:14px 20px 18px; flex:none; }
#install-guide .install-footer .btn { width:100%; }
.install-close { width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:8px; background:transparent; color:inherit; }
.install-close svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; }
.install-guide-open { overflow:hidden; }
#install-guide::backdrop { background:rgb(0 0 0 / 45%); }
#install-guide h2 { margin-top:0; }
#install-guide li { margin-bottom:12px; }
.install-button { white-space:normal; }
[data-install-app][hidden] { display:none !important; }
.auth-box > .install-button { margin-bottom:12px; }
@media (max-width:760px) { .topbar-actions > .install-button { font-size:12px; padding:8px 10px; min-height:44px; max-width:130px; } }
.mobile-install { display:none; }
.mobile-ticket-review { display:none; }
.skip-link { position:fixed; top:8px; left:8px; z-index:100; padding:12px 16px; background:#fff; color:#111; transform:translateY(-160%); border-radius:8px; }
.skip-link:focus { transform:translateY(0); }
.error-brand { background:#000; padding:20px; }
.error-brand img { width:min(100%,300px); height:auto; }
.error-page { max-width:560px; margin:8vh auto; padding:24px; }
.error-page p { line-height:1.6; }
.auth-intro .auth-heading { color:#f5f1ec; font-size:clamp(2rem,3vw,3.6rem); font-weight:560; line-height:1.08; letter-spacing:-.035em; max-width:12ch; margin:6rem 0 1rem; }
button,a,input,select { touch-action:manipulation; }
.field-error { margin:8px 0 0; color:var(--bad); font-size:.85rem; line-height:1.45; }
.field input[aria-invalid="true"],.field select[aria-invalid="true"] { border-color:var(--bad); }
@media (max-width:900px) {
 .topbar-actions > .install-button { display:none; }
 .mobile-install { display:flex; justify-content:flex-end; margin-top:24px; }
 .mobile-ticket-review { display:grid; gap:8px; margin:20px 0 16px; padding-top:16px; border-top:1px solid var(--line); }
 .mobile-ticket-review .total-row { margin:0; gap:12px; }
 .mobile-ticket-review strong { font-variant-numeric:tabular-nums; }
 .auth-intro { padding-top:calc(15px + env(safe-area-inset-top)); }
}

/* Product search stays in the form flow, visible above the mobile keyboard. */
.sku-field { min-width:0; scroll-margin-top:90px; }
.product-picker { min-width:0; margin-top:6px; border:1px solid var(--line); border-radius:9px; background:var(--paper); overflow:hidden; }
.product-picker .product-search-status { margin:0; padding:10px 12px; font-size:.8rem; line-height:1.45; color:var(--muted); overflow-wrap:anywhere; }
.product-options { max-height:260px; max-height:min(260px,35dvh); overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain; touch-action:pan-y; scrollbar-width:thin; scrollbar-color:var(--muted) var(--paper); }
.product-option { width:100%; text-align:left; font:inherit; background:var(--paper); border:0; display:flex; flex-direction:column; gap:4px; padding:12px; min-height:60px; cursor:pointer; border-top:1px solid var(--line); overflow-wrap:anywhere; white-space:normal; }
.product-option-name { font-size:1rem; line-height:1.45; color:var(--ink); }
.product-option-detail { font-size:.82rem; line-height:1.4; color:var(--muted); }
.product-option[aria-selected="true"] { background:var(--accent-pale); outline:2px solid var(--accent); outline-offset:-2px; }
.product-confirmed { color:var(--good); }
.daily-chart.weekly-chart { min-width:0; }
.trend-controls { display:flex; flex-wrap:wrap; align-items:center; gap:14px 24px; margin-bottom:20px; }
.trend-segments { flex:none; }
.trend-compare { display:flex; align-items:center; gap:10px; min-height:44px; cursor:pointer; font-size:.9rem; }
.trend-compare input { width:20px; height:20px; accent-color:var(--accent); }
.trend-compare:has(input:disabled) { color:var(--muted); cursor:default; }
.previous-line { fill:none; stroke:#765e89; stroke-width:3; stroke-dasharray:3 5; }
.legend .previous i { background:#765e89; }
.trend-note:empty { display:none; }
.trend-data { margin-top:12px; }
.trend-data summary { padding:12px 0; min-height:44px; color:var(--accent); cursor:pointer; font-size:.9rem; }
.trend-data table { min-width:0; font-size:.8rem; }
.trend-data th,.trend-data td { white-space:normal; padding:10px 6px; }
.weekly-chart text { font-size:14px; }
/* Compact, readable plotting at every viewport; no desktop SVG magnification. */
.daily-chart { height:176px; width:100%; }
.weekly-chart text { font-size:11px; }
.trend-panel .panel-header { margin-bottom:12px; }
.trend-controls { margin-bottom:10px; }
.trend-panel .chart-foot { margin:8px 0; }
.trend-note:empty { display:none; }
.trend-data { margin-top:8px; }
.bar-track > span, .progress > span { transform-origin:left; }
.sale-confirmation { max-width:520px; margin:0 auto; padding:18px; border:1px solid var(--line); border-radius:13px; background:var(--paper); }
.saved-header { display:flex; gap:12px; align-items:center; text-align:left; }
.sale-confirmation h1 { margin:0 0 4px; font-size:1.5rem; line-height:1.2; letter-spacing:-.025em; }
.saved-header p { margin:0; color:var(--muted); font-size:.83rem; line-height:1.4; }
.saved-check { width:44px; height:44px; flex:none; fill:#e9f5ed; stroke:var(--good); stroke-width:3; }
.saved-check path { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.saved-details { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; text-align:left; margin:16px 0; border-top:1px solid var(--line); }
.saved-details > div { padding:8px 0; border-bottom:1px solid var(--line); min-width:0; }
.saved-details .saved-wide { grid-column:1/-1; display:flex; justify-content:space-between; gap:12px; }
.saved-details dt { color:var(--muted); font-size:.76rem; line-height:1.4; }
.saved-details dd { margin:3px 0 0; overflow-wrap:anywhere; font-size:.9rem; font-weight:600; font-variant-numeric:tabular-nums; }
.saved-wide dd { margin:0; text-align:right; }
.saved-total dd { font-size:1.07rem; }
.saved-actions { display:flex; gap:8px; }
.saved-actions .btn { flex:1; }
.sale-confirmation .notice { margin:0 0 12px; text-align:left; }
@media (max-width:600px) {
 .trend-controls { gap:6px; margin-bottom:8px; }
 .trend-compare { width:100%; font-size:.78rem; }
 .sale-confirmation { padding:14px; }
 .sale-confirmation h1 { font-size:1.3rem; }
 .saved-header { gap:10px; }
 .saved-actions { flex-direction:column; gap:6px; }
 .saved-actions .btn { width:100%; }
 .saved-details { gap:0 12px; margin:12px 0; }
 .saved-details > div { padding:6px 0; }
}
@media (prefers-reduced-motion:no-preference) {
 .btn, .trend-segments button { transition:background 160ms ease,border-color 160ms ease,transform 120ms cubic-bezier(.23,1,.32,1); }
 .btn:active:not(:disabled), .trend-segments button:active { transform:scale(.98); }
 .sale-confirmation { animation:saved-enter 240ms cubic-bezier(.23,1,.32,1); }
 .saved-check path { animation:saved-draw 360ms cubic-bezier(.23,1,.32,1); }
 @keyframes saved-enter { from { transform:translateY(6px); opacity:.7; } to { transform:translateY(0); opacity:1; } }
 @keyframes saved-draw { from { stroke-dasharray:1; stroke-dashoffset:1; } to { stroke-dasharray:1; stroke-dashoffset:0; } }
}
@media(hover:hover) { .product-option:hover { background:var(--accent-pale); } }

@media(max-width:900px) {
 .product-picker .product-search-status { padding:6px 10px; font-size:.75rem; line-height:1.35; }
 .product-option { min-height:52px; padding:8px 10px; gap:2px; }
 .product-option-name { font-size:.9rem; line-height:1.35; }
 .product-option-detail { font-size:.78rem; line-height:1.35; }
}


/* Continuity: keep the current report visible during a filter request. */
.report-feedback { min-height:36px; margin:-10px 0 10px; color:var(--muted); font-size:.78rem; line-height:1.45; }
.report-feedback.error { color:var(--bad); }
#dashboard-report[inert] { cursor:progress; }
.seller-mobile { display:none; }
.sale-line.selected-product:not(.duplicate-sku) { background:#eef5f1; border-color:#41746c; }
.line-hint.product-confirmed { display:flex; align-items:flex-start; gap:6px; color:#245b49; }
.product-check { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.back-to-top { position:fixed; z-index:19; right:max(18px,env(safe-area-inset-right)); bottom:22px; width:44px; height:44px; border:1px solid #343434; border-radius:9px; background:#171717; color:#fff; display:grid; place-items:center; cursor:pointer; }
.back-to-top svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.back-to-top:hover { background:#343434; }
@media(max-width:900px){
 .seller-desktop { display:none; }.seller-mobile { display:block; }
 .seller-scroll-hint { margin:0 0 10px; font-size:.77rem; color:var(--muted); }
 .seller-matrix { overscroll-behavior-x:contain; touch-action:pan-x pan-y; scrollbar-width:thin; scrollbar-color:var(--muted) var(--paper); }
 .seller-matrix table { width:calc(104px + var(--seller-count)*136px); min-width:100%; table-layout:fixed; }
 .seller-matrix th,.seller-matrix td { padding:10px 8px; font-size:.78rem; white-space:normal; overflow-wrap:anywhere; vertical-align:middle; }
 .seller-matrix thead th { background:#f3f3ee; line-height:1.4; }
 .seller-matrix th:first-child { width:104px; position:sticky; left:0; z-index:1; background:#f3f3ee; }
 .seller-matrix tbody th { font-weight:600; }
 .seller-matrix td .sub { font-size:.7rem; margin-top:5px; }
 .back-to-top { bottom:calc(85px + env(safe-area-inset-bottom)); right:max(14px,env(safe-area-inset-right)); }
}

@media(max-width:900px){.mobile-install { padding-right:56px; }}

.monthly-bars .bar-heading strong,.goal-bars .bar-heading strong{white-space:normal;text-align:right;flex-shrink:0;max-width:55%}

/* Compact PU controls retain 44px touch targets without a filled button surface. */
/* The ring silhouette stays small while its touch target remains 44px. */
.motion-toggle{display:inline-grid;place-items:center;width:48px;height:44px;border:0;background:transparent;color:#929292;padding:2px;cursor:pointer;border-radius:8px;flex:none}
.motion-toggle svg{display:block;width:44px;height:24px;overflow:visible}
.motion-ring{fill:none;stroke:currentColor;stroke-width:1.5}
.motion-toggle[aria-pressed="true"]{color:#fff}
.motion-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.topbar{background:var(--nav);color:#fff}.topbar-context{color:#c3ccc7}
.dashboard-tools{display:flex;justify-content:flex-end;margin:-10px 0 8px}
.dashboard-tools .dashboard-refresh{flex:none;width:auto;min-height:44px;padding:6px 12px;font-size:.8rem}
@media(max-width:480px){
 .topbar-actions{gap:4px}.topbar{gap:6px;padding-inline:12px}
 .topbar-actions>.pill{font-size:.62rem;padding-inline:7px}
 .dashboard-tools{margin-top:-8px}
}
.top-mode{margin:0 0 16px}
.service-choice{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:18px;font-weight:600;cursor:pointer}
.service-choice input{width:22px;height:22px;accent-color:var(--accent);flex:none}
.service-choice:focus-within{outline:2px solid var(--good);outline-offset:4px;border-radius:4px}
.form-panel .activity-help{margin:-4px 0 18px;max-width:58ch;font-size:.82rem;line-height:1.5;color:var(--muted)}
.form-panel .service-choice-help{margin:3px 0 14px;font-size:.76rem;line-height:1.5;color:var(--muted)}
.ticket-service-note{margin-bottom:10px;font-size:.8rem;color:var(--muted)}

/* A shared sliding capsule keeps both chart selectors consistent. */
.segmented{position:relative;isolation:isolate;display:inline-flex;gap:0;width:max-content;max-width:100%;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.segmented::before{content:"";position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/2);background:var(--ink);border-radius:8px;transform:translateX(0)}
.segmented[data-selected="second"]::before{transform:translateX(100%)}
/* An explicit user opt-in overrides the global system-reduced-motion reset. */
/* Slower shared slide requested for both dashboard selectors. */
.segmented[data-motion="true"]::before{transition:transform 400ms cubic-bezier(.16,1,.3,1)!important}
.segmented button{position:relative;flex:1;min-width:90px;min-height:44px;padding:8px 14px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;cursor:pointer;transition:none}
.segmented button[aria-pressed="true"]{color:var(--paper);background:transparent}
.segmented button:focus-visible{outline:2px solid var(--good);outline-offset:2px}
.segmented button:active{transform:none}

/* Multi-period filters: compact summary stays visible while controls are closed. */
.filter-accordion{margin:0 0 20px;border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden}
.filter-trigger{display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:7px 14px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.filter-trigger-title{display:inline-flex;align-items:center;gap:7px;flex:none;font-size:.88rem;font-weight:680}
.filter-trigger-title svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform 160ms ease}
.filter-accordion.is-open .filter-trigger-title svg{transform:rotate(180deg)}
.filter-summary{min-width:0;color:var(--muted);font-size:.76rem;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.filter-trigger:focus-visible{outline:2px solid var(--good);outline-offset:-3px}
.filter-panel{padding:0 14px 14px;display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.filter-panel[hidden]{display:none}
.filter-panel>.field{flex:1 1 180px}
.filter-period{flex:1.4 1 310px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 95px;gap:12px;align-items:end}
.month-checklist{min-width:0;margin:0;padding:0;border:0}
.month-checklist legend{margin-bottom:5px;color:#4a5350;font-size:.77rem;font-weight:660}
.month-checklist legend span{color:var(--muted);font-weight:500}
.month-options{display:grid;grid-template-columns:1fr;gap:3px;max-height:min(240px,40vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.month-options .month-option{display:flex;align-items:center;gap:5px;min-width:0;min-height:40px;padding:4px 5px;border-radius:7px;font-size:.73rem;cursor:pointer}
.month-options input{width:18px;height:18px;min-height:18px;padding:0;flex:none;accent-color:var(--accent)}
.month-options .month-option:focus-within{outline:2px solid var(--good);outline-offset:1px}
.filter-panel .field select{min-height:44px}
.filter-actions{display:flex;gap:7px;align-items:center;margin-inline-start:auto}
.filter-actions .btn{min-height:44px;white-space:nowrap}
.trend-compare-hint{color:var(--muted);font-size:.78rem;line-height:1.4}
.daily-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.daily-chart.multi-chart{max-width:none}
.activity-kind-locked{display:flex;flex-direction:column;gap:4px;margin-bottom:14px;padding:11px 13px;border-radius:9px;background:#f4f5f1}
.activity-kind-locked strong{font-size:.9rem}
.activity-kind-locked>span:last-child,.service-confirm-note{color:var(--muted);font-size:.78rem;line-height:1.45}
.activity-kind{max-width:430px;margin-bottom:14px}
.service-confirm-note{margin:18px 0 0!important}
.service-record{background:#f7f8f5}
@media(max-width:680px){
 .filter-panel{display:grid;grid-template-columns:minmax(0,1fr)}
 .filter-period{gap:8px}
}
@media(max-width:600px){
 .filter-accordion{margin-bottom:17px}
 .filter-trigger{align-items:flex-start;flex-direction:column;justify-content:center;gap:2px;padding:7px 12px;min-height:58px}
 .filter-trigger-title{min-height:24px}
 .filter-summary{display:block;width:100%;padding-left:24px;font-size:.72rem}
 .filter-panel{padding:0 12px 12px;gap:10px}
 .month-options{gap:1px}
 .month-options .month-option{min-height:44px;padding-inline:2px;font-size:.72rem}
 .month-options input{width:19px;height:19px}
 .filter-actions .btn{width:auto;padding-inline:12px;font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){.filter-trigger-title svg{transition:none}}
.service-observation-field{margin-top:14px}
.service-observation-field textarea{min-height:72px;resize:vertical;line-height:1.45;font:inherit;font-size:.88rem;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:11px 12px;caret-color:var(--accent)}
.service-observation-field label span{font-weight:450;color:var(--muted)}
.service-observation{margin-top:5px;font-size:.76rem}
.service-observation summary{min-height:40px;padding:8px 0;color:var(--accent);cursor:pointer}
.service-observation p,.saved-observation p{margin:3px 0 0;color:var(--ink);font-size:.8rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.saved-observation{padding:10px 0 14px;border-top:1px solid var(--line);font-size:.8rem}
.filter-summary{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5}
.filter-accordion.is-open{overflow:visible}
.filter-pending{grid-column:1/-1;margin:0;color:var(--muted);font-size:.75rem;line-height:1.5}
.month-field{min-width:0}
.month-picker{position:relative;min-width:0}
.month-picker>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font-size:.86rem;cursor:pointer}
.month-picker>summary::-webkit-details-marker{display:none}
.month-picker>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.month-picker>summary svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform 180ms ease-out}
.month-picker[open]>summary svg{transform:rotate(180deg)}
.month-picker>summary:focus-visible{outline:2px solid var(--good);outline-offset:2px}
.month-menu{position:absolute;z-index:25;top:calc(100% + 6px);left:0;width:max(100%,240px);max-width:calc(100vw - 56px);padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #00000018}
.month-menu .month-options .month-option{font-size:.85rem;min-height:44px;padding:7px 8px;gap:9px}
.month-menu .month-options .month-option.is-selected{background:var(--accent-pale)}
.month-picker-help{font-size:.72rem;line-height:1.45;color:var(--muted);margin:8px 4px 0}
.month-menu>.text-button{display:block;min-height:44px;margin-left:auto;padding:8px}
.month-picker[data-motion="false"]>summary svg{transition:none}
@media(prefers-reduced-motion:reduce){.month-picker>summary svg{transition:none}}
.filter-trigger[data-motion="false"] svg{transition:none}
@media(max-width:600px){
 .month-options{gap:3px}
 .month-options .month-option{padding-inline:4px;font-size:.76rem}
 .service-form .form-panel{padding:17px}
 .service-form .form-panel>p{margin-bottom:12px}
 .service-form .activity-kind{margin-bottom:12px}
 .service-form .form-fields{gap:12px}
 .service-form .field:has(input[aria-label="Tienda asignada"]){gap:4px}
 .service-form input[aria-label="Tienda asignada"]{min-height:24px;height:24px;padding:0;border:0;border-radius:0;background:transparent;color:var(--ink);opacity:1}
 .service-form .service-confirm-note{margin-top:12px!important}
 .service-form aside{display:none}
}

.month-option.is-locked{cursor:default}
.month-option.is-locked input{opacity:.65}

/* Matrix exports stay compact and wrap below the title on small screens. */
.seller-export-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0}
.seller-export-actions>span{font-size:.75rem;color:var(--muted)}
.seller-detail-panel .panel-header{flex-wrap:wrap;gap:12px}
@media(max-width:600px){.seller-export-actions .btn{min-height:44px}.seller-export-actions{gap:6px}}

/* Native keyboard-accessible switches: compact copy, generous tap area. */
.sale-options{margin:12px 0 18px;border-block:1px solid var(--line)}
label.sale-toggle{position:relative;display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:68px;margin:0;padding:12px 0;cursor:pointer;font-size:.85rem;font-weight:500}
.sale-toggle+.sale-toggle{border-top:1px solid var(--line)}
.sale-toggle .toggle-copy{display:grid;gap:4px;min-width:0}
.sale-toggle .toggle-title{font-size:.85rem;font-weight:600;line-height:1.4}
.sale-toggle .toggle-help{font-size:.75rem;line-height:1.4;font-weight:400;color:var(--muted);max-width:44ch}
.sale-toggle input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.sale-toggle .toggle-track{position:relative;display:block;flex:0 0 46px;width:46px;height:26px;border:1px solid #79837f;border-radius:99px;background:#79837f;transition:background-color 180ms ease-out,border-color 180ms ease-out}
.sale-toggle .toggle-track::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:transform 220ms cubic-bezier(.2,.75,.25,1)}
.sale-toggle input:checked+.toggle-track{background:#41746c;border-color:#41746c}
.sale-toggle input:checked+.toggle-track::after{transform:translateX(20px)}
label.sale-toggle:focus-within{outline:none}
.sale-toggle input:focus-visible+.toggle-track{outline:2px solid #171717;outline-offset:4px}
.sale-toggle:has(input:disabled){opacity:.6;cursor:default}
.sale-toggle[data-motion="false"] .toggle-track,.sale-toggle[data-motion="false"] .toggle-track::after{transition:none}
@media(prefers-reduced-motion:reduce){.sale-toggle .toggle-track,.sale-toggle .toggle-track::after{transition:none}}

/* Paper edge adapted from Recibo · Moxen (license: vendor/moxen-recibo/LICENCIA.txt).
   Only the receipt shape is reused; no simulated payment or printer state. */
.ticket-receipt{--receipt-stock:#fffdf8;--receipt-canvas:var(--base);min-width:0;filter:drop-shadow(0 5px 10px #202a2612)}
.ticket-paper{position:relative;min-width:0;padding:20px 20px 27px;background:var(--receipt-stock);color:var(--ink);border-radius:3px 3px 0 0;font-variant-numeric:tabular-nums;
 -webkit-mask:linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,conic-gradient(from 315deg at bottom,#000 90deg,#0000 0) bottom / 14px 7px repeat-x;
 mask:linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,conic-gradient(from 315deg at bottom,#000 90deg,#0000 0) bottom / 14px 7px repeat-x}
.receipt-header{text-align:center}
.receipt-brand{display:block;font-size:.71rem;font-weight:650;letter-spacing:.045em;margin-bottom:8px}
.ticket-paper h2{font-size:1rem;font-weight:650;margin:0 0 5px;line-height:1.4}
.ticket-paper .receipt-header p{font-size:.72rem;line-height:1.45;color:var(--muted);margin:0}
.receipt-perforation{position:relative;border-top:1px dashed #b9bdb6;margin:17px 0}
.receipt-perforation::before,.receipt-perforation::after{content:"";position:absolute;top:-7px;width:14px;height:14px;border-radius:50%;background:var(--receipt-canvas)}
.receipt-perforation::before{left:-27px}.receipt-perforation::after{right:-27px}
.ticket-paper .totals{gap:10px}
.ticket-paper .total-row{font-size:.82rem;align-items:baseline;gap:12px}
.ticket-paper .total-row>span{min-width:0}
.ticket-paper .total-row strong{display:inline-block;font-weight:600;font-variant-numeric:tabular-nums}
.ticket-paper .receipt-gross{border-top:1px dashed #b9bdb6;padding-top:13px;margin-top:4px}
.ticket-paper .total-row.main{border-top:0;padding-top:0;margin-top:0;font-size:.93rem;font-weight:600}
.ticket-paper .total-row.main strong{font-size:1.1rem;font-weight:700}
.ticket-paper .receipt-note{font-size:.72rem;line-height:1.6;color:var(--muted);margin:16px 0 0}
.ticket-receipt-aside>.notice{margin-top:16px}
.mobile-ticket-review.ticket-receipt{display:none}
@media(min-width:1171px){.ticket-receipt-aside{position:sticky;top:24px}}
@media(min-width:901px) and (max-width:1170px){.ticket-receipt-aside{width:min(100%,420px);justify-self:center}}
@media(max-width:900px){
 .ticket-receipt-aside{display:none}
 .mobile-ticket-review.ticket-receipt{--receipt-canvas:var(--paper);display:block;border:0;padding:0;margin:22px 0 18px}
 .mobile-ticket-review .ticket-paper{padding:17px 18px 25px}
 .mobile-ticket-review .receipt-perforation{margin:15px 0}
 .mobile-ticket-review .receipt-perforation::before{left:-25px}.mobile-ticket-review .receipt-perforation::after{right:-25px}
 .mobile-ticket-review .receipt-gross{margin-top:4px}
}

/* Local account access and the inactivity warning share the existing PU controls. */
.local-auth-form{display:grid;gap:16px;min-width:0}
.local-auth-form .field{display:grid;gap:7px;min-width:0}
.local-auth-form input{width:100%;min-width:0;min-height:44px;font:inherit}
.password-control{position:relative}
.password-control input{padding-inline-end:48px}
.password-control input::-ms-reveal{display:none}
.password-toggle{position:absolute;inset-block:0;inset-inline-end:0;display:grid;place-items:center;width:44px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted)}
.password-toggle:hover{color:var(--ink)}
.password-toggle:focus-visible{outline-offset:-4px}
.password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.password-control input[type="password"]~.password-toggle .password-eye-open,
.password-control input[type="text"]~.password-toggle .password-eye-closed{display:none}
.local-auth-form [role="alert"]:empty{display:none}
.local-auth-form [role="alert"]{color:var(--danger,#a32828);overflow-wrap:anywhere}
.local-auth-form .side-note{margin:0}
.password-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.session-warning{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#fff1d4;color:#563c0c;border-bottom:1px solid #dfc995;font-size:.9rem}
.session-warning[hidden]{display:none}
.session-warning .btn{flex-shrink:0;min-height:44px}
@media(max-width:680px){
 .session-warning{flex-wrap:wrap;padding:12px 16px}
 .topbar-actions>.pill{max-width:95px;white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.2}
 .local-auth-form input{font-size:16px}
}

.mobile-brand .mobile-demo-note{display:block;margin-top:4px;color:#d5b36b;font-size:10px;line-height:1.2;font-weight:600}

.account-trigger{border:0;min-height:44px;justify-content:center}
.account-actions{display:grid;gap:10px}.account-actions .btn{min-height:44px}
.account-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
.account-delivery-settings{margin-bottom:16px}
.account-delivery-settings summary{cursor:pointer}
.account-delivery-settings summary .pill{margin-left:8px}
.account-delivery-settings form{margin-top:14px}
.account-delivery-settings .account-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.account-delivery-settings select{min-width:0}
.account-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
.panel.account-row{padding:14px 16px}
.account-row-info{flex:1 1 18rem;min-width:0}
.account-row-info p{margin:4px 0 0;line-height:1.4}
.account-row-profile span{color:var(--muted)}
.account-row-info .account-contact{color:var(--muted);font-size:.82rem}
.account-row-title{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.account-row-title h2{margin:0}
.account-recoveries{display:grid;gap:10px;margin-bottom:16px}
.account-recoveries h2{margin:0}
.account-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.account-state-switch.btn,.account-delete.btn{min-width:44px;padding-inline:5px}
.account-state-switch span{display:flex;align-items:center;width:46px;height:26px;padding:3px;border-radius:99px;background:var(--muted)}
.account-state-switch span::after{content:"";width:18px;height:18px;border-radius:50%;background:var(--paper)}
.account-state-switch[aria-checked="true"] span{justify-content:flex-end;background:var(--accent)}
.account-state-switch.btn{display:inline-flex;align-items:center;gap:7px}
.account-state-switch small{font-size:.77rem}
.account-editor-tools{margin:0;border-block-start:1px solid var(--line)}
.account-editor-tools summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:610}
.account-editor-tools .account-row-actions{padding-bottom:12px}
.assignment-list{display:grid;gap:12px;padding-inline-start:24px}
.assignment-list li{padding-block:4px}
#access-dialog:has(#owner-user-form){max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:520px){.account-filters{grid-template-columns:1fr}}

.account-list{display:grid;gap:12px;margin-block:16px}.account-row h2{font-size:1rem;overflow-wrap:anywhere}.account-row p{overflow-wrap:anywhere}#issued-link{width:100%;font:inherit;overflow-wrap:anywhere}#access-dialog input:not([type="checkbox"]),#access-dialog select{width:100%;min-width:0;min-height:44px}#issue-link-form input[type="checkbox"]{width:auto;min-height:initial}#access-dialog p{overflow-wrap:anywhere}
.seller-picker-control{position:relative}
.seller-picker-control input{padding-inline-end:48px}
.seller-picker-toggle{position:absolute;inset-block:0;inset-inline-end:0;width:44px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--ink)}
.seller-picker-toggle svg{width:19px;fill:none;stroke:currentColor;stroke-width:1.7}
.seller-picker-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.seller-picker-menu{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.seller-picker-menu small:not(:empty){display:block;padding:7px 10px}
.seller-picker-options{max-height:min(176px,30dvh);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
.seller-picker-option{min-height:44px;display:flex;flex-wrap:wrap;align-items:baseline;align-content:center;gap:2px 10px;padding:5px 10px;border-block-start:1px solid var(--line);cursor:pointer;overflow-wrap:anywhere}
.seller-picker-option:first-child{border-block-start:0}
.seller-picker-option strong{font-size:.86rem;font-weight:630;line-height:1.25}
.seller-picker-option span{font-size:.76rem;line-height:1.25;color:var(--muted);font-variant-numeric:tabular-nums}
.seller-picker-option[aria-selected="true"]{background:var(--background,#f6f6f3)}
.seller-picker-option.is-highlighted{background:var(--accent-pale);outline:2px solid var(--accent);outline-offset:-2px}
@media(hover:hover){.seller-picker-option:hover{background:var(--accent-pale)}}
.user-field-requirement{font-weight:400;color:var(--muted);margin-inline-start:5px}
#access-dialog:has(.account-editor){width:min(560px,calc(100% - 24px));padding:16px 20px;scroll-padding-block-end:74px}
.account-editor.local-auth-form{gap:12px}
.account-editor[data-seller-identity="true"] .account-editor-identity{display:none}
.account-editor .account-assignment-summary{margin:0;overflow-wrap:anywhere}
.account-editor .account-assignment-summary:empty{display:none}
.account-editor-sync{justify-self:start}
.account-editor-activation{display:grid;gap:9px 12px;margin:0;padding:0;min-inline-size:0;border:0}
.account-editor-activation legend{padding:0;margin:0 0 7px;font-size:.9rem;font-weight:660}
.account-editor .account-actions{position:sticky;inset-block-end:-16px;display:flex;flex-wrap:wrap;gap:8px;padding:10px 0 0;border-block-start:1px solid var(--line);background:var(--paper);z-index:1}
.account-editor .account-actions .primary{flex:1 1 auto}
@media(min-width:540px){
 .account-editor.local-auth-form,.account-editor-activation{grid-template-columns:repeat(2,minmax(0,1fr))}
 .account-editor>*:not(.account-editor-identity),.account-editor-channel{grid-column:1/-1}
}
@media(max-width:520px){
 #access-dialog:has(.account-editor){padding-inline:14px}
 .account-row>.account-row-actions{flex-basis:100%}
 .seller-picker-options{max-height:min(132px,30dvh)}
}
