/* 「ドライバー報酬」. Tables are kept tight so that a whole business day (and a whole month) is on screen at once. */
.dw-page .page-header{margin-bottom:10px}
.dw-page .page-header .eyebrow{margin-bottom:4px}
.dw-page .page-header h1{margin:0}
.dw-page .page-header p{margin:4px 0 0;font-size:12px;color:var(--muted)}
.dw-tabs{margin-bottom:10px}
.dw-bar{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;justify-content:space-between;margin-bottom:10px}
.dw-pick{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.dw-pick input{padding:6px 9px;min-width:140px}
.dw-pick strong{font-size:15px;margin-left:6px}
.dw-pick .tag{margin-left:4px}
.dw-hint{margin:0;font-size:11px;color:var(--muted)}
.dw-figures{display:flex;flex-wrap:wrap;gap:6px;align-items:stretch}
.dw-figures>div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:5px 12px;min-width:92px}
.dw-figures span{display:block;font-size:10px;color:#667369;white-space:nowrap}
.dw-figures strong{display:block;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.35}
.dw-figures small{display:block;font-size:10px;color:var(--muted);line-height:1.2}
.dw-figures .dw-ratio{background:#ebf1d6;border-color:#d2dfcc}
.dw-figures .dw-close{background:transparent;border:0;padding:0;display:flex;align-items:center;gap:8px;min-width:0}
.dw-figures .dw-close small{max-width:210px;line-height:1.5}
/* Stints whose times the office has not confirmed yet: with the day's figures, in the colour of something that waits. */
.dw-figures .dw-pending{background:#faf0dc;border-color:#ecd9a8}
.dw-figures .dw-pending span,.dw-figures .dw-pending small{color:#85682b}
.dw-panel{margin-bottom:12px}
.dw-panel .panel-head{padding:8px 14px;flex-wrap:wrap;gap:8px}
.dw-panel .panel-head h2{margin:0;font-size:14px}
.dw-head-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.dw-panel .panel-body{padding:12px 14px}
.dw-foot{border-top:1px solid #edf0eb}
.dw-foot p{margin:0}
.dw-table{min-width:760px}
.dw-table th,.dw-table td{padding:4px 8px;line-height:1.4}
.dw-table thead th{padding:6px 8px}
.dw-table th:first-child,.dw-table td:first-child{padding-left:14px}
.dw-table tbody th,.dw-table tfoot th{font-weight:600;text-align:left;white-space:nowrap;font-size:12px;color:#273b35;background:transparent;border-bottom:1px solid #edf0eb;letter-spacing:0;vertical-align:middle}
.dw-table tfoot th,.dw-table tfoot td{border-top:2px solid var(--line);border-bottom:0;font-weight:700;background:#f7f9f5}
.dw-table .tag{margin:0 4px 0 0}
.dw-table .btn.small{padding:2px 8px;min-height:24px;font-size:11px;margin-right:4px}
.dw-note{max-width:260px;color:#4f5f54;font-size:11px}
.dw-actions{white-space:nowrap}
.dw-locked{font-size:11px;color:var(--muted)}
.dw-pay{border-left:1px solid #edf0eb;white-space:nowrap;vertical-align:middle}
.dw-pay strong{font-variant-numeric:tabular-nums;margin-right:8px}
.dw-paid{margin-right:4px}
.dw-due{color:#8a5a12}
small.dw-due{display:block;white-space:normal;max-width:240px;font-size:10px;line-height:1.5}
.dw-muted{color:var(--muted)}
.dw-voided{font-size:11px;color:var(--muted);line-height:1.9}
.dw-plan{padding:8px 14px;margin-bottom:10px}
/* The plans of the day that are not stints yet: one box each with its two buttons, side by side as far as the width allows (the
   day's table stays in view), and the button that takes all of them over with its note below. */
.dw-plan p{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.dw-plan small{flex:1 1 320px;font-size:10px;line-height:1.6}
.dw-plan .btn.small{padding:2px 8px;min-height:24px;font-size:11px}
.dw-plans{list-style:none;margin:6px 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 10px}
.dw-plans li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:3px 8px;background:#fff;border:1px solid #d4e4d5;border-radius:6px}
.dw-plans span{font-variant-numeric:tabular-nums}
.dw-days tbody tr.dw-blank td,.dw-days tbody tr.dw-blank th{color:#9aa39c}
.dw-days th .link{font-variant-numeric:tabular-nums}
.dw-columns{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:12px;align-items:start}
.dw-columns .dw-table{min-width:0}
.dw-columns .dw-table th,.dw-columns .dw-table td{padding:4px 6px}
.dw-columns .dw-table th:first-child{padding-left:12px}
.dw-split{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.dw-split>div{background:#f7f9f5;border:1px solid var(--line);border-radius:8px;padding:7px 14px;min-width:120px}
.dw-split span{display:block;font-size:10px;color:#667369}
.dw-split strong{font-size:17px;font-variant-numeric:tabular-nums;margin-right:4px}
.dw-split small{font-size:10px;color:var(--muted)}
.dw-settings{display:flex;flex-wrap:wrap;gap:10px 34px}
.dw-settings span{display:block;font-size:10px;color:#667369}
.dw-settings strong{display:block;font-size:17px}
.dw-settings small{display:block;font-size:11px;color:var(--muted)}
.dw-grid{min-width:860px;table-layout:fixed}
.dw-grid th,.dw-grid td{padding:4px 6px;border-right:1px solid #edf0eb;vertical-align:top}
.dw-grid thead th{text-align:center}
.dw-grid thead th small{display:block;font-size:10px}
.dw-grid th:first-child{width:128px;text-align:left;padding-left:14px}
.dw-grid tbody th{font-weight:600;font-size:12px;color:#273b35;background:transparent;border-bottom:1px solid #edf0eb;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.dw-grid .dw-today{background:#f3f8ee}
.dw-chip{display:block;width:100%;border:1px solid #2b614c;background:#2b614c;color:#fff;border-radius:6px;padding:3px 4px;margin-bottom:3px;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dw-chip.dw-confirmed{background:#2b614c;color:#fff}
.dw-chip.dw-requested{background:#fff;color:#7a5f22;border:1px dashed #c9a959}
.dw-chip small{display:block;font-size:9px}
/* Who entered a plan, on the dark chip: the colour of the chip's own text, not the grey of a table's small print. */
.dw-grid .dw-chip small{color:inherit;opacity:.9}
.dw-plus{border:1px dashed #c5d0c7;background:transparent;color:#6c7d70;border-radius:6px;width:100%;padding:1px 0;font-size:12px;line-height:1.4}
.dw-plus:hover{background:#eef4ef}
.dw-steps{margin:0 0 12px;padding-left:20px;font-size:12px;line-height:1.9;color:#4f5f54}
.dw-import-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;max-width:820px}
.dw-import-form .field{margin-bottom:10px}
.dw-checks{display:flex;flex-direction:column;margin-bottom:8px}
.dw-checks .check-label{padding:4px 0}
.dw-sub{font-size:12px;margin:14px 0 6px;color:#44584a}
.dw-check{min-width:0;max-width:560px;border:1px solid var(--line)}
.dw-check tr.dw-mismatch td,.dw-check tr.dw-mismatch th{background:#fff0ec}
.dw-errors{margin:6px 0 0;padding-left:18px;max-height:220px;overflow:auto}
.dw-accept{color:#a35545;font-weight:600}
.dw-via{display:flex;flex-direction:column;gap:2px;margin-top:10px}
.dw-via .check-label{padding:4px 0;font-weight:600}
.dw-via .small-note{margin:0 0 8px 24px}
.dw-pay-form{margin-top:14px;align-items:end}
/* 明細: the filters in one row, and a list wide enough for every column. */
.dw-filters select{padding:6px 9px;max-width:220px}
.dw-filters input[inputmode]{min-width:0;width:128px}
.dw-list{min-width:1000px}
.dw-list a.btn.small{padding:2px 8px;min-height:24px;font-size:11px;margin-right:4px}
/* The kept documents of a payout, under its statement. */
.dw-docs{margin-top:12px;border:1px solid var(--line);border-radius:8px;padding:10px 14px;background:#f7f9f5}
.dw-docs h4{margin:0 0 6px;font-size:12px;color:#44584a}
.dw-docs ul{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-wrap:wrap;gap:4px 20px}
.dw-docs li{display:flex;align-items:center;gap:6px;font-size:12px}
.dw-docs li a{color:#326f54}
.dw-docs li small{color:var(--muted);font-size:10px}
.dw-docs .small-note{margin:0 0 6px}
.dw-docs .tag{margin:0}
/* Sending the statement by Signal: what was sent (under the kept documents), and the preview before a send. */
.dw-docs .dw-signal-head{margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
.dw-docs .dw-sends{flex-direction:column;gap:4px}
.dw-message{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9f5;border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:0;line-height:1.7;font:inherit;font-size:13px}
.dw-attached{list-style:none;margin:0 0 10px;padding:0;font-size:13px}
.dw-attached li{display:flex;align-items:center;gap:8px}
.dw-attached small{color:var(--muted);font-size:11px}
.dw-address-tools{margin:10px 0 0}
.dw-address-check{display:flex;align-items:center;gap:8px;margin:16px 0 8px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f7f9f5;font-weight:600}
.dw-address-check input{width:16px;height:16px;margin:0;flex:none}
/* The buttons under a dialog of this page. A narrow window (a side pane of 300-400px) cannot hold five of them in one row, and a
   row that does not wrap runs out to the left, where it cannot be scrolled to. Here they wrap onto further rows, each button stays
   inside the dialog, and a label that is longer than the dialog is wide breaks instead of being cut off. */
#editor[data-mode^="dw-"] .dialog-actions{flex-wrap:wrap}
#editor[data-mode^="dw-"] .dialog-actions .btn{max-width:100%;white-space:normal}
/* 「本人への受け渡しと確認」 of a statement that counts as confirmed without a signature, and the dialogs of a driver's consent. */
.dw-delivery{margin-top:12px;border:1px solid var(--line);border-radius:8px;padding:10px 14px;background:#fff}
.dw-delivery h4{margin:0 0 8px;font-size:12px;color:#44584a}
.dw-delivery dl,.dw-facts{margin:0 0 8px;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px 14px;font-size:12px}
.dw-delivery dl>div,.dw-facts>div{display:contents}
.dw-delivery dt,.dw-facts dt{color:#667369;white-space:nowrap}
.dw-delivery dd,.dw-facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
.dw-delivery dd small{display:block;color:var(--muted);font-size:11px}
.dw-delivery ul,.dw-past{list-style:none;margin:0;padding:0}
.dw-delivery li+li,.dw-past li+li{margin-top:4px}
.dw-delivery .small-note{margin:8px 0 0}
.dw-delivery .dw-head-actions{margin-top:2px}
.dw-terms{margin:10px 0;padding:10px 12px;border-left:3px solid #b9c4bb;background:#f7f9f5;font-size:13px;line-height:1.7}
.dw-facts{margin:10px 0 14px}
.dw-past{font-size:12px}
.dw-past small{display:block;color:var(--muted);font-size:11px}
.dw-label{font-size:11px;font-weight:600;color:#627564}
.dw-wide{grid-column:1/-1}
/* The statement, on screen and on paper. */
.dw-statement{border:1px solid #cfd8cf;border-radius:8px;padding:18px 20px;background:#fff;color:#1f2d27}
.dw-statement.dw-void{opacity:.6}
.dw-statement h3{text-align:center;font-size:18px;letter-spacing:.3em;margin:0 0 4px}
.dw-st-number{text-align:center;font-size:11px;color:#5a665e;margin:0 0 14px}
.dw-st-parties{display:flex;justify-content:space-between;gap:18px;margin-bottom:12px}
.dw-st-parties>div:last-child{text-align:right}
.dw-st-parties small{display:block;font-size:10px;color:#5a665e}
.dw-st-parties strong{display:block;font-size:15px}
.dw-st-lines{width:100%;border-collapse:collapse;font-size:12px;margin-bottom:10px}
.dw-st-lines th{font-size:10px;font-weight:500;color:#5a665e;text-align:left;border-bottom:1px solid #b9c4bb;padding:4px 6px}
.dw-st-lines td{padding:5px 6px;border-bottom:1px solid #e3e8e3;font-variant-numeric:tabular-nums}
.dw-st-lines .num{text-align:right;white-space:nowrap}
.dw-st-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-top:2px solid #1f2d27;padding-top:8px}
.dw-st-total span{font-size:12px}
.dw-st-total strong{font-size:22px;font-variant-numeric:tabular-nums}
.dw-st-tax{text-align:right;font-size:11px;color:#5a665e;margin:2px 0 0}
.dw-st-confirm{margin-top:18px;border-top:1px dashed #b9c4bb;padding-top:10px;font-size:12px}
.dw-st-confirm p{margin:0 0 6px}
.dw-st-sign{margin-top:20px!important;border-bottom:1px solid #1f2d27;padding-bottom:4px;max-width:440px}
.dw-st-state{color:#23513f;font-weight:600}
@media(max-width:1100px){.dw-columns{grid-template-columns:1fr}}
@media(max-width:700px){.dw-import-form{grid-template-columns:1fr}.dw-figures>div{min-width:calc(50% - 3px)}.dw-st-parties{flex-direction:column}.dw-st-parties>div:last-child{text-align:left}}
/* Printing while a statement is open prints the statement and nothing else. What is printed and signed is the kept PDF (its own tab);
   this is for the 「印刷」 button of a payout that has no PDF, and for the browser's own print command while the dialog is open. */
@media print{
 body:has(#dialog .dw-statement){background:#fff}
 body:has(#dialog .dw-statement) #app,body:has(#dialog .dw-statement) #toast,body:has(#dialog .dw-statement) #support-chat,body:has(#dialog .dw-statement) aside{display:none!important}
 #dialog:has(.dw-statement){position:static;display:block;border:0;box-shadow:none;width:auto;max-width:none;height:auto;max-height:none;margin:0;padding:0;overflow:visible;inset:auto}
 #dialog:has(.dw-statement)::backdrop{background:transparent}
 #dialog:has(.dw-statement) .dialog-head,#dialog:has(.dw-statement) .dialog-actions,#dialog:has(.dw-statement) .form-error,#dialog:has(.dw-statement) .dw-no-print,#dialog:has(.dw-statement) .dw-pay-form{display:none!important}
 #dialog:has(.dw-statement) .dialog-body{padding:0}
 .dw-statement{border:0;border-radius:0;padding:0;font-size:12pt}
 .dw-statement.dw-void{opacity:1}
}
