/* Shared vector-like bus shell. The approved 25-seat geometry/styles are untouched. */
.khbus-new{position:relative;border:2px solid #a5b8bd!important;border-radius:32px 32px 24px 24px!important;background:linear-gradient(90deg,#e7edef 0%,#fff 8%,#fff 92%,#e7edef 100%)!important;box-shadow:inset 0 0 0 5px #f6f8f9!important;padding:18px 12px 14px!important;}
.khbus-shell::before{content:"";display:block;position:relative;height:28px;margin:-6px 0 12px;border:1px solid #698790;border-radius:20px 20px 7px 7px;background:linear-gradient(100deg,#264d5b,#5e7d88 49%,#b8cbd0 50%,#3f626f 51%,#264d5b);}
.khbus-new .pb-row,.khbus-new .seat-pref-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(12px,.38fr) repeat(var(--khbus-right,2),minmax(0,1fr))!important;direction:ltr;}
.khbus-new .khbus-rear{grid-template-columns:repeat(var(--khbus-rear-cols,5),minmax(0,1fr))!important;}
.khbus-door-space{grid-column:4/6;display:flex;align-items:center;justify-content:center;min-height:44px;border:1px dashed #99aeb5;border-radius:5px;color:#536e78;background:repeating-linear-gradient(0deg,#edf3f4,#edf3f4 8px,#ccd9dd 9px,#edf3f4 10px);font-size:10px;}
.khbus-new .pb-seat,.khbus-new .seat-pref{min-width:0;}
.kh-seat-scope-options{display:flex;gap:8px;flex-wrap:wrap;margin-block:10px;}.kh-seat-scope-options button{flex:1;min-height:44px;}.kh-seat-scope-options button[aria-pressed=true]{box-shadow:inset 0 -3px #d8ae54;}

html body #seat-pref-map .khbus-new .seat-pref-row{grid-template-columns:repeat(2,minmax(0,1fr)) minmax(12px,.38fr) repeat(var(--khbus-right,2),minmax(0,1fr))!important;}
html body #seat-pref-map .khbus-new .seat-pref-row.khbus-rear{grid-template-columns:repeat(var(--khbus-rear-cols,5),minmax(0,1fr))!important;}

.khbus-shell{position:relative;}
html body .khbus-shell .kh-bus-front{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;direction:ltr;align-items:center;gap:8px;border-bottom:1px dashed #c9dcd4;margin:0 0 12px!important;padding:0 0 10px!important;font-size:12.5px;text-align:center;}
.khbus-shell .kh-bus-front b{direction:rtl;}.khbus-shell .kh-bus-wheel,.khbus-shell .kh-bus-door{display:flex!important;align-items:center;justify-content:center;width:44px;height:36px;float:none!important;margin:0!important;}
.khbus-shell .khbus-rear{grid-template-columns:repeat(var(--khbus-rear-cols,5),minmax(0,1fr))!important;}
.khbus-door-gap{grid-column:4/6;min-height:44px;visibility:hidden;}
.khbus-door-marker{position:absolute;display:flex;align-items:center;justify-content:center;border:1px dashed #99aeb5;border-radius:6px;color:#536e78;background:repeating-linear-gradient(0deg,#edf3f4,#edf3f4 8px,#ccd9dd 9px,#edf3f4 10px);font-size:10px;pointer-events:none;box-sizing:border-box;}
.kh-iq-smart{margin:12px 0;padding:16px;border:1px solid #c9dcd4;border-radius:10px;background:#f7fbf9;}.kh-iq-smart[hidden]{display:none!important;}.kh-iq-smart label{display:flex;gap:8px;align-items:center;line-height:1.8;}.kh-iq-smart input{width:18px;min-height:18px;flex:none;}.kh-iq-smart table{width:100%;}.kh-iq-smart .actions{display:flex;gap:8px;flex-wrap:wrap;}

.kh-layout-editor{margin:16px 0;padding:16px;border:1px solid var(--line,#d6e3de);border-radius:10px;background:var(--surface,#fff);}.kh-layout-editor[hidden]{display:none!important;}.kh-layout-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;}.kh-layout-heading h3{margin:0!important;}.kh-layout-workspace{display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,440px);gap:24px;align-items:start;}.kh-layout-fields,.kh-layout-door{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.kh-layout-editor label{display:flex;flex-direction:column;gap:6px;min-width:0;}.kh-layout-editor label:has(input[type=checkbox]){flex-direction:row;align-items:center;}.kh-layout-editor input[type=checkbox]{width:18px;min-height:18px;}.kh-layout-door{padding:12px;margin:12px 0;border:1px solid var(--line,#d6e3de);border-radius:8px;}.kh-layout-door b{grid-column:1/-1;}.kh-layout-editor #khbe-map .khbe-seat{width:100%!important;min-width:0!important;height:58px!important;min-height:58px!important;padding:3px!important;text-align:center!important;font-size:11.5px!important;font-weight:normal!important;background:#eef7ef!important;border:1.5px solid #bcdec2!important;border-right-width:6px!important;border-radius:11px!important;direction:ltr;}.kh-layout-editor #khbe-map .khbe-seat[aria-invalid=true]{border-color:#c62828!important;background:#fff1f0!important;}#khbe-map .seat-pref-row{display:grid;gap:6px;margin-bottom:8px;}#khbe-reference{max-width:100%;max-height:480px;object-fit:contain;margin-top:12px;}#khbe-status{min-height:28px;line-height:1.8;}@media(max-width:800px){.kh-layout-workspace{grid-template-columns:minmax(0,1fr);gap:16px;}.kh-layout-editor{padding:12px;}.kh-layout-workspace>div{min-width:0;}}

html body.kh-admin-pdf :is(#pdf-specificity,.main) #khbe-map .khbe-seat{font-size:11.5px!important;height:58px!important;min-height:58px!important;}

/* The 25-seat layout is single | aisle | pair; equal-count rear rows retain the aisle. */
html body #pb-buses .khbus-mirror .pb-row:not(.khbus-rear),html body #seat-pref-map .khbus-mirror .seat-pref-row:not(.khbus-rear),html body #khbe-map .khbus-mirror .seat-pref-row:not(.khbus-rear){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(12px,.38fr) repeat(2,minmax(0,1fr))!important;direction:ltr;}
