﻿/* =========================
   Global page layout
   ========================= */
:root {
    --active-green: #2ecc71;
    --expired-red: #e74c3c;
    --inactive-gray: #95a5a6;
}

.contracts-page {
    background-color: #f0ecf9;
    min-height: 40vh;
    padding: 40px 0;
}

.contracts-container {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.warning-icon {
    margin-right: 0.5em;
    font-size: 1.2em;
    vertical-align: middle;
}

/* =========================
   Header no contract
   ========================= */
.nocontracts-header {
    background-color: white;
    width: 90%;
    text-align: center;
}

    .nocontracts-header h2 {
        display: block;
        font-weight: bold;
        font-size: 1.5em;
    }

    .nocontracts-header .nocvinline {
        font-size: 1em;
        color: #666666;
    }

    .nocontracts-header h3 {
        margin-top: 50px;
        display: block;
        font-size: 1.3em;
        color: #444444;
    }

/* =========================
   Technical error
   ========================= */
.techerror-header {
    background-color: white;
    width: 90%;
    text-align: center;
}

    .techerror-header h2 {
        display: block;
        font-weight: bold;
        font-size: 1.5em;
    }

    .techerror-header h3 {
        margin-top: 50px;
        display: block;
        font-size: 1.3em;
        color: #b22222;
    }

    .techerror-header .vinline {
        font-size: 1em;
        color: #666666;
    }

    .techerror-header .errorref {
        font-size: 0.8em;
        color: #666666;
    }

/* =========================
   Header
   ========================= */
.contracts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    font-weight: bold;
}

    .contracts-header h2 {
        margin: 0;
        font-weight: bold;
    }

.contracts-header-right {
    display: block;
    text-align: right;
    font-size: 1rem;
}

.contracts-vin {
    text-align: right;
    font-size: 1rem;
}

/* =========================
   Status row
   ========================= */
.contract-status-row {
    text-align: right;
}

/* =========================
   Status badge
   ========================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: right;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    background-color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .status-badge.status-green {
        color: var(--active-green);
    }

    .status-badge.status-red {
        color: var(--expired-red);
    }

    .status-badge.status-gray {
        color: var(--inactive-gray);
    }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* =========================
   Contract section
   ========================= */

.contract-section {
    margin-top: 40px;
}

    .contract-section h2 {
        margin-bottom: 50px;
        font-weight: bold;
    }

/* =========================
   Sections
   ========================= */

.section-contact,
.section-dealer {
    margin-top: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

.section h3 {
    letter-spacing: 0.3px;
    font-weight: bold;
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

/* =========================
   Grid
   ========================= */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.block {
    background-color: white;
    padding: 12px;
    border-radius: 6px;
}

.block-nobg {
    background-color: transparent;
    padding: 12px;
    border-radius: 6px;
}

.label {
    font-weight: bold;
    color: #555;
    font-size: 0.85rem;
}

.value {
    color: #000;
    margin-top: 4px;
}

/* =========================
   Options block
   ========================= */

.options-empty {
    color: #aaa;
    font-style: italic;
}

/* =========================
   Errors & loading
   ========================= */

.error {
    color: #c0392b;
    font-weight: bold;
}

.loading {
    font-style: italic;
}
