/* ============================================================
   VIDARA MARKA PALETI
   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 derlenmis halde commit'lendigi ve paletin tamami :root
   custom property'leri uzerinden aktigi icin, burada :root'u ezmek
   sass'i yeniden derlemeden tum utility ve bilesenleri yesile cevirir.
   Kaynak tanim base/_variables.scss icinde de guncellendi; sass tekrar
   derlenirse ayni degerler uretilir.
   ============================================================ */
: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 icin utility karsiliklari (main.css bunlari
   uretmiyor; sass yeniden derlenene kadar elle tanimli) */
.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); }

/* ═══════════════════════════════════════════════════════════════
   GENEL STİLLER  —  Mevcut ceca-custom.css içeriği
═══════════════════════════════════════════════════════════════ */

.modal-dialog.modal-fullscreen .modal-content {
    border-radius: 10px;
}

.modal-dialog.modal-fullscreen {
    padding: 1%;
}

.c-pointer {
    cursor: pointer;
}

.drawer-dialog {
    padding: 1%;
}

.drawer-content {
    border-radius: 10px;
}

.tab-nav {
    --tab-nav-item-color: var(--clr-gray-100);
    --tab-nav-item-icon-color: var(--clr-gray-100);
    --tab-nav-bg-color: #4FA87B;
    --tab-nav-item-active-bg-color: var(--clr-primary);
}

.badge-classic.badge-primary {
    --badge-color: var(--clr-white);
}

.app-sidebar-nav-item.active.has-children > .app-sidebar-nav-link {
    --sidebar-nav-link-text-color: var(--clr-white);
    --sidebar-nav-link-icon-color: var(--clr-white);
    --sidebar-nav-link-bg-color: #4FA87B;
}

.app-sidebar-nav-item.has-children > .app-sidebar-nav-link::after {
    color: var(--clr-primary);
}

.btn-primary {
    --btn-bg-color: var(--clr-primary);
}

    .btn-primary:hover {
        --btn-bg-color: var(--base-link-color);
        --btn-text-color: var(--clr-white);
    }

.input-label.required::after {
    color: #ff0000;
}

.file-input-trigger {
    background-color: #D8EBE1;
}

    .file-input-trigger:hover {
        background-color: #D8EBE1;
    }

.file-input-files .file-input-file-item-icon {
    background-color: #D8EBE1;
}

.select-tags-list {
    background-color: #D8EBE1;
}

.app-sidebar-search {
    margin-top: 5%;
}

.app-sidebar-logo {
    margin: auto;
}

.card {
    --card-header-bg-color: var(--clr-gray-200);
}

.table-wrapper {
    --table-th-bg: var(--clr-gray-200);
}

@media (min-width: 1200px) and (max-width: 1599px) {
    html {
        --scale: .75;
    }
}

@media (min-width: 1600px) and (max-width: 1920px) {
    html {
        --scale: .85;
    }
}

/* ================================================
   Reports Page — rp- prefix (diğer sayfaları etkilemez)
   ================================================ */

.rp-info-label {
    font-size: .75rem;
    color: #6b7280;
    margin-bottom: 3px;
}

.rp-firm-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.rp-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1rem;
    padding: .75rem 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.rp-info-value {
    font-size: .875rem;
    font-weight: 600;
    color: #111827;
}

.rp-balance-row {
    display: flex;
    gap: .75rem;
    margin-top: .375rem;
}

.rp-balance-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .625rem;
    background: var(--clr-primary);
    border-radius: .625rem;
    padding: .875rem 1rem;
    color: #fff;
}

.rp-balance-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    flex-shrink: 0;
}

.rp-balance-currency {
    font-size: .7rem;
    opacity: .8;
}

.rp-balance-amount {
    font-size: .9rem;
    font-weight: 700;
}

.rp-shortcuts {
    display: flex;
    gap: .625rem;
    margin-top: .375rem;
}

.rp-shortcut {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .375rem;
    padding: .875rem .5rem;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    background: #fff;
    font-size: .75rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

    .rp-shortcut i {
        font-size: 1.25rem;
        color: var(--clr-primary);
    }

    .rp-shortcut:hover {
        border-color: var(--clr-primary);
        color: var(--clr-primary);
        background: #F2F8F4;
    }



.rp-group-icon {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .8rem;
    flex-shrink: 0;
}

.rp-chevron {
    color: #6b7280;
    transition: transform .25s;
}

.rp-group-body {
    border-top: 1px solid #f3f4f6;
}

.rp-report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
}

    .rp-report-item:last-child {
        border-bottom: none;
    }

    .rp-report-item:hover {
        background: #f9fafb;
    }


/* Reports Page — Accordion Grup Başlık Güncellemesi */
.rp-group {
    border: none;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08), 0 0 0 1px #e5e7eb;
}

.rp-group-head {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.25rem;
    min-height: 64px;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background .15s;
}

    .rp-group-head > span:first-child {
        display: flex;
        align-items: center;
        gap: .75rem;
        flex: 1;
        min-width: 0;
    }

    .rp-group-head:hover {
        background: #F8FCFA;
    }

    .rp-group-head.rp-open {
        background: #F2F8F4;
        border-bottom: 1px solid #D8EBE1;
    }

        .rp-group-head.rp-open .font-semibold {
            color: var(--clr-primary);
        }

.rp-chevron {
    color: var(--clr-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform .25s;
}

.rp-group-icon {
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    flex-shrink: 0;
}

/* Reports — Firma Arama Temizle Butonu */
.rp-clear-btn {
    background: none;
    border: none;
    padding: 0 .625rem;
    cursor: pointer;
    color: #9ca3af;
    font-size: .8rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color .15s;
}

    .rp-clear-btn:hover {
        color: var(--clr-primary);
    }

/* Reports — Türkçe Duyarlı Custom Autocomplete */
.rp-autocomplete-wrap {
    position: relative;
}

#rpAutoComplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #C6E2D2;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    max-height: 260px;
    overflow-y: auto;
    z-index: 9999;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    display: none;
}

#rpAutoComplete li {
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.1s;
}

#rpAutoComplete li:hover,
#rpAutoComplete li.rp-ac-active {
    background: #F2F8F4;
    color: var(--clr-primary);
}

#rpAutoComplete li mark {
    background: transparent;
    color: var(--base-link-color);
    font-weight: 700;
    font-style: normal;
}

#rpAutoComplete li .rp-ac-code {
    font-size: 11px;
    color: #999;
    margin-left: 6px;
}

/* Reports — Mobil: Borç Bakiyesi kartları alt alta + Rapor butonu icon-only */
@media (max-width: 575.98px) {
    .rp-balance-row {
        flex-direction: column;
    }

    .rp-balance-card {
        flex: none;
        width: 100%;
    }

    .rp-report-item .btn-text {
        display: none;
    }

    .rp-report-item .btn {
        padding: .5rem .625rem;
    }
}

/* Reports — Boş Durum */
.rp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1rem;
    gap: .75rem;
}

.rp-empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #F2F8F4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-size: 1.5rem;
    margin-bottom: .25rem;
}

.rp-empty-state-title {
    font-size: .9375rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.rp-empty-state-desc {
    font-size: .8125rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

/* ================================================
   Open Orders Page — oo- prefix
   ================================================ */

/* Rapor Başlık */
.oo-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.oo-report-header-left {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.oo-report-icon {
    width: 42px;
    height: 42px;
    border-radius: .5rem;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.oo-report-title {
    font-size: .9375rem;
    font-weight: 700;
    color: #111827;
}

.oo-report-subtitle {
    font-size: .8125rem;
    color: #6b7280;
    margin-top: 1px;
}

.oo-report-header-right {
    display: flex;
    gap: .5rem;
}

.oo-btn-pdf {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

    .oo-btn-pdf:hover {
        background: #b91c1c;
        color: #fff;
        border-color: #b91c1c;
    }

.oo-btn-excel {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

    .oo-btn-excel:hover {
        background: #15803d;
        color: #fff;
        border-color: #15803d;
    }

/* Bilgi Kartı */
.oo-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--clr-primary);
    border-radius: .625rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.oo-info-card-date {
    font-size: .9375rem;
    font-weight: 700;
    color: #111827;
}

.oo-info-card-firm {
    font-size: .8125rem;
    color: #6b7280;
    margin-top: 2px;
}

.oo-info-card-right {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.oo-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .875rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    border: 1.5px solid;
}

.oo-badge-green {
    color: #16a34a;
    border-color: #16a34a;
    background: #f0fdf4;
}

.oo-badge-orange {
    color: #ea580c;
    border-color: #ea580c;
    background: #fff7ed;
}

/* Gruplu Tablo — Döviz & Ürün */
.oo-currency-section {
    background: #f9fafb;
    border: 2px solid #C6E2D2;
    border-top: 3px solid var(--clr-primary);
    border-radius: .625rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(19,33,106,.08);
}

.oo-currency-header {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: .875rem;
    padding: .5rem .875rem;
    background: #D8EBE1;
    border-left: 4px solid var(--clr-primary);
    border-radius: .375rem;
}

.oo-currency-badge {
    background: var(--clr-primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 2rem;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.oo-currency-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--clr-primary);
}

.oo-product-table-wrap {
    background: #fff;
    border: 1px solid #D8EBE1;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.oo-product-header {
    background: #EEF7F1;
    border-bottom: 2px solid #C6E2D2;
    padding: .55rem 1rem;
    font-size: .8375rem;
    font-weight: 700;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.oo-product-header i {
    color: var(--clr-primary);
    opacity: .5;
    font-size: .75rem;
}

.oo-grouped-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8125rem;
    min-width: 800px;
}

.oo-grouped-table thead th {
    background: #EEF7F1;
    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.text-right {
    text-align: right;
}

.oo-grouped-table tbody td {
    padding: .4rem .75rem;
    border-bottom: 1px solid #F2F8F4;
    color: #4b5563;
    vertical-align: middle;
}

.oo-grouped-table tbody td.text-right {
    text-align: right;
    font-family: 'Consolas', monospace;
    font-weight: 600;
    color: #1f2937;
}

.oo-grouped-table tbody tr:nth-child(even) {
    background: #F8FCFA;
}

.oo-grouped-table tbody tr:hover {
    background: #F2F8F4;
    transition: background .12s;
}

.oo-grouped-table tbody td small {
    font-size: .7rem;
    color: #b0b9cc;
    margin-left: 2px;
}

.oo-grouped-table tfoot td {
    background: #f1f4fb;
    color: #374151;
    font-weight: 700;
    padding: .45rem .75rem;
    border-top: 2px solid #C6E2D2;
    border-bottom: none;
    font-size: .8rem;
}

.oo-grouped-table tfoot td.text-right {
    text-align: right;
    font-family: 'Consolas', monospace;
    color: var(--clr-primary);
}

.oo-grouped-table tfoot td small {
    font-size: .7rem;
    color: #9ca3af;
    margin-left: 2px;
}

.oo-date-late {
    color: #e53e3e !important;
    font-weight: 600;
}

/* ================================================
   Detaylı Firma Analizi (Ürün Bazında) — dap- prefix
   ================================================ */

/* Firma Bilgi Çubuğu */
.dap-firm-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--clr-primary);
    border-radius: .625rem;
    padding: .875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.dap-firm-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1.2;
}

.dap-firm-meta {
    font-size: .8125rem;
    color: #6b7280;
    margin-top: 2px;
}

.dap-kur-badges {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.dap-kur-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    border: 1.5px solid #D8EBE1;
    background: #F2F8F4;
    color: var(--clr-primary);
    white-space: nowrap;
}

/* Section Başlığı */
.dap-section-title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}

.dap-section-title i {
    color: var(--base-link-color);
    font-size: .85rem;
}

/* Risk Kartları */
.dap-risk-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .75rem;
}

@media (max-width: 1199px) {
    .dap-risk-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .dap-risk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dap-risk-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 3px solid;
    border-radius: .625rem;
    padding: .875rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.dap-risk-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: #fff;
    margin-bottom: .625rem;
}

.dap-risk-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: .25rem;
}

.dap-risk-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.dap-risk-sub {
    font-size: .72rem;
    color: #9ca3af;
    margin-top: 2px;
}

.dap-risk-red    { border-top-color: #dc2626; }
.dap-risk-red    .dap-risk-card-icon { background: #dc2626; }
.dap-risk-orange { border-top-color: #6C9834; }
.dap-risk-orange .dap-risk-card-icon { background: #6C9834; }
.dap-risk-green  { border-top-color: #16a34a; }
.dap-risk-green  .dap-risk-card-icon { background: #16a34a; }
.dap-risk-blue   { border-top-color: #2563eb; }
.dap-risk-blue   .dap-risk-card-icon { background: #2563eb; }
.dap-risk-navy   { border-top-color: var(--clr-primary); }
.dap-risk-navy   .dap-risk-card-icon { background: var(--clr-primary); }
.dap-risk-teal   { border-top-color: #0d9488; }
.dap-risk-teal   .dap-risk-card-icon { background: #0d9488; }

/* Hesap Bakiye Özeti */
.dap-balance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

@media (max-width: 767px) {
    .dap-balance-grid {
        grid-template-columns: 1fr;
    }
}

.dap-balance-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
}

.dap-balance-card-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1rem;
    background: #F2F8F4;
    border-bottom: 1px solid #D8EBE1;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.dap-balance-card-header i {
    font-size: .9rem;
    opacity: .8;
}

.dap-balance-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: .8125rem;
}

.dap-balance-row-item:last-child {
    border-bottom: none;
}

.dap-balance-row-label {
    color: #6b7280;
}

.dap-balance-row-value {
    font-weight: 600;
    color: #111827;
}

/* Nihai Toplam Bar */
.dap-total-bar {
    background: var(--clr-primary);
    border-radius: .625rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    flex-wrap: wrap;
    gap: 1rem;
}

.dap-total-bar-left {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.dap-total-bar-karsiliks {
    font-size: .72rem;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.dap-total-bar-karsiliks-val {
    font-size: 1.1rem;
    font-weight: 700;
}

.dap-total-bar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .1rem;
}

.dap-total-bar-main-label {
    font-size: .72rem;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.dap-total-bar-main-val {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

/* Analiz Tablosu */
.dap-analysis-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
}

.dap-analysis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.dap-analysis-title {
    font-size: .9375rem;
    font-weight: 700;
    color: #111827;
}

.dap-analysis-title span {
    font-size: .8125rem;
    font-weight: 400;
    color: #6b7280;
}

.dap-analysis-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: #F2F8F4;
    color: var(--clr-primary);
    border: 1.5px solid #D8EBE1;
}

.dap-table {
    width: 100%;
    font-size: .8125rem;
    border-collapse: collapse;
}

.dap-table thead tr {
    background: #F2F8F4;
}

.dap-table thead th {
    padding: .5rem .75rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #D8EBE1;
    white-space: nowrap;
    text-align: right;
}

.dap-table thead th:first-child {
    text-align: left;
    min-width: 180px;
}

.dap-table tbody tr:nth-child(even) {
    background: #F8FCFA;
}

.dap-table tbody tr:hover {
    background: #F2F8F4;
}

.dap-table td {
    padding: .45rem .75rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    text-align: right;
    white-space: nowrap;
}

.dap-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #111827;
}

.dap-table .dap-col-current {
    color: #16a34a !important;
    font-weight: 700;
}

.dap-table thead th.dap-col-current {
    color: #16a34a !important;
}

.dap-table td.dap-col-total,
.dap-table th.dap-col-total {
    color: var(--clr-primary) !important;
    font-weight: 700;
}

.dap-table tfoot tr {
    background: var(--clr-primary);
}

.dap-table tfoot td {
    color: #fff;
    font-weight: 700;
    border-bottom: none;
    padding: .6rem .75rem;
}

.dap-table tfoot td:first-child {
    color: #fff;
}

/* PDF Butonu */
.dap-btn-pdf {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.dap-btn-pdf:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

/* ═══════════════════════════════════════════════════════════════
   KF- PREFIX — Kapanmamış Faturalar Sayfası
═══════════════════════════════════════════════════════════════ */

/* Firma Bilgi Çubuğu */
.kf-firm-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #046A38;
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.kf-firm-date {
    font-size: 1.05rem;
    font-weight: 700;
    color: #046A38;
}

.kf-firm-name {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2px;
}

.kf-firm-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kf-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1.5px solid;
}

.kf-badge-green {
    color: #16a34a;
    border-color: #16a34a;
    background: #f0fdf4;
}

.kf-badge-orange {
    color: #d97706;
    border-color: #d97706;
    background: #fffbeb;
}

/* Hareketler Kartı */
.kf-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.kf-card-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.kf-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #046A38;
}

.kf-expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.kf-expand-btn:hover {
    color: #046A38;
}

/* Tablo */
.kf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.kf-table thead tr th {
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    background: #fff;
    text-align: left;
}

.kf-table thead tr th.kf-th-right {
    text-align: right;
}

.kf-table tbody tr td {
    padding: 11px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
    white-space: nowrap;
}

.kf-table tbody tr:hover td {
    background: #f9fafb;
}

.kf-table tbody tr td.kf-td-right {
    text-align: right;
}

/* Döviz tipi */
.kf-currency {
    font-weight: 600;
    color: #374151;
}

/* Kapama Alanı — mavi link stili */
.kf-kapama {
    color: #046A38;
    font-weight: 500;
}

/* Tutar hücreleri */
.kf-amount {
    text-align: right;
}

.kf-amount-val {
    font-weight: 500;
    color: #111827;
}

.kf-amount-unit {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    margin-left: 3px;
    text-transform: uppercase;
}

/* Kalan — vurgulu */
.kf-kalan-val {
    font-weight: 600;
    color: #046A38;
}

/* Grup Toplam Satırı */
.kf-table tbody tr.kf-group-total td {
    background: #046A38;
    color: #fff;
    font-weight: 700;
    border-bottom: none;
    padding: 12px 14px;
}

.kf-table tbody tr.kf-group-total .kf-kapama {
    color: #fff;
}

.kf-table tbody tr.kf-group-total .kf-amount-val {
    color: #fff;
}

.kf-table tbody tr.kf-group-total .kf-amount-unit {
    color: rgba(255,255,255,0.6);
}

.kf-table tbody tr.kf-group-total .kf-kalan-val {
    color: #fff;
}

/* PDF & Excel Butonları */
.kf-btn-pdf {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.kf-btn-pdf:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

.kf-btn-excel {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.kf-btn-excel:hover {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}

/* ================================================
   Günce Bakiye Raporu — asb- prefix
   ================================================ */

/* Firma Bilgi Çubuğu */
.asb-firm-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--clr-primary);
    border-radius: .625rem;
    padding: .875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.asb-firm-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1.2;
}

.asb-firm-meta {
    font-size: .8125rem;
    color: #6b7280;
    margin-top: 2px;
}

.asb-firm-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.asb-date-badge {
    background: #F2F8F4;
    color: var(--clr-primary);
    font-size: .8125rem;
    font-weight: 600;
    padding: .35rem .875rem;
    border-radius: .375rem;
    border: 1px solid #C6E2D2;
    white-space: nowrap;
}

.asb-btn-pdf {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.asb-btn-pdf:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

/* Tablo Kartı */
.asb-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.asb-table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

/* Tablo Başlık Grupları */
.asb-tbl-group-header td {
    background: var(--clr-primary);
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: .9375rem;
    padding: .625rem 1rem;
    letter-spacing: .5px;
}

.asb-tbl-col-header th {
    background: #034A27;
    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;
}

/* Veri Satırları */
.asb-table-card tbody tr:nth-child(even) {
    background: #F8FCFA;
}

.asb-table-card tbody tr:hover {
    background: #EEF7F1;
    transition: background .15s;
}

.asb-table-card tbody td {
    padding: .5rem 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: 600;
    color: var(--clr-primary);
}

/* Değer renkleri */
.asb-val-positive {
    color: #16a34a;
    font-weight: 600;
}

.asb-val-negative {
    color: #dc2626;
    font-weight: 600;
}

/* Footer / Toplam Satırları */
.asb-tbl-footer td {
    background: var(--clr-primary) !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;
}

/* ================================================
   Vadesi Gelmemiş Çekler — uc- prefix
   ================================================ */

.uc-firm-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--clr-primary);
    border-radius: .625rem;
    padding: .875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.uc-firm-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1.2;
}

.uc-firm-meta {
    font-size: .8125rem;
    color: #6b7280;
    margin-top: 2px;
}

.uc-firm-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.uc-date-badge {
    background: #F2F8F4;
    color: var(--clr-primary);
    font-size: .8125rem;
    font-weight: 600;
    padding: .35rem .875rem;
    border-radius: .375rem;
    border: 1px solid #C6E2D2;
    white-space: nowrap;
}

.uc-btn-pdf {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.uc-btn-pdf:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

/* Tablo Kartı */
.uc-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.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: var(--clr-primary);
    color: #fff;
    font-weight: 600;
    font-size: .775rem;
    padding: .5rem .75rem;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,.12);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.uc-table-card thead th.text-right {
    text-align: right;
}

.uc-table-card tbody tr:nth-child(even) {
    background: #F8FCFA;
}

.uc-table-card tbody tr:hover {
    background: #EEF7F1;
    transition: background .15s;
}

.uc-table-card tbody td {
    padding: .45rem .75rem;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
    font-size: .8125rem;
    vertical-align: middle;
}

.uc-table-card tbody td.text-right {
    text-align: right;
    font-family: 'Consolas', monospace;
    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: .75rem;
    font-weight: 600;
    background: #EEF7F1;
    color: var(--clr-primary);
    border: 1px solid #C6E2D2;
    white-space: nowrap;
}

/* Toplam Satırı */
.uc-tbl-footer td {
    background: var(--clr-primary) !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-family: 'Consolas', monospace;
}

.uc-btn-excel {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.uc-btn-excel:hover {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}

/* Döviz Grubu Başlığı */
.uc-currency-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    background: #F2F8F4;
    border-bottom: 1px solid #D8EBE1;
}

.uc-currency-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--clr-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: .3rem;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.uc-currency-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--clr-primary);
}


/* ============================================================
   cc- : Çek Konsantrasyon Raporu (CheckConcentration)
   ============================================================ */

/* Firma Bilgi Çubuğu — uc-firm-bar yapısını tekrar kullanır */

/* Özet Bilgi Kartları */
.cc-summary {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.cc-summary-item {
    background: #fff;
    border: 1px solid #D8EBE1;
    border-radius: .5rem;
    padding: .6rem 1rem;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.cc-summary-label {
    font-size: .72rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: .2rem;
}

.cc-summary-value {
    font-size: .9rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.cc-summary-item.cc-highlight {
    border-left: 3px solid var(--base-link-color);
}

/* Footer Not */
.cc-note {
    margin-top: .75rem;
    font-size: .78rem;
    color: #6b7280;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   AL- PREFIX — Muavin Defter (AssistanLedger) Sayfası
═══════════════════════════════════════════════════════════════ */

/* Firma Bilgi Çubuğu */
.al-firm-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.al-firm-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.al-firm-meta {
    font-size: .78rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

.al-firm-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.al-date-badge {
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    padding: .3rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Bilgi Kartı */
.al-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .75rem 1.25rem;
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.al-info-item {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.al-info-label {
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    min-width: 110px;
}

.al-info-value {
    font-size: .88rem;
    font-weight: 700;
    color: var(--clr-primary);
}

/* Dönem Badge */
.al-period-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--clr-primary);
    border-radius: 6px;
    padding: .25rem .6rem;
    font-size: .78rem;
    font-weight: 600;
}

/* Ana Tablo */
.al-table-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    margin-bottom: 1rem;
}

.al-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.al-table thead tr {
    background-color: var(--clr-primary);
}

.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;
}

/* Toplam Footer Satırı */
.al-table tfoot tr {
    background-color: var(--clr-primary);
}

.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: right;
}

.al-table tfoot td:last-child {
    border-right: none;
}

/* Footer Not */
.al-note {
    margin-top: .75rem;
    font-size: .78rem;
    color: #6b7280;
    font-style: italic;
}

/* 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: .625rem;
    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;
}

.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: var(--clr-primary); }

.al-kpi-icon {
    width: 40px;
    height: 40px;
    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: var(--clr-primary); }

.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.1rem;
    font-weight: 800;
    color: #111827;
    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: var(--clr-primary); }

/* Tablo Toolbar (arama) */
.al-table-toolbar {
    background: var(--clr-primary);
    border-radius: .625rem .625rem 0 0;
    padding: .75rem 1rem;
}

.al-search-wrap {
    position: relative;
    width: 100%;
}

.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,.75);
    white-space: nowrap;
    margin-top: .4rem;
    text-align: right;
}

.al-record-count span {
    font-weight: 700;
    color: #fff;
}

/* Toolbar varsa table-wrap üst border-radius sıfırlanır */
.al-table-wrap.al-has-toolbar {
    border-top: none;
    border-radius: 0 0 .625rem .625rem;
}

/* ── Mobil düzenlemeler ── */
@media (max-width: 767px) {

    /* Firma Bilgi Çubuğu */
    .al-firm-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }
    .al-firm-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Bilgi Kartı: tek sütun */
    .al-info-card {
        grid-template-columns: 1fr;
    }
    .al-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: .15rem;
    }

    /* Tablo → Kart görünümü */
    .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: #F8FCFA; }

    .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 { text-align: right; }
    .al-table tbody td.al-num   { text-align: right; }

    /* Footer toplam satırı mobilde de görünür kalsın */
    .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;
    }

    /* Kayıt sayısı */
    .al-record-count { text-align: left; }
}

/* PDF / Excel Butonları */
.al-btn-pdf {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.al-btn-pdf:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

.al-btn-excel {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.al-btn-excel:hover {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}

/* ============================================================
   LATEST PURCHASE — Son Alış Fiyatları  (lp- prefix)
   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 var(--clr-primary);
}

.lp-info-card.lp-card-rep {
    border-left-color: var(--base-link-color);
}

.lp-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--clr-primary);
    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: var(--base-link-color);
}

.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: var(--clr-primary);
    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: var(--clr-primary);
    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: var(--clr-primary);
    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: var(--clr-primary);
}

.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;
}

/* ── 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; }
}

/* ============================================================
   HOME — Ana Sayfa KPI Kartları  v2  (hm- prefix)
   Views/Home/Index.cshtml + Views/Shared/Home/_homeKpi.cshtml
   ============================================================ */

/* ── Hero Banner ── */
/* ── İnce breadcrumb ── */
.hm-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 2px 8px;
    font-size: 12px;
}

.hm-crumb-home {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #EEF7F1;
    color: #046A38;
    font-size: 12px;
    transition: all .18s ease;
}

.hm-crumb-home:hover {
    background: #046A38;
    color: #fff;
}

.hm-crumb-sep {
    font-size: 9px;
    color: #C6E2D2;
}

.hm-crumb-current {
    font-weight: 600;
    color: #4A5A58;
    letter-spacing: .01em;
}

.hm-hero {
    background: linear-gradient(130deg, #034A27 0%, #046A38 45%, #178A54 100%);
    border-radius: 14px;
    padding: 12px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.hm-hero::before,
.hm-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .06;
    background: #fff;
}

.hm-hero::before { width: 260px; height: 260px; top: -80px; right: 120px; }
.hm-hero::after  { width: 180px; height: 180px; bottom: -60px; right: 30px; }

.hm-hero-left { display: flex; align-items: center; gap: 16px; }

.hm-hero-ico {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.12);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
    flex-shrink: 0;
}

.hm-hero-greeting {
    font-size: 10px;
    color: rgba(255,255,255,.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 2px;
}

.hm-hero-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

.hm-hero-date {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
}

.hm-hero-metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hm-hero-metric {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 6px 16px;
    text-align: center;
    min-width: 92px;
    backdrop-filter: blur(4px);
}

.hm-hero-metric-ico { font-size: 10px; margin-bottom: 2px; }
.hm-hero-metric-ico.ord { color: #93c5fd; }
.hm-hero-metric-ico.doc { color: #fdba74; }
.hm-hero-metric-ico.usr { color: #6ee7b7; }

.hm-hero-metric-val {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hm-hero-metric-lbl {
    font-size: 9px;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 4px;
}

/* ── Ana Kart ── */
.hm-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    overflow: hidden;
    margin-bottom: 0;
}

.hm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 20px;
    border-bottom: 1px solid #F2F8F4;
    flex-wrap: wrap;
    gap: 10px;
}

.hm-card-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 7px;
}

.hm-card-label i { color: var(--base-link-color); }

/* ── Dönem Sekmeleri ── */
.hm-tabs {
    display: flex;
    background: #F2F8F4;
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
}

.hm-tab {
    border: none;
    border-radius: 7px;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    background: transparent;
    transition: all .18s;
    white-space: nowrap;
    font-family: inherit;
}

.hm-tab.active {
    background: var(--clr-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(19,33,106,.3);
}

.hm-tab:not(.active):hover { background: #D8EBE1; color: var(--clr-primary); }

/* ── Kart Body ── */
.hm-card-body { padding: 16px 20px; }

/* ── Bölüm ── */
.hm-section { margin-bottom: 20px; }
.hm-section:last-child { margin-bottom: 0; }

.hm-sec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.hm-sec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    padding: 4px 12px 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    flex-shrink: 0;
}

.hm-sec-badge i { font-size: 6px; }
.hm-badge-order { background: #EEF7F1; color: var(--clr-primary); }
.hm-badge-doc   { background: #F4FAEA; color: #4E6E26; }
.hm-badge-login { background: #ecfdf5; color: #065f46; }

.hm-sec-line { flex: 1; height: 1px; background: #F2F8F4; }

/* ── KPI Grid ── */
.hm-grid { display: grid; gap: 10px; }
.hm-g6 { grid-template-columns: repeat(6, 1fr); }
.hm-g4 { grid-template-columns: repeat(4, 1fr); }
.hm-g5 { grid-template-columns: repeat(5, 1fr); }

/* ── KPI Kart ── */
.hm-kpi {
    border-radius: 12px;
    padding: 13px 13px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    transition: transform .18s, box-shadow .18s;
    overflow: hidden;
}

.hm-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.09);
}

.hm-kpi.v-order { background: #F8FCFA; border: 1px solid #D8EBE1; }
.hm-kpi.v-doc   { background: #F4FAEA; border: 1px solid #D2ECAE; }
.hm-kpi.v-login { background: #f6fdf9; border: 1px solid #c6eedd; }

/* Dekoratif arka plan dairesi */
.hm-kpi::before {
    content: '';
    position: absolute;
    width: 80px; height: 80px;
    border-radius: 50%;
    right: -20px; bottom: -20px;
    opacity: .06;
}

.hm-kpi.v-order::before { background: #046A38; }
.hm-kpi.v-doc::before   { background: #6C9834; }
.hm-kpi.v-login::before { background: #059669; }

/* Üst satır: ikon + buton */
.hm-kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* İkon */
.hm-kpi-ico {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.hm-kpi.v-order .hm-kpi-ico { background: linear-gradient(135deg, #046A38, #178A54); color: #fff; }
.hm-kpi.v-doc   .hm-kpi-ico { background: linear-gradient(135deg, #6C9834, #f59e0b); color: #fff; }
.hm-kpi.v-login .hm-kpi-ico { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }

/* Arama butonu */
.hm-kpi-btn {
    width: 26px; height: 26px;
    border-radius: 7px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.07);
    color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all .18s;
    flex-shrink: 0;
}

.hm-kpi.v-order .hm-kpi-btn:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.hm-kpi.v-doc   .hm-kpi-btn:hover { background: var(--base-link-color); color: #fff; border-color: var(--base-link-color); }
.hm-kpi.v-login .hm-kpi-btn:hover { background: #059669; color: #fff; border-color: #059669; }

/* Sayı + Etiket */
.hm-kpi-num {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.5px;
}

.hm-kpi.v-order .hm-kpi-num { color: #034A27; }
.hm-kpi.v-doc   .hm-kpi-num { color: #92400e; }
.hm-kpi.v-login .hm-kpi-num { color: #064e3b; }

.hm-kpi-lbl {
    font-size: 10.5px;
    color: #9ca3af;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 2px;
}

.hm-kpi-sub {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: 1px;
    opacity: .4;
}

.hm-kpi.v-order .hm-kpi-sub { color: #046A38; }
.hm-kpi.v-doc   .hm-kpi-sub { color: #6C9834; }
.hm-kpi.v-login .hm-kpi-sub { color: #059669; }

/* ── Grafik Bölümü ── */
.hm-charts {
    display: grid;
    grid-template-columns: 5fr 8fr;
    gap: 14px;
    margin-top: 16px;
}

.hm-chart-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    overflow: hidden;
}

.hm-chart-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid #F2F8F4;
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-primary);
}

.hm-chart-ico {
    width: 28px; height: 28px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #fff;
    flex-shrink: 0;
}

.hm-chart-ico.pie { background: linear-gradient(135deg, #6C9834, #f59e0b); }
.hm-chart-ico.bar { background: linear-gradient(135deg, #046A38, #178A54); }

.hm-chart-inner { padding: 16px 20px; min-height: 180px; }

/* ── Responsive ── */
@media (max-width: 1280px) {
    .hm-g6 { grid-template-columns: repeat(3, 1fr); }
    .hm-g5 { grid-template-columns: repeat(3, 1fr); }
    .hm-g4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hm-g6, .hm-g5, .hm-g4 { grid-template-columns: repeat(2, 1fr); }
    .hm-charts { grid-template-columns: 1fr; }
    .hm-hero-metrics { display: none; }
}

@media (max-width: 560px) {
    .hm-g6, .hm-g5, .hm-g4 { grid-template-columns: 1fr; }
    .hm-card-head { flex-direction: column; align-items: flex-start; }
    .hm-tabs { width: 100%; overflow-x: auto; }
    .hm-hero { padding: 18px 20px; }
}

/* ════════════════════════════════════════════════════
   pds- — PaymentDueSummary (Ödeme Vadesi Özeti)
   ════════════════════════════════════════════════════ */
.pds-page {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    color: #1a1a1a;
    background: #fff;
    padding: 18px 24px;
    min-width: 1100px;
}

/* Header */
.pds-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 6px;
    border-bottom: 2px solid #046A38;
    padding-bottom: 10px;
}
.pds-header-left img { height: 36px; }
.pds-header-left .pds-firm-name {
    font-size: 12px;
    font-weight: 700;
    color: #046A38;
    line-height: 1.2;
}
.pds-header-left .pds-rep {
    font-size: 10.5px;
    color: #555;
    margin-top: 2px;
}
.pds-header-center {
    text-align: center;
    flex: 1;
    padding: 0 16px;
}
.pds-header-center .pds-title {
    font-size: 14px;
    font-weight: 700;
    color: #046A38;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.pds-header-center .pds-subtitle {
    font-size: 10.5px;
    color: #888;
    margin-top: 2px;
}
.pds-header-right {
    text-align: right;
    font-size: 10.5px;
    color: #555;
    white-space: nowrap;
}
.pds-header-right strong { color: #046A38; }

/* Customer group */
.pds-customer-block { margin-bottom: 28px; }

.pds-customer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.pds-customer-name {
    font-size: 13px;
    font-weight: 700;
    color: #6C9834;
    text-transform: uppercase;
    letter-spacing: .3px;
    text-align: center;
}

/* Kapama sub-group */
.pds-kapama-block { margin-bottom: 14px; }

.pds-kapama-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #046A38;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px 4px 0 0;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Table */
.pds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
}
.pds-table thead tr {
    background: #046A38;
    color: #fff;
}
.pds-table thead th {
    padding: 6px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 10px;
    white-space: nowrap;
    border: 1px solid #034A27;
}
.pds-table tbody tr { background: #fff; }
.pds-table tbody tr:nth-child(even) { background: #F2F8F4; }
.pds-table tbody td {
    padding: 5px 5px;
    border: 1px solid #D8EBE1;
    text-align: center;
    white-space: nowrap;
}
.pds-table tbody td.pds-td-left { text-align: left; }
.pds-table tbody td.pds-td-right { text-align: right; }

/* Toplam row */
.pds-table tfoot tr {
    background: #046A38;
    color: #fff;
    font-weight: 700;
}
.pds-table tfoot td {
    padding: 5px 5px;
    border: 1px solid #034A27;
    text-align: center;
    font-size: 10.5px;
}
.pds-table tfoot td.pds-td-right { text-align: right; }

/* Date overdue */
.pds-overdue { color: #c0392b; font-weight: 600; }

/* Footer */
.pds-footer {
    margin-top: 20px;
    border-top: 1px solid #D8EBE1;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    color: #999;
}
.pds-footer a { color: #046A38; text-decoration: none; }

/* pds — layout-içi bilgi çubuğu & buton */
.pds-info-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: #F2F8F4;
    border: 1px solid #D8EBE1;
    border-left: 4px solid #046A38;
    border-radius: 6px;
    padding: 12px 18px;
    gap: 16px;
}
.pds-info-center {
    text-align: center;
}
.pds-info-firm {
    font-size: 15px;
    font-weight: 700;
    color: #046A38;
}
.pds-info-rep {
    font-size: 12px;
    color: #555;
    margin-top: 3px;
}
.pds-info-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.pds-info-date {
    font-size: 12px;
    color: #555;
}
.pds-btn-pdf {
    background: #046A38;
    color: #fff !important;
    border: none;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pds-btn-pdf:hover { background: #034A27; }
.pds-btn-excel {
    background: #1d6f42;
    color: #fff !important;
    border: none;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pds-btn-excel:hover { background: #155233; }

/* ═══════════════════════════════════════════════════════════════
   WPP — WeeklyPurchasePayment (Haftalık Alımlar ve Ödemeler)
═══════════════════════════════════════════════════════════════ */
.wpp-page {
    background: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    color: #222;
    padding: 20px 32px;
    max-width: 1100px;
    margin: 0 auto;
}
.wpp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.wpp-header-logo img {
    height: 48px;
}
.wpp-header-company {
    font-size: 13px;
    font-weight: 700;
    color: #046A38;
    margin-top: 4px;
}
.wpp-header-date {
    font-size: 13px;
    font-weight: 700;
    color: #046A38;
    text-align: right;
    padding-top: 4px;
}
.wpp-title {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #046A38;
    letter-spacing: 0.5px;
    margin: 8px 0 12px;
    text-transform: uppercase;
}
.wpp-customer {
    font-size: 14px;
    font-weight: 700;
    color: #a00000;
    margin-bottom: 18px;
}
.wpp-customer span {
    color: #046A38;
    font-weight: 700;
}
.wpp-group {
    margin-bottom: 20px;
}
.wpp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}
.wpp-table thead tr {
    background: #046A38;
    color: #fff;
}
.wpp-table thead th {
    padding: 8px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #034A27;
    white-space: nowrap;
}
.wpp-table tbody tr td {
    padding: 6px 10px;
    text-align: center;
    border: 1px solid #C6E2D2;
    font-size: 12px;
    color: #222;
    background: #fff;
}
.wpp-table tbody tr:nth-child(even) td {
    background: #F2F8F4;
}
.wpp-table tbody tr.wpp-subtotal td {
    background: #EEF7F1;
    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: 14px;
    color: #046A38;
}
.wpp-table td.wpp-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.wpp-grand-total {
    margin-top: 8px;
}
.wpp-grand-total-table {
    width: 100%;
    border-collapse: collapse;
}
.wpp-grand-total-table td {
    background: #6C9834;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 10px;
}
.wpp-grand-total-table .wpp-gt-label {
    text-align: right;
    padding-right: 14px;
    letter-spacing: 0.3px;
}
.wpp-grand-total-table .wpp-gt-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.wpp-th-right {
    text-align: right !important;
    padding-right: 10px !important;
}
.wpp-footer {
    margin-top: 24px;
    border-top: 1px solid #C6E2D2;
    padding-top: 8px;
    text-align: center;
    font-size: 10px;
    color: #888;
}
/* Toolbar (print/excel butonları) */
.wpp-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}
.wpp-btn {
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 5px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 600;
}
.wpp-btn-pdf  { background: #046A38; color: #fff; }
.wpp-btn-excel { background: #1d6f42; color: #fff; }
.wpp-btn-pdf:hover   { background: #034A27; }
.wpp-btn-excel:hover { background: #155233; }

/* WPP — Info Bar (web layout) */
.wpp-info-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: #fff;
    border: 1px solid #C6E2D2;
    border-radius: 8px;
    padding: 12px 20px;
    gap: 16px;
}
.wpp-info-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wpp-info-firm {
    font-size: 13px;
    font-weight: 700;
    color: #046A38;
}
.wpp-info-rep {
    font-size: 12px;
    color: #555;
}
.wpp-info-center {
    text-align: center;
}
.wpp-customer-name {
    font-size: 15px;
    font-weight: 700;
    color: #6C9834;
}
.wpp-info-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.wpp-date-badge {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}
.wpp-btn-pdf {
    background: #046A38 !important;
    color: #fff !important;
    border: none !important;
}
.wpp-btn-pdf:hover { background: #034A27 !important; }
.wpp-btn-excel {
    background: #1d6f42 !important;
    color: #fff !important;
    border: none !important;
}
.wpp-btn-excel:hover { background: #155233 !important; }

/* ================================================
   Online Mutabakat — oma- prefix (modern redesign)
   Sadece .oma kapsamında; diğer sayfaları etkilemez
   ================================================ */

.oma {
    --oma-primary: #046A38;
    --oma-primary-600: #178A54;
    --oma-accent: #6C9834;
    --oma-ring: rgba(19, 33, 106, .12);
}

/* ---------- Hero başlık ---------- */
.oma-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    padding: .8rem 1.35rem;
    margin-bottom: .9rem;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(120deg, #046A38 0%, #178A54 55%, #178A54 100%);
    box-shadow: 0 12px 28px -18px rgba(19, 33, 106, .55);
}

.oma-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(242, 124, 65, .35), transparent 65%);
    pointer-events: none;
}

.oma-hero-left {
    display: flex;
    align-items: center;
    gap: .8rem;
    position: relative;
    z-index: 1;
}

.oma-hero-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
}

.oma-hero-title {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.1;
}

.oma-hero-sub {
    margin: .1rem 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: .8rem;
}

.oma-hero-bc {
    position: relative;
    z-index: 1;
    margin: 0;
}

.oma-hero-bc .breadcrumb-item,
.oma-hero-bc .breadcrumb-item a {
    color: rgba(255, 255, 255, .82) !important;
}

.oma-hero-bc .breadcrumb-item a:hover {
    color: #fff !important;
}

/* ---------- Sekmeler (segmented pill) ---------- */
.oma-tabs {
    background: transparent;
}

.oma .tab-nav {
    display: flex;
    gap: .35rem;
    padding: .35rem;
    margin-bottom: .9rem;
    background: #fff;
    border: 1px solid #EEF7F1;
    border-radius: 12px;
    box-shadow: 0 6px 22px -16px rgba(19, 33, 106, .35);
    overflow-x: auto;
    scrollbar-width: none;
}

.oma .tab-nav::-webkit-scrollbar { display: none; }

.oma .tab-nav .tab-nav-item {
    flex: 1 1 0;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem .85rem;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #5A6B69;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all .22s ease;
}

.oma .tab-nav .tab-nav-item:hover {
    background: #F2F8F4;
    color: var(--oma-primary);
}

.oma .tab-nav .tab-nav-item .tab-nav-item-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #EEF7F1;
    color: var(--oma-primary);
    font-size: .85rem;
    transition: all .22s ease;
}

.oma .tab-nav .tab-nav-item .tab-nav-item-text {
    text-align: left;
    line-height: 1.2;
    font-size: .85rem;
}

.oma .tab-nav .tab-nav-item.active {
    background: linear-gradient(120deg, var(--oma-primary), var(--oma-primary-600));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(19, 33, 106, .7);
}

.oma .tab-nav .tab-nav-item.active .tab-nav-item-icon {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* ---------- Kart ---------- */
.oma .card {
    border: 1px solid #EEF7F1;
    border-radius: 18px;
    box-shadow: 0 14px 40px -24px rgba(19, 33, 106, .45);
    overflow: hidden;
}

.oma .card-header {
    --card-header-bg-color: #fff;
    align-items: center;
    padding: .8rem 1.4rem;
    border-bottom: 1px solid #F2F8F4;
    background: #fff;
}

.oma .card-title h2 {
    position: relative;
    padding-left: .85rem;
    font-size: 1.05rem;
}

.oma .card-title h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(var(--oma-primary), var(--oma-accent));
}

.oma .card-tools .btn-circle {
    border-radius: 10px;
}

/* ---------- Filtre alanı ---------- */
.oma .card-filter-area {
    padding: .9rem 1.4rem;
    background: linear-gradient(180deg, #F8FCFA, #F2F8F4);
    border-bottom: 1px solid #F2F8F4;
}

.oma .card-filter-area .input-control,
.oma .card-filter-area .select {
    border-radius: 12px;
    background: #fff;
}

.oma .card-filter-area .btn {
    border-radius: 12px;
    font-weight: 600;
}

.oma .btn-error {
    --btn-bg-color: var(--oma-accent);
}

.oma .btn-error:hover {
    --btn-bg-color: #5A8029;
}

/* ---------- Boş durum ---------- */
.oma-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 3.25rem 1.5rem;
    margin-top: 1rem;
    background:
        radial-gradient(circle at 50% 0%, #F2F8F4, #ffffff 70%);
    border: 1px dashed #C6E2D2;
    border-radius: 18px;
}

.oma-empty-icon {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--oma-primary);
    background: #EEF7F1;
    box-shadow: 0 0 0 10px rgba(19, 33, 106, .05);
    animation: oma-float 3.2s ease-in-out infinite;
}

@keyframes oma-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.oma-empty-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2A3634;
}

.oma-empty-text {
    margin: .25rem auto 0;
    max-width: 380px;
    font-size: .875rem;
    color: #6E807D;
}

/* ---------- Tablo cilası ---------- */
.oma .table-wrapper {
    border-radius: 14px;
    border: 1px solid #EEF7F1;
    overflow: hidden;
}

.oma .table thead th {
    --table-th-bg: #F2F8F4;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .04em;
    color: #5F706D;
}

.oma .table tbody tr {
    transition: background .15s ease;
}

.oma .table tbody tr:hover {
    background: #F8FCFA;
}

.oma .table tbody td {
    vertical-align: middle;
}

/* ---------- Liste üst şeridi (özet + Excel) ---------- */
.oma-list-bar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.oma-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    flex: 1 1 520px;
}

.oma-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: .8rem;
    flex: 1 1 180px;
    max-width: 320px;
    padding: .8rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #EEF7F1;
    box-shadow: 0 10px 26px -20px rgba(19, 33, 106, .5);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.oma-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -18px rgba(19, 33, 106, .5);
}

.oma-stat::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    opacity: .08;
    background: currentColor;
}

.oma-stat-ico {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 1.05rem;
    color: #fff;
}

.oma-stat-body {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.oma-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #2A3634;
}

.oma-stat-lbl {
    margin-top: .15rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6E807D;
}

/* Renk varyantları */
.oma-stat.is-total { color: #046A38; }
.oma-stat.is-total .oma-stat-ico { background: linear-gradient(135deg, #046A38, #178A54); }

.oma-stat.is-wait { color: #b45309; }
.oma-stat.is-wait .oma-stat-ico { background: linear-gradient(135deg, #f59e0b, #6C9834); }

.oma-stat.is-ok { color: #047857; }
.oma-stat.is-ok .oma-stat-ico { background: linear-gradient(135deg, #059669, #10b981); }

.oma-stat.is-no { color: #b91c1c; }
.oma-stat.is-no .oma-stat-ico { background: linear-gradient(135deg, #dc2626, #ef4444); }

/* KPI şeridini tam genişliğe yay (Cevaplananlar) */
.oma-stats-full {
    flex: 1 1 100%;
}

.oma-stats-full .oma-stat {
    max-width: none;
}

/* Excel indir butonu */
.oma-list-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.oma-btn-excel {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.15rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: .875rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #157347, #1d8f56);
    box-shadow: 0 12px 24px -14px rgba(21, 115, 71, .8);
    transition: all .18s ease;
}

.oma-btn-excel:hover {
    background: linear-gradient(135deg, #12613c, #17784a);
    transform: translateY(-1px);
}

.oma-btn-excel i { font-size: 1rem; }

/* Kompakt sayaç çipi (Cevap Bekleyenler) */
.oma-listinfo {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
}

.oma-count-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .9rem .5rem .65rem;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    color: #92500a;
    background: #F4FAEA;
    border: 1px solid #D2ECAE;
    box-shadow: 0 8px 20px -16px rgba(242, 124, 65, .8);
}

.oma-count-chip i {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #6C9834);
    color: #fff;
    font-size: .8rem;
}

.oma-count-chip b {
    font-size: 1.05rem;
    font-weight: 800;
    color: #b45309;
}

.oma-count-chip > span {
    color: #9a6a3a;
    font-weight: 500;
}

@media (max-width: 767px) {
    .oma-stats {
        flex-basis: 100%;
    }

    .oma-stat {
        flex: 1 1 calc(50% - .375rem);
    }

    .oma-list-actions {
        width: 100%;
    }

    .oma-btn-excel {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Detay drawer ---------- */
.oma .drawer-content {
    border-radius: 16px;
    overflow: hidden;
}

.oma .drawer-header {
    align-items: center;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid #F2F8F4;
}

.oma .drawer-title {
    position: relative;
    padding-left: .85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2A3634;
}

.oma .drawer-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(var(--oma-primary), var(--oma-accent));
}

/* Detay bilgi başlığı (gradient kart) */
.oma-detail-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(120deg, #046A38 0%, #178A54 60%, #178A54 100%);
    box-shadow: 0 14px 34px -20px rgba(19, 33, 106, .6);
}

.oma-detail-head::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(242, 124, 65, .35), transparent 65%);
    pointer-events: none;
}

.oma-detail-head-icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 1.35rem;
    position: relative;
    z-index: 1;
}

.oma-detail-head-body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.oma-detail-firm {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.oma-detail-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .35rem;
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
}

.oma-detail-date-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-weight: 600;
}

/* Sayısal sütun hizası */
.oma .oma-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #2A3634 !important;
    white-space: nowrap;
}

.oma .table thead th.oma-num {
    text-align: right;
}

/* Tip rozeti */
.oma-tip-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    background: #EEF7F1;
    color: var(--oma-primary);
    white-space: nowrap;
}

/* ---------- Responsive (mobil) ---------- */
@media (max-width: 767px) {
    /* Footer'ı mobilde gizle (alt navbar zaten var) */
    .app-footer { display: none !important; }

    .oma-hero {
        padding: .85rem 1rem;
        text-align: left;
    }

    .oma-hero-title { font-size: 1.1rem; }

    /* Breadcrumb'ı mobilde gizle */
    .oma-hero-bc { display: none !important; }

    /* Sekmeler: sola tam yasla, kompakt */
    .oma .tab-nav {
        gap: .3rem;
        padding: .3rem;
    }

    .oma .tab-nav .tab-nav-item {
        flex: 0 0 auto;
        min-width: auto;
        justify-content: flex-start;
        padding: .5rem .7rem;
    }

    .oma .tab-nav .tab-nav-item .tab-nav-item-icon {
        width: 26px;
        height: 26px;
    }

    /* ---- Tabloyu kart listesine çevir ---- */
    .oma .table-wrapper {
        max-height: none !important;
        overflow: visible !important;
        border: none;
        background: transparent;
    }

    .oma table.table thead {
        display: none;
    }

    .oma table.table,
    .oma table.table tbody,
    .oma table.table tr,
    .oma table.table td {
        display: block;
        width: 100%;
    }

    .oma table.table tr {
        background: #fff !important;
        border: 1px solid #EEF7F1;
        border-radius: 12px;
        padding: .35rem .9rem;
        margin-bottom: .7rem;
        box-shadow: 0 8px 20px -16px rgba(19, 33, 106, .45);
    }

    .oma table.table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .5rem 0;
        border: none;
        border-bottom: 1px solid #EEF7F1;
        text-align: right;
        white-space: normal;
        word-break: break-word;
    }

    .oma table.table td:last-child {
        border-bottom: none;
    }

    .oma table.table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        text-align: left;
        font-size: .7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #5F706D;
    }

    /* Etiketi olmayan hücreler (checkbox / işlem) */
    .oma table.table td[data-label=""]::before,
    .oma table.table td:not([data-label])::before {
        content: none;
    }

    /* İşlem hücresini sağa yasla */
    .oma table.table td.oma-cell-action {
        justify-content: flex-end;
    }

    /* Firma adı hücresini vurgula */
    .oma table.table td.oma-cell-title {
        text-align: left;
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: .1rem;
    }

    .oma table.table td.oma-cell-title::before {
        margin-bottom: .1rem;
    }
}

/* ================================================
   Sol Menü + Header — modern chrome (global)
   Framework class'ları korunur, sadece görsel katman
   ================================================ */

:root {
    --nav-primary: #046A38;
    --nav-primary-600: #178A54;
    --nav-accent: #6C9834;
}

/* ---------- Sidebar gövde ---------- */
.app-sidebar {
    background: #ffffff;
    border-right: 1px solid #EEF7F1;
}

.app-sidebar-header {
    padding-bottom: .5rem;
    border-bottom: 1px solid #F2F8F4;
}

.app-sidebar-search .input-control {
    border-radius: 12px;
    background: #F2F8F4;
    border: 1px solid #EEF7F1;
    transition: all .2s ease;
}

.app-sidebar-search .input-control:focus-within {
    background: #fff;
    border-color: var(--nav-primary);
    box-shadow: 0 0 0 3px rgba(19, 33, 106, .1);
}

/* ---------- Nav bağlantıları ---------- */
.app-sidebar-nav-item > .app-sidebar-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 2px 10px;
    padding: .6rem .7rem;
    border-radius: 11px;
    font-weight: 500;
    color: #4A5A58;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.app-sidebar-nav-item > .app-sidebar-nav-link:hover {
    background: #F2F8F4;
    color: var(--nav-primary);
    transform: translateX(2px);
}

/* İkon çipi */
.app-sidebar-nav-link-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #EEF7F1;
    color: var(--nav-primary);
    font-size: 1rem;
    transition: all .18s ease;
}

.app-sidebar-nav-item > .app-sidebar-nav-link:hover .app-sidebar-nav-link-icon {
    background: #D8EBE1;
}

/* Aktif durum — gradient pill + sol şerit */
.app-sidebar .app-sidebar-nav-item.active > .app-sidebar-nav-link,
.app-sidebar .app-sidebar-nav-item.active.has-children > .app-sidebar-nav-link {
    background: linear-gradient(120deg, var(--nav-primary), var(--nav-primary-600)) !important;
    color: #fff !important;
    box-shadow: 0 12px 22px -14px rgba(19, 33, 106, .7);
}

.app-sidebar .app-sidebar-nav-item.active > .app-sidebar-nav-link .app-sidebar-nav-link-icon {
    background: rgba(255, 255, 255, .2) !important;
    color: #fff !important;
}

.app-sidebar .app-sidebar-nav-item.active > .app-sidebar-nav-link .app-sidebar-nav-link-text {
    color: #fff !important;
}

.app-sidebar .app-sidebar-nav-item.active > .app-sidebar-nav-link::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: var(--nav-accent);
}

/* Açılır ok rengi */
.app-sidebar-nav-item.has-children > .app-sidebar-nav-link::after {
    transition: transform .2s ease;
}

.app-sidebar-nav-item.active.has-children > .app-sidebar-nav-link::after {
    color: #fff !important;
}

/* ---------- Alt menü (children) ---------- */
.app-sidebar-nav-children {
    margin: 2px 10px 4px 26px;
    padding-left: .6rem;
    border-left: 1.5px dashed #D8EBE1;
}

.app-sidebar-nav-children .app-sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: .45rem .6rem;
    margin: 1px 0;
    border-radius: 8px;
    font-size: .86rem;
    color: #5F706D;
    transition: all .16s ease;
}

.app-sidebar-nav-children .app-sidebar-nav-link::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: .55rem;
    border-radius: 50%;
    background: #C6E2D2;
    flex: 0 0 auto;
    transition: background .16s ease;
}

.app-sidebar-nav-children .app-sidebar-nav-link:hover {
    background: #F2F8F4;
    color: var(--nav-primary);
}

.app-sidebar-nav-children .app-sidebar-nav-link:hover::before {
    background: var(--nav-accent);
}

.app-sidebar-nav-children .app-sidebar-nav-item.active > .app-sidebar-nav-link {
    background: #EEF7F1 !important;
    color: var(--nav-primary) !important;
    font-weight: 600;
}

.app-sidebar-nav-children .app-sidebar-nav-item.active > .app-sidebar-nav-link .app-sidebar-nav-link-text {
    color: var(--nav-primary) !important;
}

.app-sidebar-nav-children .app-sidebar-nav-item.active > .app-sidebar-nav-link::before {
    background: var(--nav-accent);
}

/* ---------- Sidebar footer / firma ---------- */
.app-sidebar-footer {
    border-top: 1px solid #F2F8F4;
    padding-top: .4rem;
}

.app-sidebar-footer .app-sidebar-nav-item > .app-sidebar-nav-link:hover {
    background: #F4FAEA;
    color: var(--nav-accent);
}

.app-sidebar-footer .app-sidebar-nav-item > .app-sidebar-nav-link:hover .app-sidebar-nav-link-icon {
    background: #D2ECAE;
    color: var(--nav-accent);
}

.app-sidebar-company {
    padding: .75rem 1rem;
    text-align: center;
    border-top: 1px solid #F2F8F4;
    background: #F8FCFA;
}

.app-sidebar-company span {
    font-size: .72rem;
    letter-spacing: .01em;
}

/* ---------- Header ---------- */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid #EEF7F1;
    box-shadow: 0 4px 18px -16px rgba(19, 33, 106, .5);
}

/* Bildirim butonu */
.app-header-desktop .btn-naked {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #F2F8F4;
    color: var(--nav-primary);
    transition: all .18s ease;
}

.app-header-desktop .btn-naked:hover {
    background: #EEF7F1;
    color: var(--nav-primary-600);
}

.app-header-desktop .btn-naked::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nav-accent);
    border: 2px solid #fff;
}

/* Hesap kartı */
.app-header-desktop .nav-account-card {
    padding: .35rem .6rem;
    border-radius: 12px;
    transition: background .18s ease;
}

.app-header-desktop .nav-account-card:hover {
    background: #F2F8F4;
}

.nav-account-card-info .font-semibold {
    color: #2A3634;
}

/* Mobil menü toggle */
.app-header-sidebar-toggle-btn {
    border-radius: 10px;
    transition: background .18s ease;
}

.app-header-sidebar-toggle-btn:hover {
    background: #F2F8F4;
    color: var(--nav-primary);
}
