body { font-family: 'Inter', sans-serif; background-color: #F8FAFC; color: #0F172A; }
.classified-table th { background-color: #F8FAFC; border-bottom: 1px solid #E2E8F0; color: #475569; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.classified-table td { border-bottom: 1px solid #F1F5F9; font-size: 12.5px; }
.detail-spec-list li:nth-child(odd) { background-color: #F8FAFC; }
.detail-spec-list li { border-bottom: 1px solid #F1F5F9; padding: 7px 10px; display: flex; justify-content: space-between; font-size: 12px; border-radius: 6px; }

/* Yönetim paneli: mobilde yatay tablo yerine araç kartları */
@media (max-width: 640px) {
    #view-dashboard { min-width: 0; }
    #view-dashboard > .flex.items-center.justify-between {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    #view-dashboard > .flex.items-center.justify-between > div:first-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    #tab-active-stock, #tab-sold-stock {
        min-width: 0;
        width: 100%;
        height: 100%;
        padding: 9px 7px !important;
        line-height: 1.35;
        white-space: normal;
        text-align: center;
    }
    #view-dashboard > .bg-white.rounded-b-lg {
        overflow: visible !important;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    .classified-table {
        display: block;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }
    .classified-table thead { display: none; }
    .classified-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .classified-table tbody tr {
        display: block;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        background: #fff;
        border: 1px solid #E2E8F0;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    }
    .classified-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px 13px !important;
        border-bottom: 1px solid #F1F5F9;
        text-align: right;
        overflow-wrap: anywhere;
        font-size: 13px;
    }
    .classified-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        max-width: 42%;
        color: #64748B;
        font-size: 11px;
        line-height: 1.35;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
    }
    .classified-table tbody td > * {
        max-width: 58%;
        overflow-wrap: anywhere;
    }
    .classified-table tbody td.dashboard-car-title-cell {
        display: block;
        padding: 14px 13px !important;
        background: #F8FAFC;
        text-align: left;
    }
    .classified-table tbody td.dashboard-car-title-cell::before { display: none; }
    .classified-table tbody td.dashboard-car-title-cell > div:first-child {
        max-width: 100%;
        color: #0F172A;
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    .classified-table tbody td.dashboard-car-title-cell > div:last-child {
        max-width: 100%;
        margin-top: 5px;
        text-align: left;
    }
    .classified-table tbody td.dashboard-actions-cell {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 7px;
        padding: 12px !important;
        border-bottom: 0;
        text-align: left;
    }
    .classified-table tbody td.dashboard-actions-cell::before {
        flex-basis: 100%;
        max-width: 100%;
        margin-bottom: 2px;
    }
    .classified-table tbody td.dashboard-actions-cell button {
        white-space: normal;
        padding: 8px 9px;
        line-height: 1.25;
    }
    .classified-table tbody td[data-label="Masraflar"] > span {
        max-width: 58%;
        white-space: normal;
        text-align: center;
    }
}


/* Araç fotoğrafı olmayan ilanlar için tutarlı vitrin yer tutucusu */
.vehicle-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, #E8EDF4, #DCE3EC);
    color: #64748B;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.vehicle-image-placeholder-icon {
    font-size: 42px;
    line-height: 1;
}

/* Mobil panel iyileştirmeleri */
@media (max-width: 640px) {
    #view-dashboard .dashboard-stat-value {
        font-size: clamp(1.15rem, 5vw, 1.45rem);
        line-height: 1.25;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    #view-dashboard #stat-total-value,
    #view-dashboard #stat-realized-profit {
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    #view-dashboard > .flex.items-center.justify-between > div:first-child {
        align-items: stretch;
    }
    #view-dashboard #tab-active-stock,
    #view-dashboard #tab-sold-stock {
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        padding: 9px 8px !important;
    }
    #view-dashboard .grid.grid-cols-2.lg\\:grid-cols-4 > div {
        min-width: 0;
    }
    #view-dashboard .grid.grid-cols-2.lg\\:grid-cols-4 > div > div {
        overflow-wrap: anywhere;
    }
    .vehicle-image-placeholder {
        min-height: 120px;
    }
}



/* Stok sekmeleri: sayaçları metinden ayır, dar ekranda parantez kırılmasını önle */
#tab-active-stock, #tab-sold-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tab-label { min-width: 0; }
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(255, 232, 0, 0.18);
    color: inherit;
    font-weight: 900;
    line-height: 1;
}
@media (max-width: 640px) {
    #view-dashboard #tab-active-stock,
    #view-dashboard #tab-sold-stock {
        flex-direction: column;
        gap: 5px;
        min-height: 78px;
        line-height: 1.25;
        padding: 10px 8px !important;
        white-space: normal;
        text-align: center;
    }
    #view-dashboard .tab-label {
        display: block;
        overflow-wrap: normal;
        word-break: normal;
    }
    #view-dashboard .tab-count {
        min-width: 24px;
        height: 21px;
        font-size: 11px;
    }
}
