@font-face{font-family:QMH;src:url('https://static2.sharepointonline.com/files/fabric/assets/fonts/segoeui-westeuropean/segoeui-regular.woff2') format('woff2');font-weight:100 500;font-display:swap}
@font-face{font-family:QMH;src:url('https://static2.sharepointonline.com/files/fabric/assets/fonts/segoeui-westeuropean/segoeui-semibold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:QMH;src:url('https://static2.sharepointonline.com/files/fabric/assets/fonts/segoeui-westeuropean/segoeui-bold.woff2') format('woff2');font-weight:700 900;font-display:swap}
/* Original approved tokens and components are in the seven unchanged source stylesheets.
   Only the production viewport and real media states need these overrides. */
html,body.single-app{width:100%;height:100%;margin:0;overflow:hidden}
body.single-app .app-wrap{width:100%;max-width:100%;height:var(--app-height,100dvh);margin:0;padding:0}
body.single-app .phone{width:100%;max-width:100%;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none;overflow:hidden}
body.single-app .viewport{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden}
body.single-app .app-header,body.single-app .actions,body.single-app .nav{flex:0 0 auto}
.single-app .phone .nav[hidden]{display:none}
.single-app .recognition-photo{display:block;width:100%;height:auto;border-radius:10px;margin:8px 0}
.single-app .editable-customer{display:block;width:100%;text-align:left;color:var(--ink)}
.single-app .phone[data-theme=dark] .gross-card.weighflow-weight-card .netto strong{font-family:Consolas,monospace}
@media(min-width:501px){.single-app .app-header{padding:6px 14px}.single-app .viewport{padding:12px 14px}.single-app .nav{padding:6px 4px max(6px,env(safe-area-inset-bottom))}}
@font-face{font-family:QMHFallback;src:url('fonts/selawk.ttf') format('truetype');font-weight:100 500;font-display:swap}
@font-face{font-family:QMHFallback;src:url('fonts/selawksb.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:QMHFallback;src:url('fonts/selawkb.ttf') format('truetype');font-weight:700 900;font-display:swap}
body.single-app{font-family:'Segoe UI',QMH,QMHFallback,Arial,sans-serif}
.single-app .chart-plot text{font-family:'Segoe UI',QMH,QMHFallback,Arial,sans-serif}
.single-app .gross-card.weighflow-weight-card .formula>div{flex-wrap:nowrap}
.single-app .gross-card.weighflow-weight-card .formula small,.single-app .gross-card.weighflow-weight-card .formula strong{white-space:nowrap}
@media(max-width:359px){.single-app .gross-card.weighflow-weight-card .formula>div{flex-wrap:wrap}}

.single-app .photo-preview{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;border-radius:10px}
.single-app .photo-preview:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.photo-viewer{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0b121a;color:#fff}
.photo-viewer[open]{display:flex;flex-direction:column}
.photo-viewer::backdrop{background:rgba(0,0,0,.85)}
.photo-viewer-toolbar{display:flex;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 12px 12px;flex-shrink:0}
.photo-viewer-toolbar strong{flex:1;min-width:0;font-size:16px}
.photo-viewer-toolbar button{width:44px;height:44px;border:1px solid #526170;border-radius:10px;background:#1a2b34;color:#fff;font:28px/1 Arial;cursor:pointer}
.photo-viewer-toolbar button:focus-visible{outline:2px solid #74dbea;outline-offset:2px}
.photo-viewer-body{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;overscroll-behavior:contain;padding:12px 12px calc(12px + env(safe-area-inset-bottom));touch-action:none;user-select:none}
.photo-viewer-body img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center;will-change:transform;flex-shrink:0;pointer-events:none}

.single-app .login-remember{display:flex;align-items:flex-start;gap:10px;margin:18px 0;color:var(--ink);font-size:13px;cursor:pointer}
.single-app .login-remember input{width:20px;height:20px;min-height:0;margin:0;flex-shrink:0;accent-color:var(--accent)}
.single-app .login-remember small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}

.single-app .truck-management{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.single-app .truck-management button{width:100%;min-height:48px;margin:0;padding:10px 8px;border-radius:11px;font-size:13px;font-weight:600;line-height:1.35}
.single-app .truck-management .secondary{border:1px solid var(--line);background:var(--soft);color:var(--accent)}
.single-app .truck-danger{border:1px solid #dc6264;background:#fff0f1;color:#a91d2b;font-weight:600}
.single-app .truck-remove{grid-column:1/-1}
.single-app .phone[data-theme=dark] .truck-danger{background:#39242c;color:#ffb4b4;border-color:#a34b58}
.single-app .media-status,.single-app .record-time,.single-app .sender-responsible{font-size:12px;line-height:1.5;color:var(--muted)}

.vehicle-type-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:8px 0 14px; }
.vehicle-type-options button { min-height:44px; border:1px solid var(--line); border-radius:10px; padding:10px; background:var(--soft); color:var(--text); font-weight:650; }
.vehicle-type-options button[aria-pressed="true"] { border-color:var(--accent); color:var(--accent); background:var(--accent-soft,var(--soft)); }

.document-filter-toolbar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.report-date-toolbar { display:flex; align-items:center; gap:10px; min-width:0; margin:0 0 14px; }
.report-date-toolbar>.journal-filter { flex:0 0 116px; }
.report-date-range { display:grid; flex:0 1 auto; min-width:0; gap:2px; text-align:left; color:var(--ink); font-size:12px; line-height:16px; font-weight:550; }
.report-date-range time { white-space:nowrap; }
.report-date-clear { display:grid; place-items:center; flex:0 0 30px; width:30px; height:44px; padding:0; border:0; border-radius:8px; background:var(--soft); color:var(--accent); font-size:23px; }
@media(max-width:359px){.report-date-toolbar{gap:8px}.report-date-toolbar>.journal-filter{flex-basis:110px}}

.journal-link { display:flex; align-items:center; gap:10px; width:100%; padding:15px; margin:0 0 14px; border:1px solid var(--line); border-radius:13px; background:var(--surface); color:var(--ink); text-align:left; font-size:14px; font-weight:600; }
.journal-link svg { width:20px; height:20px; flex-shrink:0; color:var(--accent); }
.journal-link svg:last-child { margin-left:auto; }
.journal-toolbar { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-bottom:12px; }
.journal-filter { display:flex; align-items:center; justify-content:space-between; gap:4px; min-width:0; min-height:46px; padding:7px 9px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); text-align:left; }
.journal-filter>span { display:grid; gap:2px; min-width:0; }
.journal-filter strong { font-size:12px; line-height:15px; font-weight:650; white-space:nowrap; }
.journal-filter small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:10px; line-height:13px; }
.journal-filter svg { width:12px; height:12px; transform:rotate(90deg); color:var(--muted); }
.journal-filter.is-filtered { border-color:var(--accent); background:var(--soft); }
.journal-filter.is-filtered small,.journal-filter.is-filtered svg { color:var(--accent); }
/* The filter sheet is a modal in the top layer, outside .phone. Copy its theme tokens at open. */
.journal-filter-sheet { --surface:#fff; --soft:#f2f5fa; --ink:#17243a; --muted:#68758a; --line:#e7ecf3; --accent:#2556e8; --on-accent:#fff; position:fixed; inset:auto 0 0; box-sizing:border-box; width:min(100%,470px); max-width:100%; max-height:calc(100dvh - max(16px,env(safe-area-inset-top))); margin:0 auto; padding:0; border:1px solid var(--line); border-bottom:0; border-radius:24px 24px 0 0; background:var(--surface); color:var(--ink); overflow:hidden; font-family:'Segoe UI',QMH,QMHFallback,Arial,sans-serif; }
.journal-filter-sheet[data-theme=dark] { --surface:#192730; --soft:#1e3540; --ink:#eff6fa; --muted:#a0b2c0; --line:#2a3b46; --accent:#77dded; --on-accent:#10232c; color-scheme:dark; }
.journal-filter-sheet[open] { display:flex; flex-direction:column; }
.journal-filter-sheet::backdrop { background:#101a2266; }
.journal-sheet-handle { flex:none; width:44px; height:4px; margin:9px auto 0; border-radius:4px; background:var(--muted); opacity:.35; }
.journal-sheet-heading { display:flex; flex:none; align-items:center; gap:5px; padding:5px 12px 8px 20px; }
.journal-sheet-heading h2 { flex:1; margin:0; font-size:20px; line-height:27px; font-weight:700; letter-spacing:-.3px; }
.journal-sheet-heading button { flex:none; display:grid; place-items:center; width:36px; height:44px; padding:0; border-radius:9px; background:transparent; color:var(--muted); font-size:26px; }
.journal-sheet-heading [data-journal-period-back] { width:28px; margin-left:-9px; color:var(--ink); }
.journal-sheet-heading [data-journal-period-back] svg { width:18px; height:18px; transform:rotate(180deg); }
.journal-sheet-body { min-height:0; padding:0 20px 16px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.journal-filter-options { min-width:0; margin:0; padding:0; border:0; }
.journal-filter-options label { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:49px; padding:10px 0; border-bottom:1px solid var(--line); font-size:15px; font-weight:600; cursor:pointer; }
.journal-filter-options label:last-child { border-bottom:0; }
.journal-filter-options input { flex:none; width:20px; height:20px; min-height:0; margin:0; accent-color:var(--accent); cursor:pointer; }
.journal-sheet-footer { display:grid; flex:none; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px 20px max(16px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--surface); }
.journal-sheet-footer button { min-width:0; min-height:46px; padding:10px 6px; border:0; border-radius:12px; background:var(--soft); color:var(--ink); font-size:15px; font-weight:650; }
.journal-sheet-footer [data-journal-period-apply] { background:var(--accent); color:var(--on-accent); }
.journal-sheet-footer button:disabled { opacity:.4; cursor:default; }
.journal-calendar-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:8px 0 20px; }
.journal-calendar-field { display:grid; min-width:0; gap:7px; }
.journal-calendar-field>span { color:var(--muted); font-size:13px; }
.journal-calendar-value { display:flex; min-width:0; border:1px solid var(--line); border-radius:11px; background:var(--soft); }
.journal-calendar-value.is-active { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.journal-calendar-value button { min-width:0; min-height:44px; padding:9px 10px; border:0; border-radius:10px; background:transparent; color:var(--ink); font-size:14px; white-space:nowrap; }
.journal-calendar-value [data-journal-date-field] { flex:1; text-align:left; font-variant-numeric:tabular-nums; }
.journal-calendar-value [data-journal-date-clear] { flex:none; width:26px; padding:0 4px; color:var(--muted); font-size:20px; }
.journal-calendar { padding:10px; border-radius:18px; background:var(--soft); }
.journal-calendar-heading { display:flex; align-items:center; gap:2px; margin-bottom:12px; }
.journal-month-selects { display:flex; flex:1; min-width:0; gap:2px; }
.journal-month-selects select { max-width:100%; min-width:0; min-height:40px; padding:4px 2px; border:0; border-radius:6px; background:transparent; color:var(--ink); font-size:14px; font-weight:650; }
.journal-month-selects select:first-child { width:100px; }
.journal-month-selects select:last-child { width:66px; }
.journal-calendar-heading>button { display:grid; place-items:center; flex:none; width:34px; height:40px; padding:0; border-radius:7px; background:transparent; color:var(--ink); }
.journal-calendar-heading>button svg { width:20px; height:20px; }
.journal-calendar-heading [data-journal-month-step="-1"] svg { transform:rotate(180deg); }
.journal-calendar-week,.journal-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.journal-calendar-week span { padding:5px 0 10px; text-align:center; color:var(--muted); font-size:10px; font-weight:600; }
.journal-calendar-days button { display:grid; place-items:center; min-width:0; height:42px; padding:0; border:0; border-radius:0; background:transparent; color:var(--ink); font-size:16px; }
.journal-calendar-days button span { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; }
.journal-calendar-days button.in-range { background:color-mix(in srgb,var(--accent) 12%,transparent); }
.journal-calendar-days button.range-start { border-radius:50% 0 0 50%; }
.journal-calendar-days button.range-end { border-radius:0 50% 50% 0; }
.journal-calendar-days button.range-start.range-end { border-radius:50%; }
.journal-calendar-days button[aria-current=date] span { box-shadow:inset 0 0 0 1px var(--accent); color:var(--accent); }
.journal-calendar-days button.is-selected span { background:var(--accent); color:var(--on-accent); font-weight:650; }
.journal-calendar-days button:focus-visible { outline-offset:-3px; border-radius:8px; }
.journal-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:359px){
 .journal-filter { padding:7px; gap:2px; }
 .journal-filter svg { width:10px; height:10px; }
 .journal-sheet-heading { padding-left:16px; }
 .journal-sheet-heading h2 { font-size:18px; }
 .journal-sheet-body { padding-left:16px; padding-right:16px; }
 .journal-sheet-footer { padding-left:16px; padding-right:16px; }
 .journal-calendar { padding:7px; }
 .journal-calendar-value button { padding-left:7px; padding-right:4px; font-size:13px; }
 .journal-calendar-value [data-journal-date-clear] { width:24px; padding:0; }
 .journal-month-selects select:first-child { width:94px; }
 .journal-calendar-heading>button { width:30px; }
}
.journal-total { min-height:20px; gap:8px; }
.journal-total>strong { white-space:nowrap; font-size:12px; }
.journal-active-period { display:inline-flex; align-items:center; min-width:0; max-width:58%; padding-left:7px; border-radius:7px; background:var(--soft); color:var(--accent); font-size:11px; }
.journal-active-period>span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.journal-active-period button { flex-shrink:0; display:grid; place-items:center; width:28px; height:28px; min-height:28px; padding:0; border:0; border-radius:7px; background:transparent; color:var(--accent); font-size:20px; cursor:pointer; }
.journal-card { padding:12px; overflow:hidden; margin-bottom:10px; }
.journal-card-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.journal-card-top .journal-photo-status { flex-basis:100%; }
.journal-card-top>strong { font-size:16px; letter-spacing:.2px; white-space:nowrap; }
.journal-state { flex-shrink:0; padding:4px 7px; border-radius:7px; background:var(--soft); color:var(--muted); font-size:11px; font-weight:600; }
.journal-state.saved { color:var(--good); background:var(--goodbg); }
.journal-vehicle-model { margin-top:3px; font-size:11px; line-height:14px; color:var(--muted); overflow-wrap:anywhere; }
.journal-events { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:8px; }
.journal-event { min-width:0; }
.journal-event-content { border-radius:6px; }
.journal-event-content>span { display:block; margin-bottom:2px; color:var(--muted); font-size:11px; line-height:13px; }
.journal-event-content[data-journal-photo-trigger]>span { display:flex; align-items:center; gap:5px; }
.journal-photo-cue { display:inline-flex; flex:none; align-items:center; color:var(--muted); opacity:.8; }
.journal-photo-cue svg { width:12px; height:12px; }
.journal-event-content[aria-disabled=true] .journal-photo-cue { display:none; }
.journal-event-content[data-journal-photo-trigger]:is(:hover,:focus-visible) .journal-photo-cue { color:var(--accent); opacity:1; }
.journal-card .journal-event time { margin:0; font-size:11px; line-height:15px; color:var(--ink); white-space:nowrap; }
.journal-event[data-journal-photo],.journal-card[data-journal-default-movement] { cursor:pointer; }
[data-journal-photo-trigger]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.journal-card-footer { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:start; gap:8px; margin-top:8px; }
.journal-card-footer:empty { display:none; }
.journal-card-footer button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:34px; padding:7px 11px; border:1px solid var(--line); border-radius:8px; font-size:12px; font-weight:600; background:var(--soft); color:var(--accent); }
.journal-card-footer button svg { width:13px; height:13px; }
.journal-card-footer .journal-save { grid-column:2; background:var(--accent); border-color:var(--accent); color:var(--surface); }
.journal-card-footer .journal-document { grid-column:2; }
.journal-saved-cash { grid-column:2; padding:8px 0; color:var(--good); font-size:11px; }
.journal-audit { min-width:0; cursor:default; }
.journal-audit summary { width:max-content; min-height:34px; box-sizing:border-box; padding:8px 0; color:var(--muted); font-size:12px; cursor:pointer; }
.journal-audit[open] { grid-column:1/-1; }
.journal-audit-event { border-top:1px solid var(--line); padding-top:10px; margin-top:6px; font-size:12px; }
.journal-audit-event>.journal-reading { margin-top:8px; }
.journal-audit .journal-reading strong { font-size:15px; }
.journal-direction { padding:5px 9px; border-radius:8px; background:var(--soft); color:var(--accent); font-size:12px; font-weight:600; }
.journal-direction.entry { color:var(--good); background:var(--goodbg); }
.journal-direction.cash_sale { color:var(--warn); background:var(--warnbg); }
.journal-card time { display:block; margin:7px 0 12px; font-size:12px; color:var(--muted); }
.journal-photo-status { margin:4px 0 0; color:var(--muted); font-size:11px; }
.journal-card[data-journal-photo] { cursor:pointer; }
.journal-card-top[data-journal-photo-trigger]:focus-visible { outline:2px solid var(--accent); outline-offset:4px; border-radius:4px; }
.journal-card button { cursor:pointer; }
.journal-reading,.journal-captured { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.journal-reading>span,.journal-captured>span { color:var(--muted); font-size:12px; }
.journal-reading strong { font-size:24px; font-variant-numeric:tabular-nums; }
.journal-reading small,.journal-weights small { font-size:12px; font-weight:400; color:var(--muted); }
.journal-captured { margin-top:6px; }
.journal-captured strong { font-size:12px; font-weight:400; }
.journal-weights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; border-top:1px solid var(--line); padding-top:8px; margin-top:8px; }
.journal-weights>div { flex:1; min-width:0; }
.journal-weights span { display:block; font-size:11px; line-height:13px; color:var(--muted); margin-bottom:3px; }
.journal-weights strong { font-size:14px; line-height:18px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.journal-weights small { font-size:10px; }
.journal-list+.secondary { width:100%; min-height:44px; }
.journal-approved { display:flex; justify-content:space-between; gap:12px; margin-top:12px; color:var(--accent); }
.journal-review-actor { margin-top:6px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.journal-review-state { margin-top:12px; color:var(--muted); font-size:12px; }
.journal-actions { display:flex; gap:10px; margin-top:10px; }
.journal-actions button { flex:1; min-height:44px; padding:10px; border-radius:10px; }
.journal-review-dialog { width:min(420px,calc(100vw - 32px)); padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); }
.journal-review-dialog::backdrop { background:#0008; }
.journal-review-dialog form { display:grid; gap:16px; }
.journal-dialog-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.journal-dialog-top button { width:44px; height:44px; border:0; border-radius:10px; background:var(--soft); color:var(--ink); font-size:22px; }
.journal-review-dialog label { display:grid; gap:7px; font-size:14px; }
.journal-review-dialog input { width:100%; min-height:44px; box-sizing:border-box; padding:10px; border:1px solid var(--line); border-radius:10px; background:var(--soft); color:var(--ink); font-size:16px; }
.journal-review-dialog .primary { min-height:46px; border-radius:10px; }

/* Review dialogs live outside .phone and therefore own their opaque theme. */
.journal-review-dialog { --surface:#ffffff; --soft:#f1f5fc; --ink:#17243b; --muted:#62728b; --line:#dbe3ef; --primary:#2456eb; position:fixed; inset:0; margin:0; width:100vw; max-width:none; height:100dvh; max-height:none; box-sizing:border-box; padding:20px; border:0; border-radius:0; background:#f5f7ff; color:var(--ink); overflow:auto; }
.journal-review-dialog[data-theme=dark] { --surface:#1a2b34; --soft:#203641; --ink:#eff7fa; --muted:#aac0ca; --line:#38515d; --primary:#74dbea; background:#0f1b23; }
.journal-review-dialog form { width:100%; max-width:760px; margin:auto; gap:18px; }
.journal-review-dialog .journal-dialog-top { position:sticky; top:-20px; background:var(--surface); padding:15px; border-radius:10px; z-index:2; }
.journal-form-card { display:grid; gap:15px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px; }
.journal-review-dialog select { width:100%; min-height:46px; box-sizing:border-box; padding:10px; border:1px solid var(--line); border-radius:10px; background:var(--soft); color:var(--ink); font-size:16px; }
.journal-review-dialog .primary { background:var(--primary); color:#fff; font-weight:600; border:0; padding:14px; }
.journal-review-dialog[data-theme=dark] .primary { color:#10252f; }
.journal-review-dialog .journal-check { display:flex; align-items:center; gap:12px; }
.journal-review-dialog input[type=checkbox] { width:22px; min-height:22px; height:22px; flex:0 0 22px; }
.journal-review-dialog [hidden] { display:none!important; }
.journal-model { display:flex; justify-content:space-between; gap:12px; margin:12px 0; }
.journal-model>span,.journal-changes span { color:var(--muted); }
.journal-changes { display:grid; gap:9px; padding:12px 0; overflow-wrap:anywhere; }
.journal-changes>div { display:grid; gap:4px; }
.journal-changes strong { font-size:13px; }

.journal-review-dialog .journal-dialog-top button { background:var(--soft); color:var(--ink); border:1px solid var(--line); }

.tara-list-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 16px}.tara-list-filters label{display:grid;gap:7px;min-width:0;color:var(--muted);font-size:12px}.tara-list-filters select{min-width:0;width:100%;min-height:46px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:14px}

.account-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:14px}.account-categories button{min-width:0;min-height:44px;padding:9px 6px;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;font-weight:600}.account-categories button[aria-pressed=true]{background:var(--accent);color:var(--surface)}.phone[data-theme=dark] .account-categories button[aria-pressed=true]{color:var(--bg)}.account-empty{padding:24px 16px;text-align:center;color:var(--muted);font-size:14px}
.account-categories button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.account-list{display:grid;gap:14px}.account-row{padding:16px}.account-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.account-row-head>strong{min-width:0;overflow-wrap:anywhere}.account-row-head>span{font-size:12px;color:var(--muted)}.account-row .secondary{width:100%;min-height:44px;margin-top:12px;border-radius:10px}.account-form{display:grid;gap:17px;padding:18px}.account-form label,.account-password{display:grid;gap:7px;font-size:14px}.account-form input,.account-form select,.account-password input{min-width:0;width:100%;min-height:46px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font-size:16px;box-sizing:border-box}.account-password>span,.account-password-input{display:flex;gap:8px;min-width:0}.account-password button,.account-password-input button{flex:0 0 94px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font-size:12px}.account-active{display:flex!important;align-items:center;gap:12px!important}.account-active input{width:22px;min-height:22px;height:22px}

.party-choice{position:relative;min-width:0;width:100%;margin-top:7px}
.party-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-align:left}
.party-choice-copy{min-width:0;display:grid;gap:5px}.party-choice-copy strong{font-size:14px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.party-choice-copy small{font-size:11px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}.party-choice-copy .party-placeholder{color:var(--muted);font-weight:400}.party-picker-trigger>svg{width:17px;height:17px;flex-shrink:0;color:var(--accent);transform:rotate(90deg)}
.party-picker-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.party-choice .party-native-select{position:absolute;inset:0;margin:0!important;opacity:0;pointer-events:none}
.party-picker-dialog{--surface:#fff;--soft:#f1f5fc;--ink:#17243b;--muted:#62728b;--line:#dbe3ef;--accent:#2456eb;width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);font-family:'Segoe UI',QMH,QMHFallback,Arial,sans-serif;overflow:auto}
.party-picker-dialog[data-theme=dark]{--surface:#1a2b34;--soft:#203641;--ink:#eff7fa;--muted:#aac0ca;--line:#38515d;--accent:#74dbea;color-scheme:dark}
.party-picker-dialog::backdrop{background:#0007}.party-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.party-picker-heading>strong{font-size:18px;line-height:1.4}.party-picker-heading button{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:0;border-radius:10px;background:var(--soft);color:var(--ink);font-size:24px}
.party-picker-search{display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--line);border-radius:11px;background:var(--soft)}.party-picker-search svg{width:18px;height:18px;color:var(--muted);flex-shrink:0}.party-picker-search input{width:100%;min-width:0;min-height:46px;border:0;outline:none;background:transparent;color:var(--ink);font:inherit;font-size:15px}.party-picker-search:focus-within{outline:2px solid var(--accent);outline-offset:1px}.party-picker-count{margin:13px 0 6px;color:var(--muted);font-size:12px}.party-picker-options{display:grid;gap:4px}.party-picker-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;width:100%;padding:12px;text-align:left;border:0;border-radius:10px;background:var(--surface);color:var(--ink)}.party-picker-options button+button{border-top:1px solid var(--line)}.party-picker-options button[aria-pressed=true]{background:var(--soft);color:var(--accent)}.party-picker-options button>span{min-width:0;display:grid;gap:5px}.party-picker-options strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}.party-picker-options small{color:var(--muted);font-size:12px;line-height:1.4;overflow-wrap:anywhere}.party-picker-options svg{width:18px;height:18px;flex-shrink:0}.party-picker-options button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

.document-row .recent-document-date { font-size:11px; font-variant-numeric:tabular-nums; white-space:nowrap; }

.phone[data-view=manualwaybill] .registry-form { display:grid; gap:16px; }
.phone[data-view=manualwaybill] .registry-form select,.phone[data-view=manualwaybill] .registry-form textarea { width:100%;min-width:0;min-height:46px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font:inherit;box-sizing:border-box; }
.phone[data-view=manualwaybill] .ledger-paid { display:flex;align-items:center;gap:10px;font-size:14px; }
.phone[data-view=manualwaybill] .ledger-paid input { width:22px;min-height:22px; }
.phone[data-view=manualwaybill] [hidden] { display:none!important; }
.phone[data-view=manualwaybill] #manual-waybill-form { min-width:0; grid-template-columns:minmax(0,1fr); }
.phone[data-view=manualwaybill] #manual-waybill-form .field { min-width:0; }
.phone[data-view=manualwaybill] #manual-waybill-form input[type=date],
.phone[data-view=manualwaybill] #manual-waybill-form input[type=time] { -webkit-appearance:none; appearance:none; display:block; width:100%; min-width:0; max-width:100%; box-sizing:border-box; text-align:left; }
.phone[data-view=manualwaybill] #manual-waybill-form input::-webkit-date-and-time-value { text-align:left; }

/* Saved invoice corrections and cancellation. */
.phone[data-view=documentmanage] #saved-document-form { display:grid;gap:16px;min-width:0; }
.phone[data-view=documentmanage] .field { display:grid;gap:8px;min-width:0; }
.phone[data-view=documentmanage] textarea { display:block;width:100%;min-width:0;min-height:88px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--ink);font:inherit;box-sizing:border-box;resize:vertical; }
.phone[data-view=document] [data-manage-waybill] { width:100%;min-height:48px; }
.phone[data-view=document] [data-manage-waybill]+[data-manage-waybill] { margin-top:10px; }
