.workspace.dashboard-open{grid-template-columns:var(--rail-width) minmax(0,1fr)}
.workspace.dashboard-open .inbox{display:none}.workspace.dashboard-open .conversation-main{display:block;overflow:auto;background:#f4f7fa}
.dashboard{max-width:1600px;margin:0 auto;padding:30px 34px;color:#25435b}
.dashboard-heading,.dashboard-header-actions,.dashboard-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.dashboard-heading{margin-bottom:24px}.dashboard-heading h1{font-size:30px;letter-spacing:-1px;margin:5px 0 8px}.dashboard-heading p{font-size:13px;color:#6e879b;margin:0}.dashboard-header-actions{flex-wrap:wrap;justify-content:flex-end}
.dashboard-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.dashboard-filters label{flex:1;min-width:140px;margin:0;font-size:11px;color:#678197}.dashboard-filters label:last-of-type{flex:1.3}.dashboard-filters input,.dashboard-filters select{margin-top:5px;width:100%;background:#fff;font-size:12px}.dashboard-filters button{height:40px}
.dashboard-rule{padding:12px 15px;background:#eaf2f8;color:#446986;border:1px solid #dce8f1;border-radius:9px;font-size:11px;line-height:1.7;margin:18px 0 0}.dashboard-status{font-size:11px;color:#748a9a;min-height:17px;margin:12px 0}
.dashboard-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.dashboard-card{border:1px solid #e0e8ee;border-radius:13px;background:#fff;padding:19px;box-shadow:0 2px 7px #17344c04;margin-bottom:20px}.metric-card{margin:0;min-height:126px}.metric-card>span{display:block;font-size:12px;color:#607c90}.metric-card>strong{display:block;font-size:29px;letter-spacing:-.7px;margin:14px 0 9px;color:#163b5a}.metric-card>small{display:block;color:#8a9eac;font-size:10px;line-height:1.6}
.dashboard-charts{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}.dashboard-section-heading{margin-bottom:18px}.dashboard-section-heading h2{font-size:15px;margin:0}.dashboard-section-heading>span{font-size:10px;color:#8599a8;text-align:right}.dashboard-bar-row{display:grid;grid-template-columns:110px minmax(30px,1fr) 42px;gap:12px;align-items:center;font-size:11px;margin:12px 0}.dashboard-bar-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-bar-row svg{width:100%;height:14px}.dashboard-bar-row strong{text-align:right;color:#417495;font-size:11px}
.dashboard-chart-scroll{overflow:auto}.dashboard-chart-scroll>svg{width:100%;min-width:320px;max-height:190px}.dashboard-chart-legend{display:flex;gap:18px;font-size:10px;margin:12px 0 0;color:#1978b8}.dashboard-chart-legend span+span{color:#168f7b}
.dashboard-table-scroll{overflow:auto}.dashboard-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}.dashboard-table th{font-size:10px;font-weight:600;color:#7990a1;background:#f6f9fb;padding:12px}.dashboard-table td{padding:14px 12px;border-bottom:1px solid #edf2f5;color:#446278}.dashboard-table tr:last-child td{border-bottom:0}.dashboard-table td strong{display:block;color:#2a4b66;font-weight:600}.dashboard-table td small{display:block;font-size:10px;color:#849bab;margin-top:5px;line-height:1.6}.dashboard-table .text-button{margin:0;text-align:left}.dashboard-agent-link{font-size:11px;font-weight:600;padding:0}.dashboard-customers td{white-space:normal;min-width:115px}.dashboard-customers td:first-child{min-width:185px}.dashboard-customers td:last-child{min-width:85px}.dashboard-badge{display:inline-flex;align-items:center;border-radius:5px;background:#ecf3f7;color:#527087;padding:5px 8px;font-size:10px;white-space:nowrap}.dashboard-badge.waiting{background:#fff0e3;color:#aa5f1a}.dashboard-badge.answered{background:#e8f6ef;color:#258461}.dashboard-badge.closed{background:#edf1f5;color:#748497}.dashboard-table td .dashboard-paused{color:#537fa2}.dashboard-table td .dashboard-warning{color:#a36832}
.dashboard-customer-filters{display:flex;gap:12px;margin-bottom:12px}.dashboard-customer-filters input{flex:1;min-width:0;font-size:12px}.dashboard-customer-filters select{width:230px;font-size:11px}.dashboard-pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;border-top:1px solid #edf2f5;padding-top:15px;margin-top:5px;font-size:11px;color:#7c91a0}.dashboard-explanation{padding:8px 0;color:#72899a;font-size:11px;line-height:1.8}.dashboard-explanation summary{cursor:pointer;color:#4b728e}.dashboard-footnote{font-size:10px;color:#8299ab;margin:14px 0}
.dashboard-calendar-dialog{width:min(780px,calc(100vw - 30px))}.calendar-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calendar-form-grid label{font-size:12px;margin:0}.calendar-form-grid input,.calendar-form-grid select{width:100%;font-size:12px}.calendar-weekly-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;grid-column:1/-1}.calendar-reason{grid-column:1/-1}.calendar-form-actions{display:flex;align-items:center;gap:15px;margin:15px 0 25px}.calendar-form-actions p{font-size:11px;color:#a55c2b;margin:0}.calendar-holidays>div,.calendar-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #edf2f5;font-size:11px}.calendar-entry strong{font-size:12px;font-weight:600}.calendar-entry small{display:block;color:#8194a2;font-size:11px;margin-top:5px}.calendar-entry .text-button{font-size:11px;margin:0}.calendar-holidays{margin-bottom:22px}#dashboard-calendar-list h3{font-size:13px;margin:24px 0 8px}
.reply-preview{display:flex;align-items:center;gap:12px;background:#edf5fa;border-left:3px solid #318abd;border-radius:7px;padding:11px 13px;margin-bottom:8px;min-width:0}.reply-preview>div{flex:1;min-width:0}.reply-preview strong{display:block;color:#2b739c;font-size:11px;margin-bottom:5px}.reply-preview p{margin:0;color:#73899a;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reply-preview button{flex:none}.quoted-message{display:block;text-align:left;width:100%;min-width:0;margin:0 0 10px;padding:9px 11px;border:0;border-left:3px solid #6e9ab7;border-radius:5px;background:#edf3f8b0;color:#6d8394}.quoted-message strong{display:block;font-size:11px;color:#507b98;margin-bottom:5px}.quoted-message span{display:block;font-size:11px;max-width:340px;max-height:38px;overflow:hidden;line-height:1.6;overflow-wrap:anywhere}.out .quoted-message{background:#e1eee5aa;border-left-color:#6a9e7c}.out .quoted-message strong{color:#588b69}.message-tools .reply-message{border-radius:8px;width:auto;min-width:30px;gap:4px;display:flex;padding:5px 7px;font-size:10px}.reply-message svg{width:16px;height:16px}.reply-highlight .bubble{outline:2px solid #409aca;outline-offset:3px}.message-row:hover .reply-message{color:#287daa}
@media(max-width:1100px){.dashboard{padding:22px}.dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-charts{grid-template-columns:1fr}.dashboard-heading{align-items:flex-start}}
@media(max-width:700px){.workspace.dashboard-open{grid-template-columns:50px minmax(0,1fr)}.dashboard{padding:18px 13px}.dashboard-heading{flex-wrap:wrap;gap:12px}.dashboard-heading h1{font-size:24px}.dashboard-header-actions{justify-content:flex-start}.dashboard-cards{gap:10px}.dashboard-card{padding:14px}.metric-card>strong{font-size:24px}.dashboard-filters{gap:9px}.dashboard-filters label{min-width:110px}.dashboard-filters button{width:100%}.dashboard-section-heading{flex-wrap:wrap;gap:7px}.dashboard-section-heading>span{text-align:left}.dashboard-customer-filters{flex-direction:column}.dashboard-customer-filters select{width:100%}.calendar-form-grid{grid-template-columns:1fr}.calendar-reason{grid-column:auto}.calendar-weekly-fields{grid-template-columns:1fr;grid-column:auto}.calendar-holidays>div{align-items:flex-start}.reply-message span{display:none}.message-tools .reply-message{padding:4px;min-width:25px}.dashboard-heading p{line-height:1.7}}

/* Per-message waits above the dashboard's 30-minute business-hours threshold */
.dashboard-late-details{min-width:215px;max-width:345px}
.dashboard-late-details>summary{cursor:pointer;color:#9c4b23;font-weight:700;white-space:normal;line-height:1.5}
.dashboard-late-details[open]>summary{margin-bottom:10px}
.dashboard-late-list{display:flex;flex-direction:column;gap:7px;max-height:380px;overflow-y:auto;padding:3px}
.dashboard-late-item{display:flex;flex-direction:column;gap:3px;min-width:210px;width:100%;padding:11px 12px;border:1px solid #d7e3ec;border-radius:9px;background:#f8fafc;text-align:left;color:inherit;cursor:pointer}
.dashboard-late-item:hover,.dashboard-late-item:focus-visible{border-color:#337ba9;background:#edf6fc;outline:0}
.dashboard-late-preview{font-weight:650;font-size:12px;overflow-wrap:anywhere;max-height:54px;overflow:hidden}
.dashboard-late-item small{font-size:11px;color:#586e80;line-height:1.5}

/* Resumo separado das vendas da Sam, sem confundir comprovante, pedido e faturamento. */
.dashboard-sam-summary{margin-bottom:22px}
.dashboard-sam-summary .metric-card{min-height:105px;background:#f9fcfe;box-shadow:none}
.dashboard-sam-summary .metric-card>strong{font-size:23px;overflow-wrap:anywhere}
#dashboard-sam-sales .dashboard-table-scroll{margin:18px 0 24px}
#dashboard-sam-sales .dashboard-table-scroll h3{font-size:13px;font-weight:650;margin:0 0 11px}
.dashboard-sam-footnote{font-size:11px;line-height:1.7;color:#607e91;margin:0;padding-top:7px;border-top:1px solid #edf2f5}
@media(max-width:700px){.dashboard-sam-summary .metric-card>strong{font-size:19px}}
