/* SGTC v27.4 - restauração do mapa visual do ônibus e pneus */

.page-v274-pneus {
    max-width: 1580px;
}

.v274-head-actions,
.v274-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.v274-selector-card {
    margin-bottom: 14px;
}

.v274-filter {
    display: flex;
    align-items: end;
    gap: 12px;
    margin: 0;
}

.v274-filter-field {
    flex: 1 1 520px;
}

.v274-filter-field span {
    display: block;
    margin-bottom: 5px;
    color: #184d47;
    font-weight: 900;
}

.v274-filter-field select {
    width: 100%;
}

.v274-vehicle-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.v274-vehicle-summary > div {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #d6e9e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(4, 45, 39, .07);
}

.v274-vehicle-summary span {
    display: block;
    color: #607d76;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.v274-vehicle-summary strong {
    display: block;
    margin-top: 4px;
    color: #053047;
    overflow-wrap: anywhere;
}

.v274-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, .65fr);
    gap: 16px;
    align-items: start;
}

.v274-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.v274-card-head h2 {
    margin: 0 0 4px;
    color: #053047;
    font-size: 20px;
}

.v274-card-head p {
    margin: 0;
    color: #607d76;
    font-weight: 700;
}

.v274-map-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f7f1;
    color: #087164;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.v274-bus-stage {
    display: flex;
    justify-content: center;
    padding: 24px 12px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 210, 26, .12), transparent 34%),
        linear-gradient(180deg, #edf8f5, #f9fcfb);
    border: 1px solid #d7e9e4;
    overflow: hidden;
}

.v274-bus {
    position: relative;
    width: 330px;
    height: 610px;
    border: 5px solid #0a5f56;
    border-radius: 64px 64px 40px 40px;
    background: linear-gradient(180deg, #dff2ec 0%, #ffffff 48%, #e4f4ef 100%);
    box-shadow: inset 0 0 0 7px rgba(255,255,255,.7), 0 24px 45px rgba(4,45,39,.18);
}

.v274-bus-front {
    position: absolute;
    top: 18px;
    left: 32px;
    right: 32px;
    height: 105px;
    border-radius: 42px 42px 18px 18px;
    background: linear-gradient(180deg, #0c6e63, #083f3a);
    color: #ffe26d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    letter-spacing: .12em;
}

.v274-windshield {
    width: 72%;
    height: 42px;
    margin-top: 8px;
    border-radius: 16px 16px 8px 8px;
    background: linear-gradient(135deg, #9dd9d1, #e6faf6);
    border: 3px solid rgba(255,255,255,.55);
}

.v274-bus-cabin {
    position: absolute;
    top: 142px;
    bottom: 42px;
    left: 64px;
    right: 64px;
    border: 3px solid #a7d4ca;
    border-radius: 24px;
    background: repeating-linear-gradient(180deg, rgba(13,118,107,.08) 0 28px, transparent 28px 52px);
}

.v274-center-line {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 50%;
    width: 2px;
    background: repeating-linear-gradient(180deg, #f3c914 0 12px, transparent 12px 22px);
}

.v274-seat-lines {
    position: absolute;
    inset: 20px 18px;
    border-left: 4px solid rgba(8,95,86,.12);
    border-right: 4px solid rgba(8,95,86,.12);
}

.v274-tire-slot {
    position: absolute;
    width: 112px;
    min-height: 82px;
    padding: 8px 7px;
    border-radius: 18px;
    border: 3px solid #86b9ae;
    background: #f8fcfb;
    color: #07362f;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(4,45,39,.14);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform .14s ease, box-shadow .14s ease;
}

.v274-tire-slot:hover {
    transform: scale(1.035);
    box-shadow: 0 15px 28px rgba(4,45,39,.2);
}

.v274-tire-slot.occupied {
    border-color: #075a52;
    background: linear-gradient(180deg, #0f766e, #064b45);
    color: #fff;
}

.v274-tire-slot.free {
    border-style: dashed;
    color: #6a837d;
}

.v274-tire-slot.critical {
    border-color: #e2574c;
    background: linear-gradient(180deg, #d84c43, #9f2d29);
}

.v274-position-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    margin-bottom: 4px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-size: 11px;
    font-weight: 950;
}

.v274-tire-slot.free .v274-position-code {
    background: #e9f2ef;
}

.v274-tire-slot strong {
    font-size: 13px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.v274-tire-slot small {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.15;
}

.v274-pos-de { top: 150px; left: -76px; }
.v274-pos-dd { top: 150px; right: -76px; }
.v274-pos-tee { bottom: 92px; left: -94px; }
.v274-pos-tie { bottom: 184px; left: -76px; }
.v274-pos-tid { bottom: 184px; right: -76px; }
.v274-pos-ted { bottom: 92px; right: -94px; }
.v274-pos-estepe { bottom: 14px; left: 50%; transform: translateX(-50%); }
.v274-pos-estepe:hover { transform: translateX(-50%) scale(1.035); }

.v274-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    color: #4d6d66;
    font-size: 11px;
    font-weight: 850;
}

.v274-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v274-legend i {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 2px solid #86b9ae;
}

.v274-legend i.installed { background: #0f766e; border-color: #075a52; }
.v274-legend i.free { background: #fff; border-style: dashed; }
.v274-legend i.critical { background: #d84c43; border-color: #a6332d; }

.v274-position-table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.v274-position-card {
    min-width: 0;
    padding: 9px;
    border: 1px solid #d8e9e4;
    border-radius: 13px;
    background: #fff;
}

.v274-position-card > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.v274-position-card span {
    color: #075a52;
    font-weight: 950;
}

.v274-position-card small {
    color: #68817b;
    font-size: 9px;
}

.v274-position-card strong {
    display: block;
    color: #053047;
    overflow-wrap: anywhere;
}

.v274-position-card.free {
    background: #f8fbfa;
    border-style: dashed;
}

.v274-form-card {
    position: sticky;
    top: 112px;
}

.v274-form textarea {
    width: 100%;
    border: 1px solid #cfe0da;
    border-radius: 12px;
    padding: 10px 12px;
    resize: vertical;
    font-family: inherit;
}

.v274-help {
    margin-top: 16px;
    padding: 12px;
    border-radius: 15px;
    background: #eef9f5;
    color: #365f57;
}

.v274-help strong {
    display: block;
    color: #075a52;
    margin-bottom: 4px;
}

.v274-help p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.v274-empty-state {
    text-align: center;
    padding: 40px 18px;
}

.v274-empty-state strong {
    display: block;
    color: #053047;
    font-size: 20px;
}

.v274-empty-state p {
    color: #607d76;
}

@media (max-width: 1160px) {
    .v274-layout {
        grid-template-columns: 1fr;
    }

    .v274-form-card {
        position: static;
    }
}

@media (max-width: 850px) {
    .v274-vehicle-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v274-position-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v274-bus-stage {
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 115px;
        padding-right: 115px;
    }
}

@media (max-width: 560px) {
    .v274-vehicle-summary {
        grid-template-columns: 1fr;
    }

    .v274-filter {
        flex-direction: column;
        align-items: stretch;
    }
}
