.kitchenplan .week-table{min-width:0}
.kp-mobile-day-body{display:flex;flex-direction:column;gap:0}
.kp-order[data-structured]{overflow-wrap:anywhere}
.kp-order[data-structured]:hover,.kp-order[data-structured]:focus-visible{background:#eef8f5;outline:2px solid #00796d;outline-offset:1px}
.kp-service-time{font-weight:850;font-size:1rem;color:#006b63}
.kp-order[data-structured] .kp-event-title{font-size:.8rem;font-weight:600;line-height:1.35;color:#526777}
.kp-order[data-structured] .kp-event-place{font-size:1rem;font-weight:750;line-height:1.35;color:#19374e}
.kp-order[data-structured] .kp-event-meta{font-size:1.12rem;font-weight:850;line-height:1.35;color:#006b63}
.kp-service-name{display:block;background:#e9f4ef;border-radius:5px;padding:5px 7px;color:#175348;font-size:.8rem;font-weight:750;line-height:1.35}
.kp-service-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(640px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;border:0;border-left:1px solid #cddbd6;padding:0;color:#19374e;background:#fff;box-shadow:-12px 0 45px #163b3826}
.kp-service-dialog::backdrop{background:#102a3d55}
.kp-service-dialog>header{position:sticky;top:0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px;background:#eff7f4;border-bottom:1px solid #d5e4de;z-index:1}
.kp-service-dialog h2{margin:5px 0 0;font-size:1.1rem;font-weight:600;overflow-wrap:anywhere}
.kp-service-dialog header button{flex-shrink:0}
.kp-detail-body{padding:22px;overflow-wrap:anywhere}
.kp-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 24px}
.kp-detail-meta dt{font-size:.78rem;color:#526777}
.kp-detail-meta dd{margin:4px 0 0;font-weight:750}
.kp-detail-meta>div:nth-child(3) dd{font-size:1.2rem;font-weight:800;color:#19374e}
.kp-detail-meta>div:nth-child(4) dd{font-size:1.35rem;font-weight:850;color:#006b63}
.kp-detail-service{padding:12px;background:#e9f4ef;border-radius:7px}
.kp-detail-body section{padding:10px 0;border-bottom:1px solid #e2e9e6}
.kp-detail-body h3{font-size:1rem}
.kp-detail-body li{margin:9px 0;line-height:1.5;white-space:pre-wrap}
.kp-detail-warning{padding:12px;background:#fff0cf;border-left:4px solid #d99b16}
@media(max-width:1100px) and (min-width:901px){.kitchenplan .week-table th,.kitchenplan .week-table td{padding:3px}.kp-time-block .kp-order[data-structured]{padding:6px;margin:3px;width:calc(100% - 6px)}}
@media(max-width:600px){.kp-service-dialog>header,.kp-detail-body{padding:16px}.kp-detail-meta{gap:12px}.kp-service-dialog h2{font-size:1rem}}
@media print{.kp-service-dialog{position:static;width:100%;height:auto;max-height:none;box-shadow:none}.kp-service-dialog header button,.kp-service-dialog [data-original]{display:none}body:has(.kp-service-dialog[open]) #app{display:none}}
.kw-area-filter{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.kw-area-filter button{min-height:38px;padding:8px 14px;border:1px solid var(--border);background:var(--surface-soft);color:var(--ink)}.kw-area-filter button.active{background:var(--accent);color:#fff}.kw-departments{display:flex;gap:4px;flex-wrap:wrap;margin-top:7px}.kw-departments i{padding:3px 7px;border-radius:999px;background:#e7ede2;color:#536149;font-size:.65rem;font-style:normal;font-weight:800}
.kw-sales-detail{padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft)}.kw-sales-detail h3{margin:6px 0 10px}.kw-sales-detail h4{margin:17px 0 7px}.kw-sales-detail>p{line-height:1.55}.kw-sales-detail ol{display:grid;gap:8px;margin:0;padding-left:22px}.kw-sales-detail li{padding:8px 10px;border-radius:10px;background:var(--surface)}.kw-sales-detail li small{display:block;margin-top:4px;color:var(--muted);line-height:1.4}
.kw-event.is-updated{border-color:#c69a45;border-left-color:#a97822;background:#fff8e8;box-shadow:0 4px 16px #7b5d1b1a}.kw-event.is-updated:hover,.kw-event.is-updated:focus-visible{background:#fff3d4}.kw-update-badge{display:block;align-self:flex-start;padding:4px 8px;border-radius:999px;background:#ead39c;color:#614512;font-size:.68rem;font-weight:850;line-height:1.2}.kw-change-detail{margin:0 0 22px!important;padding:18px;border:1px solid #d5b56d;border-radius:16px;background:#fff8e8}.kw-change-detail>header{display:flex;gap:12px;align-items:flex-start}.kw-change-detail>header>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:#a97822;color:#fff;font-size:1.2rem;font-weight:900}.kw-change-detail h3{margin:3px 0 0;font-size:1rem}.kw-change-detail header small{color:#715318;font-weight:800}.kw-change-list{display:grid;gap:9px;margin-top:14px}.kw-change-list article{padding:11px 12px;border-radius:11px;background:var(--surface,#fff);border:1px solid #eadbb8}.kw-change-list article>strong{display:block;margin-bottom:7px;font-size:.82rem}.kw-change-list article>div{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:9px;align-items:center}.kw-change-list span{min-width:0;overflow-wrap:anywhere}.kw-change-list span small{display:block;margin-bottom:2px;color:var(--muted);font-size:.68rem}.kw-change-list b{color:#a97822}@media(max-width:600px){.kw-change-list article>div{grid-template-columns:1fr}.kw-change-list article>div>b{transform:rotate(90deg);justify-self:start}}
.kw-occupancy-detail{padding:16px;border:1px solid #d5ddce;border-left:5px solid var(--accent);border-radius:14px;background:#f2f6ef}.kw-occupancy-detail h3{margin:6px 0 4px;font:700 1.35rem Georgia,serif;color:var(--accent)}.kw-occupancy-detail p{margin:0;color:var(--muted);line-height:1.5}

/* Desktop event details share the centered Sales dialog geometry. Mobile keeps its drawer. */
@media screen and (min-width:721px){
 .kp-service-dialog.kw-detail,.kp-service-dialog.kw-event-detail{inset:0;margin:auto;width:min(900px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:fit-content;max-height:min(900px,calc(100dvh - 32px));overflow-x:hidden;overflow-y:auto;border:1px solid var(--border,#deded3);border-radius:18px;background:var(--surface,#fff);color:var(--ink,#282b27);box-shadow:0 18px 60px #282b2726}
 .kp-service-dialog.kw-detail>header,.kp-service-dialog.kw-event-detail>header{background:var(--surface,#fff);border-bottom:1px solid var(--border,#deded3);padding:20px 24px 14px}
 .kp-service-dialog.kw-detail .kp-detail-body,.kp-service-dialog.kw-event-detail .kp-detail-body{padding:20px 24px 24px}
 .kp-service-dialog.kw-detail::backdrop,.kp-service-dialog.kw-event-detail::backdrop{background:#282b2760}
}

.kw-change-list .kw-change-before{color:var(--muted);text-decoration:line-through}.kw-change-list .kw-change-before small{text-decoration:none}.kw-change-list .kw-change-after{font-weight:850;font-size:1.08rem;color:#614512}.kw-change-list article{min-width:0}.kw-change-detail>header{position:static!important;padding:0!important;background:transparent!important;border:0!important}
