.orders-scroll {
  max-height: 68vh;
  overflow-y: auto;
  margin-top: 18px;
  padding-right: 10px;
  scrollbar-color: #687b6c #edf1eb;
  scrollbar-width: auto;
}
.orders-scroll .card { margin-right: 2px; }
.daily-status { font-weight: 700; }
.daily-status.active { color: #356e26; }
.daily-status.idle { color: #8b302c; }
.daily-attention-action{border:1px solid #a53c35;border-radius:8px;background:#fff2ef;color:#83251f;font:inherit;font-weight:700;padding:7px 10px;white-space:nowrap;cursor:pointer}
.daily-attention-action:hover,.daily-attention-action:focus-visible{background:#ffdcd5;outline:2px solid #a53c35;outline-offset:2px}
.daily-attention-action:disabled{opacity:.6;cursor:wait}
.dark-mode .daily-attention-action{background:#4a2724;color:#ffe5df;border-color:#ef998b}
.dark-mode .daily-attention-action:hover,.dark-mode .daily-attention-action:focus-visible{background:#63312d;outline-color:#ef998b}
.seller-messages{padding:12px 16px}.seller-messages>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;list-style:none}.seller-messages>summary::-webkit-details-marker{display:none}.seller-messages>summary strong{font-size:17px}.seller-message{border-top:1px solid #dce4da;padding:14px 0}.seller-message:first-child{margin-top:12px}.seller-message-title,.seller-message-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.seller-message p{white-space:pre-line;margin:9px 0}.seller-message-actions button{min-height:36px;padding:6px 12px}.seller-message-ack{font-size:13px;font-weight:700;color:#176c5a}.seller-flyer-open{display:block;width:100%;padding:0;border:0;background:transparent}.seller-flyer-open img{display:block;max-width:100%;max-height:320px;object-fit:contain;border-radius:8px}.seller-flyer-dialog{max-width:min(96vw,760px);max-height:94vh;padding:12px;border:0;border-radius:12px}.seller-flyer-dialog::backdrop{background:#06140fce}.seller-flyer-dialog img{display:block;max-width:100%;max-height:80vh;object-fit:contain;margin-top:8px}body.seller-dark .seller-message{border-color:#365047}body.seller-dark .seller-message-ack{color:#9fe9c7}body.seller-dark .seller-flyer-dialog{background:#1b2925;color:#eaf3ee}
#fortnightView .fields { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
#fortnightView .fields label { min-width: 150px; }
.report-filter { min-width: 210px; }
.cancellation-panel{margin:18px 0}.cancellation-panel h2{margin-top:0}.cancellation-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.cancellation-search label{min-width:210px;flex:1}.cancellation-result{border-top:1px solid #dce4da;margin-top:18px;padding-top:16px}.cancellation-result .heading{align-items:start}.cancellation-result h3{margin:0 0 6px}.cancellation-result ul{margin:10px 0 16px;padding-left:22px}.cancellation-result li{margin:5px 0}.cancellation-open{margin-top:12px}.cancellation-dialog{max-width:min(440px,calc(100vw - 32px));width:100%;border:1px solid #dce4da;border-radius:14px;padding:24px}.cancellation-dialog::backdrop{background:#0b211bb8}.cancellation-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}@media(max-width:760px){.cancellation-search label,.cancellation-search button{width:100%}}
.thermal-panel{margin:18px 0}.thermal-panel h2{margin-top:0}.thermal-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.thermal-controls label{min-width:170px;flex:1}.thermal-controls button{min-height:44px}.thermal-panel #thermalNote{margin:12px 0 0}@media(max-width:760px){.thermal-controls label,.thermal-controls button{width:100%}}
.compact-goal { display:flex; align-items:center; gap:8px; min-width:220px; padding:10px 12px; border-left:5px solid #c99200; border-radius:10px; background:#fffaf0; white-space:nowrap; }
.compact-goal.goal-green { border-color:#2e8b57; background:#f1faf4; }
.compact-goal.goal-red { border-color:#c9443c; background:#fff5f4; }
.compact-goal strong { color:#123e35; }
.dark-mode .compact-goal { color:#172c25; }
.dark-mode .compact-goal strong { color:#123e35; }
.dark-mode .compact-goal.goal-yellow { background:#ffe3a3; }
.dark-mode .compact-goal.goal-red { background:#ffc7c1; }
.dark-mode .compact-goal.goal-green { background:#bce8c9; }
.monthly-chart-wrap { display:flex; align-items:center; justify-content:center; gap:32px; width:100%; }
.monthly-donut { width:190px; height:190px; flex:none; }
.monthly-legend { display:grid; grid-template-columns:repeat(2,minmax(160px,1fr)); gap:8px 24px; align-content:center; }
.monthly-legend>div { display:flex; align-items:center; gap:6px; font-size:13px; white-space:nowrap; }
.monthly-legend>div>span { display:inline-block; width:10px; height:10px; border-radius:50%; flex:none; }
.monthly-legend strong { margin-left:auto; }
@media(max-width:760px){.monthly-chart-wrap{flex-wrap:wrap;gap:18px}.monthly-legend{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-legend>div{white-space:normal}}
.analytics-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:18px; }
.analytics-card { min-height:290px; margin:0; }
.chart-wrap { min-height:215px; display:flex; align-items:center; justify-content:center; }
.line-chart { width:100%; height:auto; overflow:visible; }
.chart-axis { stroke:#dce4da; stroke-width:1; }.chart-line { fill:none; stroke:#176c5a; stroke-width:3; }.chart-point { fill:#176c5a; }.chart-label { fill:#63746e; font-size:11px; }.chart-value { fill:#123e35; font-size:11px; font-weight:700; }
.donut-layout { display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; width:100%; }.donut { width:172px; height:172px; border-radius:50%; position:relative; flex:0 0 auto; }.donut::after { content:''; position:absolute; inset:35px; background:#fff; border-radius:50%; }.donut-total { position:absolute; inset:46px 16px; z-index:1; display:grid; place-items:center; text-align:center; color:#123e35; font-weight:750; font-size:15px; line-height:1.25; }.chart-legend { list-style:none; padding:0; margin:0; min-width:170px; }.chart-legend li { display:flex; gap:7px; align-items:baseline; margin:7px 0; font-size:13px; }.legend-dot { width:10px; height:10px; border-radius:50%; display:inline-block; flex:0 0 auto; }.chart-empty { color:#63746e; text-align:center; }
.donut-svg { width:172px; height:172px; flex:0 0 auto; overflow:visible; }.donut-value { fill:#123e35; font-size:13px; font-weight:750; }.donut-subtitle { fill:#63746e; font-size:11px; }
.field-reports { display:grid; grid-template-columns:1fr; gap:18px; margin-top:18px; }.activity-timeline { overflow-x:auto; padding-bottom:6px; }.timeline-hours,.timeline-row { min-width:760px; display:grid; grid-template-columns:88px 1fr; gap:12px; align-items:center; }.timeline-hours { color:#63746e; font-size:12px; margin:2px 0 8px; }.timeline-hours > span:nth-child(n+2) { display:grid; grid-template-columns:repeat(15,1fr); }.timeline-hours > span:nth-child(n+2)::before { content:''; }.timeline-hours { grid-template-columns:88px repeat(15,1fr); gap:0; }.timeline-hours > span { text-align:center; }.timeline-hours > span:first-child { text-align:left; }.timeline-row { margin:10px 0; }.timeline-row strong { font-size:13px; }.timeline-track { height:42px; position:relative; background:#f4f7f3; border:1px solid #dce4da; border-radius:8px; overflow:hidden; }.timeline-svg { width:100%; height:100%; display:block; }.timeline-svg line { stroke:#dce4da; stroke-width:1; }.timeline-point { fill:#176c5a; stroke:#fff; stroke-width:1.5; }.timeline-point.visit { fill:#e98b2a; }.coverage-map { min-height:260px; }.coverage-svg { width:100%; min-height:250px; display:block; }.coverage-grid { fill:#f4f7f3; stroke:#dce4da; }.coverage-legend { display:flex; flex-wrap:wrap; gap:12px; list-style:none; padding:0; margin:8px 0 0; font-size:13px; }.coverage-legend li { display:flex; align-items:center; gap:6px; }
.field-detail summary { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; }.field-detail summary::-webkit-details-marker { display:none; }.field-detail summary::after { content:'Ver'; color:#176c5a; font-weight:750; }.field-detail[open] summary::after { content:'Ocultar'; }.field-detail summary strong { display:block; font-size:20px; }.field-detail summary small { display:block; color:#63746e; font-size:13px; font-weight:400; margin-top:4px; }.field-detail > .muted,.field-detail > .activity-timeline,.field-detail > .coverage-map { margin-top:18px; }
.coverage-map { min-height:0; }.coverage-leaflet { height:430px; border:1px solid #dce4da; border-radius:12px; overflow:hidden; }.map-note { color:#63746e; font-size:13px; margin:9px 0 0; }
@media (max-width: 760px) { #fortnightView .fields { width: 100%; flex-direction: column; align-items: stretch; } }
@media (max-width: 760px) { .analytics-grid { grid-template-columns:1fr; }.analytics-card { min-height:0; }.compact-goal { min-width:190px; font-size:12px; } }
.office-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 22px;border-bottom:1px solid #dce4da;padding-bottom:12px}.office-tabs button{min-height:38px;padding:7px 15px}.office-tabs button.active{background:#164e3e;border-color:#164e3e;color:#fff}.load-more-orders{display:block;margin:16px auto 4px}.order-page-note{text-align:center;margin:8px 0 4px}.weekly-activity td{text-align:center;vertical-align:middle;min-width:82px}.weekly-activity td:first-child{text-align:left;min-width:96px}.weekly-activity small{display:block;color:#63746e;font-size:11px;margin-top:4px;white-space:nowrap}.weekly-dot{display:inline-block;width:13px;height:13px;border-radius:50%;background:#bd3b35;border:2px solid #fff;box-shadow:0 0 0 1px #bd3b35}.weekly-dot.green{background:#176c5a;box-shadow:0 0 0 1px #176c5a}.weekly-dot.orange{background:#e98b2a;box-shadow:0 0 0 1px #e98b2a}.weekly-dot.absent{background:#fff;box-shadow:0 0 0 1px #bd3b35}.weekly-total{font-weight:750;white-space:nowrap}
.dashboard-detail{margin-bottom:18px}.dashboard-detail>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px}.dashboard-detail>summary::-webkit-details-marker{display:none}.dashboard-detail>summary::after{content:'Ver';color:#176c5a;font-weight:750}.dashboard-detail[open]>summary::after{content:'Ocultar'}.dashboard-detail>summary strong{display:block;font-size:20px}.dashboard-detail>summary small{display:block;color:#63746e;font-size:13px;font-weight:400;margin-top:4px}.dashboard-detail[open]>:not(summary){margin-top:18px}.dashboard-detail[open]>.heading{margin-top:18px}.dashboard-detail .card{box-shadow:none}.dashboard-detail.analytics-grid{display:block}.monthly-analytics .analytics-card{margin:0 0 18px}.monthly-analytics .analytics-card:last-child{margin-bottom:0}.monthly-analytics .donut-layout{justify-content:flex-start;min-height:190px}.monthly-analytics .chart-legend{max-width:620px;columns:2;column-gap:28px}.monthly-analytics .chart-legend li{break-inside:avoid;margin-top:0}.monthly-analytics .line-chart{max-height:280px}
@media(max-width:760px){.monthly-analytics .chart-legend{columns:1}.dashboard-detail>summary strong{font-size:18px}}
.metrics .card small{display:block;color:#63746e;font-size:12px;margin-top:5px}.metrics .card small b{color:#123e35;font-weight:700}.metrics .card small:nth-of-type(3){margin-top:12px}.metrics .card:has(#invoiceMonthTotal) strong{margin-top:4px}.goal-reference{display:block;color:#63746e;font-size:12px;margin:7px 0 0}.weekly-controls{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.weekly-controls button{min-height:42px;padding:8px 12px}.weekly-controls label{min-width:145px}.weekly-controls input,.weekly-controls select{margin-top:5px;padding:9px 10px;font-size:14px}
@media(max-width:760px){.weekly-controls{align-items:stretch;width:100%}.weekly-controls label,.weekly-controls button{width:100%}}
@media print{
  @page{size:letter landscape;margin:10mm}
  body.print-fortnight{background:#fff!important;color:#111!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.print-fortnight>header,body.print-fortnight main>:not(#fortnightView){display:none!important}
  body.print-fortnight main{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
  body.print-fortnight #fortnightView{display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#111!important}
  body.print-fortnight #fortnightView::before{content:'Avance por quincena';display:block;font-size:20px;font-weight:700;margin-bottom:8px}
  body.print-fortnight #fortnightView>summary,body.print-fortnight #fortnightView .fields{display:none!important}
  body.print-fortnight #fortnightView .table-scroll{overflow:visible!important;max-height:none!important}
  body.print-fortnight #fortnightView table{width:100%!important;border-collapse:collapse}
  body.print-fortnight #fortnightView tr{break-inside:avoid;page-break-inside:avoid}
  body.print-fortnight #fortnightView thead{display:table-header-group}
  body.print-fortnight #fortnightView .compact-goal{color:#111!important;min-width:0!important;border:1px solid #888!important;background:#fff!important}
  body.print-fortnight #fortnightView .compact-goal strong{color:#111!important}
}
.daily-message-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.daily-message-controls small{font-size:11px;color:#63746e}.daily-message-action{min-height:34px;padding:5px 9px;font-size:12px;background:#e6f4ee;border-color:#62a78a;color:#174c3b}.daily-message-revoke{min-height:30px;padding:4px 7px;font-size:11px;color:#8b302c}.dashboard-message-dialog{width:min(520px,calc(100vw - 24px));max-height:94vh;overflow:auto;border:1px solid #b9c9bf;border-radius:14px;padding:22px;background:#fff;color:#172f2a}.dashboard-message-dialog::backdrop{background:#0b211bc9}.dashboard-message-dialog h2{margin:0 0 6px}.dashboard-message-dialog label{display:block;margin-top:13px}.dashboard-message-dialog textarea{display:block;width:100%;min-height:92px;margin-top:7px;padding:11px;border:1px solid #b9c9bf;border-radius:9px;font:inherit;resize:vertical}.dashboard-message-dialog label[hidden]{display:none!important}.dashboard-message-dialog #dashboardMessagePreview{display:block;max-width:100%;max-height:300px;object-fit:contain;margin:12px auto;border-radius:8px}.dashboard-message-dialog #dashboardMessagePreview[hidden]{display:none}.dashboard-message-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:17px}.dark-mode .dashboard-message-dialog{background:#1b2925;color:#eaf3ee;border-color:#547064}.dark-mode .dashboard-message-dialog textarea{background:#263832;color:#eaf3ee;border-color:#547064}.dark-mode .daily-message-controls small{color:#b7c9bf}.dark-mode .daily-message-action{background:#225843;color:#eafff2;border-color:#78b69a}
.dashboard-active-promotions{border-top:1px solid #dce4da;margin-top:18px;padding-top:12px}.dashboard-active-promotions h3{font-size:15px;margin:0 0 8px}.dashboard-promotion-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-top:1px solid #e7ece5}.dashboard-promotion-row span{display:grid;gap:3px}.dashboard-promotion-row small{font-size:11px;color:#63746e}.dashboard-promotion-row button{min-height:31px;padding:4px 8px;font-size:11px}.dark-mode .dashboard-active-promotions,.dark-mode .dashboard-promotion-row{border-color:#365047}.dark-mode .dashboard-promotion-row small{color:#b7c9bf}
#dailySellerSummary .daily-situation{white-space:nowrap}#dailySellerSummary .daily-situation small{display:inline;margin-left:6px;color:#63746e;font-size:11px}#dailySellerSummary .daily-message-controls{flex-wrap:nowrap;white-space:nowrap}#dailySellerSummary .daily-message-revoke{min-height:34px}.daily-status.attention{color:#a56500}.dark-mode .daily-status.active{color:#90d7a2}.dark-mode .daily-status.attention{color:#f1c675}.dark-mode .daily-status.idle{color:#f3a79e}.dark-mode #dailySellerSummary .daily-situation small{color:#b7c9bf}
.operations-summary h3{margin:20px 0 5px;font-size:17px}.operations-summary .operations-monthly,.operations-summary .operations-daily{display:grid;gap:14px}.operations-summary .operations-monthly{grid-template-columns:repeat(3,minmax(0,1fr))}.operations-summary .operations-daily{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-summary .card{min-width:0}.operations-summary .card strong{overflow-wrap:anywhere}.operations-summary .card span{display:block}.operations-summary .card small{display:block;margin-top:4px}.dark-mode .operations-summary .card small{color:#b7c9bf}@media(max-width:760px){.operations-summary .operations-monthly,.operations-summary .operations-daily{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}@media(max-width:480px){.operations-summary .operations-monthly,.operations-summary .operations-daily{grid-template-columns:1fr}}
