/* Free seating plan generator (/{lang}/seating-plan). Steps, buttons and the column table come from certificate-import.css.
   Seat cells are buttons: two-class selectors, so the Tailwind preflight ([type='button'] { background: transparent }) does not win. */
.sp-rooms { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sp-room { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.sp-room input { border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 10px; font-size: .95rem; }
.sp-room .sp-room-name { flex: 1 1 180px; min-width: 0; }
.sp-room label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: #475569; }
.sp-room input[type=number] { width: 68px; }
.sp-x { color: #94a3b8; }
.sp-room-seats { font-size: .85rem; color: #64748b; margin-left: auto; }
.sp-room-remove { border: 0; background: transparent; color: #94a3b8; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.sp-room-remove:hover { color: #dc2626; background: #fef2f2; }

.sp-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 18px; align-items: end; }
.sp-check { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: #1e293b; }
.sp-check input { width: 18px; height: 18px; }
.sp-field { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; color: #475569; }
.sp-field select, .sp-field input { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font-size: .95rem; color: #1e293b; background: #fff; }

#sp-notes.sp-warn { color: #92400e; }
#sp-notes div + div { margin-top: 4px; }
.sp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 6px; }
.sp-legend-title { font-size: .85rem; color: #475569; margin-right: 4px; }
.sp-chip { display: inline-block; min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #1e293b; border: 1px solid rgba(0,0,0,.08); }

.sp-room-view { margin: 14px 0 18px; }
.sp-room-title { font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.sp-room-title span { font-weight: 400; color: #64748b; font-size: .9rem; margin-left: 6px; }
.sp-scroll { overflow-x: auto; padding-bottom: 4px; }
.sp-front { background: #1e3a5f; color: #fff; text-align: center; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 0; border-radius: 6px; margin-bottom: 6px; min-width: max-content; }
.sp-grid { display: grid; gap: 5px; min-width: max-content; }
.sp-grid .sp-cell { position: relative; height: 52px; border: 1px solid #94a3b8; border-radius: 7px; background: #fff; padding: 4px 6px 4px 6px; text-align: left; cursor: pointer; overflow: hidden; font: inherit; }
.sp-grid .sp-cell:hover { outline: 2px solid #2563eb; outline-offset: 1px; }
.sp-grid .sp-cell:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.sp-grid .sp-cell.free { border-style: dashed; border-color: #cbd5e1; background: #fff; }
.sp-grid .sp-cell.off { border-color: #e2e8f0; background: repeating-linear-gradient(45deg, #f1f5f9 0 6px, #e2e8f0 6px 12px); }
.sp-grid .sp-cell.bad { border: 2px solid #dc2626; }
.sp-n { display: block; font-size: .7rem; color: #475569; line-height: 1.1; }
.sp-nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .75rem; line-height: 1.2; color: #0f172a; word-break: break-word; }
.sp-shuffle { margin: 4px 0 18px; }

.sp-outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sp-output { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.sp-output-examqr { background: #f8fafc; }
.sp-output-name { font-weight: 700; color: #1e293b; }
.sp-output-desc { font-size: .85rem; color: #64748b; line-height: 1.45; flex: 1; }
.sp-output-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sp-output-btns .cm-btn { padding: 8px 14px; }

@media (max-width: 640px) {
    .sp-room-seats { margin-left: 0; flex-basis: 100%; }
    .sp-x { display: none; }
    .sp-grid .sp-cell { height: 48px; }
}
