:root {

    --primary: #0b3b5c;
    --primary-dark: #062b43;

    --accent: #f5a623;

    --success: #159765;
    --success-dark: #10754e;

    --danger: #dc3545;

    --bg: #f4f7f9;
    --white: #ffffff;

    --text: #1d2935;
    --muted: #718096;

    --border: #dce4ea;

    --radius: 14px;

    --shadow:
        0 8px 30px rgba(20, 45, 65, .07);
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    font-family:
        Arial,
        Tahoma,
        sans-serif;

    background: var(--bg);

    color: var(--text);

    line-height: 1.7;
}


a {
    text-decoration: none;
}


button,
input,
select,
textarea {
    font-family: inherit;
}


.container {

    width: min(
        1150px,
        calc(100% - 30px)
    );

    margin: auto;
}


/* HEADER */

.site-header {

    background: white;

    border-bottom:
        1px solid var(--border);
}


.dark-header {

    background:
        var(--primary);

    color: white;
}


.header-inner {

    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--primary);

    font-size: 22px;

    font-weight: 800;
}


.white-logo {
    color: white;
}


.logo-box {

    width: 44px;

    height: 44px;

    border-radius: 10px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: var(--primary);

    color: white;

    font-weight: 900;
}


.white-logo .logo-box {

    background: white;

    color: var(--primary);
}


.header-actions {

    display: flex;

    align-items: center;

    gap: 18px;
}


.language-btn {

    border:
        1px solid var(--border);

    background: white;

    color: var(--primary);

    padding:
        8px 15px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;
}


.dark-header .language-btn {

    background: transparent;

    color: white;

    border-color:
        rgba(255,255,255,.4);
}


/* HERO */

.hero {

    margin:
        35px 0 22px;

    padding: 45px;

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    box-shadow:
        0 15px 35px rgba(11,59,92,.18);
}


.eyebrow {

    display: inline-block;

    color: var(--accent);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 7px;
}


.hero h1 {

    margin:
        0 0 10px;

    font-size:
        clamp(28px, 4vw, 42px);

    line-height: 1.2;
}


.hero p {

    max-width: 700px;

    opacity: .9;

    margin: 0;

    font-size: 17px;
}


/* CARDS */

.card {

    background: white;

    border:
        1px solid #edf1f4;

    border-radius:
        var(--radius);

    padding: 28px;

    margin-bottom: 20px;

    box-shadow:
        var(--shadow);
}


.section-header {

    display: flex;

    gap: 14px;

    align-items: flex-start;

    margin-bottom: 25px;
}


.section-number {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:
        #edf5f9;

    color: var(--primary);

    font-weight: 900;
}


.section-header h2 {

    margin: 0;

    color: var(--primary);

    font-size: 21px;
}


.section-header p {

    margin: 2px 0 0;

    color: var(--muted);

    font-size: 13px;
}


/* FORM */

.form-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


.form-group {

    margin-bottom: 4px;
}


.form-group.full {

    grid-column:
        1 / -1;
}


label {

    display: block;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 7px;
}


label b {

    color: var(--danger);

    margin-right: 3px;
}


input,
select,
textarea {

    width: 100%;

    border:
        1px solid var(--border);

    border-radius: 9px;

    padding:
        12px 13px;

    background: white;

    color: var(--text);

    outline: none;

    transition: .2s;

    font-size: 14px;
}


input:focus,
select:focus,
textarea:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(11,59,92,.08);
}


textarea {

    min-height: 110px;

    resize: vertical;
}


/* PARTS */

.part-row {

    position: relative;

    display: grid;

    grid-template-columns:
        38px 2fr 1.4fr .7fr 1.3fr 35px;

    gap: 10px;

    align-items: end;

    padding:
        20px 0;

    border-bottom:
        1px solid var(--border);
}


.part-number {

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: #eef5f9;

    color: var(--primary);

    font-weight: 800;

    margin-bottom: 5px;
}


.remove-part {

    width: 32px;

    height: 38px;

    border: 0;

    border-radius: 7px;

    background: #fff1f2;

    color: var(--danger);

    font-size: 20px;

    cursor: pointer;
}


/* BUTTONS */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border: 0;

    border-radius: 9px;

    padding:
        12px 20px;

    cursor: pointer;

    font-weight: 700;

    transition: .2s;
}


.btn-primary {

    background:
        var(--primary);

    color: white;
}


.btn-primary:hover {

    background:
        var(--primary-dark);
}


.btn-success {

    background:
        var(--success);

    color: white;
}


.btn-success:hover {

    background:
        var(--success-dark);
}


.btn-outline {

    background: white;

    color: var(--primary);

    border:
        1px solid var(--border);

    margin-top: 18px;
}


.submit-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    background: white;

    border-radius:
        var(--radius);

    padding: 25px;

    margin-bottom: 40px;

    box-shadow:
        var(--shadow);
}


.submit-card p,
.supplier-submit p {

    margin: 2px 0 0;

    color: var(--muted);

    font-size: 13px;
}


/* SUPPLIER */

.supplier-title {

    margin:
        35px 0 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}


.supplier-title h1 {

    margin:
        3px 0;

    color: var(--primary);
}


.deadline-box {

    background:
        #fff5e5;

    color:
        #9b5a00;

    padding:
        15px 22px;

    border-radius: 10px;

    text-align: center;
}


.deadline-box span {

    display: block;

    font-size: 12px;
}


.deadline-box strong {

    font-size: 20px;
}


.vehicle-summary {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 12px;
}


.vehicle-summary > div {

    padding: 15px;

    border-radius: 9px;

    background: #f7f9fa;

    border:
        1px solid var(--border);
}


.vehicle-summary small {

    display: block;

    color: var(--muted);

    font-size: 11px;
}


.vehicle-summary strong {

    display: block;

    margin-top: 3px;
}


.supplier-part {

    padding:
        22px 0;

    border-bottom:
        1px solid var(--border);
}


.supplier-part:last-child {

    border-bottom: 0;
}


.supplier-part-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 15px;
}


.part-index {

    display: inline-flex;

    background:
        var(--primary);

    color: white;

    border-radius: 6px;

    padding:
        2px 8px;

    margin-left: 8px;

    font-size: 12px;
}


.quantity-badge {

    background:
        #f1f5f7;

    padding:
        5px 10px;

    border-radius: 7px;

    color: var(--muted);

    font-size: 12px;
}


.customer-request-box {

    background:
        #eef5f9;

    border-right:
        4px solid var(--primary);

    padding: 15px;

    border-radius: 8px;

    margin-bottom: 20px;
}


html[dir="ltr"] .customer-request-box {

    border-right: 0;

    border-left:
        4px solid var(--primary);
}


.customer-request-box span,
.customer-request-box small {

    display: block;

    color: var(--muted);

    font-size: 11px;
}


.customer-request-box strong {

    display: block;
}


.price-input {

    display: flex;

    align-items: center;
}


.price-input input {

    border-radius:
        9px 0 0 9px;
}


html[dir="rtl"] .price-input input {

    border-radius:
        0 9px 9px 0;
}


.price-input span {

    padding:
        12px;

    background:
        #f1f5f7;

    border:
        1px solid var(--border);

    border-right: 0;

    border-radius:
        9px 0 0 9px;

    font-size: 12px;
}


html[dir="rtl"] .price-input span {

    border-right:
        1px solid var(--border);

    border-left: 0;

    border-radius:
        0 9px 9px 0;
}


.availability-section {

    margin:
        20px 0;
}


.availability-options {

    display: flex;

    gap: 10px;
}


.availability-option {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 12px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    cursor: pointer;
}


.availability-option input {

    width: auto;
}


.available {

    color:
        var(--success);
}


.unavailable {

    color:
        var(--danger);
}


.supplier-submit {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 30px;

    padding-top: 25px;

    border-top:
        1px solid var(--border);
}


/* DASHBOARD */

.dashboard {

    padding:
        35px 0 60px;
}


.dashboard-title {

    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 25px;
}


.dashboard-title h1 {

    margin: 0;

    color: var(--primary);
}


.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 20px;
}


.stat-card {

    background: white;

    padding: 20px;

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);

    display: flex;

    align-items: center;

    gap: 15px;
}


.stat-card span {

    display: block;

    color: var(--muted);

    font-size: 12px;
}


.stat-card strong {

    display: block;

    font-size: 26px;

    color: var(--primary);
}


.stat-icon {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    font-weight: bold;

    font-size: 20px;
}


.stat-icon.blue {
    background: #e9f3f9;
    color: #0b6a9c;
}


.stat-icon.orange {
    background: #fff3df;
    color: #d27a00;
}


.stat-icon.green {
    background: #e8f7f0;
    color: #16805a;
}


.stat-icon.purple {
    background: #f2ecff;
    color: #7441bd;
}


.table-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}


.table-header h2 {

    margin: 0;

    color: var(--primary);
}


.table-header p {

    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


.table-wrapper {

    overflow-x: auto;
}


table {

    width: 100%;

    border-collapse: collapse;
}


th {

    background:
        #f5f8fa;

    color:
        var(--primary);

    padding:
        13px;

    text-align: start;

    font-size: 12px;
}


td {

    padding:
        15px 13px;

    border-bottom:
        1px solid var(--border);

    font-size: 13px;
}


.status-badge {

    padding:
        5px 9px;

    border-radius: 20px;

    font-size: 11px;
}


.status-badge.pending {

    background:
        #fff4df;

    color:
        #a56100;
}


.table-action {

    color:
        var(--primary);

    font-weight: bold;
}


.comparison-box {

    border:
        1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;
}


.comparison-item {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    align-items: center;

    padding:
        15px;

    border-bottom:
        1px solid var(--border);
}


.comparison-item:last-child {

    border-bottom: 0;
}


.comparison-item span {

    display: block;

    color: var(--muted);

    font-size: 12px;
}


.comparison-price {

    font-weight: bold;

    color:
        var(--primary);
}


.best {

    background:
        #f0faf6;
}


.best-badge {

    color:
        var(--success);

    font-weight: bold;
}


.available-badge {

    color:
        var(--success);

    font-size: 12px;
}


.automatic-result {

    margin-top: 20px;

    padding: 20px;

    background:
        #eef7ff;

    border:
        1px solid #d5e9f5;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.automatic-result span {

    display: block;

    color: var(--muted);

    font-size: 12px;
}


.automatic-result strong {

    display: block;

    color: var(--primary);
}


/* QUOTATION */

.quotation-actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding:
        25px 0;
}


.quotation {

    background: white;

    padding: 45px;

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);

    margin-bottom: 50px;
}


.quotation-top {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 25px;

    border-bottom:
        2px solid var(--primary);
}


.quotation-logo {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 22px;

    color: var(--primary);
}


.quotation-top p {

    color: var(--muted);

    margin: 5px 0 0;
}


.quotation-number {

    text-align: left;
}


html[dir="rtl"] .quotation-number {

    text-align: right;
}


.quotation-number span,
.quotation-number small {

    display: block;

    color: var(--muted);

    font-size: 12px;
}


.quotation-number strong {

    display: block;

    font-size: 18px;

    color: var(--primary);
}


.quotation-customer {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    padding:
        25px 0;
}


.quotation-customer > div {

    padding:
        15px;

    background:
        #f7f9fa;

    border-radius: 8px;
}


.quotation-customer span {

    display: block;

    color: var(--muted);

    font-size: 11px;
}


.quotation-customer strong {

    display: block;
}


.quote-table-wrapper {

    overflow-x: auto;
}


.quote-table th {

    background:
        var(--primary);

    color: white;
}


.quote-table td {

    padding:
        16px 12px;
}


.quote-table td small {

    display: block;

    color: var(--muted);

    font-size: 11px;
}


.quote-summary {

    width:
        min(100%, 430px);

    margin-top: 25px;

    margin-right: 0;

    margin-left: auto;
}


html[dir="rtl"] .quote-summary {

    margin-left: 0;

    margin-right: auto;
}


.quote-summary > div {

    display: flex;

    justify-content: space-between;

    padding:
        10px;

    border-bottom:
        1px solid var(--border);
}


.quote-summary span {

    color: var(--muted);

    font-size: 13px;
}


.grand-total {

    background:
        var(--primary);

    color: white;

    border-radius: 8px;

    margin-top: 8px;
}


.grand-total span {

    color: white;
}


.grand-total strong {

    font-size: 20px;
}


.quotation-notes {

    margin-top: 35px;

    padding:
        20px;

    background:
        #f7f9fa;

    border-radius: 10px;
}


.quotation-notes h3 {

    color: var(--primary);

    margin-top: 0;
}


.quotation-notes li {

    color: var(--muted);

    font-size: 13px;

    margin-bottom: 5px;
}


.quote-footer {

    margin-top: 35px;

    padding-top: 20px;

    border-top:
        1px solid var(--border);

    display: flex;

    justify-content: space-between;

    color: var(--muted);

    font-size: 13px;
}


.quote-footer strong {

    color: var(--primary);
}


/* MOBILE */

@media(max-width: 900px) {

    .form-grid {

        grid-template-columns:
            1fr;
    }


    .form-group.full {

        grid-column: auto;
    }


    .part-row {

        grid-template-columns:
            35px 1fr;
    }


    .part-row .form-group {

        grid-column:
            2;
    }


    .part-row .remove-part {

        position: absolute;

        top: 15px;

        left: 0;
    }


    html[dir="ltr"]
    .part-row .remove-part {

        left: auto;

        right: 0;
    }


    .vehicle-summary {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .quotation-customer {

        grid-template-columns:
            1fr;
    }

}


@media(max-width: 600px) {

    .container {

        width:
            min(
                100% - 20px,
                1150px
            );
    }


    .hero {

        padding: 28px 22px;
    }


    .card {

        padding: 20px;
    }


    .submit-card,
    .supplier-submit,
    .automatic-result,
    .supplier-title {

        flex-direction: column;

        align-items: stretch;
    }


    .stats-grid {

        grid-template-columns:
            1fr;
    }


    .vehicle-summary {

        grid-template-columns:
            1fr;
    }


    .quotation {

        padding: 25px 18px;
    }


    .quotation-top {

        flex-direction: column;
    }


    .quotation-number {

        text-align: start;
    }


    html[dir="rtl"]
    .quotation-number {

        text-align: right;
    }


    .availability-options {

        flex-direction: column;
    }

}


/* PRINT */

@media print {

    .site-header,
    .quotation-actions {

        display: none !important;
    }


    body {

        background: white;
    }


    .quotation {

        box-shadow: none;

        margin: 0;

        padding: 0;
    }

}
