﻿/* ============================================================
   VIDARA MARKA PALETİ
   Kaynak: Vidara Corporate Identity Guidelines (2024-03), s.20
     primary #046A38 (Pantone 349 C)  · accent #A4D65E (Pantone 367 C)
     slate   #4A5A58 (Pantone 5535 C) · mist   #D1CFD7 (Pantone 2330 C)

   main.css derlenmiş halde commit'lendiği ve paletin tamamı :root
   custom property'leri üzerinden aktığı için, burada :root'u ezmek
   sass'ı yeniden derlemeden tüm utility ve bileşenleri yeşile çevirir.
   Kaynak tanım base/_variables.scss içinde de güncellendi; sass tekrar
   derlenirse aynı değerler üretilir.
   ============================================================ */
:root {
    --clr-primary: #046A38;
    --clr-primary-50: #E8F3ED;
    --clr-primary-100: #C6E2D2;
    --clr-primary-200: #8FC7A9;
    --clr-primary-300: #4FA87B;
    --clr-primary-400: #178A54;
    --clr-primary-500: #046A38;
    --clr-primary-600: #03592F;
    --clr-primary-700: #034A27;
    --clr-primary-800: #023B1F;
    --clr-primary-900: #012414;

    --clr-accent: #A4D65E;
    --clr-accent-50: #F4FAEA;
    --clr-accent-100: #E7F5D3;
    --clr-accent-200: #D2ECAE;
    --clr-accent-300: #BEE288;
    --clr-accent-400: #B1DC73;
    --clr-accent-500: #A4D65E;
    --clr-accent-600: #8ABF43;
    --clr-accent-700: #6C9834;
    --clr-accent-800: #4E6E26;
    --clr-accent-900: #324718;

    --clr-slate: #4A5A58;
    --clr-mist: #D1CFD7;

    --base-link-color: #034A27;
    --base-link-hover-color: #046A38;
    --input-focus-border-color: #046A38;
    --input-focus-shadow-color: #046A38;
}

/* accent / slate / mist için utility karşılıkları (main.css bunları
   üretmiyor; sass yeniden derlenene kadar elle tanımlı) */
.text-accent-500 { color: var(--clr-accent-500); }
.text-accent-700 { color: var(--clr-accent-700); }
.text-slate      { color: var(--clr-slate); }
.bg-accent-50    { background-color: var(--clr-accent-50); }
.bg-accent-100   { background-color: var(--clr-accent-100); }
.bg-accent-500   { background-color: var(--clr-accent-500); }
.bg-slate        { background-color: var(--clr-slate); }
.bg-mist         { background-color: var(--clr-mist); }
.border-accent-500 { border-color: var(--clr-accent-500); }
.border-mist       { border-color: var(--clr-mist); }

@media (min-width: 1280px) {
    .cc-toast-container:has(.cc-toast-full-width) {
        width: 50%;
        transform: translateX(-50%);
        left: 50%;
    }
}

.cc-table.cc-table-fixed {
    white-space: normal;
}

.c-pointer {
    cursor: pointer;
}

@media (min-width: 1280px) and (max-width: 1920px) {
    :root {
        --scale: .9
    }
}

.ceca-table-title-color {

    background: #046A38;
    color: white;
}

/* ============================================================
   CECA CUSTOM — Ortak Bileşen Stilleri
   Layout: _Layout.cshtml → <link rel="stylesheet" asp-append-version="true" href="~/assets/css/ceca-custom.css" />
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   1. CARD
══════════════════════════════════════════════════════════════ */
.cc-custom-page-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid #E9EAEB;
    box-shadow: 0 4px 24px rgba(19, 33, 106, 0.07);
    overflow: hidden;
}

/* ── Card Header ── */
.cc-custom-page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.75rem;
    border-bottom: 1px solid #E9EAEB;
    background: #fff;
    gap: 1rem;
    flex-wrap: wrap;
}

.cc-custom-page-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.cc-custom-page-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    background: var(--cc-custom-card-icon-bg, #046A38);
}

.cc-custom-page-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #181D27;
}

.cc-custom-page-card-subtitle {
    font-size: 0.73rem;
    color: #717680;
    margin-top: 0.1rem;
}

.cc-custom-page-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ── Card Body Padding ── */
.cc-custom-page-card-body {
    padding: 1.25rem 1.75rem;
}


/* ══════════════════════════════════════════════════════════════
   2. BUTTONS
══════════════════════════════════════════════════════════════ */
.cc-custom-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

    .cc-custom-action-btn:hover {
        opacity: 0.88;
        transform: translateY(-1px);
    }

.cc-custom-action-btn-pdf {
    background: #F04438;
    color: #fff;
}

.cc-custom-action-btn-excel {
    background: #17B26A;
    color: #fff;
}

.cc-custom-action-btn-print {
    background: #2970FF;
    color: #fff;
}

.cc-custom-action-btn-secondary {
    background: transparent;
    color: #535862;
    border: 1px solid #E9EAEB;
}

.cc-custom-action-btn-icon {
    width: 1.875rem;
    height: 1.875rem;
    padding: 0;
    border-radius: 0.4rem;
    background: transparent;
    border: 1px solid #E9EAEB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #717680;
    transition: background 0.15s, color 0.15s;
    font-size: 0.7rem;
}

    .cc-custom-action-btn-icon:hover {
        background: #E9EAEB;
        color: #252B37;
    }


/* ══════════════════════════════════════════════════════════════
   3. INFO BAR (Firma / Tarih çubuğu)
══════════════════════════════════════════════════════════════ */
.cc-custom-info-bar {
    margin: 1.25rem 1.75rem 0;
    border: 1.5px solid #046A38;
    border-radius: 0.875rem;
    padding: 1rem 1.5rem 1rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

    .cc-custom-info-bar::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.625rem;
        bottom: 0.625rem;
        width: 4px;
        background: #046A38;
        border-radius: 0 4px 4px 0;
    }

.cc-custom-info-bar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #181D27;
}

.cc-custom-info-bar-sub {
    font-size: 0.75rem;
    color: #717680;
    margin-top: 0.125rem;
}

.cc-custom-info-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}


/* ══════════════════════════════════════════════════════════════
   4. BADGES & CHIPS
══════════════════════════════════════════════════════════════ */
.cc-custom-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1.5px solid transparent;
}

.cc-custom-badge-success {
    color: #17B26A;
    border-color: #17B26A;
    background: #DCFAE6;
}

.cc-custom-badge-warning {
    color: #DC6803;
    border-color: #F79009;
    background: #FEF0C7;
}

.cc-custom-badge-danger {
    color: #F04438;
    border-color: #F04438;
    background: #FEE4E2;
}

.cc-custom-badge-info {
    color: #2970FF;
    border-color: #2970FF;
    background: #D1E9FF;
}

.cc-custom-badge-primary {
    color: #046A38;
    border-color: #046A38;
    background: #E8F3ED;
}

.cc-custom-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #E8F3ED;
    color: #046A38;
    border-radius: 2rem;
    padding: 0.2rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 600;
}

.cc-custom-kur-tag {
    background: #E8F3ED;
    color: #046A38;
    border-radius: 0.4rem;
    padding: 0.2rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 600;
}


/* ══════════════════════════════════════════════════════════════
   5. SECTION LABEL (Bölüm başlığı ayırıcı)
══════════════════════════════════════════════════════════════ */
.cc-custom-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #A4A7AE;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .cc-custom-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #E9EAEB;
    }


/* ══════════════════════════════════════════════════════════════
   6. RISK CARDS
══════════════════════════════════════════════════════════════ */
.cc-custom-risk-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1200px) {
    .cc-custom-risk-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .cc-custom-risk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cc-custom-risk-card {
    border: 1px solid #E9EAEB;
    border-radius: 0.875rem;
    padding: 1rem 1.125rem 0.875rem;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s;
}

    .cc-custom-risk-card:hover {
        box-shadow: 0 6px 20px rgba(19, 33, 106, 0.09);
        transform: translateY(-2px);
    }

    .cc-custom-risk-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--rc-color, #046A38);
        border-radius: 0.875rem 0.875rem 0 0;
    }

    .cc-custom-risk-card.rc-primary {
        --rc-color: #046A38;
    }

    .cc-custom-risk-card.rc-danger {
        --rc-color: #F04438;
    }

    .cc-custom-risk-card.rc-warning {
        --rc-color: #F79009;
    }

    .cc-custom-risk-card.rc-success {
        --rc-color: #17B26A;
    }

    .cc-custom-risk-card.rc-info {
        --rc-color: #2970FF;
    }

.cc-custom-risk-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    background: var(--ri-bg, #E8F3ED);
    color: var(--ri-clr, #046A38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-bottom: 0.625rem;
}

.cc-custom-risk-card.rc-danger .cc-custom-risk-icon {
    --ri-bg: #FEE4E2;
    --ri-clr: #F04438;
}

.cc-custom-risk-card.rc-warning .cc-custom-risk-icon {
    --ri-bg: #FEF0C7;
    --ri-clr: #DC6803;
}

.cc-custom-risk-card.rc-success .cc-custom-risk-icon {
    --ri-bg: #DCFAE6;
    --ri-clr: #17B26A;
}

.cc-custom-risk-card.rc-info .cc-custom-risk-icon {
    --ri-bg: #D1E9FF;
    --ri-clr: #2970FF;
}

.cc-custom-risk-label {
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #A4A7AE;
    margin-bottom: 0.3rem;
}

.cc-custom-risk-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #181D27;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

    .cc-custom-risk-value small {
        font-size: 0.68rem;
        font-weight: 500;
        color: #A4A7AE;
        letter-spacing: 0;
    }

.cc-custom-risk-card.rc-danger .cc-custom-risk-value {
    color: #F04438;
}

.cc-custom-risk-card.rc-warning .cc-custom-risk-value {
    color: #DC6803;
}

.cc-custom-risk-card.rc-success .cc-custom-risk-value {
    color: #17B26A;
}

.cc-custom-risk-sub {
    font-size: 0.66rem;
    color: #A4A7AE;
    margin-top: 0.25rem;
}


/* ══════════════════════════════════════════════════════════════
   7. BALANCE / ÖZET KARTLAR
══════════════════════════════════════════════════════════════ */
.cc-custom-balance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

@media (max-width: 767px) {
    .cc-custom-balance-grid {
        grid-template-columns: 1fr;
    }
}

.cc-custom-balance-item {
    background: #FAFAFA;
    border: 1px solid #E9EAEB;
    border-radius: 0.75rem;
    padding: 0.875rem 1.125rem;
}

.cc-custom-balance-currency {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #046A38;
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E9EAEB;
}

.cc-custom-cur-badge {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #E8F3ED;
    color: #046A38;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
}

.cc-custom-balance-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: 0.25rem 0;
    color: #717680;
}

    .cc-custom-balance-row + .cc-custom-balance-row {
        border-top: 1px dashed #E9EAEB;
    }

    .cc-custom-balance-row span:last-child {
        font-weight: 700;
        color: #252B37;
    }

.cc-custom-total-bar {
    background: linear-gradient(90deg, #046A38, #178A54);
    color: #fff;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .cc-custom-total-bar .cc-custom-total-label {
        font-size: 0.78rem;
        opacity: 0.75;
    }

    .cc-custom-total-bar .cc-custom-total-value {
        font-size: 1.375rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }


/* ══════════════════════════════════════════════════════════════
   8. TABLE SECTION
══════════════════════════════════════════════════════════════ */
.cc-custom-table-section {
    border: 1px solid #E9EAEB;
    border-radius: 0.875rem;
    overflow: hidden;
}

.cc-custom-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: #F2F9F5;
    border-bottom: 1px solid #E9EAEB;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cc-custom-table-header-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #181D27;
}

    .cc-custom-table-header-title span {
        font-weight: 400;
        color: #717680;
        font-size: 0.78rem;
    }

.cc-custom-table-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search */
.cc-custom-table-search {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #E9EAEB;
}

.cc-custom-search-wrap {
    position: relative;
}

    .cc-custom-search-wrap i {
        position: absolute;
        left: 0.875rem;
        top: 50%;
        transform: translateY(-50%);
        color: #A4A7AE;
        font-size: 0.8rem;
        pointer-events: none;
    }

.cc-custom-search-input {
    width: 100%;
    padding: 0.5625rem 0.875rem 0.5625rem 2.25rem;
    border: 1px solid #E9EAEB;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: #252B37;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    appearance: none;
}

    .cc-custom-search-input::placeholder {
        color: #A4A7AE;
    }

    .cc-custom-search-input:focus {
        border-color: #046A38;
        box-shadow: 0 0 0 3px rgba(19,33,106,0.08);
    }

/* Table */
.cc-custom-table-wrap {
    overflow-x: auto;
}

.cc-custom-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    min-width: 600px;
}

    .cc-custom-data-table thead th {
        padding: 0.625rem 0.875rem;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #717680;
        border-bottom: 2px solid #E9EAEB;
        background: #fff;
        white-space: nowrap;
        text-align: left;
    }

        .cc-custom-data-table thead th.text-right {
            text-align: right;
        }

        .cc-custom-data-table thead th.cc-custom-col-total {
            color: #046A38;
            border-left: 2px solid #E9EAEB;
            text-align: right;
        }

    .cc-custom-data-table tbody tr {
        border-bottom: 1px solid #F5F5F5;
        transition: background 0.12s;
    }

        .cc-custom-data-table tbody tr:last-child {
            border-bottom: none;
        }

        .cc-custom-data-table tbody tr:hover {
            background: #F2F9F5;
        }

    .cc-custom-data-table tbody td {
        padding: 0.7rem 0.875rem;
        color: #535862;
        white-space: nowrap;
        vertical-align: middle;
        font-variant-numeric: tabular-nums;
    }

        .cc-custom-data-table tbody td.text-right {
            text-align: right;
        }

        .cc-custom-data-table tbody td.cc-custom-col-name {
            font-weight: 600;
            color: #252B37;
        }

        .cc-custom-data-table tbody td.cc-custom-col-code {
            font-weight: 600;
            color: #046A38;
            font-size: 0.75rem;
        }

        .cc-custom-data-table tbody td.cc-custom-col-total {
            font-weight: 700;
            color: #046A38;
            border-left: 2px solid #E9EAEB;
            text-align: right;
        }

        .cc-custom-data-table tbody td.cc-custom-cell-zero {
            color: #D5D7DA;
            text-align: right;
        }

        .cc-custom-data-table tbody td.cc-custom-cell-val {
            color: #414651;
            font-weight: 500;
            text-align: right;
        }

        .cc-custom-data-table tbody td.cc-custom-cell-muted {
            color: #A4A7AE;
            font-size: 0.75rem;
        }

    .cc-custom-data-table tfoot tr {
        background: linear-gradient(90deg, #046A38, #03592F);
    }

    .cc-custom-data-table tfoot td {
        padding: 0.8rem 0.875rem;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        text-align: right;
    }

        .cc-custom-data-table tfoot td:first-child {
            text-align: left;
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .cc-custom-data-table tfoot td.cc-custom-col-total {
            border-left: 2px solid rgba(255,255,255,0.15);
        }

/* Miktar hücresi */
.cc-custom-qty strong {
    font-weight: 600;
    color: #252B37;
}

.cc-custom-qty span {
    font-size: 0.68rem;
    color: #A4A7AE;
    margin-left: 2px;
}

/* Progress bar */
.cc-custom-progress {
    margin-top: 4px;
    height: 3px;
    background: #E9EAEB;
    border-radius: 2px;
    overflow: hidden;
    width: 80px;
}

.cc-custom-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: #046A38;
}

    .cc-custom-progress-fill.full {
        background: #17B26A;
    }

    .cc-custom-progress-fill.partial {
        background: #F79009;
    }


/* ══════════════════════════════════════════════════════════════
   9. FOOTER NOTE
══════════════════════════════════════════════════════════════ */
.cc-custom-page-footer-note {
    padding: 0.625rem 1.75rem 1.25rem;
    text-align: right;
    font-size: 0.67rem;
    color: #A4A7AE;
}

    .cc-custom-page-footer-note span {
        margin: 0 0.375rem;
    }


/* ══════════════════════════════════════════════════════════════
   10. SPACING HELPERS (Kart içi boşluklar)
══════════════════════════════════════════════════════════════ */
.cc-custom-inner {
    padding: 1.25rem 1.75rem 0;
}

.cc-custom-inner-full {
    padding: 1.25rem 1.75rem;
}

.cc-custom-inner-bottom {
    padding: 0 1.75rem 1.25rem;
}

.cc-custom-gap-section {
    margin-top: 1.25rem;
}

.cc-custom-gap-section-sm {
    margin-top: 0.75rem;
}


/* ══════════════════════════════════════════════════════════════
   11. FILTER CARD — Aktif/Seçili Durum (EInvoices vb.)
══════════════════════════════════════════════════════════════ */
.einvoice-filter-card {
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    border: 2px solid transparent;
    position: relative;
    margin-top: 5px; /* hover translateY için üst boşluk */
}

.einvoice-filter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(19, 33, 106, 0.1);
}

.einvoice-filter-card--active {
    border-color: #046A38 !important;
    box-shadow: 0 0 0 3px rgba(19, 33, 106, 0.12), 0 6px 20px rgba(19, 33, 106, 0.1) !important;
    background: linear-gradient(135deg, #F2F9F5 0%, #fff 60%) !important;
}

.einvoice-filter-card--active-success {
    border-color: #17B26A !important;
    box-shadow: 0 0 0 3px rgba(23, 178, 106, 0.12), 0 6px 20px rgba(23, 178, 106, 0.1) !important;
    background: linear-gradient(135deg, #F0FDF6 0%, #fff 60%) !important;
}

.einvoice-filter-card--active-warning {
    border-color: #F79009 !important;
    box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.12), 0 6px 20px rgba(247, 144, 9, 0.1) !important;
    background: linear-gradient(135deg, #FFFBEB 0%, #fff 60%) !important;
}

.einvoice-filter-card--active-danger {
    border-color: #F04438 !important;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12), 0 6px 20px rgba(240, 68, 56, 0.1) !important;
    background: linear-gradient(135deg, #FFF1F0 0%, #fff 60%) !important;
}

/* Seçili kartın sağ üst köşesindeki işaret rozeti */
.einvoice-filter-card--active::after,
.einvoice-filter-card--active-success::after,
.einvoice-filter-card--active-warning::after,
.einvoice-filter-card--active-danger::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'FontAwesome';
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #046A38;
    color: #fff;
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.5rem;
    z-index: 10;
}

.einvoice-filter-card--active-success::after {
    background: #17B26A;
}

.einvoice-filter-card--active-warning::after {
    background: #F79009;
}

.einvoice-filter-card--active-danger::after {
    background: #F04438;
}

/* ============================================================
   oo- : Açık Siparişler — Gruplu Tablo (FiyatDovizCins → Stkkrt_Malad)
   ============================================================ */

.oo-currency-section {
    border: 2px solid #C6E2D2;
    border-top: 3px solid #046A38;
    border-radius: .625rem;
    background: #f9fafb;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(19,33,106,.07);
}

.oo-currency-header {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: .875rem;
    padding: .5rem .875rem;
    background: #E6F2EC;
    border-left: 4px solid #046A38;
    border-radius: .375rem;
}

.oo-currency-badge {
    background: #046A38;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 2rem;
    letter-spacing: .6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.oo-currency-label {
    font-size: .875rem;
    font-weight: 600;
    color: #046A38;
}

.oo-currency-total {
    font-size: .875rem;
    font-weight: 700;
    color: #046A38;
    background: #fff;
    border: 1px solid #C6E2D2;
    border-radius: .375rem;
    padding: .25rem .75rem;
}

.oo-product-table-wrap {
    background: #fff;
    border: 1px solid #E0EFE6;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.oo-product-header {
    background: #E9F4EE;
    border-bottom: 2px solid #C6E2D2;
    padding: .5rem 1rem;
    font-size: .8375rem;
    font-weight: 700;
    color: #046A38;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.oo-product-header i {
    color: #046A38;
    opacity: .45;
    font-size: .75rem;
}

.oo-grouped-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8125rem;
}

.oo-grouped-table thead th {
    background: #E9F4EE;
    color: #374151;
    font-weight: 600;
    font-size: .75rem;
    padding: .4rem .75rem;
    text-align: left;
    border-bottom: 2px solid #C6E2D2;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.oo-grouped-table thead th.r { text-align: right; }

.oo-grouped-table tbody td {
    padding: .4rem .75rem;
    border-bottom: 1px solid #F3F7F4;
    color: #4b5563;
    vertical-align: middle;
    font-size: .8125rem;
}

.oo-grouped-table tbody td.r {
    text-align: right;
    font-weight: 600;
    color: #1f2937;
}

.oo-grouped-table tbody tr:nth-child(even) { background: #F8FCFA; }
.oo-grouped-table tbody tr:hover { background: #EEF7F1; transition: background .12s; }

.oo-grouped-table tbody td small {
    font-size: .7rem;
    color: #A8C4B5;
    margin-left: 2px;
}

.oo-grouped-table tfoot td {
    background: #EEF7F1;
    color: #374151;
    font-weight: 700;
    padding: .45rem .75rem;
    border-top: 2px solid #C6E2D2;
    border-bottom: none;
    font-size: .8rem;
}

.oo-grouped-table tfoot td.r {
    text-align: right;
    color: #046A38;
}

.oo-grouped-table tfoot td small {
    font-size: .7rem;
    color: #9ca3af;
    margin-left: 2px;
}

.oo-date-late {
    color: #e53e3e !important;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   12. CHECKOUT — SATIŞ VE FİYAT SÖZLEŞMESİ CHECKBOX
══════════════════════════════════════════════════════════════ */

/* Sözleşme Checkbox Stilleri */
.agreement-checkbox {
background: linear-gradient(135deg, rgba(var(--clr-primary-500-rgb), 0.06) 0%, rgba(var(--clr-primary-500-rgb), 0.09) 100%);
    border: 2px solid var(--clr-primary-500);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.agreement-checkbox:hover {
    background: linear-gradient(135deg, rgba(var(--clr-primary-500-rgb), 0.09) 0%, rgba(var(--clr-primary-500-rgb), 0.12) 100%);
    border-color: var(--clr-primary-600);
  box-shadow: 0 4px 12px rgba(var(--clr-primary-500-rgb), 0.15);
}

.agreement-checkbox input:checked ~ .agreement-checkbox-marker {
    background: linear-gradient(135deg, var(--clr-primary-500) 0%, var(--clr-primary-600) 100%);
  border-color: var(--clr-primary-600);
}

.agreement-checkbox-marker {
    width: 24px;
    height: 24px;
    border: 2px solid var(--clr-primary-500);
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.agreement-checkbox input:checked ~ .agreement-checkbox-marker::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.agreement-label {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.agreement-label a {
    color: var(--clr-primary-500);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.agreement-label a:hover {
    color: var(--clr-primary-600);
    text-decoration: underline;
}


/* ============================================================
   CHKC — Çek Konsantrasyonu  (chkc- prefix)
   Views/Report/CheckConcentration.cshtml
   ============================================================ */

/* ── Uyarı Notu Şeridi ── */
.chkc-alert-strip {
    display: flex;
    align-items: center;
    gap: .625rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: .625rem;
    padding: .75rem 1.125rem;
    margin-bottom: 1.25rem;
    font-size: .8rem;
    font-weight: 600;
    color: #92400e;
}

/* ── Özet Kartlar ── */
.chkc-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .875rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
    .chkc-summary { grid-template-columns: 1fr; }
}

.chkc-summary-item {
    background: #fff;
    border: 1px solid #E2F0E8;
    border-radius: .75rem;
    padding: .875rem 1.125rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: transform .18s, box-shadow .18s;
}

.chkc-summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.chkc-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.chkc-summary-item:nth-child(1) .chkc-summary-icon { background: #DBEEE4; color: #046A38; }
.chkc-summary-item:nth-child(2) .chkc-summary-icon { background: #dcfae6; color: #16a34a; }
.chkc-summary-item:nth-child(3) .chkc-summary-icon { background: #fef0c7; color: #b45309; }

.chkc-summary-label {
    font-size: .72rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: .2rem;
}

.chkc-summary-value {
    font-size: .95rem;
    font-weight: 800;
    color: #046A38;
    font-variant-numeric: tabular-nums;
}

/* ── Yüzde Progress Hücresi ── */
.chkc-pct-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
}

.chkc-pct-bar {
    width: 60px;
    height: 6px;
    background: #e9eaeb;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.chkc-pct-fill {
    height: 100%;
    border-radius: 3px;
    background: #046A38;
    transition: width .3s;
}

.chkc-pct-text {
    font-size: .78rem;
    font-weight: 700;
    color: #046A38;
    white-space: nowrap;
}

/* ── text-center / text-right uc-table-card ek desteği ── */
.uc-table-card thead th.text-center { text-align: center; }
.uc-table-card tbody td.text-center { text-align: center; }

/* ── Alt Not ── */
.chkc-note {
    margin-top: .75rem;
    font-size: .78rem;
    color: #9ca3af;
    font-style: italic;
}

/* ============================================================
   UC — Vadesi Gelmemiş Çekler  (uc- prefix)
   Views/Report/UndueChecks.cshtml
   ============================================================ */

/* ── Özet Bilgi Şeridi ── */
.uc-summary-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    background: #F5FBF7;
    border: 1px solid #DBEEE4;
    border-left: 4px solid #046A38;
    border-radius: .75rem;
    padding: .875rem 1.25rem;
    margin-bottom: 1.5rem;
}

.uc-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .875rem;
    border-radius: 2rem;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.uc-summary-pill-primary {
    background: #DBEEE4;
    color: #046A38;
    border: 1px solid #C6E2D2;
}

.uc-summary-pill-success {
    background: #dcfae6;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.uc-summary-pill-warning {
    background: #fef0c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.uc-summary-pill i { font-size: .8rem; }

.uc-summary-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    margin-right: auto;
}

/* ── Döviz Grup Kartı ── */
.uc-table-card {
    background: #fff;
    border: 1px solid #DBEEE4;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(19,33,106,.06);
    margin-bottom: 1.25rem;
}

.uc-currency-header {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .7rem 1.125rem;
    background: linear-gradient(90deg, #046A38, #034A27);
}

.uc-currency-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    padding: .25rem .75rem;
    border-radius: 2rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.3);
}

.uc-currency-label {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
}

.uc-currency-total {
    margin-left: auto;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: .375rem;
    padding: .2rem .625rem;
    font-variant-numeric: tabular-nums;
}

/* ── Tablo ── */
.uc-table-scroll { overflow-x: auto; }

.uc-table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8125rem;
    min-width: 960px;
}

.uc-table-card thead th {
    background: #03592F;
    color: #fff;
    font-weight: 600;
    font-size: .73rem;
    padding: .5rem .75rem;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,.1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.uc-table-card thead th:last-child { border-right: none; }
.uc-table-card thead th.text-right { text-align: right; }

.uc-table-card tbody tr:nth-child(even) { background: #F5FBF7; }
.uc-table-card tbody tr:hover { background: #EEF7F1; transition: background .15s; }

.uc-table-card tbody td {
    padding: .45rem .75rem;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    color: #374151;
    font-size: .8125rem;
    vertical-align: middle;
}

.uc-table-card tbody td:last-child { border-right: none; }

.uc-table-card tbody td.text-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #111827;
}

.uc-td-date {
    white-space: nowrap;
    color: #6b7280;
}

.uc-badge-tip {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: .3rem;
    font-size: .73rem;
    font-weight: 600;
    background: #EEF7F1;
    color: #046A38;
    border: 1px solid #C6E2D2;
    white-space: nowrap;
}

.uc-tbl-footer td {
    background: #046A38 !important;
    color: #fff !important;
    font-weight: 700;
    padding: .6rem .75rem !important;
    border-bottom: none !important;
    font-size: .8125rem;
}

.uc-tbl-footer td.text-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   WPP — Haftalık Alımlar ve Ödemeler  (wpp- prefix)
   Views/Report/WeeklyPurchasePayment.cshtml
   ============================================================ */

/* ── Özet KPI Kartları ── */
.wpp-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .875rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .wpp-summary-grid { grid-template-columns: 1fr; }
}

.wpp-summary-card {
    border-radius: .875rem;
    padding: 1.125rem 1.375rem;
    display: flex;
    align-items: center;
    gap: .875rem;
    border: 1px solid transparent;
    transition: transform .18s, box-shadow .18s;
}

.wpp-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
}

.wpp-summary-card.wpp-card-sales   { background: #eff6ff; border-color: #bfdbfe; }
.wpp-summary-card.wpp-card-payment { background: #f0fdf4; border-color: #bbf7d0; }
.wpp-summary-card.wpp-card-diff    { background: #fff7ed; border-color: #fed7aa; }

.wpp-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: .625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.wpp-card-sales   .wpp-summary-icon { background: #046A38; color: #fff; }
.wpp-card-payment .wpp-summary-icon { background: #16a34a; color: #fff; }
.wpp-card-diff    .wpp-summary-icon { background: #ea580c; color: #fff; }

.wpp-summary-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    margin-bottom: .25rem;
}

.wpp-summary-value {
    font-size: 1.1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

.wpp-card-sales   .wpp-summary-value { color: #046A38; }
.wpp-card-payment .wpp-summary-value { color: #16a34a; }
.wpp-card-diff    .wpp-summary-value { color: #ea580c; }

/* ── Grup (Yıl/Ay) Bloğu ── */
.wpp-group {
    margin-bottom: 1.25rem;
    border: 1px solid #DBEEE4;
    border-radius: .75rem;
    overflow: hidden;
}

.wpp-group-header {
    display: flex;
    align-items: center;
    gap: .625rem;
    background: #046A38;
    padding: .625rem 1rem;
}

.wpp-group-year-badge {
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .625rem;
    border-radius: 2rem;
    letter-spacing: .3px;
}

.wpp-group-month {
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ── Tablo ── */
.wpp-table {
    width: 100%;
    border-collapse: collapse;
}

.wpp-table thead tr { background: #034A27; }

.wpp-table thead th {
    padding: .55rem .75rem;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.wpp-table thead th:last-child { border-right: none; }
.wpp-th-right { text-align: right !important; }

.wpp-table tbody tr td {
    padding: .5rem .75rem;
    text-align: center;
    border-bottom: 1px solid #E6F2EC;
    border-right: 1px solid #E6F2EC;
    font-size: .82rem;
    color: #374151;
    background: #fff;
}

.wpp-table tbody tr td:last-child { border-right: none; }
.wpp-table tbody tr:nth-child(even) td { background: #F2F9F5; }
.wpp-table tbody tr:hover td { background: #EEF7F1; transition: background .12s; }

.wpp-table td.wpp-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
    color: #252B37;
}

.wpp-table tbody tr.wpp-subtotal td {
    background: #E6F2EC;
    font-weight: 700;
    color: #046A38;
    border-top: 2px solid #046A38;
}

.wpp-table tbody tr.wpp-subtotal td.wpp-subtotal-label {
    text-align: right;
    padding-right: 1rem;
}

/* ── Genel Toplam ── */
.wpp-grand-total { margin-top: 1.25rem; }

.wpp-grand-total-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: .75rem;
    overflow: hidden;
}

.wpp-grand-total-table td {
    background: linear-gradient(90deg, #046A38, #034A27);
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    padding: .875rem 1rem;
}

.wpp-grand-total-table .wpp-gt-label {
    text-align: right;
    padding-right: 1.25rem;
    letter-spacing: .3px;
    font-size: .8rem;
    text-transform: uppercase;
    opacity: .85;
}

.wpp-grand-total-table .wpp-gt-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ============================================================
   PDS — Ödeme Vadesi Özet  (pds- prefix)
   Views/Report/PaymentDueSummary.cshtml
   ============================================================ */

/* ── Müşteri Özet Şeridi ── */
.pds-customer-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(90deg, #046A38 0%, #034A27 100%);
    border-radius: .75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pds-customer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pds-customer-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .01em;
}

.pds-customer-sub {
    font-size: .78rem;
    color: rgba(255,255,255,.7);
    margin-top: 2px;
}

.pds-customer-strip-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .625rem;
    flex-wrap: wrap;
}

.pds-stat-pill {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 2rem;
    padding: .3rem .875rem;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

.pds-stat-pill.pds-pill-danger {
    background: rgba(220, 38, 38, .25);
    border-color: rgba(220, 38, 38, .5);
}

/* ── Kapama Grup Bloğu ── */
.pds-customer-block { margin-bottom: 1.5rem; }

.pds-kapama-block { margin-bottom: 1.125rem; }

.pds-kapama-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #046A38;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem .875rem;
    border-radius: .375rem .375rem 0 0;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ── Tablo ── */
.pds-table-wrap {
    border: 1px solid #D8EBE1;
    border-radius: 0 .375rem .375rem .375rem;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.pds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
    min-width: 860px;
}

.pds-table thead tr { background: #034A27; }

.pds-table thead th {
    color: #fff;
    padding: .5rem .625rem;
    text-align: center;
    font-weight: 600;
    font-size: .72rem;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.1);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.pds-table thead th:last-child { border-right: none; }

.pds-table tbody tr { background: #fff; transition: background .12s; }
.pds-table tbody tr:nth-child(even) { background: #F2F8F4; }
.pds-table tbody tr:hover { background: #EEF7F1; }

.pds-table tbody td {
    padding: .425rem .625rem;
    border-bottom: 1px solid #E6F2EC;
    border-right: 1px solid #E6F2EC;
    text-align: center;
    white-space: nowrap;
    color: #374151;
    font-size: .79rem;
}

.pds-table tbody td:last-child { border-right: none; }
.pds-table tbody td.pds-td-right { text-align: right; font-variant-numeric: tabular-nums; }

.pds-table tfoot tr { background: #046A38; }

.pds-table tfoot td {
    padding: .475rem .625rem;
    border-right: 1px solid rgba(255,255,255,.12);
    text-align: center;
    font-size: .79rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.pds-table tfoot td:last-child { border-right: none; }
.pds-table tfoot td.pds-td-right { text-align: right; font-variant-numeric: tabular-nums; }

.pds-overdue { color: #dc2626; font-weight: 700; }

/* ============================================================
   GV — Genel Görünüm  (gv- prefix)
   Views/General/GeneralView.cshtml
   ============================================================ */

/* ── Welcome Banner ── */
.gv-welcome {
    background: linear-gradient(135deg, #023B1F 0%, #046A38 45%, #034A27 100%);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.gv-welcome::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.gv-welcome::after {
    content: '';
    position: absolute;
    bottom: -35px;
    right: 140px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.gv-welcome-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.gv-welcome-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.gv-welcome-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gv-welcome-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.3rem;
}

.gv-welcome-right {
    position: relative;
    z-index: 1;
}

.gv-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── KPI Stats Grid ── */
.gv-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .gv-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .gv-stats-grid { grid-template-columns: 1fr; }
}

.gv-stat-card {
    border-radius: 1rem;
    padding: 1.375rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
}

.gv-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.gv-stat-card::after {
    content: '';
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}

.gv-stat-primary { background: linear-gradient(135deg, #046A38, #178A54); }
.gv-stat-success  { background: linear-gradient(135deg, #059669, #10b981); }
.gv-stat-warning  { background: linear-gradient(135deg, #d97706, #f59e0b); }
.gv-stat-danger   { background: linear-gradient(135deg, #dc2626, #ef4444); }
.gv-stat-info     { background: linear-gradient(135deg, #1d4ed8, #2970FF); }

.gv-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.gv-stat-body { flex: 1; min-width: 0; }

.gv-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.72);
    margin-bottom: 0.25rem;
}

.gv-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.gv-stat-sub {
    font-size: 0.69rem;
    color: rgba(255,255,255,0.58);
    margin-top: 0.25rem;
}

/* ── Module Section ── */
.gv-module-section {
    margin-bottom: 1.75rem;
}

.gv-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
}

@media (max-width: 1200px) {
    .gv-modules-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .gv-modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .gv-modules-grid { grid-template-columns: 1fr; }
}

.gv-module-card {
    background: #fff;
    border: 1px solid #E9EAEB;
    border-radius: 1rem;
    padding: 1.25rem 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    text-decoration: none;
    cursor: pointer;
}

.gv-module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(19,33,106,0.1);
    border-color: #C6E2D2;
    text-decoration: none;
}

.gv-module-card.gv-module-disabled {
    opacity: 0.52;
    cursor: not-allowed;
    pointer-events: none;
}

.gv-module-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.gv-module-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.gv-module-icon-primary { background: linear-gradient(135deg, #046A38, #178A54); }
.gv-module-icon-success  { background: linear-gradient(135deg, #059669, #10b981); }
.gv-module-icon-warning  { background: linear-gradient(135deg, #d97706, #f59e0b); }
.gv-module-icon-danger   { background: linear-gradient(135deg, #dc2626, #ef4444); }
.gv-module-icon-info     { background: linear-gradient(135deg, #1d4ed8, #2970FF); }

.gv-module-arrow {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid #E9EAEB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A4A7AE;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.gv-module-card:hover .gv-module-arrow {
    background: #046A38;
    border-color: #046A38;
    color: #fff;
}

.gv-module-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #181D27;
    line-height: 1.3;
}

.gv-module-desc {
    font-size: 0.73rem;
    color: #717680;
    line-height: 1.45;
}

.gv-module-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    background: #E8F3ED;
    color: #046A38;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    width: fit-content;
    margin-top: 0.25rem;
}

.gv-module-badge-new  { background: #DCFAE6; color: #059669; }
.gv-module-badge-soon { background: #FEF0C7; color: #d97706; }


/* ============================================================
   AL — Muavin Defteri  (al- prefix)
   Views/Report/AssistanLedger.cshtml
   ============================================================ */

/* ── Dönem Badge ── */
.al-period-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #046A38;
    border-radius: 6px;
    padding: .25rem .6rem;
    font-size: .78rem;
    font-weight: 600;
}

/* ── Bilgi Strip (Müşteri Ünvanı / Hesap Kodu) ── */
.al-info-card {
    background: #F5FBF7;
    border: 1px solid #DBEEE4;
    border-left: 4px solid #046A38;
    border-radius: .625rem;
    padding: .75rem 1.25rem;
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .75rem;
}

@media (max-width: 575px) {
    .al-info-card { grid-template-columns: 1fr; }
}

.al-info-item {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.al-info-label {
    font-size: .72rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    min-width: 110px;
}

.al-info-value {
    font-size: .88rem;
    font-weight: 700;
    color: #046A38;
}

/* ── KPI Kartları ── */
.al-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .875rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
    .al-kpi-grid { grid-template-columns: 1fr; }
}

.al-kpi-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .875rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border-left: 4px solid;
    transition: transform .18s, box-shadow .18s;
}

.al-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.09);
}

.al-kpi-card.al-kpi-borc   { border-left-color: #dc2626; }
.al-kpi-card.al-kpi-alacak { border-left-color: #16a34a; }
.al-kpi-card.al-kpi-bakiye { border-left-color: #046A38; }

.al-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.al-kpi-card.al-kpi-borc   .al-kpi-icon { background: #dc2626; }
.al-kpi-card.al-kpi-alacak .al-kpi-icon { background: #16a34a; }
.al-kpi-card.al-kpi-bakiye .al-kpi-icon { background: #046A38; }

.al-kpi-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    margin-bottom: .2rem;
}

.al-kpi-value {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.al-kpi-card.al-kpi-borc   .al-kpi-value { color: #dc2626; }
.al-kpi-card.al-kpi-alacak .al-kpi-value { color: #16a34a; }
.al-kpi-card.al-kpi-bakiye .al-kpi-value { color: #046A38; }

/* ── Tablo Toolbar ── */
.al-table-toolbar {
    background: #046A38;
    border-radius: .625rem .625rem 0 0;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.al-search-wrap {
    position: relative;
    flex: 1;
}

.al-search-wrap i {
    position: absolute;
    left: .875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: .9rem;
    pointer-events: none;
}

.al-search-input {
    width: 100%;
    padding: .6rem .875rem .6rem 2.4rem;
    border: none;
    border-radius: .375rem;
    font-size: .85rem;
    color: #374151;
    background: #fff;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    transition: box-shadow .2s;
}

.al-search-input::placeholder { color: #9ca3af; }
.al-search-input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

.al-record-count {
    font-size: .78rem;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
}

.al-record-count span {
    font-weight: 700;
    color: #fff;
}

/* ── Ana Tablo ── */
.al-table-wrap {
    border-radius: .625rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    margin-bottom: 1rem;
}

.al-table-wrap.al-has-toolbar {
    border-top: none;
    border-radius: 0 0 .625rem .625rem;
}

.al-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.al-table thead tr { background-color: #046A38; }

.al-table thead th {
    color: #fff;
    padding: .6rem .8rem;
    text-align: center;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.12);
}

.al-table thead th:last-child { border-right: none; }

.al-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.al-table tbody tr:nth-child(even) { background: #f9fafb; }
.al-table tbody tr:hover { background: #eff6ff; }

.al-table tbody td {
    padding: .45rem .8rem;
    color: #374151;
    border-right: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: .81rem;
}

.al-table tbody td:last-child { border-right: none; }

.al-table .al-num    { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.al-table .al-center { text-align: center; }
.al-table .al-bakiye-pos { color: #059669; font-weight: 700; }
.al-table .al-bakiye-neg { color: #dc2626; font-weight: 700; }

.al-table tfoot tr { background-color: #046A38; }

.al-table tfoot td {
    color: #fff;
    padding: .55rem .8rem;
    font-weight: 700;
    font-size: .82rem;
    text-align: right;
    border-right: 1px solid rgba(255,255,255,.12);
}

.al-table tfoot td:first-child { text-align: left; }
.al-table tfoot td:last-child  { border-right: none; }

/* ── Alt Not ── */
.al-note {
    margin-top: .75rem;
    font-size: .78rem;
    color: #9ca3af;
    font-style: italic;
}

/* ── Mobil: Tablo → Kart görünümü ── */
@media (max-width: 767px) {
    .al-table-toolbar { flex-direction: column; align-items: stretch; }
    .al-table-wrap    { overflow: visible; }
    .al-table thead   { display: none; }

    .al-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: .5rem;
        margin-bottom: .625rem;
        box-shadow: 0 1px 3px rgba(0,0,0,.06);
        padding: .5rem .75rem;
    }

    .al-table tbody tr:nth-child(even) { background: #fff; }
    .al-table tbody tr:hover { background: #F5FBF7; }

    .al-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: .35rem 0;
        border-right: none;
        border-bottom: 1px solid #f3f4f6;
        font-size: .82rem;
        text-align: right;
    }

    .al-table tbody td:last-child { border-bottom: none; }

    .al-table tbody td::before {
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #9ca3af;
        text-align: left;
        white-space: nowrap;
        margin-right: .5rem;
        flex-shrink: 0;
    }

    .al-table tbody td.al-center,
    .al-table tbody td.al-num { text-align: right; }

    .al-table tfoot tr  { display: block; border-radius: .5rem; overflow: hidden; }
    .al-table tfoot td  { display: flex; justify-content: space-between; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: .4rem .75rem; }
    .al-table tfoot td:first-child { display: none; }
    .al-table tfoot td::before {
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 600;
        opacity: .75;
        text-transform: uppercase;
        letter-spacing: .04em;
        white-space: nowrap;
        margin-right: .5rem;
    }
}

/* ============================================================
   LP — Son Alış Fiyatları  (lp- prefix)
   Views/Report/LatestPurchase.cshtml
   ============================================================ */

/* ── Firma / Temsilci Kart Alanı ── */
.lp-top-row {
    display: flex;
    gap: .875rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.lp-info-card {
    display: flex;
    align-items: center;
    gap: .875rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1rem 1.375rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    flex: 1;
    min-width: 200px;
    border-left: 4px solid #046A38;
}

.lp-info-card.lp-card-rep {
    border-left-color: #2970FF;
}

.lp-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #046A38;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.lp-info-card.lp-card-rep .lp-info-icon {
    background: #2970FF;
}

.lp-info-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9ca3af;
    margin-bottom: .2rem;
}

.lp-info-value {
    font-size: .95rem;
    font-weight: 700;
    color: #046A38;
    line-height: 1.3;
}

.lp-info-card.lp-card-rep .lp-info-value {
    color: #374151;
}

/* Sağ aksiyon alanı */
.lp-actions-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1rem 1.375rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.lp-date-badge {
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    padding: .35rem .875rem;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Tablo Toolbar ── */
.lp-table-toolbar {
    background: #046A38;
    border-radius: .625rem .625rem 0 0;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lp-search-wrap {
    position: relative;
    flex: 1;
}

.lp-search-wrap i {
    position: absolute;
    left: .875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: .9rem;
    pointer-events: none;
}

.lp-search-input {
    width: 100%;
    padding: .55rem .875rem .55rem 2.4rem;
    border: none;
    border-radius: .375rem;
    font-size: .85rem;
    color: #374151;
    background: #fff;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.lp-search-input::placeholder { color: #9ca3af; }
.lp-search-input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

.lp-record-count {
    font-size: .78rem;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
}

.lp-record-count strong {
    color: #fff;
    font-weight: 700;
}

/* ── Ana Tablo ── */
.lp-table-wrap {
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 .75rem .75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 1rem;
}

.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.lp-table thead tr {
    background-color: #034A27;
}

.lp-table thead th {
    color: #fff;
    padding: .6rem .8rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.1);
    text-align: center;
}

.lp-table thead th:last-child { border-right: none; }
.lp-table thead th.lp-th-left { text-align: left; }

.lp-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background .12s;
}

.lp-table tbody tr:nth-child(even) { background: #f9fafb; }
.lp-table tbody tr:hover           { background: #eff6ff; }

.lp-table tbody td {
    padding: .45rem .8rem;
    color: #374151;
    border-right: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: .81rem;
}

.lp-table tbody td:last-child { border-right: none; }

.lp-table .lp-num    { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.lp-table .lp-center { text-align: center; }

/* Ürün Kodu */
.lp-urun-kod {
    font-size: .72rem;
    font-weight: 600;
    color: #6b7280;
    font-family: monospace;
    letter-spacing: .3px;
}

/* Ürün adı */
.lp-urun-name {
    font-weight: 600;
    color: #111827;
    font-size: .82rem;
}

.lp-urun-name2 {
    font-size: .74rem;
    color: #9ca3af;
    margin-top: 1px;
}

/* Birim badge */
.lp-birim-badge {
    display: inline-block;
    background: #eff6ff;
    color: #046A38;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: .15rem .5rem;
    font-size: .72rem;
    font-weight: 700;
}

/* Özel Kod badge */
.lp-ozel-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    padding: .15rem .5rem;
    font-size: .72rem;
    font-weight: 600;
}

/* Döviz Badge */
.lp-doviz-badge {
    display: inline-block;
    border-radius: 4px;
    padding: .18rem .55rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.lp-doviz-eur {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.lp-doviz-usd {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.lp-doviz-try {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Opsiyon güne göre renk */
.lp-opsiyon { font-weight: 700; font-size: .8rem; }
.lp-opsiyon-low  { color: #dc2626; }
.lp-opsiyon-mid  { color: #d97706; }
.lp-opsiyon-high { color: #059669; }

/* Fiyat */
.lp-fiyat-val {
    font-weight: 700;
    color: #111827;
}

/* Tablo Footer */
.lp-table tfoot tr {
    background-color: #046A38;
}

.lp-table tfoot td {
    color: #fff;
    padding: .55rem .8rem;
    font-weight: 700;
    font-size: .8rem;
    text-align: right;
    border-right: 1px solid rgba(255,255,255,.12);
}

.lp-table tfoot td:first-child { text-align: left; }
.lp-table tfoot td:last-child  { border-right: none; }

/* ── Alt Not ── */
.lp-note {
    font-size: .78rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: .25rem;
}

/* ── PDF / Excel Butonları ── */
.lp-btn-pdf {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.lp-btn-pdf:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}
.lp-btn-excel {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}
.lp-btn-excel:hover {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}

/* Card header yardımcıları */
.lp-header-sep {
    margin: 0 .375rem;
    color: #d1d5db;
}

.lp-header-rep {
    color: #2970FF;
    font-weight: 600;
}

/* Toplam Kayıt kartı */
.lp-info-card.lp-card-count {
    border-left-color: #059669;
    flex: 0 1 auto;
    min-width: 160px;
}

.lp-icon-count {
    background: #059669 !important;
}

/* ── Mobil ── */
@media (max-width: 767px) {
    .lp-top-row       { flex-direction: column; }
    .lp-actions-card  { justify-content: space-between; }
    .lp-table-wrap    { overflow-x: auto; }
    .lp-table         { min-width: 700px; }
}


/* ============================================================
   ASB — Hesap Özeti Bakiye  (asb- prefix)
   Views/Report/AccountSummaryBalance.cshtml
   ============================================================ */

/* ── Özet Stat Kartları ── */
.asb-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .875rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .asb-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .asb-stat-grid { grid-template-columns: 1fr; }
}

.asb-stat-card {
    border-radius: .875rem;
    padding: 1.25rem 1.375rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform .18s, box-shadow .18s;
}

.asb-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.asb-stat-card::after {
    content: '';
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    opacity: .12;
    background: #fff;
}

.asb-stat-danger  { background: linear-gradient(135deg, #dc2626, #b91c1c); border-color: #b91c1c; }
.asb-stat-warning { background: linear-gradient(135deg, #d97706, #b45309); border-color: #b45309; }
.asb-stat-primary { background: linear-gradient(135deg, #046A38, #034A27); border-color: #046A38; }
.asb-stat-dark    { background: linear-gradient(135deg, #374151, #1f2937); border-color: #1f2937; }

.asb-stat-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    margin-bottom: .25rem;
}

.asb-stat-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255,255,255,.75);
}

.asb-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

/* ── Döviz Detay Tablosu ── */
.asb-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.asb-table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.asb-tbl-group-header td {
    background: #046A38;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: .9375rem;
    padding: .625rem 1rem;
    letter-spacing: .5px;
}

.asb-tbl-col-header th {
    background: #03592F;
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
    padding: .5rem 1rem;
    text-align: right;
    border-right: 1px solid rgba(255,255,255,.12);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.asb-tbl-col-header th:first-child { text-align: left; }

.asb-table-card tbody tr:nth-child(even) { background: #F5FBF7; }
.asb-table-card tbody tr:hover { background: #EEF7F1; transition: background .15s; }

.asb-table-card tbody td {
    padding: .6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    white-space: nowrap;
    color: #374151;
}

.asb-table-card tbody td:first-child {
    text-align: left;
    font-weight: 700;
    color: #046A38;
    font-size: .9rem;
}

.asb-val-positive { color: #16a34a; font-weight: 600; }
.asb-val-negative { color: #dc2626; font-weight: 600; }

.asb-tbl-footer td {
    background: #046A38 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: .875rem;
    padding: .625rem 1rem !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    text-align: right;
    white-space: nowrap;
}

.asb-tbl-footer td:first-child { text-align: left; }

/* ============================================================
   BASKET SUCCESS PANEL
   ============================================================ */
#cc-basket-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(15, 23, 60, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    animation: cc-bsp-overlay-in .25s ease;
}
#cc-basket-success-overlay.cc-bsp-visible {
    display: block;
}
@keyframes cc-bsp-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#cc-basket-success-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 99999;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(19,33,106,.18), 0 2px 8px rgba(0,0,0,.08);
    border-top: 4px solid #17B26A;
    padding: 20px 24px 18px;
    animation: cc-basket-panel-in .28s cubic-bezier(.4,0,.2,1);
    display: none;
}
#cc-basket-success-panel.cc-bsp-visible {
    display: block;
}
@keyframes cc-basket-panel-in {
    from { opacity: 0; transform: translateX(-50%) translateY(calc(-50% - 18px)); }
    to   { opacity: 1; transform: translateX(-50%) translateY(-50%); }
}
.cc-bsp-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ECFDF3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17B26A;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.cc-bsp-title {
    font-size: .9rem;
    font-weight: 700;
    color: #181D27;
    margin-bottom: 4px;
}
.cc-bsp-message {
    font-size: .82rem;
    color: #717680;
    margin-bottom: 16px;
}
.cc-bsp-actions {
    display: flex;
    gap: 10px;
}
.cc-bsp-btn-continue {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid #E9EAEB;
    background: #fff;
    color: #252B37;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .15s, border-color .15s;
}
.cc-bsp-btn-continue:hover {
    background: #F4F5F7;
    border-color: #D0D3DA;
}
.cc-bsp-btn-basket {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: #046A38;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s;
}
.cc-bsp-btn-basket:hover {
    background: #023B1F;
    color: #fff;
    text-decoration: none;
}
.cc-bsp-progress {
    height: 3px;
    background: #E9EAEB;
    border-radius: 99px;
    margin-top: 14px;
    overflow: hidden;
}
.cc-bsp-progress-bar {
    height: 100%;
    width: 100%;
    background: #17B26A;
    border-radius: 99px;
    transition: width linear;
}

/* ============================================================
   ONLINE MUTABAKAT SAYFASI — oma = online mutabakat
   ============================================================ */

/* Sol panel genel */
.oma-left-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F5FAF7;
}

/* Header */
.oma-header {
    background: linear-gradient(135deg, #046A38 0%, #034A27 60%, #023B1F 100%);
    padding: 28px 40px 32px;
    position: relative;
    overflow: visible;
}
.oma-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}
.oma-header::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 30%;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}
.oma-header-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}
.oma-header-logo img { height: 36px; filter: brightness(0) invert(1); }
.oma-header-badge {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 99px;
    letter-spacing: .3px;
}
.oma-header-greeting {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}
.oma-header-greeting h1 {
    color: #fff !important;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px !important;
    line-height: 1.3;
}
.oma-header-greeting p {
    color: rgba(255,255,255,.8) !important;
    font-size: .85rem;
    margin: 0 !important;
    line-height: 1.5;
}

/* İçerik alanı */
.oma-content {
    flex: 1;
    padding: 24px 32px 32px;
    position: relative;
    z-index: 5;
}

/* Özet kartları */
.oma-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.oma-summary-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(19,33,106,.08);
    border: 1px solid #E9EAEB;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.oma-summary-card-label {
    font-size: .72rem;
    font-weight: 600;
    color: #717680;
    text-transform: uppercase;
    letter-spacing: .4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.oma-summary-card-label i {
    width: 20px; height: 20px;
    border-radius: 6px;
    background: #EEF7F1;
    color: #046A38;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
}
.oma-summary-card-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #181D27;
    white-space: nowrap;
}
.oma-summary-card-sub {
    font-size: .72rem;
    color: #A4A7AE;
}

/* Tablo kartı */
.oma-table-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(19,33,106,.08);
    border: 1px solid #E9EAEB;
    overflow: hidden;
    margin-bottom: 24px;
}
.oma-table-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E9EAEB;
    display: flex;
    align-items: center;
    gap: 10px;
}
.oma-table-card-header-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: #EEF7F1;
    color: #046A38;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}
.oma-table-card-header-title {
    font-size: .9rem;
    font-weight: 700;
    color: #181D27;
}
.oma-table-card-header-sub {
    font-size: .78rem;
    color: #A4A7AE;
}
.oma-table-wrapper {
    overflow-x: auto;
}
.oma-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}
.oma-table thead tr {
    background: #F2F8F4;
}
.oma-table thead th {
    padding: 11px 16px;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    color: #717680;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 1px solid #E9EAEB;
    white-space: nowrap;
}
.oma-table tbody tr {
    border-bottom: 1px solid #F0F1F3;
    transition: background .12s;
}
.oma-table tbody tr:last-child { border-bottom: none; }
.oma-table tbody tr:hover { background: #F5FAF7; }
.oma-table tbody td {
    padding: 12px 16px;
    color: #252B37;
    vertical-align: middle;
}
.oma-tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
}
.oma-tip-badge.borc {
    background: #FEF3F2;
    color: #F04438;
}
.oma-tip-badge.alacak {
    background: #ECFDF3;
    color: #17B26A;
}
.oma-tip-badge.default {
    background: #EEF7F1;
    color: #046A38;
}
.oma-doviz-chip {
    display: inline-flex;
    align-items: center;
    background: #F2F8F4;
    color: #046A38;
    font-weight: 700;
    font-size: .72rem;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: .3px;
}
.oma-amount { font-weight: 600; color: #181D27; }
.oma-amount.negative { color: #F04438; }
.oma-amount.positive { color: #17B26A; }

/* Onay formu kartı */
.oma-form-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(19,33,106,.08);
    border: 1px solid #E9EAEB;
    padding: 24px;
    margin-bottom: 24px;
}
.oma-form-title {
    font-size: .95rem;
    font-weight: 700;
    color: #181D27;
    margin-bottom: 4px;
}
.oma-form-subtitle {
    font-size: .8rem;
    color: #717680;
    margin-bottom: 20px;
}
.oma-input-wrap {
    position: relative;
    margin-bottom: 16px;
}
.oma-input-wrap label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #252B37;
    margin-bottom: 6px;
}
.oma-input-wrap label span.req { color: #F04438; margin-left: 2px; }
.oma-input-field {
    width: 100%;
    border: 1.5px solid #E9EAEB;
    border-radius: 10px;
    padding: 10px 14px 10px 40px;
    font-size: .85rem;
    color: #181D27;
    background: #FAFAFA;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.oma-input-field:focus {
    border-color: #046A38;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(19,33,106,.08);
}
.oma-input-icon {
    position: absolute;
    left: 13px;
    bottom: 11px;
    color: #A4A7AE;
    font-size: .82rem;
}
.oma-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F5FAF7;
    border: 1.5px dashed #A8C4B5;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    border-left: 4px solid #046A38;
    position: relative;
}
.oma-checkbox-wrap:hover {
    background: #EEF7F1;
    border-color: #046A38;
    box-shadow: 0 2px 10px rgba(19,33,106,.1);
}
.oma-checkbox-wrap:has(input:checked) {
    border-left-color: #17B26A;
    border-color: #17B26A;
    background: #ECFDF3;
    box-shadow: 0 2px 10px rgba(23,178,106,.12);
}
/* Native checkbox gizlenir, özel kutu gösterilir */
.oma-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.oma-checkbox-box {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: 2px solid #046A38;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .1s;
}
.oma-checkbox-box i {
    color: #fff;
    font-size: .72rem;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .18s, transform .18s;
}
.oma-checkbox-wrap:hover .oma-checkbox-box {
    background: #EEF7F1;
}
.oma-checkbox-wrap:has(input:checked) .oma-checkbox-box {
    background: #17B26A;
    border-color: #17B26A;
}
.oma-checkbox-wrap:has(input:checked) .oma-checkbox-box i {
    opacity: 1;
    transform: scale(1);
}
.oma-checkbox-wrap > span:last-child {
    font-size: .84rem;
    color: #252B37;
    cursor: pointer;
    line-height: 1.5;
    font-weight: 500;
}
.oma-checkbox-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 600;
    color: #046A38;
    margin-bottom: 6px;
    letter-spacing: .2px;
}
.oma-checkbox-hint i { font-size: .68rem; }
.oma-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.oma-btn-approve {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #17B26A, #12946A);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .15s, transform .1s;
    box-shadow: 0 4px 12px rgba(23,178,106,.3);
}
.oma-btn-approve:hover { opacity: .92; transform: translateY(-1px); }
.oma-btn-reject {
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid #FECDCA;
    background: #FEF3F2;
    color: #B42318;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, border-color .15s, transform .1s;
}
.oma-btn-reject:hover {
    background: #fee2e0;
    border-color: #F97066;
    transform: translateY(-1px);
}

/* Zaten onaylanmış / reddedilmiş durumu */
.oma-status-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(19,33,106,.08);
    border: 1px solid #E9EAEB;
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.oma-status-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #ECFDF3;
    color: #17B26A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
}
.oma-status-icon.rejected {
    background: #FEF3F2;
    color: #F04438;
}
.oma-status-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #181D27;
    margin-bottom: 8px;
}
.oma-status-desc {
    font-size: .85rem;
    color: #717680;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}
.oma-status-meta {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F2F8F4;
    border-radius: 99px;
    padding: 7px 16px;
    font-size: .78rem;
    color: #717680;
}
.oma-status-meta strong { color: #252B37; }

/* Footer */
.oma-footer {
    padding: 20px 32px;
    text-align: center;
    font-size: .78rem;
    color: #A4A7AE;
    border-top: 1px solid #E9EAEB;
}
.oma-footer a { color: #046A38; font-weight: 600; text-decoration: none; }

@media (max-width: 768px) {
    .oma-header { padding: 20px 20px 48px; }
    .oma-content { padding: 0 16px 24px; }
    .oma-action-row { grid-template-columns: 1fr; }
    .oma-summary-grid { grid-template-columns: 1fr 1fr; }
}

