.handover-page{--handover-ink:#173b4d;--handover-muted:#6b7d87;--handover-line:#e5e9ea;--handover-green:#19795c;--handover-pink:#fbf1f3;--handover-blue:#eef5fb}
.handover-example-dialog{width:min(840px,calc(100vw - 24px));max-width:none;max-height:94vh;padding:0;border:1px solid #e0e6e8;border-radius:16px;background:#fff}.handover-example-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 20px;border-bottom:1px solid #e0e6e8}.handover-example-heading strong{display:block;font-size:15px;color:#173b4d}.handover-example-heading small{display:block;font-size:12px;color:#6b7d87;margin-top:3px}.handover-example-heading button{font-size:12px}.handover-example-dialog iframe{display:block;border:0;width:100%;height:min(720px,76vh)}
.handover-page .title-row{margin-bottom:25px}.handover-page h1{letter-spacing:-1.3px}.handover-page button:disabled{opacity:.43;cursor:not-allowed}
.handover-preview{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#f5f2ec;border:1px solid #e8e0d3;padding:17px 21px;border-radius:14px;margin-bottom:20px}.handover-preview>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.handover-preview strong{font-size:14px}.handover-preview small{font-size:14px;color:#776d60}.handover-preview label{display:flex;align-items:center;gap:12px;font-size:14px;white-space:nowrap;margin:0}.handover-preview select{width:260px;background:white;border:1px solid #ddd6cb;border-radius:8px;padding:9px 12px;min-height:40px}.handover-preview-dot{width:8px;height:8px;background:#b49b74;border-radius:50%}
.handover-flow{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:28px 0;font-size:14px;color:var(--handover-muted)}.handover-flow span{display:flex;align-items:center;gap:9px}.handover-flow b{display:grid;place-items:center;width:25px;height:25px;border:1px solid #dbe2e4;border-radius:50%;font-size:13px;color:#365362;background:white}.handover-flow i{font-style:normal;color:#b5c2c8}
.handover-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 28px}.handover-metric{background:white;border:1px solid var(--handover-line);border-radius:14px;padding:19px 21px;display:flex;flex-direction:column;gap:7px}.handover-metric>span{font-size:14px;font-weight:600;color:#536976}.handover-metric strong{font-size:32px;line-height:1.2;letter-spacing:-1px;color:var(--handover-ink)}.handover-metric small{font-size:12px;line-height:1.5;color:var(--handover-muted)}.handover-metric.ready{background:#eef8f2;border-color:#d6eadd}.handover-metric.ready strong{color:var(--handover-green)}.handover-metric.blocked strong{color:#a65e3b}
.handover-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.handover-tabs{display:flex;gap:5px;background:#eaf0f1;padding:5px;border-radius:10px}.handover-tabs button{border:0;border-radius:7px;background:transparent;padding:10px 17px;font-size:14px;font-weight:600;color:#677c87;cursor:pointer}.handover-tabs button[aria-selected=true]{background:white;color:#163b4c;box-shadow:0 1px 4px #1538480b}.handover-tabs b{background:#e3f2e9;color:#267652;border-radius:5px;padding:1px 5px;margin-left:4px}.handover-search{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--handover-muted);margin:0}.handover-search input{width:190px;border:1px solid #dce4e7;border-radius:9px;background:white;padding:10px 13px;font-size:14px}
.handover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.handover-card{background:white;border:1px solid #e0e6e8;border-radius:17px;overflow:hidden;box-shadow:0 3px 12px #173b4d03}.handover-card.ready{border-color:#b6d9c7}.handover-card.blocked{border-color:#e2c2aa}.handover-card-top{padding:21px 23px;display:flex;justify-content:space-between;align-items:center;gap:10px}.handover-unit>span{font-size:10px;letter-spacing:1.8px;color:#8b9aa3;font-weight:700}.handover-unit h2{font-size:30px!important;letter-spacing:-.6px;margin:4px 0 0;color:#173b4d}.handover-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:7px 10px;border-radius:6px;white-space:nowrap;background:#f0f2f4;color:#6a7b85}.handover-status i{width:5px;height:5px;background:currentColor;border-radius:50%}.handover-status.preparing{background:#fff4e7;color:#ad7838}.handover-status.ready{background:#e7f5ec;color:#237b56}.handover-status.blocked{background:#fbede5;color:#a35832}.handover-status.delivered{background:#ebf1f6;color:#55748c}
.handover-key{display:flex;align-items:center;gap:11px;padding:16px 23px;border-top:1px solid #edf0f1;border-bottom:1px solid #edf0f1;background:#fafcfc}.handover-key-icon{color:#9c8c70;width:24px;height:24px;flex-shrink:0}.handover-key>div{flex:1;min-width:0}.handover-key strong{display:block;font-size:13px;color:#2d4b5b;line-height:1.5}.handover-key small{display:block;font-size:11px;color:#81919a;line-height:1.5;margin-top:3px}.handover-key-confirmation{font-size:14px;font-weight:700;color:#4e9779}.handover-key button{padding:8px 10px;font-size:12px;white-space:nowrap}.handover-awaiting{padding:26px 23px;font-size:14px;color:#82929b;line-height:1.8;min-height:125px}
.handover-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;gap:12px;align-items:stretch}
.handover-work{border-radius:12px;padding:16px 14px;min-width:0;display:flex;flex-direction:column;gap:12px}
.handover-work.cleaning{background:var(--handover-pink)}.handover-work.maintenance{background:var(--handover-blue)}
.handover-work-head{display:flex;gap:10px;align-items:center;min-height:48px}.handover-work-head>div{min-width:0}
.handover-check{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#ffffffc9;color:#173b4d;flex-shrink:0;--department-icon-accent:#68a8b5}.handover-check svg{width:27px;height:27px;display:block}
.handover-work.done .handover-check{background:#e0efe6}.handover-work.done .handover-check::after{content:'✓';position:absolute;right:-4px;bottom:-4px;width:16px;height:16px;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:#2b8962;color:white;font-size:10px;font-weight:700}
.handover-work-head strong{display:block;font-size:14px;color:#395565;line-height:1.4;overflow-wrap:anywhere}.handover-work-head small{display:block;font-size:12px;color:#74858e;margin-top:3px}.handover-work.done .handover-work-head small{color:#27855b}
.handover-work p{font-size:13px;color:#607581;margin:0;line-height:1.5;min-height:36px;overflow-wrap:anywhere}.handover-work p span{display:block;color:#81939e;font-size:11px}
.handover-work-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto}.handover-work-actions button{font-size:12px;padding:9px 6px;border-radius:8px;line-height:1.4;min-height:44px;min-width:0;white-space:normal;overflow-wrap:anywhere}
.handover-work-actions>.secondary{grid-column:1;grid-row:1}.handover-work-actions>.secondary:only-child{grid-column:1/-1}.handover-work-actions>.primary{grid-column:1/-1;grid-row:2;background:#264d60;border-color:#264d60}.handover-work-actions>.link{grid-column:2;grid-row:1;padding:9px 6px;background:transparent}
.handover-assigned{display:block;font-size:11px;color:#8697a0;line-height:1.7}

.handover-delivery{padding:16px 22px;display:flex;gap:14px;justify-content:space-between;align-items:center;border-top:1px solid #f0f2f3}.handover-delivery strong{font-size:12px;color:#667c88;line-height:1.6;display:block}.handover-delivery small{font-size:11px;color:#93a2aa;line-height:1.6;display:block;margin-top:3px}.handover-delivery button{font-size:12px;padding:10px 13px;white-space:nowrap}.handover-delivery.ready{background:#f1f9f4;border-top-color:#e1efe6}.handover-delivery.ready strong{color:#237a53}.handover-delivery.ready .primary{background:#267e59;border-color:#267e59}.handover-card-bottom{padding:12px 22px;border-top:1px solid #f1f3f4;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.handover-report{font-size:12px;color:#8a7b6e;padding:4px 0}.handover-history{font-size:12px;color:#83949e;flex:1;text-align:right}.handover-history summary{cursor:pointer;padding:4px 0}.handover-history[open]{flex-basis:100%;text-align:left}.handover-history ol{list-style:none;padding:10px 0 0;margin:0}.handover-history li{display:flex;gap:12px;border-top:1px solid #edf0f1;padding:11px 0;line-height:1.6}.handover-history li>span{font-size:12px;color:#94a3ab;width:38px;flex-shrink:0}.handover-history li strong{font-size:12px;color:#607b89;font-weight:600;display:block}.handover-history li small{font-size:11px;color:#93a1a9;display:block;overflow-wrap:anywhere}
.handover-incidents{padding:0 20px 15px}.handover-incidents>div{background:#fff2e9;border:1px solid #f0dacb;border-radius:9px;padding:13px 15px}.handover-incidents strong{font-size:13px;color:#a1603b}.handover-incidents p{font-size:14px;color:#816b5e;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}.handover-incidents small{font-size:12px;color:#a58d7d}.handover-incidents button{font-size:12px;margin:10px 0 0;display:block;padding:7px 10px}
.handover-empty{grid-column:1/-1;text-align:center;padding:48px 30px}.handover-empty>span{display:grid;place-items:center;width:50px;height:50px;margin:0 auto 18px;border-radius:50%;background:#f3f0e8;color:#ad9978}.handover-empty h2{font-size:21px!important;margin-bottom:10px;color:#375967}.handover-empty p{font-size:13px;line-height:1.8;color:#8d9da5;max-width:440px;margin:0 auto 22px}.handover-footnote{font-size:12px;color:#9aa8af;margin:25px 0;line-height:1.7}
.handover-compact{display:flex;align-items:center;gap:14px;background:#f6f5f0;border:1px solid #e9e4d9;border-radius:12px;padding:16px 18px;margin:0 0 22px}.handover-compact>span{display:flex;color:#ad9978}.handover-compact>div{flex:1}.handover-compact strong{font-size:13px;display:block;color:#395764}.handover-compact small{display:block;font-size:13px;color:#82919a;margin-top:5px;line-height:1.6}.handover-compact button{font-size:13px;padding:10px 13px}
@media(min-width:1600px){.handover-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.handover-grid{grid-template-columns:1fr}.handover-preview small{display:none}.handover-flow{font-size:12px;gap:10px}.handover-metric{padding:15px}.handover-metric small{font-size:11px}}
@media(max-width:650px){.handover-page .title-row{align-items:flex-start;gap:18px}.handover-page h1{font-size:29px!important}.handover-preview{flex-direction:column;align-items:stretch;padding:15px}.handover-preview label{justify-content:space-between}.handover-preview select{width:220px;max-width:65%}.handover-flow{display:none}.handover-metrics{grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.handover-toolbar{align-items:stretch;flex-direction:column}.handover-search{justify-content:space-between}.handover-search input{flex:1;width:auto;max-width:62%}.handover-card-top{padding:18px}.handover-key{padding:14px 18px}.handover-work-grid{padding:14px;gap:10px}.handover-work{padding:12px 10px}.handover-delivery{padding:15px 18px;flex-wrap:wrap}.handover-compact{flex-wrap:wrap}.handover-compact button{margin-left:34px}}

/* Dense apartment overview. Full handover controls open on demand. */
.handover-overview .title-row{margin-bottom:16px}.handover-overview .handover-preview{padding:10px 14px;margin-bottom:14px;gap:12px}.handover-overview .handover-preview select{max-width:230px;min-height:36px;padding:6px 9px}.handover-overview .handover-preview .secondary{font-size:12px;padding:7px 10px}.handover-overview .handover-metrics{gap:8px;margin-bottom:16px}.handover-overview .handover-metric{padding:10px 14px;border-radius:10px;flex-direction:row;align-items:center;gap:10px}.handover-overview .handover-metric strong{font-size:26px}.handover-overview .handover-metric>span{font-size:12px}.handover-overview .handover-toolbar{gap:12px;margin-bottom:14px;flex-wrap:wrap}.handover-overview .handover-tabs button{padding:8px 12px;font-size:12px}.handover-overview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:10px;align-items:stretch}.handover-tile{min-width:0;border:1px solid #dce4e6;background:white;border-radius:11px;padding:12px;display:flex;flex-direction:column;overflow:hidden}.handover-tile.ready,.handover-tile.apartment-available{background:#f0f8f2;border-color:#b4d5bf}.handover-tile.blocked{background:#fff1e7;border-color:#dfb392}.handover-tile.waiting{background:#fff1df;border-color:#e5b47b}.handover-tile.apartment-arrival{border-top:4px solid #5a9771;padding-top:9px}.handover-tile-head{display:flex;gap:7px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;margin-bottom:10px}.handover-tile-head h2{font-size:23px!important;line-height:1;margin:0;letter-spacing:-.6px;color:#173b4d}.handover-tile .handover-status{font-size:10px;white-space:normal;padding:4px 6px;line-height:1.4;max-width:125px}.handover-tile-work{display:flex;gap:12px;min-height:36px}.handover-tile-work>span{font-size:11px;line-height:1.5;flex:1;color:#76858e}.handover-tile-work>span>b{font-weight:500}.handover-tile-work small{display:block;font-size:10px;padding-left:12px}.handover-tile-work .done{color:#28784f}.handover-tile-work p{font-size:12px;line-height:1.5;color:#6c7b85;margin:0 0 3px;overflow-wrap:anywhere}.handover-tile-actions{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:auto;padding-top:10px;flex-wrap:wrap}.handover-tile-actions .primary{font-size:11px;padding:8px 9px;border-radius:7px;min-height:34px}.handover-tile-actions .link{font-size:11px;padding:6px 0;min-height:32px;margin-left:auto;color:#526f80}.handover-tile-arrival{border-top:4px solid #5a9771;padding-top:5px;margin:8px -12px 0;padding-left:12px;font-size:11px;font-weight:600;color:#38704c}.handover-detail{min-width:0}.handover-detail .handover-card{box-shadow:none}.handover-apartment-detail p{font-size:14px;line-height:1.8;color:#617581}.handover-apartment-detail .note{font-size:12px}.handover-detail .handover-work-grid{padding:12px;gap:8px}.handover-detail .handover-work{padding:12px 10px}.handover-detail .handover-delivery{padding:14px 16px;flex-wrap:wrap}
@media(min-width:1500px){.handover-overview-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}}
@media(max-width:800px){.handover-overview .handover-preview{flex-wrap:wrap}.handover-overview .handover-preview>div{flex:1}.handover-overview .handover-metrics{grid-template-columns:1fr 1fr}.handover-overview .handover-tabs{overflow-x:auto;max-width:100%}.handover-overview .handover-tabs button{white-space:nowrap}.handover-overview-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}.handover-tile-head{gap:6px}}
@media(max-width:450px){.handover-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.handover-tile{padding:10px}.handover-tile-head h2{font-size:22px!important}.handover-tile-work{flex-wrap:wrap;gap:5px}.handover-tile-work>span{flex-basis:100%}.handover-tile-work small{display:inline;margin-left:4px;padding-left:0}.handover-tile-arrival{margin-left:-10px;margin-right:-10px;padding-left:10px}.handover-overview .handover-metric{padding:9px}.handover-overview .handover-metric>span{font-size:11px}.handover-overview .handover-preview select{max-width:67%}}

.handover-tile-actions>.secondary{font-size:11px;padding:8px 9px;min-height:34px}.handover-report-form>p{font-size:15px;line-height:1.6}.handover-report-department{border:1px solid #d9e4e2;border-radius:10px;margin:14px 0;padding:16px;background:#f8faf8}.handover-report-check{display:flex;align-items:flex-start;gap:11px;font-size:15px;line-height:1.5;cursor:pointer}.handover-report-check input{width:21px;height:21px;min-height:21px;flex:none;margin:1px 0 0;accent-color:#16877f}.handover-report-department>label+label{margin-top:14px;display:grid;gap:7px;font-size:13px}.handover-report-department select{width:100%;min-height:44px}.handover-report-department select:disabled{opacity:.55}.handover-report-ack{padding:14px;border-radius:10px;background:#edf5f3}.handover-reported-done{color:#28784f;font-size:14px}.handover-report-form .note{font-size:12px;line-height:1.6}.handover-delivery>.secondary{margin-left:auto}

.handover-tile.stored{background:#f0f8f2;border-color:#b4d5bf}.handover-status.stored{background:#e3f2e8;color:#28734b}.handover-prepared-note{display:grid;gap:4px;font-size:11px;line-height:1.5;color:#657c71;margin-top:10px}.handover-detail .handover-prepared-note{padding:0 18px 14px;margin:0;font-size:12px}.handover-refresh-note{display:grid;gap:5px;background:#fff3db;border:1px solid #eacb86;border-radius:8px;color:#805b1b;padding:10px;font-size:11px;line-height:1.5;margin:10px 0 0}.handover-refresh-note strong{font-size:12px}.handover-detail .handover-refresh-note{margin:0 16px 14px;font-size:13px}.handover-detail .handover-refresh-note strong{font-size:14px}

@media(max-width:480px){.handover-detail .handover-work-grid{padding:10px;gap:8px}.handover-detail .handover-work{padding:12px 10px}.handover-work-head{flex-direction:column;align-items:flex-start;gap:8px;min-height:95px}.handover-work-head strong{font-size:13px}.handover-work-actions>.primary{min-height:52px}}
