/* NEW STYLE */

html {
    font-size: 14px;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.apr-navbar {
    min-height: 68px;
    background: var(--apr-brand);
    border-bottom: 1px solid #4A5365;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #DEE2E6;
    padding: 2px 0px;
}

.apr-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #DEE2E6 !important;
    text-decoration: none;
}

    .apr-brand:hover {
        color: #212529 !important;
    }

.apr-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.apr-navbar .nav-link {
    position: relative;
    margin: 0 4px;
    padding: 22px 14px !important;
    color: #DEE2E6 !important;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .apr-navbar .nav-link:hover {
        color: #111827 !important;
        background-color: #DEE2E6C0;
    }

    .apr-navbar .nav-link.active {
        color: #111827 !important;
        font-weight: 600;
    }

.navbar-toggler {
    cursor: pointer;
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    background-color: #64748B;
    color: #e9ecef;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

    .navbar-toggler:hover {
        background-color: #7C8DA6;
    }

.nav-link-test {
    display: flex;
    align-items: center;
    gap: 7px;
}

.test-icon {
    font-size: 0.9rem;
}

.apr-main {
    flex: 1;
    padding-top: 10px;
    padding-bottom: 10px;
}

.apr-footer {
    padding: 12px 0px;
    background: var(--apr-brand);
    border-top: 1px solid #4A5365;
    color: #DEE2E6;
    font-size: 0.85rem;
}


    .apr-footer strong {
        color: #DEE2E6;
    }

.footer-version {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-separator {
    color: #DEE2E6;
}

@media (max-width: 991px) {

    .apr-navbar .nav-link {
        padding: 12px 10px !important;
        margin: 2px 0;
    }

    .apr-navbar .navbar-collapse {
        padding: 10px 0;
    }

    .apr-brand span {
        font-size: 0.95rem;
    }

    .apr-main {
        padding-top: 10px;
    }
}

.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #dee2e6;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #adb5bd;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    }


/* ---- report buttons ---- */
    .quote-menu button {
        border: 1px solid var(--apr-brand);
        background: #ffffff;
        color: var(--apr-brand);
        padding: 9px 16px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

        .quote-menu button.primary {
            background: var(--apr-brand);
            color: #fff;
        }

        .quote-menu button.active {
            background: var(--apr-brand-rev);
        }

        .quote-menu button:hover {
            background: #394173;
        }

        .quote-menu button.accent {
            background: #C3D023;
            border-color: #a4ae1a;
            color: var(--apr-brand);
        }

    .quote-menu .hint {
        color: #6b7280;
        margin-left: auto;
    }

/* ---- sheet ---- */
/*.quote-partial .sheet {
        max-width: 800px;
        margin: 0 auto;
        background: #ffffff;
        border: 1px solid #d9dde3;
        border-radius: 8px;
        overflow: hidden;
    }

    .quote-partial .sheet-inner {
        padding: 0 0 28px 0;
    }

    .quote-partial [contenteditable="true"] {
        outline: none;
        border-radius: 3px;
    }

        .quote-partial [contenteditable="true"]:hover {
            background: rgba(195, 208, 35, 0.18);
        }

        .quote-partial [contenteditable="true"]:focus {
            background: rgba(195, 208, 35, 0.25);
            box-shadow: 0 0 0 2px #a4ae1a;
        }*/

/* ---- header ---- */
/*.quote-partial .header {
        background: #0B1E47;
        display: flex;
        align-items: center;
        gap: 30px;
        padding: 0px 30px;
        position: relative;
        overflow: hidden;
    }

        .quote-partial .header::after {
            content: "";
            position: absolute;
            right: -40px;
            top: -60px;
            width: 220px;
            height: 220px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
            transform: rotate(20deg);
        }

        .quote-partial .header img {
            width: 96px;
            height: 96px;
            display: block;
            border-radius: 6px;
            flex-shrink: 0;
        }

        .quote-partial .header .brand-txt {
            position: relative;
            z-index: 1;
        }

    .quote-partial .brand-name {
        color: #fff;
        font-size: 24px;
        font-weight: 700;
        letter-spacing: .3px;
    }

    .quote-partial .brand-sub {
        color: #C3D023;
        font-size: 14px;
        font-weight: 600;
        margin-top: 3px;
        letter-spacing: .3px;
    }*/

/* ---- route / title bar ---- */
/*.quote-partial .route-bar {
        background: #f4f5f7;
        border-bottom: 2px solid #0B1E47;
        padding: 12px 28px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .quote-partial .route {
        font-size: 14.5px;
        font-weight: 700;
        color: #0B1E47;
    }

        .quote-partial .route .arrow {
            color: #a4ae1a;
            font-weight: 700;
            margin: 0 8px;
        }

    .quote-partial select.type-select {
        font-size: 12.5px;
        font-weight: 700;
        border: 1px solid #0B1E47;
        border-radius: 5px;
        padding: 5px 8px;
        background: #0B1E47;
        color: #fff;
    }

    .quote-partial .quote-no {
        font-size: 11.5px;
        color: #6b7280;
        text-align: right;
    }

        .quote-partial .quote-no b {
            color: #0B1E47;
        }

    .quote-partial .content {
        padding: 0 28px;
    }*/

/* ---- field group tables ---- */
/*.quote-partial .fgroup {
        margin-top: 5px;
    }

    .quote-partial table.fgrid {
        width: 100%;
        border-collapse: collapse;
    }

        .quote-partial table.fgrid th {
            background: #0B1E47;
            color: #fff;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .4px;
            font-weight: 700;
            text-align: left;
            padding: 1px 5px;
            border-right: 1px solid rgba(255, 255, 255, 0.15);
            width: 25%;
        }

            .quote-partial table.fgrid th:last-child {
                border-right: none;
            }

        .quote-partial table.fgrid td {
            background: #fafbfc;
            font-size: 10px;
            font-weight: 600;
            color: #1f2937;
            padding: 1px 5px;
            border: 1px solid #d9dde3;
            border-top: none;
        }

    .quote-partial .section-label {
        background: #0B1E47;
        color: #fff;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .5px;
        font-weight: 700;
        padding: 1px 5px;
        margin-top: 5px;
    }

    .quote-partial .addr-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background: #d9dde3;
        border: 1px solid #d9dde3;
    }

        .quote-partial .addr-grid > div {
            background: #fafbfc;
            min-height: 56px;
            padding: 1px 5px;
            font-size: 10px;
        }*/

/* ---- rates table ---- */
/*.quote-partial table.rates {
        width: 100%;
        border-collapse: collapse;
    }

        .quote-partial table.rates th:last-child,
        .quote-partial table.rates td:last-child {
            width: 1%;
        }

        .quote-partial table.rates thead th {
            text-align: left;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .4px;
            color: #fff;
            background: #0B1E47;
            padding: 1px 5px;
            font-weight: 700;
        }

        .quote-partial table.rates td {
            padding: 1px 5px;
            border-bottom: 1px solid #d9dde3;
            vertical-align: middle;
            max-width: 0;
            overflow-wrap: break-word;
        }

            .quote-partial table.rates td.num {
                text-align: right;
            }

        .quote-partial table.rates input[type="text"],
        .quote-partial table.rates input[type="number"] {
            border: 1px solid transparent;
            background: transparent;
            font-size: 12.5px;
            font-family: inherit;
            width: 100%;
            padding: 4px 5px;
            border-radius: 4px;
            color: #1f2937;
        }

        .quote-partial table.rates input[type="checkbox"] {
            color-scheme: light;
        }

        .quote-partial table.rates input:hover,
        .quote-partial table.rates select:hover {
            background: rgba(195, 208, 35, 0.18);
        }

        .quote-partial table.rates input:focus,
        .quote-partial table.rates select:focus {
            background: rgba(195, 208, 35, 0.25);
            outline: 1px solid #a4ae1a;
        }

        .quote-partial table.rates select {
            border: 1px solid transparent;
            background: transparent;
            font-size: 12.5px;
            font-family: inherit;
            padding: 4px 5px;
            border-radius: 4px;
            color: #1f2937;
        }

        .quote-partial table.rates .iva {
            font-size: 8px;
            color: #6b7280;
            display: flex;
            align-items: center;
            gap: 0px;
            white-space: nowrap;
            user-select: none;
        }

        .quote-partial table.rates .rm {
            background: none;
            border: none;
            color: #b91c1c;
            cursor: pointer;
            font-size: 16px;
            padding: 0px 0px;
            width: 100%;
            height: 100%;
        }

    .quote-partial .add-row {
        background: none;
        border: 1px dashed #0B1E47;
        color: #0B1E47;
        font-size: 12px;
        font-weight: 600;
        padding: 7px 12px;
        border-radius: 6px;
        cursor: pointer;
        margin: 10px 0 4px 0;
    }*/

/* ---- total ---- */
/*.quote-partial .total-row {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        align-items: center;
        padding: 12px 14px;
        background: #f8fadb;
        border: 1.5px solid #a4ae1a;
        border-radius: 6px;
        margin: 16px 0 6px 0;
        font-weight: 700;
    }

        .quote-partial .total-row .lbl {
            font-size: 11.5px;
            font-weight: 700;
            color: #0B1E47;
            text-transform: uppercase;
            letter-spacing: .4px;
        }

        .quote-partial .total-row .val {
            font-size: 18px;
            color: #0B1E47;
        }*/

/* ---- notes ---- */
/*.quote-partial .notes {
        font-size: 11.5px;
        color: #6b7280;
        line-height: 1.7;
        padding: 14px 16px;
        background: #eef0f3;
        border: 1px solid #d9dde3;
        border-radius: 6px;
        margin: 18px 0;
    }

        .quote-partial .notes ul {
            margin: 6px 0 0 0;
            padding-left: 18px;
        }

    .quote-partial .stc-line {
        font-size: 11.5px;
        color: #6b7280;
        margin-bottom: 18px;
    }

        .quote-partial .stc-line a {
            color: #0B1E47;
            font-weight: 600;
        }

    .quote-partial .sign {
        display: flex;
        justify-content: space-between;
        border-top: 2px solid #0B1E47;
        padding-top: 14px;
        font-size: 12.5px;
        flex-wrap: wrap;
        gap: 10px;
    }

        .quote-partial .sign .name {
            font-weight: 700;
            font-size: 14px;
            color: #0B1E47;
        }

        .quote-partial .sign .role {
            color: #a4ae1a;
            font-weight: 700;
        }

        .quote-partial .sign .co {
            color: #6b7280;
        }*/



@media (max-width: 480px) {
    .quote-partial .header {
        padding: 14px 16px;
    }

    .quote-partial .content {
        padding: 0 16px;
    }

    .quote-partial table.fgrid th,
    .quote-partial table.fgrid td {
        font-size: 10px;
        padding: 1px 5px;
    }
}

/* PRINT */

@media print {
    body:has(#sheet) *:not(#sheet, #sheet *) {
        visibility: hidden !important;
    }

    #sheet,
    #sheet * {
        visibility: visible !important;
    }

    #sheet {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 auto !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #sheet .unprint,
    #sheet .unprint * {
        visibility: hidden !important;
    }
}

.text-end {
    width: 125px;
}


:root {
    --adm-ink: #1f2733;
    --adm-muted: #6b7686;
    --adm-line: #DEE2E6;
    --adm-accent: #2f5d8a;
    --adm-accent-soft: #e8eff6;
    --adm-ok: #2f7d5e;
    --adm-off: #9aa2ad;
    --apr-brand-light: #0B1C48;
    --apr-brand-dark: #173E76;
    --apr-brand: var(--apr-brand-light);
    --apr-brand-rev: var(--apr-brand-dark);
    --apr-selected-light: #C0C0C080;
    --apr-selected-dark: #40404080;
    --apr-selected: var(--apr-selected-light);
    --apr-selected-rev: var(--apr-selected-dark);
}

[data-bs-theme="dark"] {
    --apr-brand: var(--apr-brand-dark);
    --apr-brand-rev: var(--apr-brand-light);
    --apr-selected: var(--apr-selected-dark);
    --apr-selected-rev: var(--apr-selected-light);
}
