.app #view-hst :is(.recurring-flat-toolbar,.recurring-history-toolbar){--recurring-control-height:38px;--recurring-label-height:18px;display:flex;flex-wrap:wrap;align-items:start;gap:10px 12px;padding:12px;margin:12px 0;background:#f6f8fc;border:1px solid #d8e0ec;border-radius:8px}
.app #view-hst :is(.recurring-flat-toolbar,.recurring-history-toolbar) label{display:grid;grid-template-rows:var(--recurring-label-height) var(--recurring-control-height);align-items:center;gap:4px;margin:0;min-width:0;width:auto;font-size:12px;line-height:var(--recurring-label-height)}
.app #view-hst :is(.recurring-flat-toolbar,.recurring-history-toolbar) :is(input:not([type=checkbox]),select,button){height:var(--recurring-control-height);min-height:var(--recurring-control-height);box-sizing:border-box;margin:0;font-size:12px}
.app #view-hst :is(.recurring-flat-toolbar,.recurring-history-toolbar) :is(input:not([type=checkbox]),select){min-width:0;width:100%;max-width:100%}
.app #view-hst :is(.recurring-flat-toolbar,.recurring-history-toolbar) .recurring-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:calc(var(--recurring-label-height) + 4px)}
.app #view-hst :is(.recurring-flat-toolbar,.recurring-history-toolbar) .recurring-filter-actions>button{white-space:nowrap}
.app #view-hst .recurring-flat-toolbar>.recurring-customer-picker{position:relative;flex:1 1 400px;min-width:0}
.app #view-hst .recurring-flat-toolbar .recurring-picker-controls{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.app #view-hst .recurring-flat-toolbar>label{flex:0 1 150px}
.app #view-hst .recurring-flat-toolbar>label:has(select[name=section]){flex-basis:204px}
.app #view-hst .recurring-history-toolbar>.recurring-history-search{flex:1 1 220px;max-width:360px}
.app #view-hst .recurring-history-toolbar>.recurring-history-customer{flex:1 1 200px;max-width:300px;position:relative}
.app #view-hst .recurring-history-toolbar label:has(input[type=number]){flex:0 1 100px}
.app #view-hst .recurring-history-toolbar>.recurring-history-all-years{display:flex;align-items:center;gap:6px;height:var(--recurring-control-height);margin-top:calc(var(--recurring-label-height) + 4px);white-space:nowrap}
.app #view-hst .recurring-history-all-years input[type=checkbox]{width:16px;min-height:16px;height:16px;margin:0;padding:0}
.app #view-hst :is(.recurring-flat-toolbar .recurring-search-hint,.recurring-history-toolbar .recurring-history-customer small){position:absolute;inset:auto auto auto 0;top:100%;z-index:3;max-width:100%;padding:3px 6px;border-radius:4px;background:#f6f8fc;color:#345477;box-shadow:0 1px 3px #29436326;font-size:11px;line-height:1.4}
.app #view-hst :is(.recurring-flat-toolbar .recurring-search-hint,.recurring-history-toolbar .recurring-history-customer small):empty{display:none}
.recurring-history-wrap{max-width:100%;overflow-x:auto}
.recurring-history-wrap .recurring-history-table{width:100%;min-width:1160px;table-layout:fixed}
.recurring-history-table thead th:nth-child(1){width:14%}.recurring-history-table thead th:nth-child(2){width:10%}.recurring-history-table thead th:nth-child(3){width:16%}.recurring-history-table thead th:nth-child(4),.recurring-history-table thead th:nth-child(5){width:9%}.recurring-history-table thead th:nth-child(6),.recurring-history-table thead th:nth-child(7){width:12%}.recurring-history-table thead th:nth-child(8),.recurring-history-table thead th:nth-child(9){width:9%}
.recurring-history-table th,.recurring-history-table td{box-sizing:border-box}
.recurring-history-table th.recurring-history-group-title{white-space:normal;overflow-wrap:anywhere}
.recurring-history-table .recurring-history-group-title strong{display:block;overflow-wrap:anywhere}
.recurring-history-table tbody tr:last-child>*{border-bottom:1px solid #d9e2ec}
.recurring-history-table .task-comment-summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.recurring-history-table td:last-child button{white-space:nowrap;min-height:32px}
@media(max-width:600px){
 .recurring-history-wrap .recurring-history-table thead{display:table-header-group}
 .recurring-history-wrap .recurring-history-table tr{display:table-row;border:0;margin:0;padding:0}
 .recurring-history-wrap .recurring-history-table td{display:table-cell;padding:8px 9px;border-bottom:1px solid #d9e2ec}
 .recurring-history-wrap .recurring-history-table td::before{content:none}
}
.recurring-history-table td{vertical-align:middle;overflow-wrap:anywhere}.recurring-history-table small{display:block;margin-top:4px;color:#526278;white-space:normal;font-size:11px}.recurring-history-table button{font-size:12px;white-space:normal;padding:5px 8px}.recurring-history-table .task-work-stage-badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.recurring-history-table .recurring-history-anomaly{color:#8a4b12}.recurring-history-table .recurring-history-target{outline:2px solid #427bc8;outline-offset:-2px;background:#eef5ff}
.recurring-history-table .recurring-history-group-title{vertical-align:top;text-align:left;overflow-wrap:anywhere;background:#f5f8fc}
.recurring-history-customer-group+.recurring-history-customer-group tr:first-child>*{border-top:2px solid #c9d5e6}
.recurring-history-service-start:not(:first-child)>*{border-top:1px solid #c9d5e6}
.recurring-period-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px 18px;margin:0 0 12px;padding:12px;background:#f4f8fd;border:1px solid #d8e2ee;border-radius:6px}
.recurring-period-overview dt{color:#556a84;font-size:12px}
.recurring-period-overview dd{margin:3px 0 0;overflow-wrap:anywhere}
.task-work-dialog .recurring-work-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:12px;padding:0;border:0;background:none}
.task-work-dialog .recurring-work-step,.task-work-dialog .recurring-period-settings{min-width:0;padding:10px 12px;border:1px solid #d8e2ee;border-radius:6px;margin:8px 0;background:#f7faff}
.task-work-dialog .recurring-work-step h3{margin:0 0 6px;font-size:14px}
.task-work-dialog .recurring-period-settings summary{cursor:pointer}
@media(max-width:700px){
 .app #view-hst :is(.recurring-flat-toolbar,.recurring-history-toolbar){--recurring-control-height:40px;gap:8px}
 .app #view-hst .recurring-flat-toolbar>.recurring-customer-picker,.app #view-hst .recurring-history-toolbar>.recurring-history-search{max-width:none;flex-basis:100%}
 .app #view-hst .recurring-flat-toolbar>label{flex:1 1 120px}
 .app #view-hst .recurring-flat-toolbar>label:has(select[name=section]){flex:1 1 166px}
}
@media(max-width:390px){.app #view-hst .recurring-flat-toolbar .recurring-picker-controls{grid-template-columns:minmax(0,1fr)}}

@media(min-width:601px){.app #view-hst .hst-table-wrap table.recurring-aligned-table{min-width:1540px}}.recurring-service-info p{font-size:12px;line-height:1.6}.recurring-held-notice{padding:8px 10px;border:1px solid #d9bc82;border-radius:5px;background:#fff6df;color:#695123}.recurring-held-notice a{display:inline-block;margin-left:8px;color:#285a88}.recurring-entrances{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.recurring-entrances button{margin:0}.recurring-completion-dialog form{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.recurring-completion-dialog label{display:flex;flex-direction:column;gap:5px}.recurring-completion-dialog input{min-height:36px;max-width:100%;box-sizing:border-box}.recurring-completion-dialog{max-width:650px;width:calc(100vw - 56px);box-sizing:border-box}
