/* Fleet vehicle dialog — seat layout template preview */
.fleet-seat-preview-wrap {
    margin-top: 8px;
    margin-bottom: 8px;
}

.fleet-seat-preview-caption {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.54);
    margin-bottom: 8px;
    font-weight: 500;
}

.fleet-seat-preview-scroll {
    max-width: 100%;
    overflow: auto;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.fleet-seat-preview-grid {
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
}

.fleet-seat-preview-cell {
    box-sizing: border-box;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 1px;
}

.fleet-seat-preview-seat {
    background: #e3f2fd;
    border-color: #64b5f6;
    color: #1565c0;
}

.fleet-seat-preview-seat--blocked {
    background: #eceff1;
    border-color: #90a4ae;
    color: #546e7a;
}

.fleet-seat-preview-aisle {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
}

.fleet-seat-preview-window {
    background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
    border-color: #60a5fa;
}

.fleet-seat-preview-window-right {
    background: linear-gradient(180deg, #e0f2fe 0%, #7dd3fc 100%);
    border-color: #38bdf8;
}

.fleet-seat-preview-door {
    background: linear-gradient(135deg, #d4a574 0%, #92400e 100%);
    border-color: #78350f;
    color: rgba(255, 255, 255, 0.95);
}

.fleet-seat-preview-restroom {
    background: linear-gradient(180deg, #e8dff5 0%, #a78bfa 100%);
    border-color: #7c3aed;
    color: rgba(76, 29, 149, 0.85);
}

.fleet-seat-preview-cabin {
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    border-color: #1e293b;
    color: rgba(255, 255, 255, 0.4);
}

.fleet-seat-preview-wall {
    position: relative;
    border-color: #e2e8f0;
    background: transparent;
}

/* Same inboard side as window strips: leftmost col → strip toward bus interior (right of cell) */
.fleet-seat-preview-wall::before {
    content: '';
    position: absolute;
    left: auto;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 30%;
    max-width: 7px;
    min-width: 3px;
    border-radius: 1px;
    border-left: 1px solid #64748b;
    border-right: 1px solid #475569;
    background: #94a3b8;
}

.fleet-seat-preview-wall--inboard-last-col::before {
    left: 1px;
    right: auto;
}

.fleet-seat-preview-empty {
    border: none;
    background: transparent;
}

.fleet-bus-templates-toolbar {
    margin-bottom: 16px;
    gap: 8px;
}

.fleet-bus-templates-table {
    width: 100%;
    table-layout: auto;
}

.fleet-bus-templates-table th,
.fleet-bus-templates-table td {
    text-align: left;
    vertical-align: middle;
}

.fleet-bus-templates-table th {
    text-transform: uppercase;
}

.fleet-bus-templates-table__check {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    padding-left: 8px;
    padding-right: 8px;
    text-align: center;
}

.fleet-bus-templates-table__check md-checkbox {
    margin: 10px 0px;
}

.fleet-bus-templates-table__seats {
    width: 72px;
    white-space: nowrap;
}

.fleet-bus-template-row--selected {
    background: rgba(33, 150, 243, 0.08);
}

.fleet-bus-template-editor-dialog .md-dialog-content {
    max-width: none;
}

.fleet-bus-template-editor-section {
    margin-bottom: 16px;
}

.fleet-bus-template-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fleet-bus-template-palette-btn {
    min-width: 0;
    margin: 0;
    line-height: 1.2;
    font-size: 11px;
}

.fleet-bus-template-palette-btn--active {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid #2196f3;
}

.fleet-bus-template-palette-btn__label {
    white-space: normal;
    text-transform: none;
}

.fleet-bus-template-editor-canvas-wrap {
    margin-bottom: 12px;
    min-height: 120px;
}

.fleet-bus-template-editor-grid {
    margin: 0 auto;
    width: max-content;
    padding: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.fleet-bus-template-editor-cell {
    cursor: pointer;
    min-width: 24px;
    min-height: 22px;
}

.fleet-bus-template-editor-cell--empty {
    border: 1px dashed #b0bec5;
    background: #fafafa;
}

.fleet-bus-template-editor-cell--empty:hover {
    background: #f1f5f9;
    border-color: #78909c;
}

.fleet-bus-template-editor-cell:hover {
    outline: 2px solid rgba(33, 150, 243, 0.45);
    outline-offset: -1px;
}

.fleet-bus-template-editor-preview .fleet-seat-preview-empty {
    border: 1px solid #eceff1;
    background: #fff;
}

.fleet-bus-template-editor-meta {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.7);
}
