/* messages page styles (2026-10-23 redesign). Shared ui- classes come from assets/ui.css; everything here is scoped to .msg-page. */
.msg-page{min-width:0}
.msg-page .ui-title .info{margin-left:6px;vertical-align:middle}
.msg-page .msg-head{margin-bottom:18px}
.msg-page #smsStatsBtn:disabled{opacity:.7;cursor:progress}
.msg-page #smsStatsBtn:disabled svg{animation:ui-spin .8s linear infinite}
@media(prefers-reduced-motion:reduce){.msg-page #smsStatsBtn:disabled svg{animation:none}}

/* the three quota cards */
.msg-quotas{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 14px}
.msg-q{margin:0;padding:18px 20px;display:flex;flex-direction:column;gap:10px}
.msg-q-head{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--ui-ink)}
.msg-q-head .info{margin-left:auto}
.msg-q-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:none}
.msg-q-icon .ui-ico{width:18px;height:18px}
.msg-q-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
.msg-q-value strong{font-size:26px;line-height:1.15;font-weight:700;letter-spacing:-.4px;color:var(--ui-ink)}
.msg-q-of{font-size:20px;color:var(--ui-muted);font-weight:500}
.msg-q-value .ui-badge{margin-left:auto;align-self:center}
.msg-q-sub{margin:0;font-size:12.5px;color:var(--ui-muted);line-height:1.45}
.msg-q-sub b{color:var(--ui-ink)}
.msg-bar{height:8px;border-radius:999px;background:#EAECF0;overflow:hidden}
.msg-bar>span{display:block;height:100%;border-radius:inherit;background:#22A06B}
.msg-q:first-child .msg-bar>span{background:var(--ui-accent)}
.msg-bar.is-over>span{background:#F79009}
.msg-q.is-over .msg-q-of{color:var(--ui-warn)}

/* editors: the daily quota switch and the hand-set quotas */
.msg-quota-set{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin:0 0 14px;padding:10px 14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.msg-quota-set .msg-inline{flex-direction:row;align-items:center;gap:8px;font-weight:500}
.msg-quota-set .msg-inline .ui-input{width:110px;min-height:36px;padding:6px 10px}

/* tabs, the day and the search on one line */
.msg-tabbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0 16px;border-bottom:1px solid var(--ui-border)}
.msg-tabbar .ui-tabs{margin:0;border-bottom:0;flex:0 1 auto;min-width:0}
.msg-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:8px;min-width:0}
.msg-date{position:relative;display:flex;align-items:center}
.msg-date>.ui-ico,.msg-search>.ui-ico{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--ui-muted);pointer-events:none}
.msg-date .ui-input{padding-left:34px;width:auto;min-width:170px}
.msg-search{width:300px;max-width:100%}

/* the messages table */
.msg-card{margin:0 0 16px}
.msg-list{overflow:hidden}
.msg-list .ui-table-wrap{border:0;border-radius:0}
.msg-table td{vertical-align:middle;padding:12px 8px}
.msg-table th{vertical-align:middle;padding:10px 8px;white-space:normal;line-height:1.3}
.msg-table td:first-child,.msg-table th:first-child{padding-left:16px}.msg-table td:last-child,.msg-table th:last-child{padding-right:16px}
.msg-table .ui-th-sort{text-align:left}
.msg-table .ui-th-sort .ui-ico{width:14px;height:14px;color:var(--ui-faint)}
.msg-table th[aria-sort="ascending"] .ui-ico,.msg-table th[aria-sort="descending"] .ui-ico{color:var(--ui-accent)}
.msg-table .ui-th-sort:focus-visible{outline:none;box-shadow:var(--ui-focus);border-radius:4px}
.msg-table td{white-space:normal}
.msg-camp{min-width:120px;max-width:190px}
.msg-camp b{color:var(--ui-ink);font-weight:600}
.msg-camp .ui-badge{margin-left:4px}
.msg-pass{color:var(--ui-muted);font-size:12px;font-weight:600}
.msg-sub{display:block;color:var(--ui-muted);font-size:12px;margin-top:2px;line-height:1.4}
.msg-nowrap{white-space:nowrap}
.msg-text{min-width:220px;max-width:360px}
.msg-text .msg-copy,.msg-text .msg-sends{max-width:360px}
.msg-page .ui-table-wrap{position:relative}
/* BUG-05 (2026-11-12): the whole text shows; an SMS is at most 160 characters, so nothing is cut */
.msg-copy{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ui-text);display:block;line-height:1.45}
.msg-stop{display:block;color:var(--ui-faint);font-size:12px}
.msg-copy .msg-stop{display:inline}
.msg-sends{display:block}
.msg-table tr.is-selected .msg-copy{-webkit-line-clamp:unset;display:block}
.msg-fills{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:8px}
.msg-page label.msg-fill{display:flex;flex-direction:row;align-items:center;justify-items:initial;gap:6px;margin:0;font-size:12px;font-weight:600;color:var(--ui-text)}
.msg-fill .ui-input{min-height:32px;padding:5px 9px;font-size:13px;width:150px}
.msg-act-cell{width:1%}
.msg-acts{display:flex;gap:4px;flex-wrap:nowrap;justify-content:flex-end}
.msg-acts .ui-btn--icon{width:32px;min-height:32px}
.msg-acts .ui-btn--icon svg{width:16px;height:16px}
.msg-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--ui-border);font-size:13px;color:var(--ui-muted)}
.msg-foot-r{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.msg-foot .ui-pager svg{width:16px;height:16px}
.msg-size .ui-select{min-height:34px;padding:5px 32px 5px 10px;font-size:13px;width:auto}
.msg-list:focus{outline:none}

/* details: not sent this day, not used this day, days read, the billing fix */
.msg-more{margin:0 0 16px}
details.ui-card.msg-more{padding:0}
.msg-more>summary{cursor:pointer;font-weight:600;color:var(--ui-ink);padding:14px 18px;list-style-position:inside;border-radius:var(--ui-radius)}
.msg-card .msg-more>summary,.msg-usage .msg-more>summary{padding:12px 0}
.msg-more>summary:focus-visible{outline:none;box-shadow:var(--ui-focus)}
details.ui-card.msg-more>.ui-table-wrap{border:0;border-top:1px solid var(--ui-border);border-radius:0}
details.ui-card.msg-more>.msg-small{padding:0 18px}
.msg-small{margin:6px 0;font-size:12.5px;color:var(--ui-muted)}

/* the message editor */
.msg-editor{scroll-margin-top:16px}
.msg-editor-head{display:flex;align-items:flex-start;gap:12px;margin:0 0 18px}
.msg-editor-head .ui-card-title{font-size:17px}
.msg-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 16px}
.msg-tpl-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}
.msg-tpl-label{font-size:13px;font-weight:600;color:var(--ui-text)}
.msg-tpl-box{border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-sm);background:#fff;transition:border-color .12s,box-shadow .12s}
.msg-tpl-box:focus-within{border-color:var(--ui-accent);box-shadow:var(--ui-focus)}
.msg-tpl-box .ui-textarea{border:0;box-shadow:none;min-height:150px;padding:12px 14px;font-size:14px}
.msg-tpl-box .ui-textarea:focus{box-shadow:none}
.msg-tpl-count{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:6px 12px 10px;font-size:12.5px;color:var(--ui-muted)}
.msg-tpl-count .pill{margin-left:2px}
.msg-ph{display:flex;align-items:flex-start;gap:10px;margin:14px 0;padding:14px 16px;border-radius:10px;background:var(--ui-accent-soft);color:var(--ui-text)}
.msg-ph>.ui-ico{color:var(--ui-accent);margin-top:1px}
.msg-ph b{color:var(--ui-accent-strong);font-size:13.5px}
.msg-ph p{margin:2px 0 8px;font-size:12.5px;color:var(--ui-muted)}
.msg-tokens{display:flex;flex-wrap:wrap;gap:8px}
.msg-token{font:inherit;font-size:12.5px;color:var(--ui-ink);background:#fff;border:1px solid var(--ui-border-strong);border-radius:7px;padding:4px 10px;cursor:pointer}
.msg-token:hover{border-color:var(--ui-accent);color:var(--ui-accent-strong)}
.msg-token:focus-visible{outline:none;box-shadow:var(--ui-focus)}
.msg-preview{margin:0 0 16px;padding:12px 14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface-2)}
.msg-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--ui-muted);margin:0 0 6px}
.msg-preview-head b{color:var(--ui-ink);font-size:13px}
.msg-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13.5px;color:var(--ui-text)}
.msg-editor-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.msg-grow{flex:1}
.msg-jc-note{margin:0}

/* workflow checklist (2026-10-23 redesign): filter bar, cards, Needs updating / Ready / Unused */
.msg-page .msg-title-dot{color:var(--ui-ink);margin:0 2px}
.msg-filters{align-items:flex-end}
.msg-filters .msg-f-day{flex:0 1 230px;margin-right:auto}
.msg-filters .msg-f-sel{flex:0 1 200px}
.msg-filters .msg-date{display:flex;width:100%}
.msg-filters .msg-date .ui-input{width:100%;min-width:0}
.msg-q-pct{font-size:20px;font-weight:600;color:var(--ui-ink)}
.msg-count{font-weight:700}
.msg-wf-sec{padding:20px}
.msg-wf-sec>.ui-card-head{margin-bottom:14px}
.msg-wf-sec .ui-card-title{font-size:18px}
.msg-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.msg-chip{font-size:12px;background:var(--ui-neutral-soft);border:1px solid var(--ui-neutral-line);border-radius:7px;padding:2px 8px;color:var(--ui-text);overflow-wrap:anywhere}
.msg-wfcs,.msg-wfrs{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.msg-wfc-name{margin:0 0 4px;font-size:15px;font-weight:600;color:var(--ui-ink);line-height:1.3;overflow-wrap:anywhere}
.msg-wfc-sub{margin:0 0 2px;font-size:12.5px;color:var(--ui-muted);line-height:1.4}
.msg-wfc-label{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--ui-text);margin:0 0 6px}
.msg-wfc-label .info{margin:0}
/* one workflow that needs a change: who/where | JustCall's text | the new text | actions, lists underneath */
.msg-wfc{display:grid;grid-template-columns:minmax(180px,1.05fr) minmax(0,1fr) minmax(0,1fr) minmax(170px,.8fr);gap:14px 16px;padding:14px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface)}
.msg-wfc-meta{display:flex;gap:12px;align-items:flex-start;min-width:0}
.msg-wfc-tile{width:44px;height:44px}
.msg-wfc-id{min-width:0}
.msg-wfc-id .ui-badge{margin-top:8px}
.msg-wfc-msg{min-width:0;padding-left:14px;border-left:1px solid var(--ui-border)}
.msg-wfc-box{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 12px;border-radius:8px;background:var(--ui-surface-2);border:1px solid var(--ui-border);font-size:13px;line-height:1.5;color:var(--ui-text)}
.msg-wfc-box+.msg-wfc-box{margin-top:8px}
.msg-wfc-box.is-new{background:var(--ui-accent-soft);border-color:var(--ui-accent-line);color:var(--ui-ink)}
.msg-wfc-box.is-empty{color:var(--ui-muted);font-style:italic}
.msg-wfc-n{display:block;font-size:11.5px;color:var(--ui-accent-strong);margin:0 0 2px}
.msg-wfc-acts{display:flex;flex-direction:column;gap:10px;min-width:0;padding-left:14px;border-left:1px solid var(--ui-border)}
.msg-wfc-btns{display:flex;flex-direction:column;gap:8px}
.msg-wfc-btns .ui-btn{width:100%;justify-content:center}
.msg-wfc-lists{grid-column:1/-1;padding-top:12px;border-top:1px solid var(--ui-border);min-width:0}
/* a workflow that is ready */
.msg-wfr{display:grid;grid-template-columns:auto minmax(160px,1.2fr) minmax(0,1fr) auto;gap:10px 16px;align-items:center;padding:14px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface)}
.msg-wfr-ok{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#16A34A;color:#fff}
.msg-wfr-ok .ui-ico{width:16px;height:16px;stroke-width:2.6}
.msg-wfr-name,.msg-wfr-meta{min-width:0}
.msg-wfr-lists{grid-column:2/-1;min-width:0}
/* unused workflows */
.msg-wfu .ui-table td{white-space:normal;vertical-align:middle}
.msg-wfu-name{color:var(--ui-ink);font-weight:600}
.msg-wfu .ui-table td:first-child{min-width:180px}
.msg-wfu-foot{justify-content:flex-end}

/* usage (2026-10-23 redesign, design-refs "Messages usage and quota overview"): filter bar, quota overview, usage by campaign,
   segment allocation (the billing month) */
.msg-usage{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);align-items:start}
.msg-usage .msg-card{margin:0}
.msg-period{margin:0 0 8px auto;font-size:13.5px;color:var(--ui-muted);white-space:nowrap}
.msg-period b{color:var(--ui-text);font-weight:600}
.msg-page--usage .ui-card-title .info,.msg-uq-head .info,.msg-th .info{margin:0}
.msg-ov{padding:20px}
.msg-ov>.ui-card-head,.msg-use>.ui-card-head,.msg-alloc>.ui-card-head{margin-bottom:14px}
.msg-ov-grid{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.msg-uq{display:flex;flex-direction:column;gap:10px;min-width:0;padding:18px 20px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface)}
.msg-uq-head{display:flex;align-items:center;gap:8px}
.msg-uq-label{margin:0;font-size:14.5px;font-weight:600;color:var(--ui-ink);line-height:1.3}
.msg-uq .msg-q-value strong{font-size:28px}
.msg-uq .msg-bar>span{background:var(--ui-accent)}
.msg-uq--inc .msg-bar>span{background:#22A06B}
.msg-uq .msg-bar.is-over>span{background:#F79009}
.msg-uq.is-over .msg-q-of{color:var(--ui-warn)}
.msg-uq .ui-badge .ui-ico{width:14px;height:14px}
.msg-uq-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12.5px;color:var(--ui-muted)}
.msg-ov .msg-quota-set{margin:16px 0 0}
/* usage by campaign */
.msg-use{padding:20px}
.msg-use>.ui-card-head{align-items:flex-end}
.msg-use-city{flex:0 1 220px;min-width:160px}
.msg-use-table th{white-space:nowrap}
.msg-use-table td:first-child,.msg-use-table th:first-child{min-width:150px}
.msg-th{display:inline-flex;align-items:center;gap:6px}
.msg-use-table tfoot td{border-top:1px solid var(--ui-border-strong)}
.msg-use-foot{border-top:0;padding:12px 0 0;justify-content:flex-end}
.msg-use-foot>span{margin-right:auto}
.msg-page .msg-use-foot label.msg-size{gap:8px;font-size:13px;font-weight:500;color:var(--ui-muted);white-space:nowrap}
/* segment allocation: the two pools */
.msg-alloc{padding:20px}
.msg-alloc-alert{margin:0 0 14px}
.msg-pools{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.msg-pool{display:flex;gap:16px;align-items:flex-start;min-width:0;padding:18px 20px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface)}
.msg-pool-tile{width:44px;height:44px;border-radius:50%}
.msg-pool-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.msg-pool-title{margin:0;font-size:17px;font-weight:700;color:var(--ui-ink);line-height:1.25}
.msg-pool-sub{margin:-4px 0 2px;font-size:13.5px;color:var(--ui-text)}
.msg-pool .msg-bar>span{background:var(--ui-accent)}
.msg-pool--inc .msg-bar>span{background:#7A5AF8}
.msg-pool-dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:2px 0 0}
.msg-pool-dl div{min-width:0}
.msg-pool-dl dt{font-size:12px;color:var(--ui-muted);margin:0}
.msg-pool-dl dd{margin:0;font-family:inherit;font-size:15px;font-weight:600;color:var(--ui-ink)}
.msg-pool-dl dd b{font-weight:700}
.msg-pool-note{margin:0;font-size:12.5px;color:var(--ui-muted)}
.msg-alloc>.msg-small{margin:12px 0 0}
.msg-alloc-more{margin:12px 0 0;border-top:1px solid var(--ui-border)}
.msg-alloc .msg-alloc-more>summary{padding:12px 0 4px}
.msg-alloc-more .ui-table-wrap{max-width:520px}
.msg-fix{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:8px 0 12px}
.msg-fix .ui-field{flex:1 1 140px}
.msg-fix-btns{display:flex;gap:8px}
.msg-cycle{max-width:240px}

/* tablet */
@media(max-width:1100px){
 .msg-quotas{gap:12px}.msg-q{padding:14px 16px}
 .msg-usage{grid-template-columns:1fr}
 .msg-ov-grid{gap:12px}.msg-uq{padding:14px 16px}.msg-pool{padding:16px}
 /* workflow cards: who/where and actions on one row, the two texts side by side under it */
 .msg-wfc{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .msg-wfc-meta{grid-column:1}
 .msg-wfc-acts{grid-column:2;grid-row:1;padding-left:0;border-left:0;align-items:flex-end}
 .msg-wfc-btns{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}
 .msg-wfc-btns .ui-btn{width:auto}
 .msg-wfc-msg:nth-of-type(2){padding-left:0;border-left:0}
 .msg-wfr{grid-template-columns:auto minmax(0,1fr) auto}
 .msg-wfr-meta{grid-column:2;grid-row:2}
 .msg-wfr-badge{grid-column:3;grid-row:1}
}
@media(max-width:900px){
 .msg-tabbar{flex-direction:column;align-items:stretch}
 .msg-tools{padding-bottom:12px}
 .msg-search{flex:1 1 220px;width:auto}
 .msg-ov-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .msg-ov-grid>.msg-uq:last-child{grid-column:1/-1}
 .msg-pools{grid-template-columns:1fr}
}
/* tablet: the table scrolls sideways, so the actions stay pinned on the right */
@media(min-width:641px) and (max-width:1100px){
 .msg-list .msg-table th:last-child,.msg-list .msg-table td.msg-act-cell{position:sticky;right:0;z-index:1;box-shadow:inset 1px 0 0 var(--ui-border)}
}
/* phone: rows become cards (ui-table--stack) */
@media(max-width:640px){
 .msg-table.ui-table--stack td,.msg-table.ui-table--stack td:first-child,.msg-table.ui-table--stack td:last-child{padding:6px 16px}
 .msg-quotas{grid-template-columns:1fr;gap:12px}
 .msg-editor-grid{grid-template-columns:1fr}
 .msg-tools{flex-direction:column;align-items:stretch}
 .msg-date .ui-input{width:100%}
 .msg-search{flex:none;width:100%}
 .msg-page .msg-head .ui-actions,.msg-page .msg-head .ui-actions .ui-btn{width:100%}
 .msg-table.ui-table--stack tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:4px}
 .msg-table.ui-table--stack td{align-items:flex-start;width:auto;min-width:0}
 .msg-table.ui-table--stack td.msg-camp,.msg-table.ui-table--stack td.msg-text,.msg-table.ui-table--stack td.msg-act-cell,.msg-table.ui-table--stack td[data-label="Session"]{grid-column:1/-1}
 .msg-table.ui-table--stack td.msg-text{display:block;max-width:none;min-width:0}
 .msg-table.ui-table--stack td.msg-text::before{display:block;margin-bottom:4px}
 .msg-table.ui-table--stack td.msg-camp{min-width:0;display:block}
 .msg-table.ui-table--stack td.msg-camp::before{display:none}
 .msg-table.ui-table--stack td.msg-camp b{font-size:15px}
 .msg-table.ui-table--stack td>*:not(.msg-acts){text-align:right}
 .msg-table.ui-table--stack td.msg-text>*,.msg-table.ui-table--stack td.msg-camp>*{text-align:left}
 .msg-table.ui-table--stack .msg-act-cell{width:100%;align-items:center}
 .msg-copy{display:block}
 .msg-fill{flex-wrap:wrap}
 .msg-fill .ui-input{width:100%}
 .msg-foot{padding:12px}
 .msg-editor-actions .ui-btn--primary{flex:1}
 /* workflow checklist on a phone: one column */
 .msg-filters .msg-f-day,.msg-filters .msg-f-sel{flex:1 1 100%;margin-right:0}
 .msg-wf-sec{padding:16px 14px}
 .msg-wfc{grid-template-columns:1fr;padding:12px}
 .msg-wfc-meta,.msg-wfc-acts,.msg-wfc-msg{grid-column:1;grid-row:auto}
 .msg-wfc-msg,.msg-wfc-msg:nth-of-type(2){padding-left:0;border-left:0}
 .msg-wfc-acts{align-items:stretch}
 .msg-wfc-btns{flex-direction:column}
 .msg-wfc-btns .ui-btn{width:100%}
 .msg-wfr{grid-template-columns:auto minmax(0,1fr);padding:12px}
 .msg-wfr-meta,.msg-wfr-badge,.msg-wfr-lists{grid-column:2;grid-row:auto}
 .msg-wfu .ui-table td:first-child{min-width:0}
 .msg-wfu .ui-table--stack td{display:block;text-align:left}
 .msg-wfu .ui-table--stack td::before{display:block;margin:0 0 2px}
 /* usage on a phone */
 .msg-period{margin:0;white-space:normal}
 .msg-ov,.msg-use,.msg-alloc{padding:16px 14px}
 .msg-ov-grid{grid-template-columns:1fr}
 .msg-ov-grid>.msg-uq:last-child{grid-column:auto}
 .msg-use-city{flex:1 1 100%}
 .msg-use-table td:first-child,.msg-use-table th:first-child{min-width:0}
 .msg-use-table th,.msg-use-table td{padding-left:6px;padding-right:6px;white-space:normal;font-size:13px}
 .msg-use-table .msg-th{flex-direction:column;align-items:flex-end;gap:2px}
 .msg-use-table td:first-child,.msg-use-table th:first-child{padding-left:10px}.msg-use-table td:last-child,.msg-use-table th:last-child{padding-right:10px}
 .msg-use-foot{justify-content:space-between}
 .msg-use-foot>span{flex:1 1 100%}
 .msg-pool{gap:12px;padding:14px}
 .msg-pool-tile{width:38px;height:38px}
}
/* labels that wrap an icon and an input stay in a row (reports.css makes every label a column) */
.msg-page label.ui-search,.msg-page label.msg-date,.msg-page label.msg-size{flex-direction:row;align-items:center;gap:0}
/* the JustCall name under each message (2026-10-26) */
.msg-jc{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:6px}
.msg-jc-l{font-size:11px;font-weight:600;color:var(--ui-muted);text-transform:uppercase;letter-spacing:.4px}
.msg-jc-n{font-size:12px;padding:2px 6px;border-radius:6px;background:var(--ui-accent-soft);color:var(--ui-ink);overflow-wrap:anywhere;white-space:normal}
/* JustCall balance today (2026-11-13): a slim card at the top; amber until today's numbers are in */
.msg-bal{padding:14px 16px;margin-bottom:12px}
.msg-bal.is-due{border-color:var(--ui-warn-line);background:var(--ui-warn-soft)}
.msg-bal-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.msg-bal-text{flex:1 1 260px;min-width:0}
.msg-bal .ui-field{width:170px}
@media(max-width:640px){.msg-bal .ui-field{flex:1 1 140px;width:auto}.msg-bal .ui-btn{flex:1 1 100%}}
