.kau-roomplan-intro { color: var(--text-secondary); margin: 0 0 1.1rem; }
.kau-roomplan-toolbar {
    display: flex;
    align-items: end;
    gap: .7rem;
    flex-wrap: wrap;
    margin: .5rem 0 1rem;
}
.kau-roomplan-toolbar .form-group { min-width: 135px; margin: 0; }
.kau-roomplan-toolbar .form-group:nth-of-type(2) { min-width: 170px; }
.kau-roomplan-toolbar .form-group:nth-of-type(3) { min-width: 190px; }
.kau-roomplan-toolbar input, .kau-roomplan-toolbar select { min-height: 40px; }
.kau-roomplan-week-nav { min-height: 40px; padding-inline: .8rem; }
.kau-roomplan-count { margin-left: auto; color: var(--text-secondary); font-size: .9rem; }
.kau-roomplan-hint { color: var(--text-secondary); margin: .25rem 0 .75rem; font-size: .88rem; }
.kau-roomplan-table-scroll { width: 100%; overflow: visible; max-height: none; border: 1px solid #cbd5e1; border-radius: 8px; background: white; }
.kau-roomplan-table { overflow: visible !important; border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .77rem; }
.kau-roomplan-table th, .kau-roomplan-table td { border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; }
.kau-roomplan-table thead { position: sticky; top: 0; z-index: 10; }
.kau-roomplan-table thead th { position: sticky; top: 0; z-index: 11; min-width: 126px; max-width: 150px; padding: .42rem .35rem; background: #1e40af; color: #fff; text-align: center; }
.kau-roomplan-table thead th:first-child, .kau-roomplan-table thead th:nth-child(2), .kau-roomplan-table thead th:nth-child(3) { z-index: 12; }
.kau-roomplan-table thead th:first-child { min-width: 52px; }
.kau-roomplan-table thead th:nth-child(2) { min-width: 94px; }
.kau-roomplan-table thead th:nth-child(3) { min-width: 100px; }
.kau-roomplan-table thead th span, .kau-roomplan-table thead th small { display: block; }
.kau-roomplan-table thead th small { margin-top: .2rem; color: #dbeafe; font-size: .66rem; font-weight: 500; }
.kau-roomplan-table tbody tr:nth-child(even) td, .kau-roomplan-table tbody tr:nth-child(even) th { background-color: #f8fafc; }
.kau-roomplan-table .kau-roomplan-week-number { position: sticky; left: 0; z-index: 2; width: 52px; min-width: 52px; padding: .35rem .2rem; background: #e2e8f0; color: #334155; text-align: center; font-size: .68rem; }
.kau-roomplan-table .kau-roomplan-day { position: sticky; left: 52px; z-index: 2; width: 94px; min-width: 94px; padding: .35rem; background: #f1f5f9; color: #172554; text-align: center; vertical-align: middle; }
.kau-roomplan-table .kau-roomplan-day span, .kau-roomplan-table .kau-roomplan-day strong, .kau-roomplan-table .kau-roomplan-day small { display: block; }
.kau-roomplan-table .kau-roomplan-day span { font-weight: 700; }
.kau-roomplan-table .kau-roomplan-day strong { font-size: .84rem; }
.kau-roomplan-source-label { color: #b45309; font-size: .63rem; }
.kau-roomplan-extended-label { color: #166534; font-size: .62rem; }
.kau-roomplan-time { min-width: 100px; padding: .35rem; text-align: center; background: #eff6ff; color: #1e3a8a; }
.kau-roomplan-time span, .kau-roomplan-time strong { display: block; }
.kau-roomplan-time span { font-size: .64rem; color: #475569; }
.kau-roomplan-time strong { white-space: nowrap; font-size: .72rem; }
.kau-roomplan-cell { position: relative; vertical-align: top; min-width: 126px; width: 126px; height: 49px; padding: 2px; background: #fff; transition: background-color .12s ease, box-shadow .12s ease; }
.kau-roomplan-cell:hover { background: #eff6ff !important; }
.kau-roomplan-cell.drag-over { background: #dbeafe !important; box-shadow: inset 0 0 0 3px #2563eb; }
.kau-roomplan-cell.is-unscheduled { background: #f8fafc; }
.kau-roomplan-add-hint { display: block; color: #2563eb; opacity: .5; text-align: center; font-size: .72rem; padding-top: .7rem; }
.kau-roomplan-cell:hover .kau-roomplan-add-hint { opacity: 1; }
.kau-roomplan-booking { display: flex; flex-direction: column; width: 100%; min-height: 42px; border: 1px solid rgba(30, 64, 175, .25); border-radius: 4px; padding: .18rem .28rem; overflow: hidden; color: var(--booking-text); background: var(--booking-color); text-align: left; cursor: pointer; line-height: 1.2; }
.kau-roomplan-booking + .kau-roomplan-booking { margin-top: 2px; }
.kau-roomplan-booking strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.kau-roomplan-booking small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .64rem; opacity: .86; }
.kau-roomplan-booking[draggable="true"] { cursor: grab; }
.kau-roomplan-booking[draggable="true"]:active { cursor: grabbing; }
.kau-roomplan-booking.is-dragging { opacity: .38; }
.kau-roomplan-booking.is-continuation { border-style: dashed; opacity: .8; }
.kau-roomplan-empty { color: var(--text-secondary); padding: 1rem; }
.kau-roomplan-summary-scroll { width: 100%; max-height: 72vh; overflow: auto; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.kau-roomplan-summary { width: 100%; border-collapse: collapse; }
.kau-roomplan-summary th, .kau-roomplan-summary td { padding: .55rem .7rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.kau-roomplan-summary thead th { position: sticky; top: 0; z-index: 2; background: #1e40af; color: #fff; }
.kau-roomplan-summary tbody tr:nth-child(even) { background: #f8fafc; }
.kau-roomplan-summary tbody th { white-space: nowrap; }
.kau-roomplan-month-items { display: flex; flex-wrap: wrap; gap: .3rem; }
.kau-roomplan-month-booking, .kau-roomplan-month-add { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; border: 1px solid #cbd5e1; border-radius: 5px; padding: .25rem .4rem; color: #172554; background: #eff6ff; text-align: left; cursor: pointer; }
.kau-roomplan-month-booking strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kau-roomplan-month-booking small { color: #475569; }
.kau-roomplan-month-booking.is-continuation { border-style: dashed; }
.kau-roomplan-month-add { color: #1d4ed8; background: #fff; }
.kau-roomplan-year-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.kau-roomplan-month-card { display: flex; min-height: 112px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .5rem; border: 1px solid #cbd5e1; border-radius: 8px; padding: .85rem; color: #172554; background: #fff; text-align: left; cursor: pointer; }
.kau-roomplan-month-card:hover { border-color: #2563eb; background: #eff6ff; }
.kau-roomplan-month-card strong { color: #1e3a8a; font-size: 1.05rem; text-transform: capitalize; }
.kau-roomplan-month-card span { font-weight: 700; }
.kau-roomplan-month-card small { color: #64748b; }
.kau-roomplan-copy-result { min-height: 1.25rem; color: #475569; }
.kau-roomplan-modal[hidden] { display: none !important; }
.kau-roomplan-modal { position: fixed; inset: 0; z-index: 100100; display: grid; place-items: center; padding: 1rem; background: rgba(15, 23, 42, .58); }
.kau-roomplan-dialog { width: min(680px, 100%); max-height: min(90vh, 860px); overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 22px 60px rgba(15, 23, 42, .3); padding: 1.25rem; }
.kau-roomplan-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.kau-roomplan-dialog-head h3 { margin: 0; color: #1e3a8a; }
.kau-roomplan-dialog-head p { margin: .2rem 0 0; color: #64748b; font-size: .86rem; }
.kau-roomplan-close { border: 0; background: transparent; color: #64748b; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.kau-roomplan-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.kau-roomplan-form-grid label { display: flex; flex-direction: column; gap: .3rem; color: #334155; font-size: .86rem; font-weight: 600; }
.kau-roomplan-form-grid input, .kau-roomplan-form-grid select { width: 100%; min-height: 40px; padding: .5rem .6rem; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; font-weight: 400; }
.kau-roomplan-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.kau-roomplan-dialog-actions [hidden] { display: none !important; }
@media (max-width: 640px) {
    .kau-roomplan-count { width: 100%; margin-left: 0; }
    .kau-roomplan-form-grid { grid-template-columns: 1fr; }
    .kau-roomplan-dialog-actions { justify-content: stretch; }
    .kau-roomplan-dialog-actions button { flex: 1; }
    .kau-roomplan-year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kau-roomplan-summary { min-width: 620px; }
}
