.repair-period,.repair-money .inline-controls,.repair-overview .inline-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
.repair-period input,.repair-period select{width:auto;max-width:100%}
.repair-month-nav{display:grid;align-items:center;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;width:292px;max-width:100%}
.repair-month-nav .month-control,.repair-month-nav .month-select{min-width:0;width:100%}
.repair-month-nav .month-select{min-height:44px;gap:8px;white-space:nowrap}
.repair-month-nav .repair-month-arrow{width:44px;height:44px;padding:0;font-size:28px;line-height:1}
@media(max-width:560px){.repair-month-nav{width:100%}}
.repair-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin:14px 0;border:1px solid #d4e1dc;border-radius:12px;overflow:hidden;background:#f6f9f8}
.repair-weekday{padding:8px;text-align:center;color:#51655e}
.repair-day{min-height:54px;padding:8px;border:1px solid #e1e9e5;border-radius:0;background:#fff;color:#145c4f;display:flex;align-items:center;justify-content:space-between;gap:2px}
.repair-day.selected,.repair-day:hover{background:#e5f3ed}.repair-day.selected{box-shadow:inset 0 0 0 2px #176d57}.repair-day[aria-current=date] strong{background:#156650;color:white;border-radius:1em;padding:2px 5px}
.repair-count,.repair-stage{border-radius:8px;background:#e6f2eb;color:#1c6650;padding:3px 6px;font-size:.78rem}
.repair-all-orders{box-sizing:border-box;background:white;padding:16px;border-radius:12px;min-width:0}
.repair-all-orders>h2{margin:0}
.repair-all-orders .repair-day{flex-direction:column;align-items:flex-start;justify-content:space-between;min-width:0;gap:4px}
.repair-all-orders .repair-count{line-height:1.4;white-space:nowrap}
.repair-all-orders .repair-zero{background:transparent;color:#68756f}
.role-visual-panel[data-screen=phone] .repair-all-orders{max-width:390px;margin-inline:auto}
.role-visual-panel[data-screen=phone] .repair-all-orders .repair-order-noun{display:none}
@media(max-width:700px){.repair-all-orders{padding:10px}.repair-all-orders .repair-order-noun{display:none}}
.repair-list{padding:6px 14px}.repair-order-row{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;padding:10px;background:transparent;border:0;border-bottom:1px solid #e3ebe7;border-radius:0}.repair-order-row:hover,.repair-order-row:focus-visible{background:#eaf5f0}.repair-order-row small,.repair-metric small{display:block;color:#53675f}.repair-stage{white-space:nowrap}.repair-money{margin-top:12px;padding-top:12px;border-top:1px solid #d7e3df}
.repair-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px;margin:12px 0}.repair-metric{text-align:left;padding:18px;background:white;color:#16293a;border:1px solid #dce5e1;border-radius:12px}.repair-metric strong{display:block;font-size:1.6rem;margin:8px 0}.repair-overview{margin:10px 0}
@media(max-width:560px){.repair-day{min-height:43px;padding:4px}.repair-weekday{padding:5px 0}.repair-count{padding:1px 4px}.repair-list{padding:2px 6px}}

.repair-material-form,.repair-material-summary{margin:16px 0}
.repair-material-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:end;gap:8px;margin:10px 0}
.repair-material-row input{width:100%;min-width:0}
.repair-material-form .inline-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.repair-material-summary strong{display:block;margin:8px 0}
@media(max-width:500px){.repair-material-row{grid-template-columns:minmax(0,1fr) auto}.repair-material-row label:first-child{grid-column:1/-1}}

.dashboard-sheet .dashboard-names .repair-drop-target{background:#095d49;box-shadow:inset 0 -4px #81d9b2}
.dashboard-sheet tr>td.repair-drop-target,.dashboard-sheet tr:hover>td.repair-drop-target{outline:2px solid #19765d;outline-offset:-3px;background-color:#d7efe5}
.dashboard-sheet tbody tr>th.repair-drop-date .dashboard-day-label{position:static;width:auto;height:auto;clip-path:none;color:#125b48}
.repair-calendar-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.55em;padding:1px 5px;border-radius:20px;background:#ffca66;color:#362500;font-size:.78rem;line-height:1.4;font-weight:700}
.repair-calendar-badge[hidden]{display:none}
.repair-calendar-caption{display:inline-flex;align-items:center;gap:8px}
.dashboard-sheet .dashboard-draggable.dashboard-task{padding-right:25px}

.repair-calendar-views{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.repair-calendar-views button[aria-pressed=true]{background:#176953;color:white;border-color:#176953}
.repair-column-header[draggable=true]{cursor:grab}
.repair-column-header.repair-column-over{box-shadow:inset 4px 0 #f4c761}
.dashboard-sheet tbody td.repair-awaiting-assignment,.dashboard-sheet tbody tr:hover>td.repair-awaiting-assignment{background:#fffae9}
.dashboard-sheet .dashboard-card.dashboard-task.repair-unassigned-card{background:#fff1c4;border:1px solid #e6ca82;border-inline-start:3px solid #b78428;color:#48371b}
.repair-columns-dialog{box-sizing:border-box;width:min(34rem,calc(100% - 24px));max-height:85dvh;overflow:auto;padding:20px;border:1px solid #d6e1de;border-radius:14px;color:inherit}
.repair-columns-dialog::backdrop{background:rgb(18 36 52 / 55%)}
.repair-column-actions,.repair-column-row{display:flex;align-items:center;gap:8px}
.repair-column-actions{justify-content:space-between}
.repair-column-row{margin:12px 0;align-items:end}
.repair-column-row label{flex:1;min-width:0;overflow-wrap:anywhere}
.repair-column-row input{width:100%;margin-top:4px}
.repair-column-row button{min-width:40px;min-height:40px;padding:4px}
.dashboard-sheet tr.repair-day-continuation .dashboard-day-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.dashboard-sheet tr.repair-day-start>th,.dashboard-sheet tr.repair-day-start>td{border-top:2px solid #c1d5cd}
.dashboard-sheet .repair-day-continuation>th{border-top-color:transparent}

.dashboard-sheet td[data-dispatch-state]{position:relative;--visit-fill:#f4f6f5;--visit-ink:#344942}
.dashboard-sheet td[data-dispatch-state=unassigned]{--visit-fill:#ffd1a3;--visit-ink:#713500}
.dashboard-sheet td[data-dispatch-state=awaiting]{--visit-fill:#fbe5e2;--visit-ink:#852d27}
.dashboard-sheet td[data-dispatch-state=accepted]{--visit-fill:#fff2cf;--visit-ink:#684909}
.dashboard-sheet td[data-dispatch-state=returned]{--visit-fill:#ffe9d1;--visit-ink:#783f0c}
.dashboard-sheet td[data-dispatch-state=review]{--visit-fill:#e4eff9;--visit-ink:#204e77}
.dashboard-sheet td[data-dispatch-state=done]{--visit-fill:#dff1e5;--visit-ink:#15563b}
.dashboard-sheet tbody tr>td[data-dispatch-state]:not(.repair-drop-target),
.dashboard-sheet tbody tr:hover>td[data-dispatch-state]:not(.repair-drop-target){background:var(--visit-fill);color:var(--visit-ink)}
.dashboard-sheet td[data-dispatch-state] .dashboard-task-stack{padding:0}
.dashboard-sheet .dashboard-card.repair-dispatch-visit{
 display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 9px;position:static;
 margin:0;min-height:44px;width:100%;padding:6px 12px;border:0;border-radius:0;
 background:transparent;color:inherit;box-shadow:none;font-weight:650;text-align:center;line-height:1.3;
 overflow-wrap:anywhere;font-variant-numeric:tabular-nums
}
.dashboard-sheet .repair-dispatch-visit::after{content:"";position:absolute;inset:0}
.dashboard-sheet .repair-dispatch-visit:hover::after,.dashboard-sheet .repair-dispatch-visit:focus-visible::after{box-shadow:inset 0 0 0 2px #397c64}
.dashboard-sheet td[data-dispatch-state=done] .repair-dispatch-visit{font-size:16px}
.dashboard-sheet td.repair-awaiting-assignment .repair-dispatch-visit{justify-content:flex-start;text-align:left;padding-inline-end:28px}
.dashboard-sheet .repair-dispatch-visit .dashboard-drag-grip{opacity:0;pointer-events:none}
.dashboard-sheet .repair-dispatch-visit:hover .dashboard-drag-grip,.dashboard-sheet .repair-dispatch-visit:focus-visible .dashboard-drag-grip{opacity:1}

.dashboard-sheet.repair-sized-sheet table{table-layout:fixed;min-width:0;border-spacing:0}
.dashboard-sheet.repair-sized-sheet tr>th,.dashboard-sheet.repair-sized-sheet tr>td{width:auto;min-width:0;max-width:none}
.dashboard-sheet.repair-sized-sheet .dashboard-metric-label{white-space:normal;overflow-wrap:anywhere;align-items:center}
.dashboard-sheet.repair-sized-sheet .dashboard-metric-label>span{min-width:0}
.dashboard-sheet.repair-sized-sheet .dashboard-metric-info{flex-shrink:0;margin-left:0}
.dashboard-sheet.repair-sized-sheet thead .repair-width-heading{padding-right:17px}
.dashboard-sheet.repair-sized-sheet .repair-width-heading:not(:first-child){position:relative}
.repair-width-handle{position:absolute;z-index:2;right:0;top:0;bottom:0;width:14px;cursor:col-resize;touch-action:none;user-select:none}
.repair-width-handle::after{content:'';position:absolute;top:22%;bottom:22%;right:3px;width:2px;background:#a7cfc2;border-radius:2px}
.repair-width-handle:hover::after,.repair-width-handle:focus-visible::after{background:white;width:3px}
.repair-width-handle:focus-visible{outline:2px solid #ebcf78;outline-offset:-2px}
.repair-resizing,.repair-resizing *{user-select:none;cursor:col-resize}
.repair-width-options{display:grid;min-width:0;gap:10px;margin:18px 0;padding:14px;border:1px solid #ccdbd6;border-radius:10px}
.repair-width-options legend{font-weight:700}
.repair-width-options p{margin:0}
.repair-width-options .repair-width-selection{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere;font-weight:normal}
.repair-width-selection input[type=checkbox]{flex:none;width:18px;height:18px;min-height:0;margin:0}
.repair-width-row{display:grid;grid-template-columns:minmax(0,1fr) 9em;align-items:center;gap:10px;padding:5px 0}
.repair-width-row input[type=number]{min-width:0;width:100%;box-sizing:border-box}
.repair-width-options>button{justify-self:start}
@media(max-width:600px){.repair-width-row{grid-template-columns:minmax(0,1fr) 7em}.repair-width-handle{width:20px}}

.repair-metric-short{display:none}
@media(max-width:740px){
 .repair-dispatch-sheet .dashboard-names th{padding:6px;line-height:1.2}
 .repair-dispatch-sheet .dashboard-metric th,.repair-dispatch-sheet .dashboard-metric td{padding:1px 5px;font-size:12px;line-height:1.25}
 .repair-dispatch-sheet .repair-metric-full{display:none}
 .repair-dispatch-sheet .repair-metric-short{display:inline;color:#244c40;font-size:12px;font-weight:600}
 #page .repair-dispatch-sheet .dashboard-metric-info:has(.repair-metric-short){display:flex;align-items:center;justify-content:space-between;gap:2px;width:100%;min-height:32px;height:auto;padding:1px 0;line-height:1.25;font-size:12px}
 .repair-dispatch-sheet tbody th{padding:3px 5px;line-height:1.3}
 .repair-dispatch-sheet .dashboard-day-slot{padding:2px 5px;line-height:18px}
 .repair-dispatch-sheet .dashboard-task-stack{padding:2px 4px;gap:2px}
 .repair-dispatch-sheet td[data-dispatch-state] .dashboard-task-stack{padding:0}
 .repair-dispatch-sheet .dashboard-card.repair-dispatch-visit{min-height:44px;padding:3px 5px;gap:1px 4px;line-height:1.2}
 .repair-dispatch-sheet .repair-dispatch-visit:has(>strong){display:grid;grid-template-columns:auto minmax(0,1fr);align-content:center;justify-content:start;text-align:start}
 .repair-dispatch-sheet .repair-dispatch-visit>small{grid-row:1;grid-column:1;font-size:11px}
 .repair-dispatch-sheet .repair-dispatch-visit>small~span{grid-row:1;grid-column:2;font-size:10px}
 .repair-dispatch-sheet .repair-dispatch-visit>strong{grid-row:2;grid-column:1/-1;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

.repair-amount-options{min-width:0;display:grid;gap:12px;margin:18px 0;padding:14px;border:1px solid #ccdbd6;border-radius:10px}
.repair-amount-options legend{font-weight:700}
.repair-amount-options p{margin:0}
.repair-amount-options .repair-format-check,.repair-amount-options .repair-custom-color{display:flex;flex-direction:row;align-items:center;gap:8px}
.repair-format-check input[type=checkbox]{width:18px;min-height:0;height:18px;margin:0}
.repair-format-limits,.repair-band-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.repair-band-previews{grid-template-columns:repeat(3,minmax(0,1fr))}
.repair-band-previews button{min-width:0;white-space:normal;overflow-wrap:anywhere;padding:8px 5px}
.repair-band-previews button[aria-pressed=true]{outline:2px solid #1e584e;outline-offset:1px}
.repair-color-line,.repair-color-palette{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.repair-color-palette button{background:var(--swatch);width:30px;height:30px;min-width:30px;min-height:30px;padding:0;border:1px solid #51615e;border-radius:50%}
.repair-color-palette button[aria-pressed=true]{box-shadow:0 0 0 2px white,0 0 0 4px #254739}
.repair-custom-color input[type=color]{width:40px;height:32px;min-height:0;padding:2px}
.repair-amount-options .repair-opacity{display:grid;grid-template-columns:auto minmax(60px,1fr) 4ch;align-items:center;gap:10px}
.repair-opacity input[type=range]{width:100%;margin:0;accent-color:#196552}
.repair-opacity output{text-align:right;font-variant-numeric:tabular-nums}
.repair-band-previews button[data-repair-band],.dashboard-sheet.repair-sized-sheet tr>td[data-repair-band],.dashboard-sheet.repair-sized-sheet tbody tr:hover>td[data-repair-band]{background:linear-gradient(var(--repair-tone),var(--repair-tone)),var(--repair-tone-base);color:var(--repair-tone-text)}
.dashboard-sheet td[data-repair-band] .dashboard-card.dashboard-task,.dashboard-sheet td[data-repair-band] .dashboard-card.dashboard-task :is(strong,small){background:transparent;color:inherit}
.dashboard-sheet .repair-card-amount{display:block;font-weight:700;font-variant-numeric:tabular-nums}

.repair-visit-heading{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap}
.repair-visit-badge,.dashboard-sheet .dashboard-card .repair-visit-badge{display:inline-block;max-width:100%;box-sizing:border-box;padding:2px 7px;border-radius:6px;background:#edf0f3;color:#384b5b;font-size:12px;font-weight:650;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.repair-visit-badge[data-visit-state=awaiting],
.dashboard-sheet .dashboard-card .repair-visit-badge[data-visit-state=awaiting]{
    background:#ffcc9e;
    color:#733509;
}
.repair-visit-badge[data-visit-state=accepted],.dashboard-sheet .dashboard-card .repair-visit-badge[data-visit-state=accepted]{background:#d6efdd;color:#145539}
.pc-private-entry[data-visit-id]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}

.pc-master-agenda{container-type:inline-size}
.pc-agenda-row.pc-visit-line{
 --action-width:clamp(128px,calc(100% - 190px),160px);
 display:grid;grid-template-columns:9rem minmax(0,1fr) var(--action-width);align-items:center;
 column-gap:8px;row-gap:0;padding:4px 8px;min-width:0;position:relative
}
.pc-visit-line[data-agenda-state=awaiting],
.pc-visit-line[data-agenda-state=in_progress]{border-top:0;border-radius:8px;margin-block:3px}
.pc-visit-line[data-agenda-state=awaiting]{background-color:#eaf6ee}
.pc-visit-line[data-agenda-state=in_progress]{background-color:#fff4d6}
.pc-visit-when{line-height:1.15}
.pc-visit-line[data-agenda-state=awaiting] .pc-visit-when{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.pc-visit-age{
 display:inline-block;max-width:100%;box-sizing:border-box;padding:2px 6px;border-radius:5px;
 color:#733508;background:#ffe2ae;font-size:14px;font-weight:700;line-height:1.25;font-variant-numeric:tabular-nums
}
.pc-visit-when time{color:var(--ink);font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
.personal-calendar .pc-slots .pc-visit-complete{color:#176548;background:#e5f2e9;font-size:16px;font-weight:700}
.personal-calendar .pc-slots .pc-slot[data-visit-state=accepted]{color:#684909;background:#fff2cf;border-color:#daba67}
.personal-calendar .pc-slots .pc-slot[data-visit-state=awaiting]{color:#852d27;background:#fbe5e2;border-color:#d69b94}
.personal-calendar .pc-slots .pc-slot[data-visit-state=done]{color:#15563b;background:#dff1e5;border-color:#9ac4a8}
.personal-calendar .pc-slots .pc-slot[data-visit-state=review]{color:#204e77;background:#e4eff9;border-color:#a2bed6}
.personal-calendar .pc-slots .pc-slot[data-visit-state=returned]{color:#783f0c;background:#ffe9d1;border-color:#d7aa7e}
.personal-calendar .pc-slots>.pc-kind-visit[data-visit-state]:only-child{grid-column:1/-1}
.personal-calendar [data-move-visit],.personal-calendar [data-move-visit] .pc-visit-name{cursor:grab}
.personal-calendar.pc-moving-visit [data-move-visit]{cursor:grabbing}
.personal-calendar .pc-month .pc-day.pc-visit-drop-target{background:#dbefe5;outline:2px solid #19765d;outline-offset:-3px}
.pc-agenda-visit-check{display:none}
@media(max-width:740px){
 .pc-visit-line[data-agenda-state=done] time{display:none}
 .pc-agenda-visit-check{display:inline;color:#176548;font-size:16px;font-weight:700}
}
.pc-visit-line .pc-visit-name{min-width:0;text-align:start;color:var(--ink);font-size:14px;font-weight:400;line-height:1.35;overflow-wrap:anywhere;white-space:normal}
.pc-visit-line button.pc-visit-name{
 min-height:44px;background:transparent;box-shadow:none;border:0;padding:0;justify-content:start
}
.pc-visit-line button.pc-visit-name:hover{text-decoration:underline}
.pc-visit-line button.pc-visit-name::after{content:"";position:absolute;inset:0;cursor:pointer}
.pc-visit-line .repair-visit-badge{justify-self:center}
.pc-visit-line .repair-visit-badge[data-visit-state=accepted]{color:#396656;background:transparent;padding:0;font-size:12px;font-weight:500;line-height:1.3}
.pc-visit-line[data-agenda-state=in_progress] .repair-visit-badge{color:#70531e}
#page .pc-visit-line button.pc-visit-accept{
 box-sizing:border-box;width:100%;min-height:48px;padding:8px 12px;
 border:1px solid #126047;border-radius:8px;
 background:#17694e;color:white;font-size:15px;font-weight:700
}
#page .pc-visit-line button.pc-visit-accept:hover:enabled{background:#10563f}
#page .pc-visit-line button.pc-visit-accept:active:enabled{background:#0b4935}
#page .pc-visit-line button.pc-visit-accept:focus-visible{outline:2px solid #173e69;outline-offset:2px}
@media(max-width:740px){
 #page .pc-visit-line button.pc-visit-accept{min-height:52px}
}
@media(min-width:769px){
 .pc-agenda-row.pc-visit-line{grid-template-columns:9rem minmax(0,28ch) 160px;justify-content:start}
}
@media(max-width:420px){
 #page .pc-master-agenda{padding-inline:8px}
 #page .pc-master-agenda .pc-agenda-heading{gap:4px;margin-bottom:6px}
 #page .pc-master-agenda .pc-agenda-heading h2{font-size:17px}
 #page .pc-master-agenda .pc-agenda-add{font-size:13px;padding:4px 6px;min-height:44px;background:transparent;border-color:transparent}
 #page .pc-master-agenda .pc-agenda-add:hover{background:var(--mint)}
}
@container(max-width:480px){
 .pc-agenda-row.pc-visit-line{
  grid-template-columns:minmax(0,1fr) clamp(128px,36%,160px);column-gap:12px;row-gap:2px;
  grid-template-areas:"time action" "street action";min-height:58px;padding-block:6px
 }
 .pc-agenda-row.pc-visit-line:has(button.pc-visit-name){
  grid-template-columns:max-content minmax(0,1fr);
  grid-template-areas:"time status" "street street"
 }
 .pc-visit-line .pc-visit-when{grid-area:time;align-self:end}
 .pc-visit-line[data-agenda-state=awaiting] .pc-visit-when{flex-direction:row;align-items:baseline;gap:2px 8px;flex-wrap:wrap}
 .pc-visit-line .pc-visit-name{grid-area:street;align-self:start}
 .pc-visit-line .pc-visit-accept{grid-area:action}
 .pc-visit-line .repair-visit-badge{grid-area:status;justify-self:start;align-self:end}
 #page .pc-visit-line button.pc-visit-name{min-height:0}
}
@container(max-width:360px){
 .pc-agenda-row.pc-visit-line[data-agenda-state=awaiting]{
  grid-template-areas:"time time" "street action";row-gap:0;padding-block:3px
 }
 .pc-visit-line[data-agenda-state=awaiting] .pc-visit-name{align-self:center}
}

.repair-visit-alert{max-width:calc(var(--page-max-width) - 2 * var(--page-gutter));display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:12px 16px;margin:6px var(--page-gutter);border:1px solid #e1a197;border-inline-start:4px solid #b43529;border-radius:8px;background:#ffe8e4;color:#77251b}
.repair-visit-alert>span{flex:1 1 17rem;overflow-wrap:anywhere}
.repair-alert-actions{display:flex;flex-wrap:wrap;gap:6px}
#notification-inbox.repair-urgent-bell{color:#8e261d;border-color:#bc4539;background:#ffe6e1}
#notification-inbox.repair-urgent-bell .notification-count{background:#aa3026;color:white}

a.repair-master-phone,a.repair-master-phone:visited{color:#1454a3;text-decoration:underline;text-underline-offset:.15em;white-space:nowrap;font-weight:600}

a.repair-master-phone:hover{color:#0a3772}
a.repair-master-phone:focus-visible{outline:2px solid #1454a3;outline-offset:2px}

.repair-visit-badge[data-visit-state=overdue],
.dashboard-sheet .dashboard-card .repair-visit-badge[data-visit-state=overdue]{background:#fce0dc;color:#85251d}
.repair-overdue-panel{margin:0 0 12px}
.repair-overdue-panel>summary{width:fit-content;padding:8px 12px;border:1px solid #ce8b82;border-radius:8px;background:#fff0ed;color:#85251d;cursor:pointer;font-weight:650}
.repair-overdue-list{display:grid;gap:6px;max-height:42vh;overflow:auto;margin-top:8px}

.repair-overdue-row{display:flex;align-items:center;flex-wrap:wrap;gap:0 12px;border-bottom:1px solid #e3ebe7}
.repair-overdue-row .repair-order-row{flex:1 1 16rem;min-width:0;border-bottom:0;overflow-wrap:anywhere}
.repair-overdue-row .repair-acceptance-wait{margin-top:3px;color:#913b24;font-weight:600;font-variant-numeric:tabular-nums}
.repair-overdue-row .repair-master-phone{display:inline-flex;align-items:center;min-height:36px;margin-inline:10px}

.repair-assignment-queue{margin:0 0 16px;border:1px solid #e6ca82;border-inline-start:4px solid #b78428;border-radius:8px;background:#fff1c4;color:#523d16}
.repair-assignment-queue>summary{box-sizing:border-box;min-height:44px;padding:12px 16px;cursor:pointer;font-weight:650}
.repair-assignment-list{max-height:42vh;overflow:auto;background:var(--paper,#fff);border-radius:0 0 7px 7px}
.repair-assignment-row{display:flex;align-items:center;gap:8px;padding:4px 12px;border-top:1px solid #eddfb6}
.repair-assignment-row .repair-order-row{flex:1;min-width:0;border-bottom:0;overflow-wrap:anywhere}
.repair-assignment-row>button:last-child{flex:none;min-height:44px}
.pc-dot-visit-done{background:#278054}
.pc-dot-visit-active{background:#efbb29;box-shadow:inset 0 0 0 1px #aa790e}
.pc-dot-visit-awaiting{background:#c53e36}
.pc-other-work,.pc-other-private{display:inline-block;box-sizing:border-box;width:6px;height:6px;flex:none;border:1px solid #62716c;border-radius:1px}
.pc-other-work{background:#62716c}

.repair-profit-amount{border:0;border-radius:4px;background:transparent;color:var(--accent);font:inherit;font-weight:600;min-height:32px;padding:2px 4px;white-space:nowrap;text-decoration:underline dotted;text-underline-offset:4px;cursor:pointer}
.repair-profit-amount:hover,.repair-profit-amount:focus-visible{color:#104e40;background:#e6f3ed;text-decoration-style:solid}
.repair-profit-inline{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.repair-profit-inline input{box-sizing:border-box;width:8em;min-width:0;max-width:100%;font:inherit;font-variant-numeric:tabular-nums}
.repair-profit-inline button{min-width:36px;min-height:36px;padding:4px;font-size:17px}
.repair-profit-status:not(:empty){margin:8px 0}
@media(pointer:coarse){.repair-profit-amount,.repair-profit-inline button{min-height:44px;min-width:44px}}

#editor .repair-task-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}
#editor .repair-deadline-entry{display:flex;flex:1;position:relative;min-width:0}
#editor .repair-deadline-entry input{padding-right:44px}
#editor .repair-deadline-entry .repair-deadline-clear{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:40px;min-width:0;height:calc(100% - 4px);min-height:0;border:0;background:transparent;color:#526760}
#editor .repair-deadline-entry .repair-deadline-clear:is(:hover,:focus-visible){background:#e6f3ed;color:#104e40}
#editor .repair-deadline-entry input:is(:placeholder-shown,:required,:disabled,[readonly]) + .repair-deadline-clear,
#editor form:has([name="repeat_frequency"] option[value="monthly"]:checked) .repair-deadline-clear{display:none}

#page[data-view=calendar]>.repair-dispatch-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;margin-bottom:8px}
#page>.repair-dispatch-title h1{margin:0;font-size:clamp(18px,5vw,23px)}
#page>.repair-dispatch-title p:empty{display:none}
#page>.repair-dispatch-title .title-actions{width:auto;margin:0;padding:0}
.repair-phone-calendar{display:grid;gap:8px;min-width:0}
.repair-phone-calendar [hidden]{display:none!important}
.repair-phone-modebar,.repair-phone-dayhead{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.repair-phone-modebar .text-button{min-height:44px}
.repair-phone-period{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px}
.repair-phone-period .text-button{min-width:0;padding:4px 6px;font-weight:650}
.repair-phone-attention{min-width:0;border:1px solid #e6d4bb;background:#fff7eb;border-radius:9px;color:#76431c}
.repair-phone-attention>summary{box-sizing:border-box;min-height:44px;padding:10px 12px;cursor:pointer;font-weight:650}
.repair-phone-overdue-count{display:inline-block;margin-inline-start:2px;padding:2px 6px;border-radius:5px;background:#fbe5e2;color:#852d27;font-size:.875em;font-variant-numeric:tabular-nums}
.repair-phone-attention>.repair-overdue-list{margin:0;padding:0 10px;border-top:1px solid #e6d4bb;background:var(--paper,#fff)}
.repair-phone-attention>details{margin:0;border:0;border-top:1px solid #e6d4bb;border-radius:0;background:transparent;color:inherit}
.repair-phone-attention>details>summary{min-height:44px;padding:8px 12px 8px 20px;cursor:pointer}
.repair-phone-attention summary:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
.repair-phone-period button,.repair-phone-calendar>button,.repair-phone-card-actions button{min-height:44px}
.repair-phone-period .repair-phone-arrow{width:44px;min-width:38px;padding:0;font-size:24px}
.repair-phone-strip{box-sizing:border-box;min-width:0;padding:4px 1px 6px;background:var(--paper,#fff);border:1px solid #d8e3dc;border-radius:12px}
.repair-phone-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.repair-phone-week .repair-phone-day{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-width:0;min-height:70px;margin:0;padding:4px 0;background:transparent;border:0;border-radius:9px;color:var(--ink);font-variant-numeric:tabular-nums}
.repair-phone-day strong{position:relative;font-size:17px}
.repair-phone-day small{font-size:12px}
.repair-phone-week .repair-phone-day[aria-pressed=true]{background:#176953;color:#fff}
.repair-phone-day[aria-current=date]:not([aria-pressed=true]) strong{text-decoration:underline;text-underline-offset:3px}
.repair-phone-count{min-height:16px;min-width:20px;text-align:center;font-size:12px;font-weight:650;line-height:16px}
.repair-phone-count:not(:empty){color:#17593e;background:#e2f1e8;border-radius:5px}
.repair-phone-legend{display:block;margin:3px 0 0;text-align:center;color:var(--muted)}
.repair-phone-modes{display:flex;width:fit-content;padding:2px;border:1px solid #cbdad4;border-radius:10px;background:#f1f6f3}
.repair-phone-modes button{min-height:40px;min-width:5.5em;margin:0;padding:4px 12px;border:0;background:transparent;color:#205848;border-radius:8px}
.repair-phone-modes button[aria-pressed=true]{background:#176953;color:#fff}
.repair-phone-weekday{text-align:center;padding:4px 0;color:var(--muted);font-weight:600}
.repair-phone-month .repair-phone-day{min-height:44px;gap:0;padding:3px 0}
.repair-phone-month .repair-phone-day strong{font-size:16px}
.repair-phone-open-day strong::after,.repair-phone-open-key::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#a94231}
.repair-phone-open-day strong::after{position:absolute;top:3px;left:calc(100% + 2px)}
.repair-phone-open-day[aria-pressed=true] strong::after{background:#ffd0c4}
.repair-phone-open-key{display:inline-block;margin-left:12px}
.repair-phone-open-key::before{vertical-align:middle;margin-right:4px}
.repair-phone-dayhead{justify-content:space-between;gap:6px;flex-wrap:wrap}
.repair-phone-dayhead>div{flex:1 1 11rem;min-width:0}
.repair-phone-dayhead h2{display:inline;margin:0;font-size:17px;color:var(--ink);line-height:1.3}
.repair-phone-dayhead small:not(:empty)::before{content:" · "}
.repair-phone-dayhead small,.repair-phone-master{color:var(--muted)}
.repair-phone-dayhead select{width:9em;max-width:100%;min-height:44px;padding:6px;margin:0;color:#165f4b;background:#fff}
.repair-phone-list{display:grid;gap:6px;min-width:0}
.repair-phone-list .repair-phone-visit{display:grid;grid-template-columns:5ch minmax(0,1fr) 12px;align-items:start;gap:8px;width:100%;min-width:0;min-height:60px;padding:10px;text-align:start;white-space:normal;background:#fff;color:var(--ink);border:1px solid #d7e1dc;border-radius:10px}
.repair-phone-visit time{color:#17624b;font-weight:700;font-variant-numeric:tabular-nums}
.repair-phone-visit strong,.repair-phone-master{overflow-wrap:anywhere}
.repair-phone-master{display:block;margin-top:4px;font-weight:400}
.repair-phone-badge{display:inline-block;border-radius:5px;padding:2px 6px;font-size:12px;line-height:1.3}
.repair-phone-badge[data-phase=awaiting]{background:#fbe5e2;color:#852d27}
.repair-phone-badge[data-phase=accepted]{background:#fff2cf;color:#684909}
.repair-phone-badge[data-phase=unassigned],.repair-phone-badge[data-phase=returned]{background:#ffe9d1;color:#783f0c}
.repair-phone-badge[data-phase=review]{background:#e4eff9;color:#204e77}
.repair-phone-badge[data-phase=done]{background:#dff1e5;color:#15563b}
.repair-phone-chevron{align-self:center;color:#597466;font-size:18px}
.repair-phone-calendar>button{justify-self:start}
.repair-phone-calendar>[role=status]:empty,.repair-phone-card-actions:empty{display:none}
.repair-phone-card-actions{margin:0 0 10px}
.repair-phone-queue summary small{display:block;margin:3px 0 0 1.2em;font-weight:400}
.repair-past-open{min-width:0;border:1px solid #ebc2b9;border-left:4px solid #a64734;border-radius:10px;background:#fff4f0;color:#713120}
.repair-past-open>summary{padding:12px;cursor:pointer;line-height:1.4}
.repair-past-open>summary small{display:block;margin:3px 0 0 1.2em;font-weight:400}
.repair-past-dates{display:grid;gap:1px;max-height:36vh;overflow:auto;border-radius:0 0 8px 8px;background:#eadbd6}
.repair-past-dates .repair-past-date{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:0;text-align:start;background:#fff;color:#4a342e}
.repair-past-date span{font-weight:400}
.repair-phone-dayhead{scroll-margin-block-start:5rem}

.repair-phone-group{min-width:0}
.repair-phone-group h3{margin:5px 0;font-size:14px}
.repair-phone-group .repair-phone-visit+.repair-phone-visit{margin-top:4px}
.repair-phone-group>summary{box-sizing:border-box;min-height:44px;padding:10px 8px;color:#15563b;cursor:pointer}
.repair-phone-group>summary:focus-visible,.repair-past-open summary:focus-visible{outline:2px solid var(--ink);outline-offset:1px}

#identity .repair-profile-actions {
 display: flex;
 align-items: center;
 gap: 5px;
}
#identity .repair-profile-geo {
 display: inline-grid;
 place-items: center;
 flex: none;
 width: 36px;
 min-width: 36px;
 height: 36px;
 min-height: 36px;
 padding: 0;
 border: 1px solid #d6e1dc;
 border-radius: 10px;
 background: #f4f7f5;
 color: #64746d;
}
#identity .repair-profile-geo svg { width: 20px; height: 20px; }
#identity .repair-profile-geo[data-mode="on"] { color: #176b55; background: #e7f4ed; border-color: #a9d9c5; }
#identity .repair-profile-geo[data-mode="blocked"] { color: #a23432; background: #fcefed; border-color: #e5bfbc; }
#identity .repair-profile-geo[data-mode="waiting"] { color: #85621c; background: #fbf5e8; }
.repair-profile-geo:is([data-mode="on"],[data-mode="waiting"]) .repair-pin-slash { display: none; }
#identity .repair-profile-geo:focus-visible { outline: 3px solid #80bea8; outline-offset: 2px; }
#editor:has(.repair-profile-geo-panel) { width: min(390px, calc(100vw - 24px)); }
.repair-profile-geo-panel { grid-column: 1/-1; min-width: 0; display: grid; gap: 12px; }
.repair-profile-geo-panel p { margin: 0; }
.repair-geo-action { justify-self: start; }
.repair-profile-offshift { border-top: 1px solid var(--line); padding-top: 10px; }
.repair-profile-offshift > summary { cursor: pointer; display: list-item; padding: 10px 0; background: transparent; color: var(--ink); }
.repair-profile-offshift > summary svg { display: none; }
.repair-offshift-settings { display: grid; gap: 9px; margin-top: 8px; }
.repair-profile-geo-panel [hidden] { display: none; }
@media (max-width: 740px), (pointer: coarse) {
 #identity .repair-profile-actions { max-width: 100%; flex-wrap: wrap; }
 #identity .repair-profile-geo { width: 44px; min-width: 44px; height: 44px; }
}
