.cr-time-arrival,.cr-time-clock{margin:12px 0;padding:16px;border:1px solid #b9d5ef;border-radius:16px;background:linear-gradient(135deg,#eef7ff,#e3f1ff);color:#184367}.cr-time-arrive{width:100%;min-height:55px;background:#178756;font-weight:800;font-size:20px;border-radius:14px}.cr-time-summary{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px}.cr-time-label{display:block;margin-top:10px}.cr-time-remaining{display:block;font-size:30px;font-variant-numeric:tabular-nums}.cr-time-late{background:#fff3ed;border-color:#f2b69f;padding:10px}.cr-time-late .cr-time-summary{font-size:12px}.cr-time-delay{display:block;font-size:25px;color:#ae3026;margin-top:6px;font-variant-numeric:tabular-nums}.cr-time-editor{padding:12px;background:#f0f7ff;border:1px solid #bed5ef;border-radius:12px}.cr-time-editor[hidden]{display:none}.cr-time-editor label{display:inline-block;width:45%;margin:1%}.cr-time-editor p{font-size:13px}.cr-time-congratulations{position:fixed;z-index:8000;inset:12vh 12px auto;max-height:76vh;overflow:auto;max-width:520px;margin:auto;background:#f0fff4;border:3px solid #39a969;border-radius:20px;box-shadow:0 12px 80px #143f5377;padding:12px}.cr-time-congratulations .card{margin:8px 0;background:#f3fff5}.cr-time-congratulations button{width:100%}.cr-time-record textarea{width:100%;box-sizing:border-box}.cr-time-property-active{padding:10px 14px;background:#e6f7ec;color:#17633a;border:1px solid #9bd5ad;border-radius:12px;font-weight:700}
[data-cr-times-tile]{position:relative}.cr-time-tile-badge{position:absolute;right:8px;top:8px;background:#da3535;color:#fff;border-radius:20px;min-width:26px;padding:5px;font-size:14px;font-weight:800}.cr-time-tile-badge[hidden]{display:none}

/* Compact administration cards and a separate completed-time line. */
#view .cr-time-admin-panel{width:100%;max-width:none;box-sizing:border-box;margin-left:0;margin-right:0;padding:12px}
.cr-time-admin-panel>h2{font-size:21px;margin:0 0 8px}
.cr-time-admin-panel .cr-time-intro{font-size:13px;color:#536477;margin:0 0 10px}
.cr-time-admin-panel .cr-time-filters{justify-content:flex-start;gap:6px;margin:0 0 8px}
.cr-time-admin-panel .cr-time-filters button{margin:0;padding:8px 12px;font-size:13px;min-height:34px}
.cr-time-admin-panel .cr-time-record{padding:12px;margin:0;border-radius:12px;min-width:0}
.cr-time-admin-panel .cr-time-record h3{font-size:17px;line-height:1.3;margin:0 0 7px;overflow-wrap:anywhere}
.cr-time-admin-panel .cr-time-record p{font-size:13px;margin:5px 0;line-height:1.4}
.cr-time-admin-panel .cr-time-staff{display:flex;gap:4px 18px;flex-wrap:wrap}
.cr-time-admin-panel .cr-time-clock{margin:9px 0;padding:10px 12px;border-radius:12px}
.cr-time-admin-panel .cr-time-record>button{font-size:13px;padding:8px 11px;margin:3px 0 7px}
.cr-time-admin-panel .cr-time-record details{font-size:13px}
.cr-time-clock{box-sizing:border-box;min-width:0;max-width:100%}
.cr-time-clock .cr-time-summary{justify-content:flex-start;gap:4px 18px;line-height:1.45}
.cr-time-clock .cr-time-summary>span{white-space:nowrap}
.cr-time-finished{margin-top:5px;line-height:1.4}
.cr-time-finished-title{display:flex;align-items:center;gap:7px;font-size:16px}
.cr-time-check{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;border-radius:6px;background:#e0f2e5;color:#19713e;font-weight:900;font-size:15px}
.cr-time-total{display:block;margin-top:3px;font-size:15px;font-weight:600}
.cr-time-duration{display:inline-block;white-space:nowrap;font-variant-numeric:tabular-nums}
.cr-time-early-message{font-size:14px;line-height:1.4;margin:7px 0 0}
@media(max-width:480px){
 #view .cr-time-admin-panel{padding:10px}
 .cr-time-admin-panel .cr-time-record{padding:10px}
 .cr-time-clock .cr-time-summary{font-size:11px;gap:3px 10px}
 .cr-time-finished-title{font-size:15px}
 .cr-time-total{font-size:14px}
 .cr-time-clock .cr-time-delay{font-size:clamp(18px,5.5vw,24px);line-height:1.35}
}

/* Orders keep the timer inside the original apartment row. */
.cr-orders-host .cr-time-order-group{margin:0;padding:0;border:0;background:none;box-shadow:none}
.cr-orders-host .cr-order-row.cr-time-with-clock{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,290px);gap:5px 14px;align-items:start}
.cr-orders-host .cr-time-with-clock>.cr-order-title{grid-column:1;grid-row:1}
.cr-orders-host .cr-time-with-clock>.cr-order-actions{grid-column:1;grid-row:2;margin-top:3px}
.cr-orders-host .cr-time-with-clock>.cr-time-order-side{grid-column:2;grid-row:1 / span 3;min-width:0;border-left:1px solid #b4cfbe;padding-left:14px}
.cr-orders-host .cr-time-with-clock>.cr-order-subactions{grid-column:1}
.cr-orders-host .cr-time-with-clock>.cr-inline-detail,.cr-orders-host .cr-time-with-clock>[data-cr-live-slot^="companion:"]{grid-column:1 / -1}
.cr-orders-host .cr-time-group-finished>.cr-order-title .cr-status{display:none}
.cr-orders-host .cr-time-order-side .cr-time-clock{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit}
.cr-orders-host .cr-time-order-side .cr-time-summary{display:block;font-size:12px;line-height:1.45}
.cr-orders-host .cr-time-order-side .cr-time-summary>span{display:block;white-space:normal}
.cr-orders-host .cr-time-order-side .cr-time-is-finished .cr-time-summary>span:last-child{display:none}
.cr-orders-host .cr-time-order-side .cr-time-finished-title{font-size:14px}
.cr-orders-host .cr-time-order-side .cr-time-total{font-size:13px;margin-top:2px}
.cr-orders-host .cr-time-order-side .cr-time-delay{font-size:17px;line-height:1.35;margin-top:4px}
.cr-orders-host .cr-time-order-side .cr-time-remaining{font-size:22px}
.cr-orders-host .cr-time-order-side .cr-time-label{font-size:12px;margin-top:4px}
.cr-orders-host .cr-time-order-side>button{font-size:12px;padding:6px 9px;margin:0 0 5px}
.cr-orders-host .cr-time-order-side .cr-time-shared-label{font-size:11px;margin:0 0 5px;font-weight:700}
@media(max-width:650px){
 .cr-orders-host .cr-order-row.cr-time-with-clock{grid-template-columns:minmax(0,1fr)}
 .cr-orders-host .cr-time-with-clock>.cr-time-order-side{grid-column:1;grid-row:2;border-left:0;border-top:1px solid #b4cfbe;padding:7px 0 0}
 .cr-orders-host .cr-time-with-clock>.cr-order-actions{grid-column:1;grid-row:3}
}

#view .cr-time-admin-panel .cr-time-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-items:stretch}
.cr-time-admin-panel .cr-time-filters>button{min-width:0;width:100%;padding:7px 2px;font-size:clamp(9px,2.4vw,12px);line-height:1.2;white-space:normal;overflow-wrap:normal;box-sizing:border-box}
.cr-time-admin-panel .cr-time-filters>input,.cr-time-admin-panel .cr-time-worker-filter{grid-column:1 / -1;min-width:0;width:100%;margin:0}
.cr-time-admin-panel .cr-time-worker-filter{font-size:12px;line-height:1.4}
.cr-time-admin-panel .cr-time-worker-filter select{display:block;margin-top:3px;font-size:13px;padding:8px;min-width:0;max-width:100%}
.cr-time-admin-panel .cr-time-filters>input{font-size:13px;padding:8px}

/* Keep a duration and its units together in the compact order sidebar. */
.cr-orders-host .cr-time-order-side .cr-time-delay{white-space:nowrap;font-size:clamp(14px,4.5vw,17px)}

/* Full-width workspace; execution cards stay compact and flow into available columns. */
.cr-time-admin-panel .cr-time-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:12px;align-items:start;margin-top:10px;min-width:0}
.cr-time-arrived-at{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 6px;margin:0 0 7px;font-size:13px;color:#184367;font-weight:650;line-height:1.4}
.cr-time-arrived-at time{white-space:nowrap;font-variant-numeric:tabular-nums}
.cr-orders-host .cr-time-order-side .cr-time-arrived-at{font-size:12px;margin:0 0 5px}
.cr-time-not-arrived{color:#66758b;font-size:12px}
