.est-tool-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #cbdde2;border-radius:16px;padding:18px;color:#183d4d;background:#fff;font:14px/1.4 system-ui,sans-serif;box-shadow:0 18px 70px #102e4840}.est-tool-dialog::backdrop{background:#0f263975}.est-tool-dialog *{box-sizing:border-box}.est-tool-heading,.est-tool-actions,.est-tool-row{display:flex;gap:10px;align-items:center;justify-content:space-between}.est-tool-heading h2{margin:0;font-size:20px}.est-tool-dialog button{border:1px solid #bfd6db;border-radius:9px;padding:8px 11px;background:#f1f8f9;color:#126578;font:inherit;cursor:pointer;min-height:34px}.est-tool-dialog button:disabled{opacity:.5;cursor:wait}.est-tool-dialog label{display:grid;gap:4px;min-width:0}.est-tool-dialog input,.est-tool-dialog select{font:inherit;width:100%;min-width:0;padding:8px;border:1px solid #c8d7de;border-radius:8px;background:#fff;color:#173e4e}.est-tool-dialog .est-tool-check{display:flex;align-items:center;gap:8px;margin:14px 0;font-weight:650}.est-tool-check input{width:18px;height:18px}.est-tool-pair{display:grid;grid-template-columns:1fr 2fr;gap:12px}.est-tool-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:12px 0}.est-tool-week label{font-size:12px}.est-tool-week input{padding:8px 4px;text-align:center}.est-tool-dialog details{border-top:1px solid #e1e9ed;padding:10px 0}.est-tool-dialog summary{cursor:pointer;color:#16748b}.est-tool-muted{color:#607787;font-size:12px;line-height:1.5}.est-tool-actions{justify-content:flex-end;flex-wrap:wrap;margin-top:16px}.est-tool-actions button:last-child{color:white;background:#117a8f;border-color:#117a8f}.est-tool-row{margin:6px 0}.est-tool-metrics{display:grid;gap:8px}.est-tool-metrics div{display:flex;justify-content:space-between;gap:12px}.est-tool-metrics dd{margin:0;font-weight:700;white-space:nowrap}.est-overtime-status,#fixedStatus{color:#a84e22;font-size:13px}.est-overtime-button{display:block;margin:2px auto;padding:2px 5px!important;min-height:24px!important;border:1px solid #d4ba82!important;border-radius:5px!important;background:#fff6e3!important;color:#8c560d!important;font:10px/1.3 system-ui,sans-serif!important;white-space:normal;max-width:100%}.est-overtime-button.approved{background:#eaf7ef!important;border-color:#a8d1b6!important;color:#226940!important}.est-overtime-button.rejected{background:#f5f6f7!important;border-color:#cad2d8!important;color:#68747d!important}.est-model-note{font-size:11px;color:#187282;margin:5px 0}.est-model-cell{font-size:9px;color:#187282;display:block}.est-model-planned{color:#7c8e9b;font-size:10px}@media(max-width:420px){.est-tool-dialog{padding:13px}.est-tool-pair{grid-template-columns:1fr}.est-tool-week{grid-template-columns:repeat(4,minmax(0,1fr))}.est-tool-metrics{font-size:12px}}@media print{.est-tool-dialog,.est-overtime-button{display:none!important}}

.est-overtime-print{display:none}@media print{.est-overtime-print{display:block;font-size:9px}}

.est-absence-dialog{width:min(820px,calc(100vw - 24px))}.est-absence-dialog form>label,.est-absence-dialog form>.est-tool-pair{margin:9px 0}.est-absence-entry{padding:10px 0;border-bottom:1px solid #e1e9ed;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.est-absence-entry strong,.est-absence-entry span,.est-absence-entry small{display:block;overflow-wrap:anywhere}.est-absence-entry small{color:#657f8c;font-size:11px}.est-absence-entry details{grid-column:1/-1;font-size:12px}.est-absence-entry.archived{opacity:.65}.est-absence-actions{display:flex;gap:5px;align-items:start}.est-absence-actions button{font-size:11px;padding:5px 7px}.est-absence-dialog h3{font-size:15px}.matrix-day span{overflow-wrap:anywhere}@media(max-width:420px){.est-absence-entry{grid-template-columns:1fr}.est-absence-actions{justify-content:flex-start}}

.presence-rounding-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.presence-rounding-label{display:flex;align-items:center;gap:6px;font-size:12px;color:#315a68}.presence-rounding-label input{width:17px;height:17px}.est-absence-day{position:fixed;width:min(460px,calc(100vw - 24px));margin:0;padding:14px}.est-absence-day .est-absence-intro,.est-absence-day .est-absence-help{display:none}.est-absence-day .est-tool-heading h2{font-size:17px}.est-absence-day h3{font-size:13px;margin:7px 0}.est-absence-day .est-absence-type-only{grid-template-columns:1fr}.est-absence-day #absencePeriod{font-size:12px;padding:6px 0}.est-absence-day #absenceRegister{font-size:11px;padding:5px 8px;margin-top:8px}.est-absence-day #absenceRows .est-absence-entry{font-size:12px}.est-absence-day #absenceList{margin-top:8px}.est-absence-day .est-tool-actions{margin-top:10px;gap:6px}.est-absence-day .est-tool-actions button{font-size:12px}@media print{.presence-rounding-controls{display:none!important}}

.est-tool-dialog [hidden]{display:none!important}.est-absence-day #absenceAddDay{font-size:11px;margin:5px}.est-absence-day #absenceForm>label{margin:7px 0}

/* Compact absence actions: explicit delete stays in the editor footer. */
.est-tool-dialog{padding:15px;font-size:13px}.est-tool-heading h2{font-size:18px}.est-tool-dialog input,.est-tool-dialog select{padding:7px 9px;min-height:34px}.est-tool-dialog button{min-height:32px;padding:6px 10px}.est-tool-pair{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.est-tool-metrics{gap:6px}.est-absence-dialog{width:min(720px,calc(100vw - 24px))}.est-absence-day{width:min(420px,calc(100vw - 24px));padding:12px}.est-absence-day .est-absence-type-only.has-duration{grid-template-columns:minmax(0,1fr) auto;align-items:end}.est-absence-day .est-absence-type-only .est-tool-check{font-size:11px;gap:5px;margin:0;min-height:34px}.est-absence-day .est-absence-type-only .est-tool-check input{width:17px;height:17px;min-height:17px;padding:0}.est-absence-day #absenceTypePair{margin:7px 0}.est-absence-day #absenceForm>label{margin:6px 0;font-size:11px}.est-absence-day #absencePeriod{padding:5px 0}.est-absence-day .est-tool-actions{margin-top:10px;gap:5px;flex-wrap:nowrap}.est-absence-main-actions .est-absence-delete{margin-right:auto}.est-absence-delete{color:#a84635!important;background:#fff!important;border-color:#e7c3bb!important}.est-absence-danger{background:#a84635!important;color:#fff!important;border-color:#a84635!important}.est-absence-confirm-identity{font-size:13px;font-weight:650;overflow-wrap:anywhere}.est-absence-list-tools{display:flex;gap:6px;margin:6px 0}.est-absence-list-tools button,.est-absence-day #absenceRegister{min-height:28px;font-size:11px;padding:4px 7px}.est-absence-entry{padding:8px 0}.est-absence-actions{gap:4px}.est-absence-day #absenceList{padding-top:6px;margin-top:5px;font-size:12px}.est-absence-day #absenceSave,.est-absence-day #absenceCancel,.est-absence-day #absenceDelete{min-height:34px;padding:6px 8px;font-size:11px}@media(max-width:420px){.est-tool-pair{grid-template-columns:1fr}.est-absence-day .est-absence-type-only.has-duration{grid-template-columns:minmax(0,1fr) auto}.est-absence-day{padding:11px}.est-absence-day .est-absence-main-actions{gap:4px}.est-absence-day #absenceDelete{font-size:10px}}
