/* Standard UI layer for report pages */
:root {
    --std-surface: #ffffff;
    --std-surface-soft: #f7f9fc;
    --std-border: #e5e9f2;
    --std-title: #1f2b4d;
    --std-muted: #6e82a5;
    --std-accent-a: #1f327d;
    --std-accent-b: #4b66ea;
    --std-shadow: 0 14px 40px rgba(31, 50, 125, 0.08);
}

.dark-mode {
    --std-surface: #1c2536;
    --std-surface-soft: #212b3e;
    --std-border: #364159;
    --std-title: #e5ecff;
    --std-muted: #9db0d6;
    --std-accent-a: #3f66ff;
    --std-accent-b: #3450ba;
    --std-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.std-content-body {
    animation: std-fade-up 0.35s ease;
}

.std-panel-card {
    background: var(--std-surface);
    border: 1px solid var(--std-border);
    border-radius: 14px;
    box-shadow: var(--std-shadow);
}

.tarih-card {
    border-radius: 14px;
    box-shadow: var(--std-shadow);
    border-color: var(--std-border);
    overflow: hidden;
}

.tarih-card .card-inner {
    background: var(--std-surface);
    padding: 30px;
}

.tarih-header {
    background: linear-gradient(105deg, var(--std-accent-a), var(--std-accent-b));
    color: #fff;
    border-radius: 12px 12px 0 0;
    padding: 20px 0;
    margin-bottom: 0;
}

.tarih-btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tarih-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(75, 102, 234, 0.24);
}

.date-time-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-time-group .date-picker-wrap,
.date-time-group .time-input-wrap {
    flex: 1;
    position: relative;
}

.divider-wrapper {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-wrapper:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--std-border);
}

.divider-text {
    position: relative;
    background: var(--std-surface);
    padding: 0 15px;
    font-weight: 600;
    color: var(--std-muted);
}

.page-header-actions {
    text-align: right;
}

.page-header-actions .tw-btn {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .std-content-body .nk-block-head .nk-block-between {
        align-items: stretch;
        gap: 10px;
    }

    .page-header-actions {
        text-align: left;
        width: 100%;
    }

    .page-header-actions .tw-btn {
        width: 100%;
        justify-content: center;
    }
}

#lokasyonDataTable {
    border-collapse: separate;
    border-spacing: 0;
}

#lokasyonDataTable thead th {
    color: var(--std-title);
    font-weight: 700;
    border-top: 0;
}

#lokasyonDataTable tbody tr {
    transition: background-color 0.15s ease;
}

#lokasyonDataTable tbody tr:hover {
    background: var(--std-surface-soft);
}

#lokasyonDataTable tfoot th {
    background: var(--std-surface-soft);
    color: var(--std-title);
    font-weight: 700;
}

.dt-btn-excel {
    background: #1ee0ac !important;
    color: #fff !important;
    border: none !important;
}

.dt-btn-pdf {
    background: #e85347 !important;
    color: #fff !important;
    border: none !important;
}

.dt-btn-print {
    background: #6576ff !important;
    color: #fff !important;
    border: none !important;
}

.dt-btn-excel:hover,
.dt-btn-pdf:hover,
.dt-btn-print:hover {
    opacity: 0.92;
}

@media (max-width: 767.98px) {
    .date-time-group {
        flex-direction: row;
        gap: 6px;
    }

    .date-time-group .date-picker-wrap,
    .date-time-group .time-input-wrap {
        width: 50%;
        min-width: 0;
        flex: 1 1 50%;
    }
}

@keyframes std-fade-up {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.std-page-hero {
    border: 1px solid var(--std-border);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(31, 50, 125, 0.08), rgba(75, 102, 234, 0.03));
    padding: 16px 18px;
    margin-bottom: 16px;
}

.dark-mode .std-page-hero {
    background: linear-gradient(120deg, rgba(63, 102, 255, 0.15), rgba(52, 80, 186, 0.06));
}

.std-page-hero h4,
.std-page-hero h5,
.std-page-hero h6 {
    color: var(--std-title);
    margin-bottom: 6px;
}

.std-page-hero .std-meta {
    color: var(--std-muted);
    font-size: 13px;
}

.std-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--std-border);
    background: var(--std-surface);
    color: var(--std-title);
    font-size: 12px;
    font-weight: 600;
}

.std-info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.std-form-card {
    border: 1px solid var(--std-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--std-shadow);
}

.std-form-card .card-inner {
    background: var(--std-surface);
}

.std-form-card .form-label {
    color: var(--std-title);
}

.lokasyon-row.is-selected,
.lokasyon-row:has(.lokasyon-checkbox:checked) {
    background: rgba(75, 102, 234, 0.08);
}

.index-prof .stats-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    min-height: 176px;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.index-prof .stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.index-prof .stats-card .card-inner {
    padding: 1rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.index-prof .stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.05rem;
}

.index-prof .stats-card .progress {
    height: 6px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.index-prof .stats-card .progress .progress-bar {
    border-radius: 999px;
}

.index-prof .stats-card .stats-title {
    letter-spacing: 0.5px;
    font-size: .74rem;
    margin-bottom: 2px;
}

.index-prof .stats-card .stats-amount {
    font-size: 1.18rem;
    line-height: 1.15;
    margin-bottom: 2px;
}

.index-prof .stats-prev small {
    opacity: 0.95;
    font-size: .78rem;
    display: block;
    line-height: 1.34;
    white-space: normal;
    word-break: break-word;
}

.index-prof .stats-prev small b {
    display: block;
    margin-top: 2px;
    font-weight: 700;
    color: #ffffff;
}

.index-prof .stats-prev small>span {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px !important;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    font-size: .68rem !important;
    font-weight: 700 !important;
    line-height: 1.1;
    white-space: nowrap;
}

.index-prof .stats-title,
.index-prof .stats-amount,
.index-prof .stats-percent,
.index-prof .stats-prev small,
.index-prof .stats-prev small b {
    color: #ffffff !important;
}

.index-prof .stats-percent {
    margin-top: auto;
    font-size: .78rem;
    line-height: 1;
}

.index-prof .index-fin-grid .bg-nakit {
    background: linear-gradient(140deg, #22c55e 0%, #16a34a 52%, #15803d 100%) !important;
}

.index-prof .index-fin-grid .bg-kredi {
    background: linear-gradient(140deg, #06b6d4 0%, #0ea5e9 54%, #2563eb 100%) !important;
}

.index-prof .index-fin-grid .bg-veresiye {
    background: linear-gradient(140deg, #f59e0b 0%, #f97316 55%, #ea580c 100%) !important;
}

.index-prof .index-fin-grid .bg-yemek {
    background: linear-gradient(140deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%) !important;
}

.index-prof .index-fin-grid .bg-ikram {
    background: linear-gradient(140deg, #ef4444 0%, #dc2626 56%, #b91c1c 100%) !important;
}

.index-prof .index-fin-grid .bg-masraf {
    background: linear-gradient(140deg, #f43f5e 0%, #e11d48 58%, #be123c 100%) !important;
}

.index-prof .index-fin-grid .bg-kasa {
    background: linear-gradient(140deg, #2563eb 0%, #1d4ed8 54%, #1e40af 100%) !important;
}

.index-prof .index-fin-grid .bg-toplam {
    background: linear-gradient(140deg, #0891b2 0%, #2563eb 55%, #4f46e5 100%) !important;
}

.index-prof .card.card-bordered {
    border-radius: 14px;
    border-color: var(--std-border);
    box-shadow: var(--std-shadow);
}

.index-prof .card-title .title {
    color: var(--std-title);
}

.index-prof .nk-block-head .nk-block-des small {
    color: var(--std-muted);
}

.index-prof .std-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.index-prof .std-top-actions .btn {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .index-prof .index-fin-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-left: 0;
        margin-right: 0;
    }

    .index-prof .index-fin-grid>[class*="col-"] {
        width: auto;
        max-width: none;
        flex: 0 0 auto;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0 !important;
    }

    .index-prof .index-fin-grid .stats-card {
        min-height: 156px;
        border-radius: 13px;
    }

    .index-prof .index-fin-grid .stats-card .card-inner {
        padding: .78rem !important;
    }

    .index-prof .index-fin-grid .stats-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: .9rem;
        margin-right: .52rem;
    }

    .index-prof .index-fin-grid .stats-title {
        font-size: .63rem;
        margin-bottom: 2px;
        letter-spacing: .45px;
    }

    .index-prof .index-fin-grid .stats-amount {
        font-size: 1.08rem;
        text-align: center;
        line-height: 1.2;
    }

    .index-prof .index-fin-grid .stats-percent {
        font-size: .66rem;
    }

    .index-prof .index-fin-grid .stats-prev {
        margin-top: 2px;
        min-height: 30px;
    }

    .index-prof .index-fin-grid .stats-prev small {
        font-size: .64rem !important;
        line-height: 1.28;
    }

    .index-prof .index-fin-grid .stats-prev small>span {
        float: right;
        margin-left: 8px !important;
        font-size: .6rem !important;
        padding: 1px 6px;
    }

    .index-prof .index-fin-grid .d-flex.align-items-center.mb-2 {
        margin-bottom: .45rem !important;
    }

    .index-prof .index-fin-grid .ms-3 {
        margin-left: .45rem !important;
    }

    .index-prof .index-fin-grid .progress {
        height: 5px;
        margin-top: 6px;
    }
}

@media (max-width: 420px) {
    .index-prof .index-fin-grid {
        gap: 8px;
    }

    .index-prof .index-fin-grid .stats-card {
        min-height: 150px;
    }

    .index-prof .index-fin-grid .stats-amount {
        font-size: .98rem;
    }

    .index-prof .index-fin-grid .stats-prev small {
        font-size: .6rem !important;
    }

    .index-prof .index-fin-grid .stats-prev small>span {
        font-size: .56rem !important;
        padding: 1px 5px;
    }
}

.std-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.std-compact-head .title {
    color: var(--std-title);
    margin: 0;
    font-weight: 700;
}

.std-compact-head .meta {
    color: var(--std-muted);
    font-size: 13px;
}

.std-bank-card {
    border: 1px solid var(--std-border);
    border-radius: 16px;
    background: linear-gradient(165deg, var(--std-surface), var(--std-surface-soft));
    box-shadow: var(--std-shadow);
}

.std-filter-grid {
    display: grid;
    gap: 14px;
}

.std-filter-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.std-input-shell {
    border: 1px solid var(--std-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--std-surface);
}

.std-input-shell .form-control,
.std-input-shell .form-select {
    border: 0;
    box-shadow: none;
    padding-left: 30px;
    background: transparent;
}

.location-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.location-search {
    max-width: 360px;
    min-width: 220px;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--std-border, #e2e8f0);
    border-radius: 10px;
    background: var(--std-surface, #ffffff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.location-item:hover {
    border-color: #cbd5e1;
    background: var(--std-surface-soft, #f8fafc);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.location-item.is-selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 0 1px #6366f1;
}

.location-item-name {
    color: var(--std-title, #1e293b);
    font-weight: 600;
    font-size: 13.5px;
    overflow-wrap: break-word;
}

.location-item-amount {
    color: var(--std-title, #0f172a);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--std-border, #e2e8f0);
    background: var(--std-surface-soft, #f8fafc);
    text-align: right;
    white-space: nowrap;
}

.location-item.is-selected .location-item-amount {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
}

.location-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.location-summary .pill {
    border: 1px solid var(--std-border);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--std-title);
    background: var(--std-surface);
}

@media (max-width: 991.98px) {
    .std-filter-grid.two {
        grid-template-columns: 1fr;
    }
}

/* ============ Tailwind-inspired premium layer ============ */
:root {
    --tw-radius: 14px;
    --tw-radius-sm: 10px;
    --tw-ring: 0 0 0 4px rgba(99, 102, 241, 0.18);
    --tw-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --tw-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --tw-shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.10);
    --brand-from: #6366f1;
    --brand-to: #4f46e5;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
}


/* Masaustu: kayit/adet + arama alani premium gorunum */
@media (min-width: 769px) {

    .page-urunbilgisi .dataTables_wrapper .dataTables_length,
    .page-grupbilgisi .dataTables_wrapper .dataTables_length,
    .page-markaciro .dataTables_wrapper .dataTables_length,
    .page-stokgenelhareket .dataTables_wrapper .dataTables_length,
    .page-uruncirodagilimi .dataTables_wrapper .dataTables_length,
    .page-urunkarbilgisi .dataTables_wrapper .dataTables_length,
    .page-ogkrecete .dataTables_wrapper .dataTables_length,
    .page-sarfstokhammadde .dataTables_wrapper .dataTables_length,
    .page-stokbilgisi .dataTables_wrapper .dataTables_length,
    .page-stokfiyatlistesi .dataTables_wrapper .dataTables_length {
        float: left;
        margin: 8px 10px 0 10px;
        padding: 8px 10px;
        border: 1px solid var(--slate-200);
        border-radius: 12px;
        background: linear-gradient(180deg, #fff, #f8fafc);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    }

    .page-urunbilgisi .dataTables_wrapper .dataTables_filter,
    .page-grupbilgisi .dataTables_wrapper .dataTables_filter,
    .page-markaciro .dataTables_wrapper .dataTables_filter,
    .page-stokgenelhareket .dataTables_wrapper .dataTables_filter,
    .page-uruncirodagilimi .dataTables_wrapper .dataTables_filter,
    .page-urunkarbilgisi .dataTables_wrapper .dataTables_filter,
    .page-ogkrecete .dataTables_wrapper .dataTables_filter,
    .page-sarfstokhammadde .dataTables_wrapper .dataTables_filter,
    .page-stokbilgisi .dataTables_wrapper .dataTables_filter,
    .page-stokfiyatlistesi .dataTables_wrapper .dataTables_filter {
        float: right;
        margin: 8px 10px 0 10px;
        padding: 8px 10px;
        border: 1px solid var(--slate-200);
        border-radius: 12px;
        background: linear-gradient(180deg, #fff, #f8fafc);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    }

    .page-urunbilgisi .dataTables_wrapper .dataTables_length label,
    .page-grupbilgisi .dataTables_wrapper .dataTables_length label,
    .page-markaciro .dataTables_wrapper .dataTables_length label,
    .page-stokgenelhareket .dataTables_wrapper .dataTables_length label,
    .page-uruncirodagilimi .dataTables_wrapper .dataTables_length label,
    .page-urunkarbilgisi .dataTables_wrapper .dataTables_length label,
    .page-ogkrecete .dataTables_wrapper .dataTables_length label,
    .page-sarfstokhammadde .dataTables_wrapper .dataTables_length label,
    .page-stokbilgisi .dataTables_wrapper .dataTables_length label,
    .page-stokfiyatlistesi .dataTables_wrapper .dataTables_length label {
        margin: 0;
        font-size: 12px;
        color: var(--slate-500);
        font-weight: 600;
    }

    .page-urunbilgisi .dataTables_wrapper .dataTables_filter label,
    .page-grupbilgisi .dataTables_wrapper .dataTables_filter label,
    .page-markaciro .dataTables_wrapper .dataTables_filter label,
    .page-stokgenelhareket .dataTables_wrapper .dataTables_filter label,
    .page-uruncirodagilimi .dataTables_wrapper .dataTables_filter label,
    .page-urunkarbilgisi .dataTables_wrapper .dataTables_filter label,
    .page-ogkrecete .dataTables_wrapper .dataTables_filter label,
    .page-sarfstokhammadde .dataTables_wrapper .dataTables_filter label,
    .page-stokbilgisi .dataTables_wrapper .dataTables_filter label,
    .page-stokfiyatlistesi .dataTables_wrapper .dataTables_filter label {
        margin: 0;
        font-size: 12px;
        color: var(--slate-500);
        font-weight: 600;
    }

    .dark-mode.page-urunbilgisi .dataTables_wrapper .dataTables_length,
    .dark-mode.page-grupbilgisi .dataTables_wrapper .dataTables_length,
    .dark-mode.page-markaciro .dataTables_wrapper .dataTables_length,
    .dark-mode.page-stokgenelhareket .dataTables_wrapper .dataTables_length,
    .dark-mode.page-uruncirodagilimi .dataTables_wrapper .dataTables_length,
    .dark-mode.page-urunkarbilgisi .dataTables_wrapper .dataTables_length,
    .dark-mode.page-ogkrecete .dataTables_wrapper .dataTables_length,
    .dark-mode.page-sarfstokhammadde .dataTables_wrapper .dataTables_length,
    .dark-mode.page-stokbilgisi .dataTables_wrapper .dataTables_length,
    .dark-mode.page-stokfiyatlistesi .dataTables_wrapper .dataTables_length,
    .dark-mode.page-urunbilgisi .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-grupbilgisi .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-markaciro .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-stokgenelhareket .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-uruncirodagilimi .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-urunkarbilgisi .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-ogkrecete .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-sarfstokhammadde .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-stokbilgisi .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-stokfiyatlistesi .dataTables_wrapper .dataTables_filter {
        background: rgba(15, 23, 42, 0.35);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }
}

/* Masaustu kolon basliklari + kart basliklari: Ilk harf buyuk, devam kucuk */
@media (min-width: 769px) {

    .page-urunbilgisi .nk-tb-list thead .sub-text,
    .page-grupbilgisi .nk-tb-list thead .sub-text,
    .page-markaciro .nk-tb-list thead .sub-text,
    .page-stokgenelhareket .nk-tb-list thead .sub-text,
    .page-uruncirodagilimi .nk-tb-list thead .sub-text,
    .page-urunkarbilgisi .nk-tb-list thead .sub-text,
    .page-ogkrecete .nk-tb-list thead .sub-text,
    .page-sarfstokhammadde .nk-tb-list thead .sub-text,
    .page-stokbilgisi .nk-tb-list thead .sub-text,
    .page-stokfiyatlistesi .nk-tb-list thead .sub-text,
    .page-saatlikdurum .nk-tb-list thead .sub-text,
    .page-departmanbilgisi .nk-tb-list thead .sub-text,
    .page-indirimler .nk-tb-list thead .sub-text,
    .page-silinenleryazilmadan .nk-tb-list thead .sub-text,
    .page-silinenleryazilmis .nk-tb-list thead .sub-text,
    .page-ikramiade .nk-tb-list thead .sub-text,
    .page-musterisayisi .nk-tb-list thead .sub-text,
    .page-guntoplamlari .nk-tb-list thead .sub-text,
    .page-guntoplamlarilokasyon .nk-tb-list thead .sub-text,
    .std-mlist .nk-tb-list thead .sub-text,
    .std-mlist .rep-card-title,
    .std-mlist .rep-card-title span {
        text-transform: capitalize !important;
        letter-spacing: 0.2px !important;
    }
}

/* Page-scoped report table layout adjustments: only affect efaturagonderilmis page */
.page-efaturagonderilmis .rep-card-body>.table-responsive {
    margin: 0 !important;
    padding: 0 !important;
}

.page-efaturagonderilmis #efaturaTable {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-efaturagonderilmis .rep-card-body>.table-responsive {
    margin-left: -12px !important;
    margin-right: -12px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-efaturagonderilmis .dataTables_wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure sidebar toggle remains visible and clickable when sidebar is compact/collapsed */
.page-caribakiyeliste .nk-nav-toggle,
.page-efaturagonderilmis .nk-nav-toggle {
    z-index: 1200 !important;
    position: relative !important;
}

/* If sidebar is compact, make sure header toggle is still shown and not clipped */
.nk-sidebar.is-compact+.nk-wrap .nk-header .nk-nav-toggle,
.nk-sidebar.is-compact+.nk-wrap .nk-header-fixed .nk-nav-toggle {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Make the clickable area a bit larger at the left edge when sidebar collapsed */
.nk-sidebar.is-compact+.nk-wrap .nk-header .nk-nav-toggle .icon,
.nk-sidebar.is-compact+.nk-wrap .nk-header-fixed .nk-nav-toggle .icon {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* === Styles moved from efaturagonderilmis.php (page-scoped presentation rules) === */
/* Kept as-is to preserve original specificity; consider refactoring selectors under body.page-efaturagonderilmis for stricter scoping */
#efaturaTable.nk-tb-list {
    width: 100% !important;
}

#efaturaTable thead tr th {
    background: var(--slate-50, #f8fafc);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--slate-500, #6e82a5);
    border-bottom: 1px solid var(--slate-200, #e5e9f2);
    padding: 12px 16px !important;
}

#efaturaTable tbody tr td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--slate-100, #f1f5f9);
    color: var(--std-title, #1f2b4d);
}

#efaturaTable tbody tr:hover td {
    background: rgba(99, 102, 241, 0.04);
}

#efaturaTable .tb-lead {
    font-weight: 600;
    color: var(--std-title, #1f2b4d);
}

#efaturaTable th:nth-child(1),
#efaturaTable td:nth-child(1) {
    width: 34%;
}

#efaturaTable th:nth-child(2),
#efaturaTable td:nth-child(2) {
    width: 12%;
}

#efaturaTable th:nth-child(3),
#efaturaTable td:nth-child(3) {
    width: 16%;
}

#efaturaTable th:nth-child(4),
#efaturaTable td:nth-child(4) {
    width: 12%;
}

#efaturaTable th:nth-child(5),
#efaturaTable td:nth-child(5) {
    width: 10%;
}

#efaturaTable th:nth-child(6),
#efaturaTable td:nth-child(6) {
    width: 8%;
}

#efaturaTable th:nth-child(7),
#efaturaTable td:nth-child(7) {
    width: 8%;
}

#efaturaTable .tb-lead-product {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    max-height: 2.7em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

#efaturaTable td.text-end,
#efaturaTable th.text-end {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

#efaturaTable tfoot tr.table-info th {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4f46e5 !important;
    border-top: 1px solid var(--slate-200);
    padding: 12px 16px !important;
    font-weight: 700;
}

#efaturaTable tfoot tr.table-success th {
    background: linear-gradient(90deg, rgba(16, 185, 129, .10), rgba(16, 185, 129, .05)) !important;
    color: #059669 !important;
    padding: 14px 16px !important;
    font-weight: 800;
    font-size: 14px;
}

.aciklama-cell {
    color: var(--slate-500);
    font-size: 12px;
    font-style: italic;
    margin-top: 3px;
}

.amount-positive {
    color: #10b981;
    font-weight: 600;
}

.amount-negative {
    color: #ef4444;
    font-weight: 600;
}

@media (max-width: 768px) {
    body.nk-body {
        overflow-x: hidden;
    }

    #efaturaTable {
        table-layout: auto;
        width: 100% !important;
    }

    .table th,
    .table td {
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }

    #efaturaTable .tb-lead-product {
        -webkit-line-clamp: 3;
        max-height: 4.1em;
    }
}

@media (min-width: 769px) {
    .page-efaturagonderilmis .aciklama-text {
        display: none !important;
    }

    .page-efaturagonderilmis .urun-mobile-metrics {
        display: none !important;
    }

    .page-efaturagonderilmis .tb-lead {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .page-efaturagonderilmis .tb-lead .icon {
        font-size: 1em;
        margin-right: 6px;
        vertical-align: middle;
    }

    #efaturaTable td .aciklama-text {
        display: none !important;
    }
}

.dark-mode #efaturaTable thead tr th {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.dark-mode #efaturaTable tbody tr td {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.dark-mode #efaturaTable tbody tr:hover td {
    background: rgba(99, 102, 241, 0.10);
}

.dark-mode #efaturaTable tfoot tr.table-info th {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #c7d2fe !important;
}

.dark-mode #efaturaTable tfoot tr.table-success th {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
}

.dark-mode .dataTables_wrapper .dataTables_filter input,
.dark-mode .dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

@media (min-width: 769px) {

    table#efaturaTable.dtr-inline.collapsed>tbody>tr:not(.child)>td:first-child:before,
    table#efaturaTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,
    table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td:first-child:before,
    table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,
    table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>th:first-child:before,
    table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before {
        content: none !important;
        display: none !important;
    }

    table#efaturaTable td.dtr-control {
        width: auto !important;
        padding-left: 12px !important;
    }
}

.rep-card-body>.table-responsive {
    width: 100%;
    margin: 0;
    padding: 0;
}

#efaturaTable {
    width: 100% !important;
    margin: 0;
}

body.page-efaturagonderilmis #efaturaTable thead tr th {
    background: var(--slate-50, #f8fafc);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--slate-500, #6e82a5);
    border-bottom: 1px solid var(--slate-200, #e5e9f2);
    padding: 12px 16px !important;
}

#efaturaTable td:first-child:before,
#efaturaTable th:first-child:before,
table#efaturaTable.dtr-inline.collapsed td:first-child:before,
table.dataTable.dtr-inline.collapsed td:first-child:before {
    content: "" !important;
    font-family: initial !important;
    color: transparent !important;
    font-size: 0 !important;
    width: 0 !important;
    margin-right: 0 !important;
    display: none !important;
    visibility: hidden !important;
}

#efaturaTable_wrapper {
    margin: 0;
    padding: 0;
}

.rep-card-body .dataTables_wrapper .row {
    margin: 0;
}

.rep-card-body .dataTables_wrapper .dataTables_filter,
.rep-card-body .dataTables_wrapper .dataTables_length {
    padding: 0 8px 0 0;
}

/* === Styles moved from caribakiyeliste.php (mobile/table presentation) === */
.filter-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.01));
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 14px;
    margin-bottom: 16px;
}

.dark-mode .filter-strip {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10), rgba(99, 102, 241, 0.03));
    border-color: #364159;
}

.filter-chip-group {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--std-surface, #fff);
    border-radius: 999px;
    border: 1px solid var(--std-border, #e5e9f2);
    flex-wrap: wrap;
}

.dark-mode .filter-chip-group {
    background: #1c2536;
    border-color: #364159;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-500, #6e82a5);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    background: var(--std-surface-soft, #f7f9fc);
    color: var(--std-title, #1f2b4d);
}

.dark-mode .filter-chip:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e5ecff;
}

.filter-chip em {
    font-size: 12px;
}

.filter-chip.active {
    background: linear-gradient(135deg, #6576ff, #4b66ea);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(101, 118, 255, 0.30);
}

.filter-chip.active.b {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.30);
}

.filter-chip.active.a {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.30);
}

.filter-right-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.filter-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 12px;
    background: var(--std-surface, #fff);
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 999px;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
    flex: 1 1 200px;
    max-width: 340px;
}

.filter-search-wrap:focus-within {
    border-color: #6576ff;
    box-shadow: 0 0 0 3px rgba(101, 118, 255, 0.15);
}

.dark-mode .filter-search-wrap {
    background: #1c2536;
    border-color: #364159;
}

.filter-search-wrap em {
    color: var(--slate-500, #6e82a5);
    font-size: 16px;
}

.filter-search-input {
    border: 0;
    background: transparent;
    outline: none;
    flex: 1;
    min-width: 0;
    padding: 4px 4px;
    font-size: 13px;
    color: var(--std-title, #1f2b4d);
}

.dark-mode .filter-search-input {
    color: #e5ecff;
}

.filter-search-input::placeholder {
    color: var(--slate-500, #6e82a5);
}

.filter-search-clear {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 0;
    background: var(--std-surface-soft, #f7f9fc);
    color: var(--slate-500, #6e82a5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    flex-shrink: 0;
}

.dark-mode .filter-search-clear {
    background: rgba(255, 255, 255, 0.05);
    color: #9db4d1;
}

.filter-search-clear.is-visible {
    opacity: 1;
    visibility: visible;
}

.filter-search-clear:hover {
    color: #e11d48;
}

.filter-perpage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 12px;
    background: var(--std-surface, #fff);
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 999px;
    font-size: 12px;
    color: var(--slate-500, #6e82a5);
    flex-shrink: 0;
}

.dark-mode .filter-perpage {
    background: #1c2536;
    border-color: #364159;
    color: #9db4d1;
}

.filter-perpage select {
    border: 0;
    background: transparent;
    font-weight: 700;
    color: var(--std-title, #1f2b4d);
    font-size: 12px;
    padding: 0 4px;
    cursor: pointer;
    outline: none;
}

.dark-mode .filter-perpage select {
    color: #e5ecff;
}

.filter-perpage select option {
    background: #fff;
    color: #1f2b4d;
}

.dark-mode .filter-perpage select option {
    background: #1c2536;
    color: #e5ecff;
}



.dark-mode {
    --slate-50: #0f172a;
    --slate-100: #111827;
    --slate-200: #1f2937;
    --slate-300: #374151;
    --slate-500: #94a3b8;
    --slate-700: #cbd5e1;
    --slate-900: #f1f5f9;
    --tw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --tw-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --tw-shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Premium brand header */
.tw-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--tw-radius);
    background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
    color: #fff;
    box-shadow: var(--tw-shadow-lg);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.tw-brand-header::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.20), transparent 60%);
    pointer-events: none;
}

.tw-brand-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 22px;
}

.tw-brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.2;
    color: #fff;
}

.tw-brand-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

/* Tailwind-style buttons */
.tw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--tw-radius-sm);
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
    box-shadow: var(--tw-shadow-sm);
    line-height: 1.1;
    cursor: pointer;
}

.tw-btn-primary {
    background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
    color: #fff !important;
}

.tw-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--tw-shadow-md);
    color: #fff !important;
}

.tw-btn-primary:focus {
    outline: none;
    box-shadow: var(--tw-ring);
}

.tw-btn-ghost {
    background: transparent;
    color: var(--slate-700) !important;
    border-color: var(--slate-200);
}

.tw-btn-ghost:hover {
    background: var(--slate-100);
}

.tw-btn-soft {
    background: rgba(99, 102, 241, 0.10);
    color: #4f46e5 !important;
}

.dark-mode .tw-btn-soft {
    color: #a5b4fc !important;
}

.tw-btn-soft:hover {
    background: rgba(99, 102, 241, 0.18);
}

.tw-btn-lg {
    padding: 13px 22px;
    font-size: 15px;
    border-radius: 12px;
}

/* Tailwind-style input shell */
.tw-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--slate-200);
    background: var(--std-surface);
    border-radius: var(--tw-radius-sm);
    padding: 0 12px;
    transition: border-color .15s, box-shadow .15s;
}

.tw-input:focus-within {
    border-color: var(--brand-from);
    box-shadow: var(--tw-ring);
}

.tw-input>em.icon {
    color: var(--slate-500);
    font-size: 16px;
    margin-right: 8px;
}

.tw-input .form-control,
.tw-input .form-select {
    border: 0 !important;
    background: transparent !important;
    padding: 11px 0 !important;
    box-shadow: none !important;
    color: var(--std-title);
}

.tw-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--slate-500);
    margin-bottom: 6px;
    display: block;
}

/* Polished checkbox row */
.tw-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--slate-200);
    border-radius: var(--tw-radius-sm);
    background: var(--std-surface);
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.tw-check:hover {
    border-color: var(--brand-from);
    background: rgba(99, 102, 241, 0.05);
}

.tw-check .tw-check-text {
    color: var(--std-title);
    font-weight: 500;
    font-size: 14px;
}

/* Soft divider with text */
.tw-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;

    /* ===== Detay Modal - Gün Toplamları ===== */
    .std-detay-modal .modal-header {
        background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
        color: #fff;
        padding: 20px 24px;
    }

    .std-detay-modal .modal-header .modal-title {
        color: #fff;
        font-weight: 700;
        font-size: 18px;
    }

    .std-detay-modal .modal-header .modal-subtitle {
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
    }

    .std-detay-modal .modal-header .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .std-detay-modal .modal-header .btn-close:hover {
        opacity: 1;
    }

    .std-detay-new-layout {
        display: flex;
        gap: 16px;
        padding: 20px;
    }

    .std-detay-col-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .std-detay-col-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .std-detay-date-block {
        background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
        border-radius: var(--tw-radius);
        padding: 16px;
        color: #fff;
        text-align: center;
    }

    .std-detay-big-label {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.8;
        margin-bottom: 4px;
    }

    .std-detay-big-value {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
    }

    .std-detay-row-pair {
        display: flex;
        gap: 10px;
    }

    .std-detay-stat-card {
        flex: 1;
        background: var(--std-surface);
        border: 1px solid var(--std-border);
        border-radius: var(--tw-radius-sm);
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.2s ease;
    }

    .std-detay-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--tw-shadow-md);
        border-color: var(--brand-from);
    }

    .std-detay-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
    }

    .std-detay-stat-icon.bg-indigo {
        background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
    }

    .std-detay-stat-icon.bg-sky {
        background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    }

    .std-detay-stat-icon.bg-amber {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .std-detay-stat-icon.bg-slate {
        background: linear-gradient(135deg, #64748b, #475569);
    }

    .std-detay-stat-content {
        flex: 1;
    }

    .std-detay-stat-label {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--std-muted);
        margin-bottom: 2px;
    }

    .std-detay-stat-value {
        font-size: 15px;
        font-weight: 700;
        color: var(--std-title);
    }

    .std-detay-highlight-card {
        border-radius: var(--tw-radius);
        padding: 16px;
        text-align: center;
    }

    .std-detay-highlight-card.highlight-main {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
        border: 2px solid rgba(99, 102, 241, 0.3);
    }

    .std-detay-highlight-card.highlight-success {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
        border: 2px solid rgba(16, 185, 129, 0.3);
    }

    .std-detay-highlight-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }

    .highlight-main .std-detay-highlight-header {
        color: var(--brand-from);
    }

    .highlight-success .std-detay-highlight-header {
        color: #059669;
    }

    .std-detay-highlight-value {
        font-size: 20px;
        font-weight: 800;
    }

    .highlight-main .std-detay-highlight-value {
        color: var(--brand-from);
    }

    .highlight-success .std-detay-highlight-value {
        color: #059669;
    }

    .std-detay-payments-section {
        background: var(--std-surface);
        border: 1px solid var(--std-border);
        border-radius: var(--tw-radius-sm);
        padding: 14px;
    }

    .std-detay-payments-title {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--std-muted);
        margin-bottom: 10px;
        text-align: center;
    }

    .std-detay-payment-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        border-bottom: 1px solid var(--std-border);
    }

    .std-detay-payment-row:last-child {
        border-bottom: none;
    }

    .std-detay-payment-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: var(--std-surface-soft);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--slate-600);
        font-size: 14px;
    }

    .std-detay-payment-label {
        flex: 1;
        font-size: 12px;
        font-weight: 500;
        color: var(--slate-600);
    }

    .std-detay-payment-value {
        font-size: 13px;
        font-weight: 700;
        color: var(--std-title);
    }

    .dark-mode .std-detay-stat-card,
    .dark-mode .std-detay-payments-section {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .dark-mode .std-detay-stat-card:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .dark-mode .std-detay-stat-label {
        color: #94a3b8;
    }

    .dark-mode .std-detay-stat-value {
        color: #f1f5f9;
    }

    .dark-mode .std-detay-payment-row {
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .dark-mode .std-detay-payment-icon {
        background: rgba(255, 255, 255, 0.08);
        color: #94a3b8;
    }

    .dark-mode .std-detay-payment-label {
        color: #94a3b8;
    }

    .dark-mode .std-detay-payment-value {
        color: #f1f5f9;
    }

    @media (max-width: 480px) {
        .std-detay-new-layout {
            flex-direction: column;
            padding: 16px;
        }

        .std-detay-col-left,
        .std-detay-col-right {
            width: 100%;
        }
    }

    color: var(--slate-500);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.tw-divider::before,
.tw-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--slate-200);
}

/* Date/Time grid for tw-input variant */
.tw-datetime {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
}

@media (max-width: 575.98px) {
    .tw-datetime {
        grid-template-columns: 1fr 1fr;
    }
}

/* Custom select (period picker) */
.tw-select {
    position: relative;
}

.tw-select-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--tw-radius-sm);
    border: 1px solid var(--slate-200);
    background: var(--std-surface);
    color: var(--std-title);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    text-align: left;
}

.tw-select-trigger:hover {
    border-color: var(--brand-from);
}

.tw-select.is-open .tw-select-trigger {
    border-color: var(--brand-from);
    box-shadow: var(--tw-ring);
}

.tw-select-trigger>em.icon {
    color: var(--slate-500);
    font-size: 16px;
}

.tw-select-trigger .tw-select-value {
    flex: 1;
    color: var(--std-title);
}

.tw-select-trigger .tw-select-placeholder {
    color: var(--slate-500);
    font-weight: 400;
}

.tw-select-trigger .tw-caret {
    color: var(--slate-500);
    transition: transform .15s;
}

.tw-select.is-open .tw-caret {
    transform: rotate(180deg);
}

.tw-select-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--tw-radius);
    box-shadow: var(--tw-shadow-lg);
    padding: 8px;
    max-height: 360px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.dark-mode .tw-select-panel {
    background: #1c2536 !important;
    border-color: #364159 !important;
}

.tw-select.is-open .tw-select-panel {
    display: flex;
}

.tw-select-mobile-head {
    display: none;
}

.tw-select-close {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #1f2b4d !important;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

.dark-mode .tw-select-close {
    border-color: #364159 !important;
    background: #1c2536 !important;
    color: #e5ecff !important;
}

.tw-select-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--tw-radius-sm);
    margin-bottom: 8px;
    background: #ffffff !important;
}

.dark-mode .tw-select-search {
    border-color: #364159 !important;
    background: #1c2536 !important;
}

.tw-select-search>em.icon {
    color: #64748b !important;
    font-size: 14px;
}

.dark-mode .tw-select-search>em.icon {
    color: #94a3b8 !important;
}

.tw-select-search input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    color: #1f2b4d !important;
    font-size: 13px;
}

.dark-mode .tw-select-search input {
    color: #e5ecff !important;
}

.tw-select-list {
    overflow-y: auto;
    flex: 1;
    padding-right: 2px;
}

.tw-select-group {
    padding: 8px 10px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748b !important;
}

.dark-mode .tw-select-group {
    color: #94a3b8 !important;
}

.tw-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #1f2b4d !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: background-color .12s;
}

.dark-mode .tw-select-option {
    color: #e5ecff !important;
}

.tw-select-option:hover {
    background: rgba(99, 102, 241, 0.08) !important;
}

.dark-mode .tw-select-option:hover {
    background: rgba(99, 102, 241, 0.15) !important;
}

.tw-select-option.is-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(79, 70, 229, 0.10)) !important;
    color: #4f46e5 !important;
}

.dark-mode .tw-select-option.is-active {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #a5b4fc !important;
}

.tw-select-option .tw-check-icon {
    margin-left: auto;
    color: #4f46e5 !important;
    opacity: 0;
}

.dark-mode .tw-select-option .tw-check-icon {
    color: #a5b4fc !important;
}

.tw-select-option.is-active .tw-check-icon {
    opacity: 1;
}

.tw-select-list::-webkit-scrollbar {
    width: 6px;
}

.tw-select-list::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 6px;
}

.dark-mode .tw-select-list::-webkit-scrollbar-thumb {
    background: #364159 !important;
}

@media (max-width: 768px) {
    .tw-select.is-open .tw-select-panel {
        position: fixed;
        inset: 0;
        z-index: 1200;
        border-radius: 0;
        border: 0;
        max-height: none;
        padding: 14px;
        box-shadow: none;
        background: #ffffff !important;
    }

    .dark-mode .tw-select.is-open .tw-select-panel {
        background: #1c2536 !important;
    }

    .tw-select-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--slate-200);
        color: var(--std-title);
        font-weight: 700;
    }

    body.tw-select-open-mobile {
        overflow: hidden;
    }

    /* efatura gönderilmiş raporu tabloları */
    #efaturaTable.nk-tb-list {
        width: 100% !important;
    }

    #efaturaTable thead tr th {
        background: var(--slate-50, #f8fafc);
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: var(--slate-500, #6e82a5);
        border-bottom: 1px solid var(--slate-200, #e5e9f2);
        padding: 12px 16px !important;
    }

    #efaturaTable tbody tr td {
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--slate-100, #f1f5f9);
        color: var(--std-title, #1f2b4d);
    }

    #efaturaTable tbody tr:hover td {
        background: rgba(99, 102, 241, 0.04);
    }

    #efaturaTable .tb-lead {
        font-weight: 600;
        color: var(--std-title, #1f2b4d);
    }

    #efaturaTable th:nth-child(1),
    #efaturaTable td:nth-child(1) {
        width: 34%;
    }

    #efaturaTable th:nth-child(2),
    #efaturaTable td:nth-child(2) {
        width: 12%;
    }

    #efaturaTable th:nth-child(3),
    #efaturaTable td:nth-child(3) {
        width: 16%;
    }

    #efaturaTable th:nth-child(4),
    #efaturaTable td:nth-child(4) {
        width: 12%;
    }

    #efaturaTable th:nth-child(5),
    #efaturaTable td:nth-child(5) {
        width: 10%;
    }

    #efaturaTable th:nth-child(6),
    #efaturaTable td:nth-child(6) {
        width: 8%;
    }

    #efaturaTable th:nth-child(7),
    #efaturaTable td:nth-child(7) {
        width: 8%;
    }

    #efaturaTable .tb-lead-product {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.35;
        max-height: 2.7em;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }

    #efaturaTable td.text-end,
    #efaturaTable th.text-end {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    #efaturaTable tfoot tr.table-info th {
        background: rgba(99, 102, 241, 0.08) !important;
        color: #4f46e5 !important;
        border-top: 1px solid var(--slate-200);
        padding: 12px 16px !important;
        font-weight: 700;
    }

    #efaturaTable tfoot tr.table-success th {
        background: linear-gradient(90deg, rgba(16, 185, 129, .10), rgba(16, 185, 129, .05)) !important;
        color: #059669 !important;
        padding: 14px 16px !important;
        font-weight: 800;
        font-size: 14px;
    }

    .aciklama-cell {
        color: var(--slate-500);
        font-size: 12px;
        font-style: italic;
        margin-top: 3px;
    }

    .amount-positive {
        color: #10b981;
        font-weight: 600;
    }

    .amount-negative {
        color: #ef4444;
        font-weight: 600;
    }

    @media (max-width: 768px) {
        body.nk-body {
            overflow-x: hidden;
        }

        #efaturaTable {
            table-layout: auto;
            width: 100% !important;
        }

        .table th,
        .table td {
            white-space: normal;
            word-break: normal;
            overflow-wrap: break-word;
        }

        #efaturaTable .tb-lead-product {
            -webkit-line-clamp: 3;
            max-height: 4.1em;
        }
    }

    @media (min-width: 769px) {
        .page-efaturagonderilmis .aciklama-text {
            display: none !important;
        }

        .page-efaturagonderilmis .urun-mobile-metrics {
            display: none !important;
        }

        .page-efaturagonderilmis .tb-lead {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .page-efaturagonderilmis .tb-lead .icon {
            font-size: 1em;
            margin-right: 6px;
            vertical-align: middle;
        }

        #efaturaTable td .aciklama-text {
            display: none !important;
        }
    }

    .dark-mode #efaturaTable thead tr th {
        background: rgba(255, 255, 255, 0.04);
        border-bottom-color: rgba(255, 255, 255, 0.06);
        color: #94a3b8;
    }

    .dark-mode #efaturaTable tbody tr td {
        border-bottom-color: rgba(255, 255, 255, 0.04);
    }

    .dark-mode #efaturaTable tbody tr:hover td {
        background: rgba(99, 102, 241, 0.10);
    }

    .dark-mode #efaturaTable tfoot tr.table-info th {
        background: rgba(99, 102, 241, 0.18) !important;
        color: #c7d2fe !important;
    }

    .dark-mode #efaturaTable tfoot tr.table-success th {
        background: rgba(16, 185, 129, 0.18) !important;
        color: #6ee7b7 !important;
    }

    .dark-mode .dataTables_wrapper .dataTables_filter input,
    .dark-mode .dataTables_wrapper .dataTables_length select {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
        color: #e5e7eb;
    }

    @media (min-width: 769px) {

        table#efaturaTable.dtr-inline.collapsed>tbody>tr:not(.child)>td:first-child:before,
        table#efaturaTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,
        table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td:first-child:before,
        table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,
        table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>th:first-child:before,
        table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before {
            content: none !important;
            display: none !important;
        }

        table#efaturaTable td.dtr-control {
            width: auto !important;
            padding-left: 12px !important;
        }
    }

    #efaturaTable td:first-child:before,
    #efaturaTable th:first-child:before,
    table#efaturaTable.dtr-inline.collapsed td:first-child:before,
    table.dataTable.dtr-inline.collapsed td:first-child:before {
        content: "" !important;
        font-family: initial !important;
        color: transparent !important;
        font-size: 0 !important;
        width: 0 !important;
        margin-right: 0 !important;
        display: none !important;
        visibility: hidden !important;
    }

    #efaturaTable_wrapper {
        margin: 0;
        padding: 0;
    }

    .rep-card-body .dataTables_wrapper .row {
        margin: 0;
    }

    .rep-card-body .dataTables_wrapper .dataTables_filter,
    .rep-card-body .dataTables_wrapper .dataTables_length {
        padding: 0 8px 0 0;
    }

    /* Mobilde cari satırındaki ok işaretini gizle */
    @media (max-width: 768px) {
        .page-efaturagonderilmis .tb-lead svg {
            display: none !important;
        }
    }

    /* e-Fatura önizleme modaline daha temiz, standart bir görünüm ver */
    .efatura-modal .modal-content {
        border-radius: 12px;
        overflow: hidden;
    }

    .efatura-modal .modal-body {
        background: var(--std-surface);
        padding: 0;
    }

    .efatura-modal #efaturaPreviewFrame {
        width: 100%;
        height: 72vh;
        border: none;
        display: block;
        background: #fff;
    }

    .tw-brand-header {
        padding: 14px 16px;
        margin-bottom: 12px;
    }

    .tw-brand-name {
        font-size: 15px;
    }

    .tarih-form-compact .mb-4 {
        margin-bottom: .7rem !important;
    }

    .tarih-form-compact .tw-label {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .tarih-form-compact .tw-datetime {
        gap: 6px;
    }

    .tarih-form-compact .tw-divider {
        margin: 2px 0;
        font-size: 10px;
    }

    .tarih-form-compact .row.g-2 {
        --bs-gutter-y: .4rem;
    }

    .tarih-form-compact .tw-check {
        padding: 8px 10px;
    }
}

/* ============ Login Page Theme ============ */
.pg-auth {
    min-height: 100vh;
    background: #ffffff;
}

.pg-auth .nk-main,
.pg-auth .nk-wrap,
.pg-auth .nk-content {
    min-height: 100vh;
}

.pg-auth .nk-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 18px;
}

.pg-auth .nk-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-auth .auth-shell {
    width: min(1020px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 384px);
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7edf5;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.pg-auth .auth-showcase {
    position: relative;
    padding: 46px 44px 40px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(145deg, #18408d 0%, #245fca 58%, #2d82ef 100%);
    overflow: hidden;
}

.pg-auth .auth-showcase::before,
.pg-auth .auth-showcase::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.pg-auth .auth-showcase::before {
    width: 320px;
    height: 320px;
    top: -160px;
    right: -40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 64%, transparent 70%);
}

.pg-auth .auth-showcase::after {
    width: 150px;
    height: 150px;
    left: -44px;
    bottom: -54px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 72%);
}

.pg-auth .auth-showcase-logo {
    margin: 0 0 24px;
}

.pg-auth .auth-showcase-logo img {
    max-width: 170px;
    height: auto;
}

.pg-auth .auth-showcase-title {
    margin: 0;
    max-width: 500px;
    font-size: clamp(34px, 4.1vw, 50px);
    line-height: 1.05;
    letter-spacing: -1.1px;
    font-weight: 800;
}

.pg-auth .auth-showcase-text {
    margin: 16px 0 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
}

.pg-auth .auth-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.pg-auth .auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 15px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pg-auth .auth-feature-list {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.pg-auth .auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 62px;
    padding: 15px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
}

.pg-auth .auth-feature-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 18px;
}

.pg-auth .auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.pg-auth .auth-panel-card {
    width: 100%;
    border-radius: 26px;
    padding: 30px 28px 22px;
    background: #ffffff;
    border: 1px solid #e5edf6;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.pg-auth .auth-panel-logo {
    display: none;
    text-align: center;
    margin: 0 0 22px;
}

.pg-auth .auth-panel-logo img {
    max-width: 150px;
    height: auto;
}

.pg-auth .auth-panel-title {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.pg-auth .auth-panel-copy {
    margin: 0 0 22px;
    color: #7b8794;
    font-size: 14px;
    line-height: 1.55;
}

.pg-auth .auth-panel-card .form-group {
    margin-bottom: 16px;
}

.pg-auth .auth-panel-card .form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pg-auth .auth-panel-card .form-label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.pg-auth .auth-panel-card .form-control-lg {
    height: 52px;
    border-radius: 16px;
    border: 1px solid #dbe5f0;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    padding-left: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pg-auth .auth-panel-card .form-control-lg:focus {
    border-color: #5b6cff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.12);
}

.pg-auth .auth-panel-card .passcode-icon {
    color: #9aa8bb;
}

.pg-auth .auth-panel-card .btn-primary {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #375dfb 0%, #5b6cff 55%, #7a6af8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(77, 92, 255, 0.26);
}

.pg-auth .auth-panel-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(77, 92, 255, 0.3);
}

.pg-auth .auth-link-row {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.pg-auth .auth-panel-card .link-primary {
    color: #7c75f3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.pg-auth .nk-footer {
    margin-top: 14px;
    padding: 0;
    background: transparent;
    border: 0;
}

.pg-auth .text-soft {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.pg-auth .alert {
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.dark-mode.pg-auth {
    background: #0f172a;
}

.dark-mode .pg-auth .auth-shell {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.3);
}

.dark-mode .pg-auth .auth-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.dark-mode .pg-auth .auth-panel-card {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.38);
}

.dark-mode .pg-auth .auth-link-row {
    border-top-color: rgba(148, 163, 184, 0.1);
}

.dark-mode .pg-auth .auth-panel-title {
    color: #e2e8f0;
}

.dark-mode .pg-auth .auth-panel-copy,
.dark-mode .pg-auth .text-soft {
    color: #94a3b8;
}

.dark-mode .pg-auth .auth-panel-card .form-label {
    color: #cbd5e1;
}

.dark-mode .pg-auth .auth-panel-card .form-control-lg {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.18);
    color: #f8fafc;
}

.dark-mode .pg-auth .auth-panel-card .form-control-lg:focus {
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .pg-auth .auth-panel-card .link-primary {
    color: #c7d2fe;
}

@media (max-width: 980px) {
    .pg-auth .auth-shell {
        grid-template-columns: 1fr;
    }

    .pg-auth .auth-showcase,
    .pg-auth .auth-panel {
        padding: 26px 22px;
    }
}

@media (max-width: 640px) {
    .pg-auth .nk-wrap {
        padding: 0;
    }

    .pg-auth .auth-shell {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
    }

    .pg-auth .auth-showcase {
        display: none;
    }

    .pg-auth .auth-panel {
        min-height: 100vh;
        padding: 24px 16px;
        background: transparent;
    }

    .pg-auth .auth-panel-card {
        max-width: 420px;
        padding: 30px 20px 20px;
        border-radius: 24px;
        margin: auto;
        box-shadow: none;
        border: 0;
    }

    .pg-auth .auth-panel-logo {
        display: block;
    }
}

.rep-card-head .rep-card-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.rep-card-head .rep-card-tools .umc-search {
    min-width: 220px;
    flex: 1 1 220px;
    margin: 0;
    position: relative;
}

.rep-card-head .rep-card-tools .umc-pagesize {
    width: 92px;
    flex: 0 0 92px;
}

.rep-card-head .rep-card-tools .urun-sort-select {
    min-width: 220px;
    flex: 0 1 260px;
}

.rep-card-head .rep-card-tools .umc-search input,
.rep-card-head .rep-card-tools .umc-pagesize,
.rep-card-head .rep-card-tools .urun-sort-select {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #dbe5f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.rep-card-head .rep-card-tools .umc-search input {
    padding-left: 40px;
    color: #334155;
}

.rep-card-head .rep-card-tools .umc-search em {
    color: #94a3b8;
}

.rep-card-head .rep-card-tools .umc-search input:focus,
.rep-card-head .rep-card-tools .umc-pagesize:focus,
.rep-card-head .rep-card-tools .urun-sort-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
    background: #ffffff;
}

.dark-mode .rep-card-head .rep-card-tools .umc-search input,
.dark-mode .rep-card-head .rep-card-tools .umc-pagesize,
.dark-mode .rep-card-head .rep-card-tools .urun-sort-select {
    border-color: rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82) 0%, rgba(15, 23, 42, 0.92) 100%);
    color: #e2e8f0;
    box-shadow: none;
}

.dark-mode .rep-card-head .rep-card-tools .umc-search em {
    color: #94a3b8;
}

.dark-mode .rep-card-head .rep-card-tools .umc-search input:focus,
.dark-mode .rep-card-head .rep-card-tools .umc-pagesize:focus,
.dark-mode .rep-card-head .rep-card-tools .urun-sort-select:focus {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

@media (max-width: 768px) {
    .rep-card-head .rep-card-tools {
        justify-content: stretch;
    }

    .rep-card-head .rep-card-tools .umc-search,
    .rep-card-head .rep-card-tools .umc-pagesize,
    .rep-card-head .rep-card-tools .urun-sort-select {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* ============ Report Hero Overrides (central) ============ */
.rep-hero,
.rep-hero-row {
    overflow: visible !important;
}

/* Mobil hero: 1.satır başlık, 2.satır buton, 3.satır saat, 4.satır lokasyon tam genişlik */
@media (max-width: 768px) {
    .std-mlist .rep-hero-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .std-mlist .rep-hero-text {
        min-width: 0;
    }

    .std-mlist .rep-hero-actions {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .std-mlist .rep-hero-actions .btn,
    .std-mlist .rep-hero-actions .chart-toggle-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .std-mlist .rep-hero-sub {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .std-mlist .rep-hero-sub>span,
    .std-mlist .rep-hero-sub .rep-lokasyon-tag {
        width: 100% !important;
        display: flex !important;
    }

    .std-mlist .rep-hero-sub .rep-lokasyon-popover {
        left: 0 !important;
        right: auto !important;
    }
}

/* Global rep-hero styles (markaciro/grupbilgisi parity) */
.rep-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    color: #fff;
    padding: 16px 18px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.18);
    margin-bottom: 12px;
}

.rep-hero::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
    z-index: 0;
    border-radius: 18px;
}

.rep-hero-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.rep-hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.rep-hero-text {
    flex: 1;
    min-width: 0;
}

.rep-hero-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
}

.rep-hero-sub {
    font-size: 12px;
    opacity: 0.92;
    margin-top: 4px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.95);
}

.rep-hero-sub span em.icon {
    margin-right: 4px;
    opacity: 0.85;
}

.rep-hero-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.rep-hero-actions .btn,
.rep-hero-actions .chart-toggle-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.rep-hero-actions .btn:hover,
.rep-hero-actions .chart-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.rep-hero .rep-lokasyon-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 2px 10px;
    color: #fff;
    cursor: default;
}

/* Sadece katman problemini çöz: tasarıma/layout'a müdahale etme */
.rep-hero-row #toggleChartBtn {
    position: relative;
    z-index: 1 !important;
}

.rep-hero .rep-lokasyon-tag {
    position: relative;
    z-index: 50 !important;
}

.rep-hero .rep-lokasyon-popover {
    position: absolute;
    z-index: 100000 !important;
    max-width: min(520px, 88vw);
    white-space: normal;
}

.rep-hero .rep-hero-sub span {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ============ Scoped Report Forms (ilk 3 rapor stili) ============ */
.page-uruncirodagilimi .nk-content-body>.nk-block-head.nk-block-head-sm,
.page-urunkarbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm,
.page-ogkrecete .nk-content-body>.nk-block-head.nk-block-head-sm,
.page-sarfstokhammadde .nk-content-body>.nk-block-head.nk-block-head-sm,
.page-stokgenelhareket .nk-content-body>.nk-block-head.nk-block-head-sm,
.page-stokbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm,
.page-stokfiyatlistesi .nk-content-body>.nk-block-head.nk-block-head-sm {
    border: 1px solid var(--std-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
    box-shadow: 0 18px 44px rgba(79, 70, 229, 0.22);
    padding: 14px 16px;
    margin-bottom: 8px;
}

/* Disari panel YOK: markaciro/grupbilgisi gibi tek kart gorunumu */
.page-uruncirodagilimi .nk-content-body,
.page-urunkarbilgisi .nk-content-body,
.page-ogkrecete .nk-content-body,
.page-sarfstokhammadde .nk-content-body,
.page-stokgenelhareket .nk-content-body,
.page-stokbilgisi .nk-content-body,
.page-stokfiyatlistesi .nk-content-body {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.page-uruncirodagilimi .nk-content-body>.nk-block,
.page-urunkarbilgisi .nk-content-body>.nk-block,
.page-ogkrecete .nk-content-body>.nk-block,
.page-sarfstokhammadde .nk-content-body>.nk-block,
.page-stokgenelhareket .nk-content-body>.nk-block,
.page-stokbilgisi .nk-content-body>.nk-block,
.page-stokfiyatlistesi .nk-content-body>.nk-block {
    margin-top: 0;
}

.dark-mode.page-uruncirodagilimi .nk-content-body,
.dark-mode.page-urunkarbilgisi .nk-content-body,
.dark-mode.page-ogkrecete .nk-content-body,
.dark-mode.page-sarfstokhammadde .nk-content-body,
.dark-mode.page-stokgenelhareket .nk-content-body,
.dark-mode.page-stokbilgisi .nk-content-body,
.dark-mode.page-stokfiyatlistesi .nk-content-body {
    background: transparent;
    box-shadow: none;
    border: 0;
}

.page-uruncirodagilimi .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
.page-urunkarbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
.page-ogkrecete .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
.page-sarfstokhammadde .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
.page-stokgenelhareket .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
.page-stokbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
.page-stokfiyatlistesi .nk-content-body>.nk-block-head.nk-block-head-sm .page-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.page-uruncirodagilimi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des,
.page-urunkarbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des,
.page-ogkrecete .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des,
.page-sarfstokhammadde .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des,
.page-stokgenelhareket .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des,
.page-stokbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des,
.page-stokfiyatlistesi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des,
.page-uruncirodagilimi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des p,
.page-urunkarbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des p,
.page-ogkrecete .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des p,
.page-sarfstokhammadde .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des p,
.page-stokgenelhareket .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des p,
.page-stokbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des p,
.page-stokfiyatlistesi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des p,
.page-uruncirodagilimi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des strong,
.page-urunkarbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des strong,
.page-ogkrecete .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des strong,
.page-sarfstokhammadde .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des strong,
.page-stokgenelhareket .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des strong,
.page-stokbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des strong,
.page-stokfiyatlistesi .nk-content-body>.nk-block-head.nk-block-head-sm .nk-block-des strong {
    color: rgba(255, 255, 255, 0.92) !important;
}

.page-uruncirodagilimi .card.card-stretch,
.page-urunkarbilgisi .card.card-stretch,
.page-ogkrecete .card.card-stretch,
.page-sarfstokhammadde .card.card-stretch,
.page-stokgenelhareket .card.card-stretch,
.page-stokbilgisi .card.card-stretch,
.page-stokfiyatlistesi .card.card-stretch {
    border: 1px solid var(--std-border);
    border-radius: 16px;
    box-shadow: var(--std-shadow);
    overflow: hidden;
}

.page-uruncirodagilimi .card.card-stretch .card-inner,
.page-urunkarbilgisi .card.card-stretch .card-inner,
.page-ogkrecete .card.card-stretch .card-inner,
.page-sarfstokhammadde .card.card-stretch .card-inner,
.page-stokgenelhareket .card.card-stretch .card-inner,
.page-stokbilgisi .card.card-stretch .card-inner,
.page-stokfiyatlistesi .card.card-stretch .card-inner {
    background: var(--std-surface);
}

.page-uruncirodagilimi .nk-tb-list thead tr th,
.page-urunkarbilgisi .nk-tb-list thead tr th,
.page-ogkrecete .nk-tb-list thead tr th,
.page-sarfstokhammadde .nk-tb-list thead tr th,
.page-stokgenelhareket .nk-tb-list thead tr th,
.page-stokbilgisi #grupTreeTable thead tr th,
.page-stokfiyatlistesi #stokFiyatTable thead tr th {
    background: var(--slate-50, #f8fafc);
    color: var(--slate-500, #64748b);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .35px;
    text-transform: uppercase;
}

/* Markaciro/grupbilgisi gibi: tek gorunur kart icteki card.card-stretch */
.page-uruncirodagilimi .report-table-block .card-inner-group,
.page-urunkarbilgisi .report-table-block .card-inner-group,
.page-ogkrecete .report-table-block .card-inner-group,
.page-sarfstokhammadde .report-table-block .card-inner-group,
.page-stokgenelhareket .report-table-block .card-inner-group,
.page-stokbilgisi .report-table-block .card-inner-group,
.page-stokfiyatlistesi .report-table-block .card-inner-group,
.page-uruncirodagilimi .report-table-block .card-inner,
.page-urunkarbilgisi .report-table-block .card-inner,
.page-ogkrecete .report-table-block .card-inner,
.page-sarfstokhammadde .report-table-block .card-inner,
.page-stokgenelhareket .report-table-block .card-inner,
.page-stokbilgisi .report-table-block .card-inner,
.page-stokfiyatlistesi .report-table-block .card-inner {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.report-table-block {
    margin-top: 0;
}

.report-table-block .card.card-stretch {
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.report-table-block .rep-card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--slate-200, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.report-table-block .rep-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--std-title);
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-table-block .rep-card-title em.icon {
    color: #4f46e5;
}

.report-table-block .rep-card-body {
    padding: 4px 6px 10px;
}

.report-table-block .card-inner-group {
    background: var(--std-surface);
}

.report-table-block .card-inner.p-0,
.report-table-block .card-inner {
    background: var(--std-surface);
}

/* Bootstrap .p-0 yan padding'i kaldırıyor; markaciro/grupbilgisi gibi kart kenarları başlık+gövde'ye paddinglerini kendileri vn */
.report-table-block .card-inner.p-0,
.report-table-block .card-inner.p-0.rep-card-body,
.report-table-block .card-inner.rep-card-body {
    padding: 0 !important;
}

.report-table-block .card-inner.rep-card-body>.urun-mobile-controls {
    padding: 12px 16px 4px;
}

.report-table-block .card-inner.rep-card-body>.table-responsive,
.report-table-block .card-inner.rep-card-body>.table-wrap {
    padding: 4px 0 10px;
}

.report-table-block .table-responsive {
    border-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.dark-mode .report-table-block .card.card-stretch {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.dark-mode .report-table-block .table-responsive {
    border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .report-table-block .rep-card-head {
        padding: 10px 12px;
    }

    .report-table-block .card-inner.rep-card-body>.urun-mobile-controls {
        padding: 10px 12px 4px;
    }

    .report-table-block .table-responsive {
        border-top: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    .report-table-block .table-responsive>.nk-tb-list,
    .report-table-block .table-responsive>table {
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    .dark-mode .report-table-block .table-responsive>.nk-tb-list,
    .dark-mode .report-table-block .table-responsive>table {
        border: 0;
    }
}

@media (max-width: 768px) {

    .page-uruncirodagilimi .nk-content-body,
    .page-urunkarbilgisi .nk-content-body,
    .page-ogkrecete .nk-content-body,
    .page-sarfstokhammadde .nk-content-body,
    .page-stokgenelhareket .nk-content-body,
    .page-stokbilgisi .nk-content-body,
    .page-stokfiyatlistesi .nk-content-body {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    .page-uruncirodagilimi .nk-content-body>.nk-block-head.nk-block-head-sm,
    .page-urunkarbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm,
    .page-ogkrecete .nk-content-body>.nk-block-head.nk-block-head-sm,
    .page-sarfstokhammadde .nk-content-body>.nk-block-head.nk-block-head-sm,
    .page-stokgenelhareket .nk-content-body>.nk-block-head.nk-block-head-sm,
    .page-stokbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm,
    .page-stokfiyatlistesi .nk-content-body>.nk-block-head.nk-block-head-sm {
        padding: 12px 13px;
        border-radius: 14px;
        margin-bottom: 6px;
    }

    .page-uruncirodagilimi .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
    .page-urunkarbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
    .page-ogkrecete .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
    .page-sarfstokhammadde .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
    .page-stokgenelhareket .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
    .page-stokbilgisi .nk-content-body>.nk-block-head.nk-block-head-sm .page-title,
    .page-stokfiyatlistesi .nk-content-body>.nk-block-head.nk-block-head-sm .page-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .rep-card-body .table-responsive {
        overflow-x: auto !important;
        width: 100%;
        max-width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #urunTable,
    #markaTable,
    #grupTable {
        width: 100% !important;
        table-layout: fixed !important;
    }

    #urunTable .nk-tb-col,
    #markaTable .nk-tb-col,
    #grupTable .nk-tb-col {
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* ============ Page: Lokasyon ============ */
.page-lokasyon .center-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
    padding: 20px;
}

.page-lokasyon .center-alert-overlay.is-visible {
    display: flex;
}

.page-lokasyon .center-alert-box {
    width: min(440px, 92vw);
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #fff6f6 100%);
    color: #991b1b;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.30);
    padding: 18px 18px 14px;
    transform: translateY(8px);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.page-lokasyon .center-alert-overlay.is-visible .center-alert-box {
    transform: translateY(0);
    opacity: 1;
}

.page-lokasyon .center-alert-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 15px;
}

.page-lokasyon .center-alert-head .icon {
    color: #ef4444;
    font-size: 20px;
}

.page-lokasyon .center-alert-message {
    font-size: 14px;
    line-height: 1.45;
    color: #7f1d1d;
    margin-bottom: 12px;
}

.page-lokasyon .center-alert-actions {
    display: flex;
    justify-content: flex-end;
}

.page-lokasyon .center-alert-actions .tw-btn {
    padding: 8px 14px;
    font-size: 13px;
}

.dark-mode.page-lokasyon .center-alert-overlay {
    background: rgba(2, 6, 23, 0.62);
}

.dark-mode.page-lokasyon .center-alert-box {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.dark-mode.page-lokasyon .center-alert-head .icon {
    color: #f87171;
}

.dark-mode.page-lokasyon .center-alert-message {
    color: #fca5a5;
}

/* ============ Standard Mobile List (paylaşılan: Ürün/Grup/Marka vb.) ============ */
.std-mlist .urun-mobile-metrics {
    display: none;
}

.std-mlist .urun-sort-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--slate-200, #e2e8f0);
    background: var(--std-surface, #fff);
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.2;
}

.std-mlist .urun-sort-toggle:hover {
    background: rgba(99, 102, 241, 0.06);
}

.std-mlist .urun-sort-toggle em.icon {
    font-size: 14px;
    color: #4f46e5;
}

.std-mlist .urun-sort-select {
    min-width: 230px;
    border: 1px solid var(--slate-200, #e2e8f0);
    background: var(--std-surface, #fff);
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    line-height: 1.2;
}

.std-mlist .urun-sort-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.dark-mode.std-mlist .urun-sort-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #c7d2fe;
}

.dark-mode.std-mlist .urun-sort-toggle em.icon {
    color: #c7d2fe;
}

.dark-mode.std-mlist .urun-sort-select {
    border-color: rgba(255, 255, 255, 0.12);
    background: #1b2333;
    color: #c7d2fe;
}

.dark-mode.std-mlist .urun-sort-select option {
    background: #1b2333;
    color: #c7d2fe;
}

@media (max-width: 768px) {
    .std-mlist .rep-card-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .std-mlist .rep-card-title {
        min-width: 0;
    }

    .std-mlist .rep-stats {
        display: flex !important;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 18px;
        padding-inline: 18px;
        padding-bottom: 4px;
        margin-bottom: 0;
    }

    .std-mlist .rep-stats-shell {
        position: relative;
        margin-bottom: 14px;
    }

    .std-mlist .rep-stats::-webkit-scrollbar {
        display: none;
    }

    .std-mlist .rep-stat {
        flex: 0 0 calc(100% - 36px);
        min-width: calc(100% - 36px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin: 0;
    }

    .std-mlist .rep-stats-nav {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 3;
        pointer-events: none;
    }

    .std-mlist .rep-stats-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.30);
        background: linear-gradient(145deg, rgba(11, 20, 41, 0.88), rgba(15, 23, 42, 0.72));
        color: #f8fafc;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
        pointer-events: auto;
    }

    .std-mlist .rep-stats-nav-btn.is-prev {
        left: 4px;
    }

    .std-mlist .rep-stats-nav-btn.is-next {
        right: 4px;
    }

    .std-mlist .rep-stats-nav-btn:disabled {
        opacity: .35;
    }

    .dark-mode.std-mlist .rep-stats-nav-btn {
        border-color: rgba(255, 255, 255, 0.24);
        background: linear-gradient(145deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.72));
        color: #e2e8f0;
    }

    .std-mlist .urun-sort-select {
        width: auto;
        min-width: 148px;
        max-width: 172px;
        margin-left: auto;
        padding: 6px 10px;
    }
}

@media (min-width: 768.01px) {
    .std-mlist .rep-stats-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .std-mlist .urun-sort-toggle {
        display: inline-flex;
    }
}

@media (max-width: 768px) {

    .std-mlist .std-mlist-table,
    .std-mlist .std-mlist-table tbody,
    .std-mlist .std-mlist-table tfoot {
        display: block !important;
        width: 100% !important;
    }

    .std-mlist .std-mlist-table thead {
        display: none !important;
    }

    .std-mlist .std-mlist-table tbody tr {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 0px 0px;
        border-bottom: 1px solid var(--slate-100, #f1f5f9);
    }

    .dark-mode.std-mlist .std-mlist-table tbody tr {
        border-bottom-color: rgba(255, 255, 255, 0.10);
    }

    .std-mlist .std-mlist-table tbody tr td {
        display: block !important;
        border: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .std-mlist .std-mlist-table tbody td:nth-child(1) {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    .std-mlist .std-mlist-table tbody td:not(:first-child) {
        display: none !important;
    }

    .std-mlist .std-mlist-table .tb-lead-product {
        display: -webkit-box !important;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.35;
        color: var(--std-title) !important;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .std-mlist .urun-mobile-metrics {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        flex: 0 0 auto;
        min-width: 110px;
        font-variant-numeric: tabular-nums;
        margin-left: auto;
    }

    /* Tek kolon mobil satır: sol içerik + sağ metrikler yan yana, dikey ortalanmış */
    .std-mlist .urun-row-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .std-mlist .urun-row-text {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .std-mlist .urun-row-text .tur-badge {
        align-self: flex-start;
    }

    /* 2-kolonlu mobil satır (Tarih solda + Metrik sağda) - dikey ortalı */
    .std-mlist table.std-mlist-table>tbody>tr>td.mobile-col {
        vertical-align: middle;
    }

    /* 2. mobil td (metrik td) - sağa yaslı, içerik ortalı */
    .std-mlist table.std-mlist-table>tbody>tr>td.mobile-col.text-end {
        text-align: right;
    }

    .std-mlist .urun-mobile-metrics {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        text-align: right;
    }

    /* 2-kolonlu mobil satırda: 1. td (isim) dikey ortalanmış, 2. td (metrik) sağa yaslı */
    .std-mlist table.std-mlist-table>tbody>tr>td.mobile-col {
        vertical-align: middle;
    }

    .std-mlist table.std-mlist-table>tbody>tr>td.mobile-col.text-end {
        text-align: right;
        white-space: nowrap;
    }

    /* 4-kolonlu mobil satır (ör: Tarih + 3 rakam) - 1. td geniş, 2-3-4. td'ler eşit dar */
    .std-mlist table.std-mlist-table>thead>tr>th.mobile-col:first-child,
    .std-mlist table.std-mlist-table>tbody>tr>td.mobile-col:first-child,
    .std-mlist table.std-mlist-table>tfoot>tr>th.mobile-col:first-child {
        width: 32%;
    }

    .std-mlist table.std-mlist-table>thead>tr>th.mobile-col.text-end,
    .std-mlist table.std-mlist-table>tbody>tr>td.mobile-col.text-end,
    .std-mlist table.std-mlist-table>tfoot>tr>th.mobile-col.text-end {
        width: 22%;
    }

    .std-mlist .urun-mobile-metrics-row {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.2;
    }

    .std-mlist .urun-mobile-metrics .label {
        color: var(--slate-500);
        font-weight: 600;
    }

    .std-mlist .urun-mobile-metrics .value {
        font-weight: 700;
    }

    .std-mlist .urun-mobile-metrics .value-qty {
        color: #2563eb;
    }

    .std-mlist .urun-mobile-metrics .value-amount {
        color: #059669;
    }

    .dark-mode.std-mlist .urun-mobile-metrics .label {
        color: #94a3b8;
    }

    .dark-mode.std-mlist .urun-mobile-metrics .value-qty {
        color: #60a5fa;
    }

    .dark-mode.std-mlist .urun-mobile-metrics .value-amount {
        color: #34d399;
    }

    /* tfoot mobilde gizli; pill özet kullanılır */
    .std-mlist .std-mlist-table tfoot {
        display: none !important;
    }

    /* dataTables bileşenleri mobilde gizli; kendi kontrollerimizi kullanıyoruz */
    .std-mlist .dataTables_filter,
    .std-mlist .dataTables_info,
    .std-mlist .dataTables_length,
    .std-mlist .dataTables_paginate {
        display: none !important;
    }

    /* Mobil kontroller (arama + sayfa boyutu) */
    .std-mlist .urun-mobile-controls {
        display: flex !important;
        gap: 8px;
        align-items: center;
        padding: 10px 12px 0;
    }

    .std-mlist .urun-mobile-controls .umc-search {
        flex: 1 1 auto;
        position: relative;
    }

    .std-mlist .urun-mobile-controls .umc-search em.icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--slate-500);
        font-size: 14px;
    }

    .std-mlist .urun-mobile-controls .umc-search input {
        width: 100%;
        padding: 8px 10px 8px 32px;
        border: 1px solid var(--slate-200, #e2e8f0);
        border-radius: 8px;
        background: var(--std-surface, #fff);
        color: var(--std-title);
        font-size: 13px;
        line-height: 1.2;
    }

    .std-mlist .urun-mobile-controls .umc-pagesize {
        flex: 0 0 auto;
        padding: 8px 10px;
        border: 1px solid var(--slate-200, #e2e8f0);
        border-radius: 8px;
        background: var(--std-surface, #fff);
        color: var(--std-title);
        font-size: 13px;
        line-height: 1.2;
        font-weight: 600;
    }

    .dark-mode.std-mlist .urun-mobile-controls .umc-search input,
    .dark-mode.std-mlist .urun-mobile-controls .umc-pagesize {
        background: #1b2333;
        border-color: rgba(255, 255, 255, 0.15);
        color: #e2e8f0;
        color-scheme: dark;
    }

    .dark-mode.std-mlist .urun-mobile-controls .umc-pagesize option {
        background: #1b2333;
        color: #e2e8f0;
    }

    .dark-mode.std-mlist .urun-mobile-controls .umc-search em.icon {
        color: #94a3b8;
    }

    .dark-mode.std-mlist .urun-mobile-controls .umc-search input::placeholder {
        color: #94a3b8;
    }

    /* Mobil pager */
    .std-mlist .urun-mobile-pager {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 12px 12px;
    }

    .std-mlist .urun-mobile-pager .ump-info {
        font-size: 12px;
        color: var(--slate-500);
        font-weight: 600;
    }

    .dark-mode.std-mlist .urun-mobile-pager .ump-info {
        color: #94a3b8;
    }

    .std-mlist .urun-mobile-pager .ump-actions {
        display: inline-flex;
        gap: 6px;
    }

    .std-mlist .urun-mobile-pager .ump-btn {
        border: 1px solid var(--slate-200, #e2e8f0);
        background: var(--std-surface, #fff);
        color: #4f46e5;
        padding: 6px 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        line-height: 1.2;
    }

    .std-mlist .urun-mobile-pager .ump-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .dark-mode.std-mlist .urun-mobile-pager .ump-btn {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.12);
        color: #c7d2fe;
    }

    /* Mobil pill özet */
    .std-mlist .urun-mobile-summary {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 4px 12px 14px;
    }

    .std-mlist .urun-mobile-summary .ums-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: stretch;
    }

    .std-mlist .urun-mobile-summary .ums-title {
        flex: 1 0 100%;
        font-size: 11px;
        font-weight: 700;
        color: var(--slate-500);
        text-transform: uppercase;
        letter-spacing: .4px;
        margin: 0 0 2px;
    }

    .std-mlist .urun-mobile-summary .ums-pill {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border: 1px solid var(--slate-200, #e2e8f0);
        border-radius: 10px;
        padding: 6px 10px;
        font-size: 12px;
        background: var(--std-surface, #fff);
        color: var(--std-title);
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        flex: 0 1 auto;
        max-width: 100%;
    }

    .std-mlist .urun-mobile-summary .ums-pill strong {
        font-weight: 700;
        margin-left: 4px;
    }

    .std-mlist .urun-mobile-summary .ums-pill.is-qty strong {
        color: #2563eb;
    }

    .std-mlist .urun-mobile-summary .ums-pill.is-amount strong {
        color: #059669;
    }

    .dark-mode.std-mlist .urun-mobile-summary .ums-pill {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.12);
        color: #e2e8f0;
    }

    .dark-mode.std-mlist .urun-mobile-summary .ums-title {
        color: #94a3b8;
    }

    .dark-mode.std-mlist .urun-mobile-summary .ums-pill.is-qty strong {
        color: #60a5fa;
    }

    .dark-mode.std-mlist .urun-mobile-summary .ums-pill.is-amount strong {
        color: #34d399;
    }
}

/* Desktop'ta mobil bileşenleri gizle */
.std-mlist .urun-mobile-controls,
.std-mlist .urun-mobile-pager,
.std-mlist .urun-mobile-summary {
    display: none;
}

/* Mobil hızlı kaydırma (yukarı/aşağı) */
.std-mlist .urun-scroll-fab {
    display: none;
    position: fixed;
    right: 14px;
    bottom: 80px;
    z-index: 1050;
    flex-direction: column;
    gap: 8px;
}

.std-mlist .urun-scroll-fab .usf-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.std-mlist .urun-scroll-fab .usf-btn em.icon {
    font-size: 18px;
    color: #fff;
}

.std-mlist .urun-scroll-fab .usf-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .std-mlist .urun-scroll-fab {
        display: flex;
    }
}

/* =============================================================
   § GLOBAL REP-LOKASYON-POPOVER  (standalone, everywhere)
   ============================================================= */
.rep-lokasyon-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 6px;
    font-size: 13px;
    color: #475569;
    min-width: 220px;
    z-index: 9999;
    max-width: min(520px, 88vw);
    white-space: normal;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.rep-lokasyon-popover.is-visible {
    display: block;
}

.dark-mode .rep-lokasyon-popover {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

/* =============================================================
   § GLOBAL REP-STATS  (özet istatistik kutuları)
   ============================================================= */
.rep-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.rep-stat {
    background: var(--std-surface);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.rep-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.10);
    border-color: #6366f1;
}

.rep-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.rep-stat.is-indigo .rep-stat-icon {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.rep-stat.is-emerald .rep-stat-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.rep-stat.is-amber .rep-stat-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.rep-stat.is-rose .rep-stat-icon {
    background: rgba(248, 113, 113, 0.14);
    color: #dc2626;
}

.rep-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--slate-500);
}

.rep-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--std-title);
    margin-top: 2px;
}

/* =============================================================
   § GLOBAL REP-CARD  (tablo sarmalayıcı kart)
   ============================================================= */
.rep-card {
    background: var(--std-surface);
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.rep-card .rep-card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rep-card .rep-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--std-title);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rep-card .rep-card-title em.icon {
    color: #4f46e5;
}

.rep-card .rep-card-body {
    padding: 4px 6px 10px;
}

.dark-mode .rep-card {
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .rep-card .rep-card-head {
    border-color: rgba(255, 255, 255, 0.08);
}

/* =============================================================
   § PREMİUM DATATABLES STİLLERİ
   ============================================================= */
.dataTables_wrapper .dataTables_filter {
    float: right;
    padding: 10px 14px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 8px 12px;
    margin-left: 8px;
    min-width: 220px;
    background: var(--std-surface);
    color: var(--std-title);
    transition: border-color .15s, box-shadow .15s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.dataTables_wrapper .dataTables_length {
    padding: 10px 14px;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 4px 10px;
    background: var(--std-surface);
    color: var(--std-title);
}

.dataTables_wrapper .dt-buttons {
    padding: 10px 14px 0;
    gap: 6px;
    display: inline-flex;
    flex-wrap: wrap;
}

.dt-btn-excel {
    background: linear-gradient(135deg, #1ee0ac, #10b981) !important;
}

.dt-btn-pdf {
    background: linear-gradient(135deg, #f87171, #e85347) !important;
}

.dt-btn-print {
    background: linear-gradient(135deg, #818cf8, #6366f1) !important;
}

.dt-btn-excel,
.dt-btn-pdf,
.dt-btn-print {
    border: 0 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 7px 14px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    margin-right: 4px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    transition: transform .12s, box-shadow .15s, opacity .15s !important;
}

.dt-btn-excel:hover,
.dt-btn-pdf:hover,
.dt-btn-print:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14) !important;
}

.dataTables_wrapper .dataTables_info {
    padding: 10px 14px;
    color: var(--slate-500);
    font-size: 12.5px;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 10px 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    margin: 0 2px !important;
    padding: 4px 10px !important;
    border: 1px solid transparent !important;
    color: var(--slate-500) !important;
    background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4f46e5 !important;
    border-color: transparent !important;
}

@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter {
        float: none;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-top: 4px;
    }
}

/* =============================================================
   § DESKTOP / MOBILE KOLON GÖRÜNÜRLÜĞܠ UTİLİTYLERİ
   ============================================================= */
@media (max-width: 768px) {
    .desktop-col {
        display: none !important;
    }

    .mobile-col {
        display: table-cell !important;
    }
}

@media (min-width: 769px) {
    .mobile-col {
        display: none !important;
    }

    .desktop-col {
        display: table-cell !important;
    }
}

/* =============================================================
   § KK-MODAL & NM-MODAL  (Ödeme Detay Popup Modalleri)
   ============================================================= */
.kk-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.kk-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    color: #fff;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}

.nm-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #fff;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}

.kk-hero::after,
.nm-hero::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.kk-hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.kk-hero-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.kk-hero-text {
    flex: 1;
}

.kk-hero-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.kk-hero-sub {
    font-size: 12.5px;
    opacity: 0.85;
    margin-top: 2px;
}

.kk-hero-close {
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .15s;
}

.kk-hero-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.kk-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.kk-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    backdrop-filter: blur(6px);
}

.kk-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.85;
}

.kk-stat-value {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

.kk-body {
    background: var(--std-surface);
    padding: 18px 20px;
}

.kk-toolbar {
    margin-bottom: 14px;
}

.kk-search {
    max-width: 100%;
}

.kk-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 4px;
}

.kk-list::-webkit-scrollbar {
    width: 6px;
}

.kk-list::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 6px;
}

.kk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--std-surface);
    transition: transform .12s, box-shadow .15s, border-color .15s;
}

.kk-item:hover {
    transform: translateY(-1px);
    border-color: #6366f1;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.10);
}

.nm-item:hover {
    border-color: #10b981;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.10);
}

.kk-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.10);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.nm-item-icon {
    background: rgba(16, 185, 129, 0.10);
    color: #059669;
}

.kk-item.is-negative .kk-item-icon {
    background: rgba(232, 83, 71, 0.10);
    color: #e85347;
}

.kk-item-main {
    flex: 1;
    min-width: 0;
}

.kk-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--std-title);
    font-weight: 600;
    font-size: 14px;
}

.kk-item-name>span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kk-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
}

.kk-badge-pos {
    background: rgba(30, 224, 172, 0.15);
    color: #0a8f69;
}

.kk-badge-erp {
    background: rgba(99, 102, 241, 0.14);
    color: #4f46e5;
}

.kk-badge-other {
    background: rgba(244, 189, 14, 0.18);
    color: #b87a08;
}

.kk-item-bar {
    margin-top: 6px;
    height: 4px;
    border-radius: 999px;
    background: var(--slate-100);
    overflow: hidden;
}

.kk-item-bar>span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    border-radius: 999px;
}

.nm-item-bar>span {
    background: linear-gradient(90deg, #10b981, #059669);
}

.kk-item.is-negative .kk-item-bar>span {
    background: linear-gradient(90deg, #f87171, #e85347);
}

.kk-item-amount {
    font-weight: 700;
    color: var(--std-title);
    font-size: 14.5px;
    white-space: nowrap;
}

.kk-empty {
    text-align: center;
    padding: 36px 12px;
    color: var(--slate-500);
}

.kk-empty em.icon {
    font-size: 36px;
    color: var(--slate-300);
    display: block;
    margin-bottom: 10px;
}

.kk-footer {
    border-top: 1px solid var(--slate-200);
    background: var(--std-surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.kk-footer-total {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.kk-footer-total span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--slate-500);
}

.kk-footer-total strong {
    font-size: 18px;
    color: var(--std-title);
}

.dark-mode .kk-modal {
    background: var(--std-surface);
}

.dark-mode .kk-item-bar {
    background: rgba(255, 255, 255, 0.06);
}

.dark-mode .kk-item-icon {
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
}

.dark-mode .nm-item-icon {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

.dark-mode .kk-badge-pos {
    background: rgba(30, 224, 172, 0.22);
    color: #5eead4;
}

.dark-mode .kk-badge-erp {
    background: rgba(99, 102, 241, 0.24);
    color: #c7d2fe;
}

.dark-mode .kk-badge-other {
    background: rgba(244, 189, 14, 0.22);
    color: #fcd34d;
}

/* =============================================================
   § PAGE CONSISTENCY: URUN CIRO DAGILIMI / URUN KAR BILGISI
   (grupbilgisi + urunbilgisi ile görsel parity)
   ============================================================= */
.page-uruncirodagilimi #urunTable.nk-tb-list,
.page-urunkarbilgisi #urunTable.nk-tb-list {
    width: 100% !important;
}

.page-uruncirodagilimi #urunTable thead tr th,
.page-urunkarbilgisi #urunTable thead tr th {
    background: var(--slate-50, #f8fafc);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--slate-500);
    border-bottom: 1px solid var(--slate-200);
    padding: 12px 16px !important;
}

.page-uruncirodagilimi #urunTable tbody tr td,
.page-urunkarbilgisi #urunTable tbody tr td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--slate-100, #f1f5f9);
    color: var(--std-title);
}

.page-uruncirodagilimi #urunTable tbody tr:hover td,
.page-urunkarbilgisi #urunTable tbody tr:hover td {
    background: rgba(99, 102, 241, 0.04) !important;
}

.page-uruncirodagilimi #urunTable .tb-lead,
.page-urunkarbilgisi #urunTable .tb-lead {
    font-weight: 600;
    color: var(--std-title);
}

.page-uruncirodagilimi #urunTable .tb-lead-product,
.page-urunkarbilgisi #urunTable .tb-lead-product {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    max-height: 2.7em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.page-uruncirodagilimi #urunTable td.text-end,
.page-uruncirodagilimi #urunTable th.text-end,
.page-urunkarbilgisi #urunTable td.text-end,
.page-urunkarbilgisi #urunTable th.text-end {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.page-uruncirodagilimi #urunTable tfoot tr.table-info th,
.page-urunkarbilgisi #urunTable tfoot tr.table-info th {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4f46e5 !important;
    border-top: 1px solid var(--slate-200);
    padding: 12px 16px !important;
    font-weight: 700;
}

.page-uruncirodagilimi #urunTable tfoot tr.table-success th,
.page-urunkarbilgisi #urunTable tfoot tr.table-success th {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.10), rgba(16, 185, 129, 0.05)) !important;
    color: #059669 !important;
    padding: 14px 16px !important;
    font-weight: 800;
    font-size: 14px;
}

.dark-mode.page-uruncirodagilimi #urunTable thead tr th,
.dark-mode.page-urunkarbilgisi #urunTable thead tr th {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.dark-mode.page-uruncirodagilimi #urunTable tbody tr td,
.dark-mode.page-urunkarbilgisi #urunTable tbody tr td {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.dark-mode.page-uruncirodagilimi #urunTable tbody tr:hover td,
.dark-mode.page-urunkarbilgisi #urunTable tbody tr:hover td {
    background: rgba(99, 102, 241, 0.10) !important;
}

.dark-mode.page-uruncirodagilimi #urunTable tfoot tr.table-info th,
.dark-mode.page-urunkarbilgisi #urunTable tfoot tr.table-info th {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #c7d2fe !important;
}

.dark-mode.page-uruncirodagilimi #urunTable tfoot tr.table-success th,
.dark-mode.page-urunkarbilgisi #urunTable tfoot tr.table-success th {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
}

.page-uruncirodagilimi .report-table-block .rep-card-body,
.page-urunkarbilgisi .report-table-block .rep-card-body {
    padding: 0 !important;
}

.page-uruncirodagilimi .report-table-block .rep-card-body>.table-responsive,
.page-urunkarbilgisi .report-table-block .rep-card-body>.table-responsive {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.page-uruncirodagilimi .report-table-block .rep-card-body>.urun-mobile-controls,
.page-urunkarbilgisi .report-table-block .rep-card-body>.urun-mobile-controls {
    padding: 0 14px;
}

.page-uruncirodagilimi #urunTable .badge-dim.bg-primary,
.page-urunkarbilgisi #urunTable .yuzde-badge {
    background: rgba(99, 102, 241, 0.10) !important;
    color: #4f46e5 !important;
    border: 1px solid rgba(99, 102, 241, 0.20);
}

/* Ortak isim hizasi: hedef raporlarda ilk kolon sola tam yasli olsun */
.page-urunbilgisi #urunTable thead th:first-child,
.page-urunbilgisi #urunTable tbody td:first-child,
.page-grupbilgisi #grupTable thead th:first-child,
.page-grupbilgisi #grupTable tbody td:first-child,
.page-markaciro #markaTable thead th:first-child,
.page-markaciro #markaTable tbody td:first-child,
.page-uruncirodagilimi #urunTable thead th:first-child,
.page-uruncirodagilimi #urunTable tbody td:first-child,
.page-urunkarbilgisi #urunTable thead th:first-child,
.page-urunkarbilgisi #urunTable tbody td:first-child,
.page-ogkrecete #urunTable thead th:first-child,
.page-ogkrecete #urunTable tbody td:first-child {
    padding-left: 2px !important;
}

.page-urunbilgisi #urunTable .tb-lead-product,
.page-grupbilgisi #grupTable .tb-lead-group,
.page-markaciro #markaTable .tb-lead-brand,
.page-uruncirodagilimi #urunTable .tb-lead-product,
.page-urunkarbilgisi #urunTable .tb-lead-product,
.page-ogkrecete #urunTable .tb-lead-product {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left;
}

.page-uruncirodagilimi #urunTable .progress,
.page-urunkarbilgisi #urunTable .progress {
    height: 18px;
    background: #f4f8fb;
    border-radius: 6px;
    overflow: hidden;
}

.page-uruncirodagilimi #urunTable .progress-bar,
.page-urunkarbilgisi #urunTable .progress-bar {
    background: #6576ff;
    transition: width 0.4s;
}

@media (max-width: 768px) {

    .page-uruncirodagilimi #urunTable,
    .page-urunkarbilgisi #urunTable {
        table-layout: auto;
        width: 100% !important;
    }

    .page-uruncirodagilimi #urunTable .tb-lead-product,
    .page-urunkarbilgisi #urunTable .tb-lead-product {
        line-clamp: 3;
        -webkit-line-clamp: 3;
        max-height: 4.1em;
    }

    .page-uruncirodagilimi #urunTable th,
    .page-uruncirodagilimi #urunTable td,
    .page-urunkarbilgisi #urunTable th,
    .page-urunkarbilgisi #urunTable td {
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }
}

/* =============================================================
   § MOBILE HORIZONTAL OVERFLOW GUARD (rapor sayfalari)
   ============================================================= */
@media (max-width: 768px) {
    body.nk-body.std-mlist {
        /* clip stacking context yaratmadan yatay tasmayi kirpar,
           position:fixed cocuklari (header dropdown) clip etmez */
        overflow-x: clip;
    }

    .std-mlist .container-fluid {
        max-width: 100%;
        overflow-x: clip;
    }

    /* nk-wrap zinciri header dropdown'unu kesmesin diye gorunur kalsin */
    .std-mlist .nk-wrap,
    .std-mlist .nk-main,
    .std-mlist .nk-content,
    .std-mlist .nk-content-inner,
    .std-mlist .nk-content-body {
        max-width: 100%;
        overflow: visible !important;
    }

    .page-urunbilgisi .report-table-block,
    .page-grupbilgisi .report-table-block,
    .page-markaciro .report-table-block,
    .page-stokgenelhareket .report-table-block,
    .page-uruncirodagilimi .report-table-block,
    .page-urunkarbilgisi .report-table-block,
    .page-ogkrecete .report-table-block,
    .page-sarfstokhammadde .report-table-block,
    .page-stokbilgisi .report-table-block,
    .page-stokfiyatlistesi .report-table-block,
    .page-urunbilgisi .rep-card,
    .page-grupbilgisi .rep-card,
    .page-markaciro .rep-card,
    .page-stokgenelhareket .rep-card,
    .page-uruncirodagilimi .rep-card,
    .page-urunkarbilgisi .rep-card,
    .page-ogkrecete .rep-card,
    .page-sarfstokhammadde .rep-card,
    .page-stokbilgisi .rep-card,
    .page-stokfiyatlistesi .rep-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .page-urunbilgisi .table-responsive,
    .page-grupbilgisi .table-responsive,
    .page-markaciro .table-responsive,
    .page-stokgenelhareket .table-responsive,
    .page-uruncirodagilimi .table-responsive,
    .page-urunkarbilgisi .table-responsive,
    .page-ogkrecete .table-responsive,
    .page-sarfstokhammadde .table-responsive,
    .page-stokbilgisi .table-responsive,
    .page-stokfiyatlistesi .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .page-urunbilgisi .nk-tb-list,
    .page-grupbilgisi .nk-tb-list,
    .page-markaciro .nk-tb-list,
    .page-stokgenelhareket .nk-tb-list,
    .page-uruncirodagilimi .nk-tb-list,
    .page-urunkarbilgisi .nk-tb-list,
    .page-ogkrecete .nk-tb-list,
    .page-sarfstokhammadde .nk-tb-list,
    .page-stokbilgisi .nk-tb-list,
    .page-stokfiyatlistesi .nk-tb-list {
        width: 100% !important;
        table-layout: auto;
    }

    .page-urunbilgisi .nk-tb-list .tb-lead,
    .page-grupbilgisi .nk-tb-list .tb-lead,
    .page-markaciro .nk-tb-list .tb-lead,
    .page-stokgenelhareket .nk-tb-list .tb-lead,
    .page-uruncirodagilimi .nk-tb-list .tb-lead,
    .page-urunkarbilgisi .nk-tb-list .tb-lead,
    .page-ogkrecete .nk-tb-list .tb-lead,
    .page-sarfstokhammadde .nk-tb-list .tb-lead,
    .page-stokbilgisi .nk-tb-list .tb-lead,
    .page-stokfiyatlistesi .nk-tb-list .tb-lead,
    .page-urunbilgisi .nk-tb-list .sub-text,
    .page-grupbilgisi .nk-tb-list .sub-text,
    .page-markaciro .nk-tb-list .sub-text,
    .page-stokgenelhareket .nk-tb-list .sub-text,
    .page-uruncirodagilimi .nk-tb-list .sub-text,
    .page-urunkarbilgisi .nk-tb-list .sub-text,
    .page-ogkrecete .nk-tb-list .sub-text,
    .page-sarfstokhammadde .nk-tb-list .sub-text,
    .page-stokbilgisi .nk-tb-list .sub-text,
    .page-stokfiyatlistesi .nk-tb-list .sub-text {
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* =============================================================
   § URUN CIRO PARITY PACK (hizli uygulanabilir ortak gorunum)
   hedef: urunkarbilgisi, ogkrecete, sarfstokhammadde,
          stokbilgisi, stokfiyatlistesi
   ============================================================= */
.page-urunkarbilgisi .report-table-block,
.page-ogkrecete .report-table-block,
.page-sarfstokhammadde .report-table-block,
.page-stokbilgisi .report-table-block,
.page-stokfiyatlistesi .report-table-block {
    margin-top: 12px;
}

.page-urunkarbilgisi .rep-card,
.page-ogkrecete .rep-card,
.page-sarfstokhammadde .rep-card,
.page-stokbilgisi .rep-card,
.page-stokfiyatlistesi .rep-card {
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 16px;
    background: var(--std-surface, #fff);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.06);
    overflow: hidden;
}

.page-urunkarbilgisi .rep-card-head,
.page-ogkrecete .rep-card-head,
.page-sarfstokhammadde .rep-card-head,
.page-stokbilgisi .rep-card-head,
.page-stokfiyatlistesi .rep-card-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--slate-200, #e2e8f0);
    background: var(--slate-50, #f8fafc);
}

.page-urunkarbilgisi .rep-card-title,
.page-ogkrecete .rep-card-title,
.page-sarfstokhammadde .rep-card-title,
.page-stokbilgisi .rep-card-title,
.page-stokfiyatlistesi .rep-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--std-title);
}

.page-urunkarbilgisi .rep-card-body,
.page-ogkrecete .rep-card-body,
.page-sarfstokhammadde .rep-card-body,
.page-stokbilgisi .rep-card-body,
.page-stokfiyatlistesi .rep-card-body {
    padding: 0 !important;
}

.page-urunkarbilgisi .rep-card-body>.table-responsive,
.page-ogkrecete .rep-card-body>.table-responsive,
.page-sarfstokhammadde .rep-card-body>.table-responsive,
.page-stokbilgisi .rep-card-body>.table-responsive,
.page-stokfiyatlistesi .rep-card-body>.table-responsive {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.dark-mode.page-urunkarbilgisi .rep-card,
.dark-mode.page-ogkrecete .rep-card,
.dark-mode.page-sarfstokhammadde .rep-card,
.dark-mode.page-stokbilgisi .rep-card,
.dark-mode.page-stokfiyatlistesi .rep-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.42);
}

.dark-mode.page-urunkarbilgisi .rep-card-head,
.dark-mode.page-ogkrecete .rep-card-head,
.dark-mode.page-sarfstokhammadde .rep-card-head,
.dark-mode.page-stokbilgisi .rep-card-head,
.dark-mode.page-stokfiyatlistesi .rep-card-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {

    .page-urunkarbilgisi .rep-hero,
    .page-ogkrecete .rep-hero,
    .page-sarfstokhammadde .rep-hero,
    .page-stokbilgisi .rep-hero,
    .page-stokfiyatlistesi .rep-hero {
        margin-bottom: 10px;
    }

    .page-urunkarbilgisi .rep-card-head,
    .page-ogkrecete .rep-card-head,
    .page-sarfstokhammadde .rep-card-head,
    .page-stokbilgisi .rep-card-head,
    .page-stokfiyatlistesi .rep-card-head {
        padding: 12px 12px;
    }

    .page-urunkarbilgisi .rep-card-body>.urun-mobile-controls,
    .page-ogkrecete .rep-card-body>.urun-mobile-controls,
    .page-sarfstokhammadde .rep-card-body>.urun-mobile-controls,
    .page-stokbilgisi .rep-card-body>.urun-mobile-controls,
    .page-stokfiyatlistesi .rep-card-body>.urun-mobile-controls {
        padding: 0 12px;
    }

    /* Bu sayfalar std-mlist kart gorunumunde kolon gizleme yerine tam tablo gorunumu kullanir */
    .page-stokbilgisi .std-mlist-table,
    .page-stokfiyatlistesi .std-mlist-table,
    .page-stokgenelhareket .std-mlist-table {
        display: table !important;
        width: 100% !important;
    }

    .page-stokbilgisi .std-mlist-table thead,
    .page-stokfiyatlistesi .std-mlist-table thead,
    .page-stokgenelhareket .std-mlist-table thead {
        display: table-header-group !important;
    }

    .page-stokbilgisi .std-mlist-table tbody,
    .page-stokfiyatlistesi .std-mlist-table tbody,
    .page-stokgenelhareket .std-mlist-table tbody {
        display: table-row-group !important;
        width: auto !important;
    }

    .page-stokbilgisi .std-mlist-table tbody tr,
    .page-stokfiyatlistesi .std-mlist-table tbody tr,
    .page-stokgenelhareket .std-mlist-table tbody tr {
        display: table-row !important;
        width: auto !important;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .page-stokbilgisi .std-mlist-table tbody td,
    .page-stokfiyatlistesi .std-mlist-table tbody td,
    .page-stokgenelhareket .std-mlist-table tbody td,
    .page-stokbilgisi .std-mlist-table tbody td:not(:first-child),
    .page-stokfiyatlistesi .std-mlist-table tbody td:not(:first-child),
    .page-stokgenelhareket .std-mlist-table tbody td:not(:first-child) {
        display: table-cell !important;
        padding: 10px 12px !important;
        border-bottom: 1px solid var(--slate-100, #f1f5f9) !important;
    }

    .page-stokbilgisi .std-mlist-table tfoot,
    .page-stokfiyatlistesi .std-mlist-table tfoot,
    .page-stokgenelhareket .std-mlist-table tfoot {
        display: table-footer-group !important;
    }
}



/* =============================================================
   u00a7 STD-MLIST HEADER DROPDOWN (rapor sayfalari icin global)
   - Tum std-mlist (rapor) sayfalarinda header dropdown menusu
     icerigin alt katmaninda kalmasin diye z-index ve transform
     guvencesi koyuyor; sadece bu kapsamda etkili.
   ============================================================= */
body.std-mlist .nk-app-root,
body.std-mlist .nk-main,
body.std-mlist .nk-wrap {
    transform: none !important;
    filter: none !important;
    perspective: none !important;
}

body.std-mlist .nk-header,
body.std-mlist .nk-header-fixed {
    z-index: 1100;
}

body.std-mlist .nk-header .dropdown-menu,
body.std-mlist .nk-header .dropdown-menu.show {
    z-index: 1101 !important;
}


/* =============================================================
   SECTION  AUTH SOLO (login showcase'siz, ortalanmis tek kart)
   ============================================================= */
.pg-auth.pg-auth-solo {
    background: radial-gradient(1200px 600px at 18% 10%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(900px 600px at 90% 90%, rgba(45, 130, 239, 0.08), transparent 60%),
        linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
    min-height: 100vh;
}

.pg-auth.pg-auth-solo .auth-shell {
    width: 100%;
    max-width: 480px;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.pg-auth.pg-auth-solo .auth-panel {
    width: 100%;
    padding: 32px 16px;
    background: transparent;
}

.pg-auth.pg-auth-solo .auth-panel-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 36px 32px 26px;
    background: #ffffff;
    border: 1px solid #e6edf6;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.10);
}

.pg-auth.pg-auth-solo .auth-panel-logo {
    display: block;
    text-align: center;
    margin: 0 0 20px;
}

.pg-auth.pg-auth-solo .auth-panel-logo img,
.pg-auth .logo-img-xl {
    max-width: 240px;
    max-height: 80px;
    height: auto;
    width: auto;
}

.pg-auth.pg-auth-solo .auth-panel-title {
    text-align: center;
    font-size: 26px;
}

.pg-auth.pg-auth-solo .auth-panel-copy {
    text-align: center;
    margin-bottom: 24px;
}

.dark-mode.pg-auth.pg-auth-solo {
    background: radial-gradient(1200px 600px at 18% 10%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(900px 600px at 90% 90%, rgba(45, 130, 239, 0.12), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

.dark-mode.pg-auth.pg-auth-solo .auth-panel-card {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.5);
}

@media (max-width: 640px) {
    .pg-auth.pg-auth-solo .auth-panel-card {
        max-width: 100%;
        padding: 28px 20px 18px;
        border-radius: 22px;
    }

    .pg-auth.pg-auth-solo .auth-panel-logo img,
    .pg-auth .logo-img-xl {
        max-width: 200px;
        max-height: 64px;
    }
}


/* =============================================================
   SECTION  HEADER & FOOTER REFINEMENT (global)
   ============================================================= */
.nk-header.nk-header-fixed {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.dark-mode .nk-header.nk-header-fixed,
.nk-header.nk-header-fixed.is-dark {
    background: rgba(15, 23, 42, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.nk-header .nk-quick-nav-icon,
.nk-header .user-toggle {
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
    border-radius: 12px;
}

.nk-header .nk-quick-nav-icon:hover {
    background: rgba(99, 102, 241, 0.10);
    color: #4f46e5;
}

.nk-header .user-avatar {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.nk-header .user-toggle:hover .user-avatar {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}

.nk-header .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.dark-mode .nk-header .dropdown-menu {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

/* Footer */
.nk-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #f6f8fc 60%, #eef2f9 100%) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.02) inset !important;
}

.dark-mode .nk-footer,
.nk-footer.bg-dark {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.6) 60%, #0b1220 100%) !important;
    border-top-color: rgba(255, 255, 255, 0.06);
}

.nk-footer .nk-footer-wrap {
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nk-footer .nk-footer-copyright {
    font-size: 12.5px;
    color: #64748b;
    letter-spacing: 0.1px;
}

.nk-footer .nk-footer-copyright a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.nk-footer .nk-footer-copyright a:hover {
    text-decoration: underline;
}

.dark-mode .nk-footer .nk-footer-copyright {
    color: #94a3b8;
}

.dark-mode .nk-footer .nk-footer-copyright a {
    color: #c7d2fe;
}

/* === Lokasyon sayfasi rep-hero mobil ayar (1.5.9) === */
@media (max-width: 575.98px) {
    .page-lokasyon .rep-hero {
        padding: 14px 16px;
    }

    .page-lokasyon .rep-hero-row {
        gap: 8px;
    }

    .page-lokasyon .rep-hero-title {
        font-size: 15px;
    }

    .page-lokasyon .rep-hero-sub {
        font-size: 11px;
    }

    .page-lokasyon .rep-hero-actions .btn {
        padding: 6px 10px;
        font-size: 12.5px;
    }
}

/* === Header dropdown sik (1.5.9) === */
.nk-header .dropdown-menu {
    padding: 6px;
}

.nk-header .dropdown-menu .dropdown-inner {
    padding: 6px 0;
}

.nk-header .dropdown-menu .dropdown-inner+.dropdown-inner {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.nk-header .dropdown-menu .user-card {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-radius: 10px;
    margin-bottom: 4px;
}

.nk-header .dropdown-menu .link-list-opt a,
.nk-header .dropdown-menu .link-list a {
    padding: 9px 14px;
    border-radius: 9px;
    margin: 1px 4px;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    color: #475569;
    font-weight: 500;
}

.nk-header .dropdown-menu .link-list-opt a:hover,
.nk-header .dropdown-menu .link-list a:hover {
    background: rgba(99, 102, 241, 0.10);
    color: #4f46e5;
    transform: translateX(-2px);
}

.nk-header .dropdown-menu .link-list-opt a .icon,
.nk-header .dropdown-menu .link-list a .icon {
    color: #94a3b8;
    transition: color 0.15s ease;
}

.nk-header .dropdown-menu .link-list-opt a:hover .icon,
.nk-header .dropdown-menu .link-list a:hover .icon {
    color: #4f46e5;
}

.nk-header .dropdown-menu .link-list-opt a.text-danger,
.nk-header .dropdown-menu .link-list a.text-danger {
    color: #dc2626 !important;
}

.nk-header .dropdown-menu .link-list-opt a.text-danger:hover,
.nk-header .dropdown-menu .link-list a.text-danger:hover {
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c !important;
}

.nk-header .dropdown-menu .overline-title {
    padding: 8px 14px 4px;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: #94a3b8;
}

.nk-header .user-toggle:after {
    transition: transform 0.2s ease;
}

.nk-header .show>.user-toggle:after,
.nk-header .dropdown.show>.user-toggle:after {
    transform: rotate(180deg);
}

/* Dark mode header dropdown */
.dark-mode .nk-header .dropdown-menu .user-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.10));
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .nk-header .dropdown-menu .dropdown-inner+.dropdown-inner {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .nk-header .dropdown-menu .link-list-opt a,
.dark-mode .nk-header .dropdown-menu .link-list a {
    color: #cbd5e1;
}

.dark-mode .nk-header .dropdown-menu .link-list-opt a:hover,
.dark-mode .nk-header .dropdown-menu .link-list a:hover {
    background: rgba(129, 140, 248, 0.18);
    color: #c7d2fe;
}

.dark-mode .nk-header .dropdown-menu .link-list-opt a:hover .icon,
.dark-mode .nk-header .dropdown-menu .link-list a:hover .icon {
    color: #c7d2fe;
}

/* ====================================================== */
/* === GDM (Güzel Detay Modal) === */
/* ====================================================== */

.gdm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gdm-modal.is-open {
    display: flex;
}

.gdm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: gdmFadeIn 0.2s ease;
}

.gdm-dialog {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: calc(100vh - 32px);
    background: var(--std-surface, #ffffff);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: gdmSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gdmFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gdmSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gdm-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.gdm-header::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.gdm-back,
.gdm-close {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, transform 0.12s;
}

.gdm-back:hover,
.gdm-close:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.gdm-back .icon,
.gdm-close .icon {
    font-size: 18px;
    line-height: 1;
}

.gdm-title-block {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.gdm-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    word-break: break-word;
}

.gdm-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 2px;
}

.gdm-tag {
    display: inline-block;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.20);
    padding: 3px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 700;
}

.gdm-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.gdm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 700px) {
    .gdm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gdm-stat-card {
    background: var(--std-surface-soft, #f7f9fc);
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.15s ease;
}

.gdm-stat-card:hover {
    transform: translateY(-2px);
}

.gdm-stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
}

.gdm-stat-icon.indigo {
    background: linear-gradient(135deg, #1f327d, #4b66ea);
}

.gdm-stat-icon.sky {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.gdm-stat-icon.amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.gdm-stat-icon.slate {
    background: linear-gradient(135deg, #64748b, #475569);
}

.gdm-stat-icon.rose {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
}

.gdm-stat-icon.violet {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.gdm-stat-icon.emerald {
    background: linear-gradient(135deg, #10b981, #059669);
}

.gdm-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--std-muted, #6e82a5);
    letter-spacing: 0.4px;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gdm-stat-label .gdm-emoji {
    font-size: 11px;
}

.gdm-stat-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--std-title, #1f2b4d);
    line-height: 1.1;
}

.gdm-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    .gdm-highlights {
        grid-template-columns: 1fr;
    }
}

.gdm-highlight {
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.gdm-highlight.main {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.gdm-highlight.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.gdm-highlight::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.gdm-highlight-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    opacity: 0.95;
}

.gdm-highlight-value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.gdm-payments-card {
    background: var(--std-surface-soft, #f7f9fc);
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 12px;
    overflow: hidden;
}

.gdm-payments-header {
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(79, 70, 229, 0.04));
    border-bottom: 1px solid var(--std-border, #e5e9f2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gdm-payments-header .icon {
    color: #4b66ea;
    font-size: 15px;
}

.gdm-payments-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--std-title, #1f2b4d);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gdm-payments-list {
    padding: 4px 0;
}

.gdm-payment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
}

.gdm-payment-item+.gdm-payment-item {
    border-top: 1px solid var(--std-border, #e5e9f2);
}

.gdm-payment-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.gdm-payment-icon.nakit {
    background: linear-gradient(135deg, #10b981, #059669);
}

.gdm-payment-icon.kart {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
}

.gdm-payment-icon.veresiye {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.gdm-payment-label {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--std-title, #1f2b4d);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gdm-payment-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--std-title, #1f2b4d);
    font-variant-numeric: tabular-nums;
}

/* Dark mode */
.dark-mode .gdm-dialog {
    background: #1e293b;
}

.dark-mode .gdm-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .gdm-stat-label {
    color: #94a3b8;
}

.dark-mode .gdm-stat-value {
    color: #e5ecff;
}

.dark-mode .gdm-payments-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .gdm-payments-header {
    background: rgba(99, 102, 241, 0.12);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .gdm-payments-title {
    color: #e5ecff;
}

.dark-mode .gdm-payment-item+.gdm-payment-item {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .gdm-payment-label {
    color: #cbd5e1;
}

.dark-mode .gdm-payment-value {
    color: #e5ecff;
}

/* ==========================================================================
   MODERN RAPOR TASARIMI (urunbilgisi, grupbilgisi, urunciro stili)
   Tüm rapor sayfaları (e-arşiv, e-fatura, e-irsaliye) için geçerlidir.
   ========================================================================== */

body[class*="page-earsiv"],
body[class*="page-efatura"],
body[class*="page-eirsaliye"] {
    background: #f1f5f9;
    min-height: 100vh;
}

body[class*="page-earsiv"] .nk-content,
body[class*="page-efatura"] .nk-content,
body[class*="page-eirsaliye"] .nk-content {
    background: transparent !important;
}

/* Report pages container max-width for consistent layout */
body[class*="page-earsiv"] .container-fluid,
body[class*="page-efatura"] .container-fluid,
body[class*="page-eirsaliye"] .container-fluid,
body.page-caribakiyeliste .container-fluid {
    max-width: 1400px;
}

/* === KPI STATS === */
body[class*="page-earsiv"] .rep-stats,
body[class*="page-efatura"] .rep-stats,
body[class*="page-eirsaliye"] .rep-stats {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 4px 14px;
    margin: 0 -4px 16px;
    scrollbar-width: thin;
}

body[class*="page-earsiv"] .rep-stats::-webkit-scrollbar,
body[class*="page-efatura"] .rep-stats::-webkit-scrollbar,
body[class*="page-eirsaliye"] .rep-stats::-webkit-scrollbar {
    height: 8px;
}

body[class*="page-earsiv"] .rep-stats::-webkit-scrollbar-thumb,
body[class*="page-efatura"] .rep-stats::-webkit-scrollbar-thumb,
body[class*="page-eirsaliye"] .rep-stats::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 999px;
}

.dark-mode body[class*="page-earsiv"] .rep-stats::-webkit-scrollbar-thumb,
.dark-mode body[class*="page-efatura"] .rep-stats::-webkit-scrollbar-thumb,
.dark-mode body[class*="page-eirsaliye"] .rep-stats::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
}

body[class*="page-earsiv"] .rep-stats .rep-stat,
body[class*="page-efatura"] .rep-stats .rep-stat,
body[class*="page-eirsaliye"] .rep-stats .rep-stat {
    flex: 0 0 230px;
    min-width: 230px;
    max-width: 230px;
    margin: 0 !important;
}

@media (min-width: 1200px) {

    body[class*="page-earsiv"] .rep-stats .rep-stat,
    body[class*="page-efatura"] .rep-stats .rep-stat,
    body[class*="page-eirsaliye"] .rep-stats .rep-stat {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }
}

/* === TABLES === */
body[class*="page-earsiv"] .nk-tb-list,
body[class*="page-efatura"] .nk-tb-list,
body[class*="page-eirsaliye"] .nk-tb-list {
    width: 100% !important;
}

body[class*="page-earsiv"] .nk-tb-list thead tr th,
body[class*="page-efatura"] .nk-tb-list thead tr th,
body[class*="page-eirsaliye"] .nk-tb-list thead tr th {
    background: #f8fafc !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6e82a5;
    border-bottom: 1px solid #e5e9f2;
    padding: 14px 16px !important;
}

.dark-mode body[class*="page-earsiv"] .nk-tb-list thead tr th,
.dark-mode body[class*="page-efatura"] .nk-tb-list thead tr th,
.dark-mode body[class*="page-eirsaliye"] .nk-tb-list thead tr th {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

body[class*="page-earsiv"] .nk-tb-list tbody tr,
body[class*="page-efatura"] .nk-tb-list tbody tr,
body[class*="page-eirsaliye"] .nk-tb-list tbody tr {
    transition: background-color 0.15s ease, transform 0.15s ease;
}

body[class*="page-earsiv"] .nk-tb-list tbody tr td,
body[class*="page-efatura"] .nk-tb-list tbody tr td,
body[class*="page-eirsaliye"] .nk-tb-list tbody tr td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #e5e9f2;
    color: #1f2b4d;
    vertical-align: middle;
}

.dark-mode body[class*="page-earsiv"] .nk-tb-list tbody tr td,
.dark-mode body[class*="page-efatura"] .nk-tb-list tbody tr td,
.dark-mode body[class*="page-eirsaliye"] .nk-tb-list tbody tr td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body[class*="page-earsiv"] .nk-tb-list tbody tr:hover td,
body[class*="page-efatura"] .nk-tb-list tbody tr:hover td,
body[class*="page-eirsaliye"] .nk-tb-list tbody tr:hover td {
    background: rgba(99, 102, 241, 0.04);
}

.dark-mode body[class*="page-earsiv"] .nk-tb-list tbody tr:hover td,
.dark-mode body[class*="page-efatura"] .nk-tb-list tbody tr:hover td,
.dark-mode body[class*="page-eirsaliye"] .nk-tb-list tbody tr:hover td {
    background: rgba(99, 102, 241, 0.10);
}

body[class*="page-earsiv"] .nk-tb-list td.text-end,
body[class*="page-earsiv"] .nk-tb-list th.text-end,
body[class*="page-efatura"] .nk-tb-list td.text-end,
body[class*="page-efatura"] .nk-tb-list th.text-end,
body[class*="page-eirsaliye"] .nk-tb-list td.text-end,
body[class*="page-eirsaliye"] .nk-tb-list th.text-end {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

body[class*="page-earsiv"] .nk-tb-list tfoot tr.table-info th,
body[class*="page-efatura"] .nk-tb-list tfoot tr.table-info th,
body[class*="page-eirsaliye"] .nk-tb-list tfoot tr.table-info th {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4f46e5 !important;
    padding: 14px 16px !important;
    font-weight: 700;
    font-size: 14px;
}

body[class*="page-earsiv"] .nk-tb-list tfoot tr.table-success th,
body[class*="page-efatura"] .nk-tb-list tfoot tr.table-success th,
body[class*="page-eirsaliye"] .nk-tb-list tfoot tr.table-success th {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.10), rgba(16, 185, 129, 0.05)) !important;
    color: #059669 !important;
    padding: 14px 16px !important;
    font-weight: 800;
    font-size: 14px;
}

.dark-mode body[class*="page-earsiv"] .nk-tb-list tfoot tr.table-info th,
.dark-mode body[class*="page-efatura"] .nk-tb-list tfoot tr.table-info th,
.dark-mode body[class*="page-eirsaliye"] .nk-tb-list tfoot tr.table-info th {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #c7d2fe !important;
}

.dark-mode body[class*="page-earsiv"] .nk-tb-list tfoot tr.table-success th,
.dark-mode body[class*="page-efatura"] .nk-tb-list tfoot tr.table-success th,
.dark-mode body[class*="page-eirsaliye"] .nk-tb-list tfoot tr.table-success th {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
}

/* === DATATABLES DARK MODE === */
.dark-mode body[class*="page-earsiv"] .dataTables_wrapper .dataTables_filter input,
.dark-mode body[class*="page-earsiv"] .dataTables_wrapper .dataTables_length select,
.dark-mode body[class*="page-efatura"] .dataTables_wrapper .dataTables_filter input,
.dark-mode body[class*="page-efatura"] .dataTables_wrapper .dataTables_length select,
.dark-mode body[class*="page-eirsaliye"] .dataTables_wrapper .dataTables_filter input,
.dark-mode body[class*="page-eirsaliye"] .dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5ecff;
}

/* === SIDEBAR ACTIVE STATE === */
#seciliEARSIV_BEKLEYEN,
#seciliEARSIV_DETAY,
#seciliEARSIV_GONDERILMIS,
#seciliEFATURA_BEKLEYEN,
#seciliEFATURA_DETAY,
#seciliEFATURA_GONDERILMIS,
#seciliEIRSALIYE_BEKLEYEN,
#seciliEIRSALIYE_DETAY,
#seciliEIRSALIYE_GONDERILMIS {
    background: #d16700 repeat;
    padding-left: 10px;
}

#seciliTextEARSIV_BEKLEYEN,
#seciliTextEARSIV_DETAY,
#seciliTextEARSIV_GONDERILMIS,
#seciliTextEFATURA_BEKLEYEN,
#seciliTextEFATURA_DETAY,
#seciliTextEFATURA_GONDERILMIS,
#seciliTextEIRSALIYE_BEKLEYEN,
#seciliTextEIRSALIYE_DETAY,
#seciliTextEIRSALIYE_GONDERILMIS {
    color: #fff;
}

/* === MOBILE === */
@media (max-width: 768px) {

    body[class*="page-earsiv"] .rep-hero-row,
    body[class*="page-efatura"] .rep-hero-row,
    body[class*="page-eirsaliye"] .rep-hero-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px !important;
    }

    body[class*="page-earsiv"] .gt-desktop-only,
    body[class*="page-efatura"] .gt-desktop-only,
    body[class*="page-eirsaliye"] .gt-desktop-only {
        display: none !important;
    }

    body[class*="page-earsiv"] .rep-card-head,
    body[class*="page-efatura"] .rep-card-head,
    body[class*="page-eirsaliye"] .rep-card-head {
        padding: 12px 14px;
    }

    body[class*="page-earsiv"] .rep-card-body,
    body[class*="page-efatura"] .rep-card-body,
    body[class*="page-eirsaliye"] .rep-card-body {
        padding: 12px;
    }
}

/* === E-FATURA / E-İRSALİYE ÖNİZLEME (A4) === */
.efatura-preview {
    background: #fff !important;
    color: #1f2b4d !important;
    width: 794px !important;
    padding: 0 !important;
    margin: 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.efatura-preview *,
.efatura-preview div,
.efatura-preview span,
.efatura-preview strong,
.efatura-preview td,
.efatura-preview th,
.efatura-preview p {
    color: #1f2b4d !important;
}

.efatura-preview .ef-header {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
    color: #fff !important;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.efatura-preview .ef-header *,
.efatura-preview .ef-header div,
.efatura-preview .ef-header span,
.efatura-preview .ef-header strong {
    color: #fff !important;
}

.efatura-preview .ef-title {
    font-size: 16px;
    font-weight: 800;
}

.efatura-preview .ef-subtitle {
    font-size: 11px;
    opacity: 0.9;
}

.efatura-preview .ef-section {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.efatura-preview .ef-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d97706 !important;
    margin: 0 0 10px;
}

.efatura-preview .ef-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.efatura-preview .ef-info-label {
    font-size: 10px;
    color: #64748b !important;
    font-weight: 700;
    text-transform: uppercase;
}

.efatura-preview .ef-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #1f2b4d !important;
}

.efatura-preview .ef-uuid {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 4px;
    color: #92400e !important;
    word-break: break-all;
}

.efatura-preview .ef-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #10b981;
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.efatura-preview .ef-status.draft {
    background: #f59e0b;
}

.efatura-preview .ef-status.error {
    background: #ef4444;
}

.efatura-preview table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.efatura-preview table thead th {
    background: #1f2b4d !important;
    color: #fff !important;
    padding: 8px 10px;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.efatura-preview table thead th * {
    color: #fff !important;
}

.efatura-preview table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    vertical-align: middle;
}

.efatura-preview table tbody tr:nth-child(even) td {
    background: #f8fafc !important;
}

.efatura-preview .ef-totals {
    background: #fff7ed;
    padding: 14px 24px;
    border-left: 4px solid #d97706;
}

.efatura-preview .ef-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
}

.efatura-preview .ef-totals-row.total {
    font-size: 16px;
    font-weight: 800;
    color: #d97706 !important;
    border-top: 2px solid #d97706;
    padding-top: 8px;
    margin-top: 6px;
}

.efatura-preview .ef-signature {
    padding: 18px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    border-top: 1px solid #e5e7eb;
}

.efatura-preview .ef-signature-box {
    text-align: center;
    border: 1px dashed #cbd5e1;
    padding: 12px;
    border-radius: 6px;
}

.efatura-preview .ef-signature-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b !important;
    margin-top: 6px;
}

.efatura-preview .ef-footer {
    background: #1f2b4d !important;
    color: #cbd5e1 !important;
    padding: 10px 24px;
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.3px;
}

.efatura-preview .ef-footer * {
    color: #cbd5e1 !important;
}

.efatura-preview .ef-qr-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    background: #fef3c7;
}

.efatura-preview .ef-qr-box {
    width: 70px;
    height: 70px;
    background: #fff;
    border: 1px solid #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #92400e !important;
    text-align: center;
    border-radius: 4px;
}

.efatura-preview .ef-qr-info {
    font-size: 11px;
    color: #78350f !important;
    flex: 1;
}

.efatura-preview .ef-qr-info strong {
    color: #78350f !important;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        background: #fff !important;
    }

    .efatura-preview {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
}

/* === Modern Report Components for efaturagonderilmis.php === */

/* Rep Hero Section */
.rep-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, var(--std-accent-a, #1f327d) 0%, var(--std-accent-b, #4b66ea) 100%);
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: var(--std-shadow, 0 14px 40px rgba(31, 50, 125, 0.08));
}

.dark-mode .rep-hero {
    background: linear-gradient(135deg, rgba(63, 102, 255, 0.15) 0%, rgba(52, 80, 186, 0.10) 100%);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.rep-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.rep-hero-text {
    flex: 1;
}

.rep-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.rep-hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rep-hero-sub em {
    font-size: 14px;
    margin-right: 2px;
}

/* Rep Stats Section */
.rep-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.rep-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--std-surface, #fff);
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 14px;
    box-shadow: var(--std-shadow, 0 14px 40px rgba(31, 50, 125, 0.08));
    transition: all 0.3s ease;
}

.dark-mode .rep-stat {
    background: #1c2536;
    border-color: #364159;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.rep-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(31, 50, 125, 0.12);
}

.dark-mode .rep-stat:hover {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.rep-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    flex-shrink: 0;
}

.rep-stat.is-indigo .rep-stat-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    color: #6366f1;
}

.dark-mode .rep-stat.is-indigo .rep-stat-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.10));
}

.rep-stat.is-emerald .rep-stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
}

.dark-mode .rep-stat.is-emerald .rep-stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.10));
}

.rep-stat.is-amber .rep-stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
}

.dark-mode .rep-stat.is-amber .rep-stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.10));
}

.rep-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-500, #6e82a5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.dark-mode .rep-stat-label {
    color: #9db4d1;
}

.rep-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--std-title, #1f2b4d);
    line-height: 1;
    margin: 0;
}

.dark-mode .rep-stat-value {
    color: #e5ecff;
}

/* Rep Card Section (Table Container) */
.rep-card {
    background: var(--std-surface, #fff);
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 14px;
    box-shadow: var(--std-shadow, 0 14px 40px rgba(31, 50, 125, 0.08));
    overflow: hidden;
    margin-bottom: 24px;
}

.dark-mode .rep-card {
    background: #1c2536;
    border-color: #364159;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.rep-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--std-surface-soft, #f7f9fc) 0%, var(--std-surface, #fff) 100%);
    border-bottom: 1px solid var(--std-border, #e5e9f2);
    flex-wrap: wrap;
    gap: 12px;
}

.dark-mode .rep-card-head {
    background: linear-gradient(135deg, #212b3e 0%, #1c2536 100%);
    border-bottom-color: #364159;
}

.rep-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--std-title, #1f2b4d);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.dark-mode .rep-card-title {
    color: #e5ecff;
}

.rep-card-title em {
    font-size: 18px;
    color: #6576ff;
}

.dark-mode .rep-card-title em {
    color: #3f66ff;
}

.rep-card-body {
    padding: 0;
    overflow: hidden;
}

/* Responsive Table Styling */
.std-mlist-table {
    width: 100% !important;
}

.std-mlist-table thead tr {
    background: var(--std-surface-soft, #f7f9fc);
}

.dark-mode .std-mlist-table thead tr {
    background: #212b3e;
}

.std-mlist-table thead th {
    color: var(--slate-500, #6e82a5);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--std-border, #e5e9f2);
    padding: 12px 16px !important;
    white-space: nowrap;
}

.dark-mode .std-mlist-table thead th {
    color: #9db4d1;
    border-bottom-color: #364159;
}

.std-mlist-table tbody td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--std-border, #e5e9f2);
    vertical-align: middle;
}

.dark-mode .std-mlist-table tbody td {
    border-bottom-color: #364159;
}

.std-mlist-table tbody tr:hover td {
    background: rgba(101, 118, 255, 0.04);
}

.dark-mode .std-mlist-table tbody tr:hover td {
    background: rgba(101, 118, 255, 0.10);
}

.std-mlist-table tfoot tr {
    font-weight: 600;
    font-size: 12px;
}

.std-mlist-table tfoot tr.table-info {
    background: rgba(59, 130, 246, 0.08);
    color: #1f2b4d;
}

.dark-mode .std-mlist-table tfoot tr.table-info {
    background: rgba(59, 130, 246, 0.15);
    color: #e5ecff;
}

.std-mlist-table tfoot tr.table-success {
    background: rgba(34, 197, 94, 0.08);
    color: #1f2b4d;
}

.dark-mode .std-mlist-table tfoot tr.table-success {
    background: rgba(34, 197, 94, 0.15);
    color: #e5ecff;
}

/* Sort Select Styling */
.urun-sort-select {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-500, #6e82a5);
    background: var(--std-surface, #fff);
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode .urun-sort-select {
    background: #1c2536;
    border-color: #364159;
    color: #9db4d1;
}

.urun-sort-select:hover,
.urun-sort-select:focus {
    border-color: #6576ff;
    box-shadow: 0 0 0 3px rgba(101, 118, 255, 0.15);
    outline: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rep-stats {
        grid-template-columns: 1fr;
    }

    .rep-hero {
        padding: 16px;
    }

    .rep-hero-title {
        font-size: 20px;
    }

    .rep-card-head {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .rep-card-head .urun-sort-select {
        width: auto !important;
        max-width: 160px !important;
        margin-top: 0 !important;
    }

    .rep-card-title {
        width: 100%;
    }

    .desktop-col {
        display: none !important;
    }

    .efatura-mobile-metrics {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .efatura-mobile-metrics {
        display: none !important;
    }
}

/* Lokasyon Tag Styling */
.rep-lokasyon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
    position: relative;
    transition: all 0.2s ease;
}

.rep-lokasyon-tag:hover {
    background: rgba(255, 255, 255, 0.18);
}

.rep-lokasyon-tag em {
    font-size: 14px;
    flex-shrink: 0;
}

.rep-lokasyon-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    padding: 12px 14px;
    background: var(--std-surface, #fff);
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 10px;
    font-size: 13px;
    color: var(--std-title, #1f2b4d);
    white-space: normal;
    max-width: min(340px, calc(100vw - 40px));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    word-wrap: break-word;
    line-height: 1.4;
}

.dark-mode .rep-lokasyon-popover {
    background: #1c2536;
    border-color: #364159;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.rep-lokasyon-tag:hover .rep-lokasyon-popover {
    display: block;
}

/* E-Fatura Mobile Metrics */
.efatura-mobile-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    flex-shrink: 0;
    min-width: max-content;
}

.dark-mode .efatura-mobile-metrics {
    background: rgba(255, 255, 255, 0.03);
}

.efatura-mobile-metrics-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
}

.efatura-mobile-metrics-row .label {
    font-weight: 700;
    color: var(--slate-500, #6e82a5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dark-mode .efatura-mobile-metrics-row .label {
    color: #9db4d1;
}

.efatura-mobile-metrics-row .value {
    font-weight: 600;
    color: var(--std-title, #1f2b4d);
}

.dark-mode .efatura-mobile-metrics-row .value {
    color: #e5ecff;
}

/* Container Full-Width Fix */
.page-efaturagonderilmis .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-efaturagonderilmis .nk-content-inner {
    padding: 24px;
}

/* Rep Card Body Responsive */
.rep-card-body>.table-responsive {
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.rep-card-body .table-responsive::-webkit-scrollbar {
    height: 6px;
}

.rep-card-body .table-responsive::-webkit-scrollbar-track {
    background: var(--std-surface-soft, #f7f9fc);
}

.dark-mode .rep-card-body .table-responsive::-webkit-scrollbar-track {
    background: #212b3e;
}

.rep-card-body .table-responsive::-webkit-scrollbar-thumb {
    background: var(--std-border, #e5e9f2);
    border-radius: 3px;
}

.dark-mode .rep-card-body .table-responsive::-webkit-scrollbar-thumb {
    background: #364159;
}

/* ============================================
   EFATURAGONDERILMIS - Sayfa-özgü kurallar
   ============================================ */

/* Sütun başlıkları ilk harf büyük (Cari Adı gibi) */
.page-efaturagonderilmis .nk-tb-list thead .sub-text,
.page-efaturagonderilmis .rep-card-title,
.page-efaturagonderilmis .rep-card-title span {
    text-transform: capitalize !important;
    letter-spacing: 0.2px !important;
}

/* Toplam Tutar değeri kaydırmalı (overflow-x) */
.page-efaturagonderilmis .rep-stat.is-amber .rep-stat-value,
.page-efaturagonderilmis .rep-stat.is-indigo .rep-stat-value,
.page-efaturagonderilmis .rep-stat.is-emerald .rep-stat-value {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.page-efaturagonderilmis .rep-stat.is-amber .rep-stat-value::-webkit-scrollbar,
.page-efaturagonderilmis .rep-stat.is-indigo .rep-stat-value::-webkit-scrollbar,
.page-efaturagonderilmis .rep-stat.is-emerald .rep-stat-value::-webkit-scrollbar {
    height: 3px;
}

.page-efaturagonderilmis .rep-stat.is-amber .rep-stat-value::-webkit-scrollbar-thumb,
.page-efaturagonderilmis .rep-stat.is-indigo .rep-stat-value::-webkit-scrollbar-thumb,
.page-efaturagonderilmis .rep-stat.is-emerald .rep-stat-value::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 2px;
}

.dark-mode.page-efaturagonderilmis .rep-stat.is-amber .rep-stat-value::-webkit-scrollbar-thumb,
.dark-mode.page-efaturagonderilmis .rep-stat.is-indigo .rep-stat-value::-webkit-scrollbar-thumb,
.dark-mode.page-efaturagonderilmis .rep-stat.is-emerald .rep-stat-value::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
}

/* E-Fatura Mobil: Cari altında tarih, sağda tutar ve lokasyon */
.page-efaturagonderilmis .efatura-mobile-tarih {
    font-size: 11px;
    color: var(--slate-500, #6e82a5);
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode.page-efaturagonderilmis .efatura-mobile-tarih {
    color: #9db4d1;
}

.page-efaturagonderilmis .efatura-mobile-metrics {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    flex-shrink: 0;
    min-width: max-content;
}

.dark-mode.page-efaturagonderilmis .efatura-mobile-metrics {
    background: rgba(255, 255, 255, 0.03);
}

.page-efaturagonderilmis .efatura-mobile-metrics-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.page-efaturagonderilmis .efatura-mm-tutar .value {
    font-weight: 700;
    font-size: 13px;
    color: var(--std-title, #1f2b4d);
}

.dark-mode.page-efaturagonderilmis .efatura-mm-tutar .value {
    color: #e5ecff;
}

.page-efaturagonderilmis .efatura-mm-lokasyon .value {
    font-size: 10.5px;
    color: var(--slate-500, #6e82a5);
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode.page-efaturagonderilmis .efatura-mm-lokasyon .value {
    color: #9db4d1;
}

@media (min-width: 769px) {

    .page-efaturagonderilmis .efatura-mobile-metrics,
    .page-efaturagonderilmis .efatura-mobile-tarih {
        display: none !important;
    }
}

/* ============================================
   EFG-PAGE  (yalnizca efaturagonderilmis.php)
   body.efg-page icin izole kurallar
   ============================================ */

/* Sutun basliklari ilk harf buyuk (Cari Adi gibi) */
body.efg-page .nk-tb-list thead .sub-text,
body.efg-page .rep-card-title,
body.efg-page .rep-card-title span {
    text-transform: capitalize !important;
    letter-spacing: 0.2px !important;
}

/* Toplam Tutar / Belge / Gonderilen degerleri kaydirmali (overflow-x) */
body.efg-page .rep-stat.is-amber .rep-stat-value,
body.efg-page .rep-stat.is-indigo .rep-stat-value,
body.efg-page .rep-stat.is-emerald .rep-stat-value {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

body.efg-page .rep-stat.is-amber .rep-stat-value::-webkit-scrollbar,
body.efg-page .rep-stat.is-indigo .rep-stat-value::-webkit-scrollbar,
body.efg-page .rep-stat.is-emerald .rep-stat-value::-webkit-scrollbar {
    height: 3px;
}

body.efg-page .rep-stat.is-amber .rep-stat-value::-webkit-scrollbar-thumb,
body.efg-page .rep-stat.is-indigo .rep-stat-value::-webkit-scrollbar-thumb,
body.efg-page .rep-stat.is-emerald .rep-stat-value::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 2px;
}

body.dark-mode.efg-page .rep-stat.is-amber .rep-stat-value::-webkit-scrollbar-thumb,
body.dark-mode.efg-page .rep-stat.is-indigo .rep-stat-value::-webkit-scrollbar-thumb,
body.dark-mode.efg-page .rep-stat.is-emerald .rep-stat-value::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
}

/* E-Fatura Mobil: Cari altinda tarih, sagda tutar ve lokasyon */
body.efg-page .efatura-mobile-tarih {
    font-size: 11px;
    color: var(--slate-500, #6e82a5);
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode.efg-page .efatura-mobile-tarih {
    color: #9db4d1;
}

body.efg-page .efatura-mobile-metrics {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    flex-shrink: 0;
    min-width: max-content;
}

body.dark-mode.efg-page .efatura-mobile-metrics {
    background: rgba(255, 255, 255, 0.03);
}

body.efg-page .efatura-mobile-metrics-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

body.efg-page .efatura-mm-tutar .value {
    font-weight: 700;
    font-size: 13px;
    color: var(--std-title, #1f2b4d);
}

body.dark-mode.efg-page .efatura-mm-tutar .value {
    color: #e5ecff;
}

body.efg-page .efatura-mm-lokasyon .value {
    font-size: 10.5px;
    color: var(--slate-500, #6e82a5);
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode.efg-page .efatura-mm-lokasyon .value {
    color: #9db4d1;
}

/* Masaustunde mobil blogunu gizle */
@media (min-width: 769px) {

    body.efg-page .efatura-mobile-metrics,
    body.efg-page .efatura-mobile-tarih {
        display: none !important;
    }
}

/* ============================================
   ENHANCED RESPONSIVE STYLES FOR ALL PAGES
   ============================================ */

/* Ultra-compact mobile header */
@media (max-width: 575.98px) {
    .nk-block-head {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .nk-block-between {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .nk-block-head-content {
        width: 100% !important;
    }

    .page-header-actions {
        width: 100% !important;
        text-align: left !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .page-header-actions .tw-btn,
    .page-header-actions .btn {
        flex: 1 1 auto !important;
        min-width: calc(50% - 3px) !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .page-header-actions .tw-btn em,
    .page-header-actions .btn em {
        font-size: 14px !important;
    }
}

/* Ultra-compact date range form */
@media (max-width: 575.98px) {
    .tarih-form-compact {
        padding: 10px !important;
    }

    .tarih-form-compact .row {
        --bs-gutter-y: 6px !important;
        --bs-gutter-x: 6px !important;
    }

    .tarih-form-compact .tw-label {
        font-size: 10px !important;
        margin-bottom: 3px !important;
    }

    .tarih-form-compact .tw-datetime {
        gap: 4px !important;
    }

    .tarih-form-compact .divider-wrapper {
        display: none !important;
    }

    .tarih-form-compact .tw-input {
        padding: 8px 10px !important;
    }

    .tarih-form-compact .tw-input .form-control,
    .tarih-form-compact .tw-input .form-select {
        padding: 8px 0 !important;
        font-size: 13px !important;
    }

    .tarih-form-compact .tw-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    .tarih-form-compact .tw-check {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}

/* Enhanced mobile-friendly DataTable */
@media (max-width: 767.98px) {

    /* Compact DataTable controls */
    .dataTables_wrapper .dt-top-controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    .dataTables_wrapper .dataTables_length select {
        max-width: 80px !important;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        max-width: none !important;
    }

    /* Export buttons - compact on mobile */
    .dt-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: flex-start !important;
    }

    .dt-buttons .dt-button {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    .dt-buttons .dt-button span {
        display: none !important;
    }

    .dt-buttons .dt-button::before {
        font-size: 14px !important;
    }

    /* Table adjustments for mobile */
    .nk-tb-list {
        font-size: 12px !important;
    }

    .nk-tb-list thead th {
        padding: 10px 8px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .nk-tb-list tbody td {
        padding: 10px 8px !important;
    }

    .nk-tb-list .tb-lead {
        font-size: 12px !important;
    }

    .nk-tb-list .tb-activity {
        font-size: 10px !important;
    }

    /* Footer stats - horizontal scroll on mobile */
    .nk-tb-list tfoot th {
        padding: 10px 8px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    /* Info and pagination compact */
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100% !important;
        text-align: center !important;
        margin-top: 8px !important;
    }

    .dataTables_wrapper .paginate_button {
        padding: 4px 8px !important;
        font-size: 11px !important;
        margin: 0 2px !important;
    }
}

/* Ultra-small screens (old phones) */
@media (max-width: 374.98px) {
    .nk-tb-list thead th {
        padding: 8px 4px !important;
        font-size: 9px !important;
    }

    .nk-tb-list tbody td {
        padding: 8px 4px !important;
    }

    .nk-tb-list .tb-lead {
        font-size: 11px !important;
    }

    .page-header-actions .tw-btn,
    .page-header-actions .btn {
        min-width: 100% !important;
    }
}

/* Enhanced card responsiveness */
@media (max-width: 767.98px) {

    .std-panel-card,
    .card.card-bordered {
        border-radius: 12px !important;
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    .std-panel-card .card-inner,
    .card.card-bordered .card-inner {
        padding: 12px !important;
    }

    .card-title {
        font-size: 14px !important;
    }

    .card-title .title {
        font-size: 14px !important;
    }

    .nk-block-head-tools {
        font-size: 12px !important;
    }
}

/* Filter strip mobile optimization */
@media (max-width: 575.98px) {
    .filter-strip {
        padding: 10px !important;
        border-radius: 12px !important;
        gap: 8px !important;
    }

    .filter-chip-group {
        width: 100% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 4px !important;
    }

    .filter-chip {
        flex-shrink: 0 !important;
        font-size: 11px !important;
        padding: 5px 10px !important;
    }

    .filter-right-cluster {
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    .filter-search-wrap {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .filter-perpage {
        flex-shrink: 0 !important;
    }
}

/* Modal responsiveness */
@media (max-width: 575.98px) {
    .modal-dialog {
        max-width: calc(100% - 20px) !important;
        margin: 10px auto !important;
    }

    .modal-content {
        border-radius: 12px !important;
    }

    .modal-header {
        padding: 14px 16px !important;
    }

    .modal-title {
        font-size: 15px !important;
    }

    .modal-body {
        padding: 14px 16px !important;
    }

    .modal-footer {
        padding: 10px 16px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .modal-footer .btn {
        flex: 1 1 auto !important;
        min-width: calc(50% - 4px) !important;
    }
}

/* Touch-friendly interactions */
@media (max-width: 767.98px) {

    /* Larger touch targets */
    .btn,
    .tw-btn,
    .filter-chip,
    .tw-select-option,
    .nk-tb-list tbody tr {
        min-height: 44px !important;
    }

    /* Prevent text selection on interactive elements */
    .btn,
    .tw-btn,
    .filter-chip,
    .nk-menu-link {
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    /* Touch feedback */
    .btn:active,
    .tw-btn:active,
    .filter-chip:active,
    .nk-tb-list tbody tr:active {
        transform: scale(0.98) !important;
        opacity: 0.9 !important;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-dialog {
        max-width: 80% !important;
        margin: 10px auto !important;
    }

    .modal-body {
        max-height: 60vh !important;
        overflow-y: auto !important;
    }
}

/* High DPI mobile displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .nk-tb-list,
    .std-panel-card,
    .card {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
}

/* Print optimization */
@media print {

    .nk-sidebar,
    .nk-header,
    .page-header-actions,
    .dt-buttons,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate,
    .dataTables_info,
    .filter-strip,
    .tarih-form-compact {
        display: none !important;
    }

    .nk-wrap {
        padding: 0 !important;
    }

    .nk-content {
        padding: 0 !important;
    }

    .nk-block {
        padding: 0 !important;
    }

    .card,
    .std-panel-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid !important;
    }

    .nk-tb-list {
        font-size: 10pt !important;
    }

    .nk-tb-list thead th {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* caribakiyeliste.php mobil arama/kayıt sayısı */
@media (max-width: 768px) {
    .page-caribakiye .rep-card-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .page-caribakiye .rep-card-tools {
        width: 100%;
        justify-content: center;
    }

    .page-caribakiye .urun-mobile-controls {
        padding: 12px 14px 4px;
    }
}

/* ============================================================
   Shared: Overflow prevention (used by takvim, karsilastirma,
   caribakiyeliste and similar pages)
============================================================ */
.std-overflow-safe html,
.std-overflow-safe body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.nk-app-root,
.nk-main,
.nk-wrap,
.nk-content,
.container-fluid,
.nk-content-inner,
.nk-content-body {
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   Shared: rep-hero banner component
============================================================ */
.rep-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    color: #fff;
    padding: 16px 20px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(79, 70, 229, .18);
    margin-bottom: 18px;
}

.rep-hero::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.rep-hero-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
    /* keep icon + text on same line */
}

.rep-hero-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.rep-hero-text {
    flex: 1;
    min-width: 0;
}

.rep-hero-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.rep-hero-sub {
    font-size: 12px;
    opacity: .9;
    margin-top: 4px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, .85);
}

@media (max-width: 480px) {
    .rep-hero {
        padding: 14px 14px;
    }

    .rep-hero-title {
        font-size: 18px;
    }

    .rep-hero-sub {
        gap: 6px;
        margin-top: 3px;
    }

    .rep-hero-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
}

/* ============================================================
   Shared: Premium Filter Bar  (cbl- prefix = cari-bakiye-list)
============================================================ */
.cbl-filter-card {
    background: var(--std-surface, #fff);
    border: 1px solid var(--std-border, #e5e9f2);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

.dark-mode .cbl-filter-card {
    background: #1e2a3b;
    border-color: #2e3f56;
}

/* Filter pill tabs */
.cbl-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    /* keep all pills on one row */
    margin-bottom: 12px;
    overflow-x: auto;
    /* allow horizontal scroll on very small screens if needed */
    -webkit-overflow-scrolling: touch;
}

.cbl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--std-border, #e5e9f2);
    background: var(--std-surface-soft, #f7f9fc);
    color: var(--std-muted, #6e82a5);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s;
    white-space: nowrap;
}

.cbl-pill em {
    font-size: 15px;
}

.cbl-pill:hover {
    border-color: #6576ff;
    color: #6576ff;
    background: var(--std-surface, #fff);
}

.cbl-pill.is-active-borclu {
    background: linear-gradient(135deg, #6576ff, #4455dd);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(101, 118, 255, .3);
}

.cbl-pill.is-active-alacakli {
    background: linear-gradient(135deg, #f4433e, #c0392b);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, .3);
}

.cbl-pill.is-active-tumu {
    background: linear-gradient(135deg, #526484, #3c4d63);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(82, 100, 132, .3);
}

.dark-mode .cbl-pill {
    background: #243245;
    border-color: #3a4d66;
    color: #9db4d1;
}

.dark-mode .cbl-pill:hover {
    border-color: #6576ff;
    color: #6576ff;
    background: #1e2a3b;
}

/* Search + per-page row — always side by side */
.cbl-controls-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    /* keep on one row */
}

/* Search input */
.cbl-search-wrap {
    flex: 1 1 0;
    position: relative;
    min-width: 0;
}

.cbl-search-wrap .cbl-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--std-muted, #6e82a5);
    pointer-events: none;
    font-size: 16px;
}

.cbl-search-wrap input {
    width: 100%;
    padding: 9px 36px 9px 38px;
    border: 1.5px solid var(--std-border, #e5e9f2);
    border-radius: 8px;
    background: var(--std-surface-soft, #f7f9fc);
    color: var(--std-title, #1f2b4d);
    font-size: 13px;
    outline: none;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}

.cbl-search-wrap input:focus {
    border-color: #6576ff;
    background: var(--std-surface, #fff);
}

.cbl-search-wrap .cbl-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--std-muted, #6e82a5);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
}

.cbl-search-wrap .cbl-clear-btn:hover {
    color: #e85347;
}

.dark-mode .cbl-search-wrap input {
    background: #1e2a3b;
    border-color: #2e3f56;
    color: #dbe8fa;
}

.dark-mode .cbl-search-wrap input:focus {
    border-color: #6576ff;
    background: #243245;
}

/* Per-page dropdown */
.cbl-perpage-wrap {
    flex: 0 0 auto;
}

.cbl-perpage-wrap select {
    padding: 9px 12px;
    border: 1.5px solid var(--std-border, #e5e9f2);
    border-radius: 8px;
    background: var(--std-surface-soft, #f7f9fc);
    color: var(--std-title, #1f2b4d);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
    white-space: nowrap;
}

.cbl-perpage-wrap select:focus {
    border-color: #6576ff;
}

.dark-mode .cbl-perpage-wrap select {
    background: #1e2a3b;
    border-color: #2e3f56;
    color: #dbe8fa;
}

.dark-mode .cbl-perpage-wrap select:focus {
    border-color: #6576ff;
    background: #243245;
}

/* ============================================================
   Shared: Desktop table footer totals — colored amounts
============================================================ */
/* Borç total → orange/amber */
.nk-tb-footer .nk-tb-col:nth-child(5) strong {
    color: #e67e22;
    font-size: 0.95rem;
}

/* Alacak total → green */
.nk-tb-footer .nk-tb-col:nth-child(6) strong {
    color: #27ae60;
    font-size: 0.95rem;
}

/* Bakiye total → blue/purple */
.nk-tb-footer .nk-tb-col:nth-child(7) strong {
    color: #6576ff;
    font-size: 0.95rem;
}

.dark-mode .nk-tb-footer .nk-tb-col:nth-child(5) strong {
    color: #f39c12;
}

.dark-mode .nk-tb-footer .nk-tb-col:nth-child(6) strong {
    color: #2ecc71;
}

.dark-mode .nk-tb-footer .nk-tb-col:nth-child(7) strong {
    color: #7b8fff;
}

/* ============================================================
   Shared: Mobile totals summary bar  (replaces old nk-tb-footer
   mobile layout that relied on nth-child tricks)
============================================================ */
.mobile-totals-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 14px;
}

.mobile-totals-bar .mttl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--std-border, #e5e9f2);
    background: var(--std-surface, #fff);
}

.mobile-totals-bar .mttl-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--std-muted, #6e82a5);
}

.mobile-totals-bar .mttl-value {
    font-size: 14px;
    font-weight: 700;
}

.mobile-totals-bar .mttl-borc {
    border-left: 3px solid #e67e22;
}

.mobile-totals-bar .mttl-alacak {
    border-left: 3px solid #27ae60;
}

.mobile-totals-bar .mttl-bakiye {
    border-left: 3px solid #6576ff;
}

.mobile-totals-bar .mttl-borc .mttl-value {
    color: #e67e22;
}

.mobile-totals-bar .mttl-alacak .mttl-value {
    color: #27ae60;
}

.mobile-totals-bar .mttl-bakiye .mttl-value {
    color: #6576ff;
}

.dark-mode .mobile-totals-bar .mttl-row {
    background: #243245;
    border-color: #3a4d66;
}

.dark-mode .mobile-totals-bar .mttl-borc {
    border-left-color: #f39c12;
}

.dark-mode .mobile-totals-bar .mttl-alacak {
    border-left-color: #2ecc71;
}

.dark-mode .mobile-totals-bar .mttl-bakiye {
    border-left-color: #7b8fff;
}

.dark-mode .mobile-totals-bar .mttl-borc .mttl-value {
    color: #f39c12;
}

.dark-mode .mobile-totals-bar .mttl-alacak .mttl-value {
    color: #2ecc71;
}

.dark-mode .mobile-totals-bar .mttl-bakiye .mttl-value {
    color: #7b8fff;
}

/* ============================================================
   Profile Page Layout (profil.php) Scoped Styles
   ============================================================ */
.page-profil {
    background: var(--std-surface-soft);
    min-height: 100vh;
}

.page-profil .nk-content {
    background: transparent !important;
}

/* Profile Hero Card */
.page-profil .profil-hero-card {
    background: var(--std-surface);
    border: 1px solid var(--std-border);
    border-radius: 16px;
    box-shadow: var(--std-shadow);
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.page-profil .profil-banner {
    height: 140px;
    background: linear-gradient(135deg, var(--std-accent-a) 0%, var(--std-accent-b) 100%);
    position: relative;
    overflow: hidden;
}

.page-profil .profil-banner::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 65%);
    border-radius: 50%;
}

.page-profil .profil-body-wrap {
    padding: 0 24px 24px;
    position: relative;
}

.page-profil .profil-avatar-container {
    display: flex;
    align-items: flex-end;
    margin-top: -50px;
    margin-bottom: 16px;
    gap: 20px;
    flex-wrap: wrap;
}

.page-profil .profil-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    border: 4px solid var(--std-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
    z-index: 2;
}

.page-profil .profil-hero-text {
    flex: 1;
    min-width: 250px;
}

.page-profil .profil-company-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--std-title);
    margin: 0 0 6px;
}

.page-profil .profil-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--std-muted);
}

.page-profil .profil-meta-list .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-profil .profil-meta-list .meta-item i {
    font-size: 14px;
    color: var(--std-accent-b);
}

.page-profil .profil-meta-list .meta-sep {
    color: var(--std-border);
    user-select: none;
}

/* Card Overrides */
.page-profil .std-panel-card {
    background: var(--std-surface);
    border: 1px solid var(--std-border);
    border-radius: 16px;
    box-shadow: var(--std-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.page-profil .std-panel-card-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--std-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-profil .std-panel-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--std-title);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-profil .std-panel-card-title i {
    color: var(--std-accent-b);
}

.page-profil .std-panel-card-body {
    padding: 24px;
}

/* Profile details list */
.page-profil .profil-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 28px;
}

.page-profil .profil-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.18s ease;
}

.page-profil .profil-detail-item:hover {
    background: var(--std-surface-soft);
}

.page-profil .profil-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(75, 102, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--std-accent-b);
    font-size: 15px;
    flex-shrink: 0;
}

.page-profil .profil-detail-content {
    min-width: 0;
    flex: 1;
}

.page-profil .profil-detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--std-muted);
    margin-bottom: 2px;
}

.page-profil .profil-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--std-title);
    word-break: break-word;
}

.page-profil .profil-detail-value a {
    color: var(--std-accent-b);
    text-decoration: none;
    transition: color 0.15s;
}

.page-profil .profil-detail-value a:hover {
    color: var(--std-accent-a);
    text-decoration: underline;
}

/* Social Quick Buttons */
.page-profil .social-quick-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.page-profil .social-btn {
    flex: 1;
    min-width: 50px;
    height: 46px;
    border-radius: 12px;
    background: var(--std-surface-soft);
    border: 1px solid var(--std-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--std-title);
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.page-profil .social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(75, 102, 234, 0.15);
    background: var(--std-accent-b);
    border-color: var(--std-accent-b);
    color: #fff;
}

.page-profil .social-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.page-profil .social-btn.email:hover {
    background: #ea4335;
    border-color: #ea4335;
}

.page-profil .social-btn.phone:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

/* Password forms & fields styling override */
.page-profil .tw-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--std-border);
    background: var(--std-surface-soft);
    border-radius: 10px;
    padding: 0 14px;
    transition: border-color .15s, box-shadow .15s;
}

.page-profil .tw-input:focus-within {
    border-color: var(--std-accent-b);
    background: var(--std-surface);
    box-shadow: 0 0 0 3px rgba(75, 102, 234, 0.15);
}

.page-profil .tw-input .form-control {
    border: 0 !important;
    background: transparent !important;
    padding: 11px 0 !important;
    box-shadow: none !important;
    color: var(--std-title);
    font-size: 14px;
    height: auto;
}

.page-profil .tw-input .form-control::placeholder {
    color: var(--std-muted);
    opacity: 0.6;
}

.page-profil .tw-input-icon {
    color: var(--std-muted);
    margin-right: 10px;
    font-size: 15px;
}

.page-profil .tw-pass-toggle {
    background: none;
    border: 0;
    color: var(--std-muted);
    cursor: pointer;
    padding: 6px;
    margin-left: 6px;
    transition: color 0.15s;
}

.page-profil .tw-pass-toggle:hover {
    color: var(--std-accent-b);
}

/* Theme Buttons */
.page-profil .theme-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.page-profil .theme-card-btn {
    border: 2px solid var(--std-border);
    border-radius: 12px;
    background: var(--std-surface);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--std-title);
    font-weight: 700;
}

.page-profil .theme-card-btn i {
    font-size: 24px;
    color: var(--std-muted);
    transition: transform 0.3s ease;
}

.page-profil .theme-card-btn:hover {
    border-color: var(--std-accent-b);
    transform: translateY(-2px);
}

.page-profil .theme-card-btn:hover i {
    transform: scale(1.1);
}

.page-profil .theme-card-btn.active {
    border-color: var(--std-accent-b);
    background: rgba(75, 102, 234, 0.05);
    color: var(--std-accent-b);
}

.page-profil .theme-card-btn.active i {
    color: var(--std-accent-b);
}

/* Status Pill */
.page-profil .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.page-profil .status-pill.active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.page-profil .status-pill.inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Notifications Alert */
.page-profil .std-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    animation: std-fade-up 0.3s ease;
}

.page-profil .std-alert.success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.page-profil .std-alert.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

@media (max-width: 991px) {
    .page-profil .profil-detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-profil .profil-detail-item {
        grid-column: auto !important;
    }
}

@media (max-width: 576px) {
    .page-profil .profil-avatar-container {
        margin-top: -40px;
        justify-content: center;
        text-align: center;
    }

    .page-profil .profil-hero-text {
        text-align: center;
    }

    .page-profil .profil-meta-list {
        justify-content: center;
    }

    .page-profil .profil-body-wrap {
        padding: 0 16px 16px;
    }

    .page-profil .std-panel-card-body {
        padding: 16px;
    }
}

/* ============================================================
   Finansal Özet Page Layout (finansozet.php) Scoped Styles
   ============================================================ */
.page-finansozet .dt-buttons.btn-group {
    margin-bottom: 16px;
    gap: 8px;
}

.page-finansozet .dt-btn-excel {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 6px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.page-finansozet .dt-btn-pdf {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 6px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.page-finansozet .dt-btn-print {
    background: #4b66ea !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 6px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.page-finansozet .dt-btn-excel:hover,
.page-finansozet .dt-btn-pdf:hover,
.page-finansozet .dt-btn-print:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.page-finansozet .clickable-row {
    cursor: pointer;
}

.page-finansozet .clickable-row:hover td {
    background: rgba(99, 102, 241, 0.04) !important;
}

.page-finansozet #finansTable.nk-tb-list {
    width: 100% !important;
}

.page-finansozet #finansTable thead tr th {
    background: var(--slate-50, #f8fafc);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--slate-500);
    border-bottom: 1px solid var(--slate-200);
    padding: 12px 16px !important;
}

.page-finansozet #finansTable tbody tr td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--slate-100, #f1f5f9);
    color: var(--std-title);
}

.page-finansozet #finansTable .tb-lead {
    font-weight: 600;
    color: var(--std-title);
}

.page-finansozet #finansTable td.text-end,
.page-finansozet #finansTable th.text-end {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Footer Totals custom gradients */
.page-finansozet #finansTable tfoot tr.table-success th {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.10), rgba(16, 185, 129, 0.05)) !important;
    color: #059669 !important;
    padding: 14px 16px !important;
    font-weight: 800;
    font-size: 14px;
    border-top: 1px solid var(--slate-200);
}

.page-finansozet #finansTable tfoot tr.table-success th:nth-child(3) {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.10), rgba(239, 68, 68, 0.05)) !important;
    color: #dc2626 !important;
}

/* Dark Mode Overrides */
.dark-mode.page-finansozet #finansTable thead tr th {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.dark-mode.page-finansozet #finansTable tbody tr td {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.dark-mode.page-finansozet #finansTable tbody tr:hover td {
    background: rgba(99, 102, 241, 0.10) !important;
}

.dark-mode.page-finansozet #finansTable tfoot tr.table-success th {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
}

.dark-mode.page-finansozet #finansTable tfoot tr.table-success th:nth-child(3) {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
}

.dark-mode.page-finansozet .dataTables_wrapper .dataTables_filter input,
.dark-mode.page-finansozet .dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

/* ============================================================
   Finansal Detay Page Layout (finansdetay.php) Scoped Styles
   ============================================================ */
.page-finansdetay .dt-buttons.btn-group {
    margin-bottom: 16px;
    gap: 8px;
}

.page-finansdetay .dt-btn-excel {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 6px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.page-finansdetay .dt-btn-pdf {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 6px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.page-finansdetay .dt-btn-print {
    background: #4b66ea !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 6px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.page-finansdetay .dt-btn-excel:hover,
.page-finansdetay .dt-btn-pdf:hover,
.page-finansdetay .dt-btn-print:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.page-finansdetay #detayTable.nk-tb-list {
    width: 100% !important;
}

.page-finansdetay #detayTable thead tr th {
    background: var(--slate-50, #f8fafc);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--slate-500);
    border-bottom: 1px solid var(--slate-200);
    padding: 12px 16px !important;
}

.page-finansdetay #detayTable tbody tr td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--slate-100, #f1f5f9);
    color: var(--std-title);
}

.page-finansdetay #detayTable .tb-lead {
    font-weight: 600;
    color: var(--std-title);
}

.page-finansdetay #detayTable td.text-end,
.page-finansdetay #detayTable th.text-end {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Dark Mode Overrides */
.dark-mode.page-finansdetay #detayTable thead tr th {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.dark-mode.page-finansdetay #detayTable tbody tr td {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.dark-mode.page-finansdetay .dataTables_wrapper .dataTables_filter input,
.dark-mode.page-finansdetay .dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

/* ============================================================
   Finansal Raporlar Datatables ve Mobil Hizalama
   ============================================================ */
@media (min-width: 769px) {

    /* Revert to default side-by-side positioning: length on left, filter on right */
    .page-finansozet .dataTables_wrapper>.row:first-child,
    .page-finansdetay .dataTables_wrapper>.row:first-child {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 16px !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .page-finansozet .dataTables_wrapper>.row:first-child>div:first-child,
    .page-finansdetay .dataTables_wrapper>.row:first-child>div:first-child {
        order: 1 !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 15px !important;
    }

    .page-finansozet .dataTables_wrapper>.row:first-child>div:last-child,
    .page-finansdetay .dataTables_wrapper>.row:first-child>div:last-child {
        order: 2 !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-right: 15px !important;
    }

    .page-finansozet .dataTables_wrapper .dataTables_length,
    .page-finansdetay .dataTables_wrapper .dataTables_length {
        float: left !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border: 1px solid var(--slate-200) !important;
        border-radius: 12px !important;
        background: linear-gradient(180deg, #fff, #f8fafc) !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06) !important;
        display: inline-flex !important;
        align-items: center !important;
        height: auto !important;
    }

    .page-finansozet .dataTables_wrapper .dataTables_filter,
    .page-finansdetay .dataTables_wrapper .dataTables_filter {
        float: right !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border: 1px solid var(--slate-200) !important;
        border-radius: 12px !important;
        background: linear-gradient(180deg, #fff, #f8fafc) !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06) !important;
        display: inline-flex !important;
        align-items: center !important;
        height: auto !important;
    }

    .page-finansozet .dataTables_wrapper .dataTables_length label,
    .page-finansdetay .dataTables_wrapper .dataTables_length label,
    .page-finansozet .dataTables_wrapper .dataTables_filter label,
    .page-finansdetay .dataTables_wrapper .dataTables_filter label {
        margin: 0;
        font-size: 12px;
        color: var(--slate-500);
        font-weight: 600;
        display: inline-block !important;
    }

    .dark-mode.page-finansozet .dataTables_wrapper .dataTables_length,
    .dark-mode.page-finansdetay .dataTables_wrapper .dataTables_length,
    .dark-mode.page-finansozet .dataTables_wrapper .dataTables_filter,
    .dark-mode.page-finansdetay .dataTables_wrapper .dataTables_filter {
        border-color: rgba(255, 255, 255, 0.08) !important;
        background: rgba(255, 255, 255, 0.02) !important;
        box-shadow: none !important;
    }
}

/* Remove left padding from the first column of the tables to align flush left */
.page-finansozet #finansTable tbody tr td:first-child,
.page-finansozet #finansTable thead tr th:first-child,
.page-finansdetay #detayTable tbody tr td:first-child,
.page-finansdetay #detayTable thead tr th:first-child {
    padding-left: 0 !important;
}

.page-finansozet #finansTable tbody tr td:first-child .urun-row-flex,
.page-finansdetay #detayTable tbody tr td:first-child .urun-row-flex {
    padding-left: 0 !important;
}

/* Mobil Kaydırma (horizontal scroll) ve stats kartları yığılma (stacked) düzeni */
@media (max-width: 768px) {

    .page-finansozet .rep-stats,
    .page-finansdetay .rep-stats {
        display: block !important;
        overflow-x: visible !important;
        padding-inline: 12px !important;
    }

    .page-finansozet .rep-stat,
    .page-finansdetay .rep-stat {
        width: 100% !important;
        min-width: 100% !important;
        margin-bottom: 10px !important;
    }

    .page-finansozet .rep-stats-shell,
    .page-finansdetay .rep-stats-shell {
        margin-bottom: 0 !important;
    }

    .page-finansozet .rep-stats-nav,
    .page-finansdetay .rep-stats-nav {
        display: none !important;
    }

    /* Mobil Kontroller (Arama + Sayfa Boyutu) - grupbilgisi.php'deki urun-mobile-controls görünümü */
    .page-finansozet .dataTables_wrapper>.row:first-child,
    .page-finansdetay .dataTables_wrapper>.row:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 12px 10px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .page-finansozet .dataTables_wrapper>.row:first-child>div:first-child,
    .page-finansdetay .dataTables_wrapper>.row:first-child>div:first-child {
        order: 2 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .page-finansozet .dataTables_wrapper>.row:first-child>div:last-child,
    .page-finansdetay .dataTables_wrapper>.row:first-child>div:last-child {
        order: 1 !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .page-finansozet .dataTables_wrapper .dataTables_filter,
    .page-finansdetay .dataTables_wrapper .dataTables_filter {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        display: block !important;
    }

    .page-finansozet .dataTables_wrapper .dataTables_filter label,
    .page-finansdetay .dataTables_wrapper .dataTables_filter label {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        margin: 0 !important;
        font-size: 0 !important;
    }

    /* Add the search icon just like umc-search */
    .page-finansozet .dataTables_wrapper .dataTables_filter label::before,
    .page-finansdetay .dataTables_wrapper .dataTables_filter label::before {
        content: "\e9ee";
        font-family: "Nioicon" !important;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--slate-500);
        font-size: 14px;
        pointer-events: none;
    }

    .page-finansozet .dataTables_wrapper .dataTables_filter input,
    .page-finansdetay .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        padding: 8px 10px 8px 32px !important;
        border: 1px solid var(--slate-200, #e2e8f0) !important;
        border-radius: 8px !important;
        background: var(--std-surface, #fff) !important;
        color: var(--std-title) !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        height: 36px !important;
        margin: 0 !important;
    }

    .page-finansozet .dataTables_wrapper .dataTables_length,
    .page-finansdetay .dataTables_wrapper .dataTables_length {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        display: block !important;
    }

    .page-finansozet .dataTables_wrapper .dataTables_length label,
    .page-finansdetay .dataTables_wrapper .dataTables_length label {
        display: block !important;
        margin: 0 !important;
        font-size: 0 !important;
    }

    .page-finansozet .dataTables_wrapper .dataTables_length select,
    .page-finansdetay .dataTables_wrapper .dataTables_length select {
        padding: 8px 10px !important;
        border: 1px solid var(--slate-200, #e2e8f0) !important;
        border-radius: 8px !important;
        background: var(--std-surface, #fff) !important;
        color: var(--std-title) !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        height: 36px !important;
        width: auto !important;
        margin: 0 !important;
    }

    .dark-mode.page-finansozet .dataTables_wrapper .dataTables_filter input,
    .dark-mode.page-finansdetay .dataTables_wrapper .dataTables_filter input,
    .dark-mode.page-finansozet .dataTables_wrapper .dataTables_length select,
    .dark-mode.page-finansdetay .dataTables_wrapper .dataTables_length select {
        background: #1b2333 !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        color: #e2e8f0 !important;
    }
}






/* ============================================================
   Satıcı Analizi (personelsaticianaliz.php) Mobil Kart & Datatables
   ============================================================ */
.page-personelsaticianaliz .ozet-table-col {
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
}

@media (min-width: 769px) {

    /* Revert to default side-by-side positioning: length on left, filter on right */
    .page-personelsaticianaliz .dataTables_wrapper>.row:first-child {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 16px !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper>.row:first-child>div:first-child {
        order: 1 !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 15px !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper>.row:first-child>div:last-child {
        order: 2 !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-right: 15px !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_length {
        float: left !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border: 1px solid var(--slate-200) !important;
        border-radius: 12px !important;
        background: linear-gradient(180deg, #fff, #f8fafc) !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06) !important;
        display: inline-flex !important;
        align-items: center !important;
        height: auto !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_filter {
        float: right !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border: 1px solid var(--slate-200) !important;
        border-radius: 12px !important;
        background: linear-gradient(180deg, #fff, #f8fafc) !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06) !important;
        display: inline-flex !important;
        align-items: center !important;
        height: auto !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_length label,
    .page-personelsaticianaliz .dataTables_wrapper .dataTables_filter label {
        margin: 0;
        font-size: 12px;
        color: var(--slate-500);
        font-weight: 600;
        display: inline-block !important;
    }

    .dark-mode.page-personelsaticianaliz .dataTables_wrapper .dataTables_length,
    .dark-mode.page-personelsaticianaliz .dataTables_wrapper .dataTables_filter {
        border-color: rgba(255, 255, 255, 0.08) !important;
        background: rgba(255, 255, 255, 0.02) !important;
        box-shadow: none !important;
    }
}

/* Remove left padding from the first column of the tables to align flush left */
.page-personelsaticianaliz #ozetTable tbody tr td:first-child,
.page-personelsaticianaliz #ozetTable thead tr th:first-child,
.page-personelsaticianaliz #detailTable tbody tr td:first-child,
.page-personelsaticianaliz #detailTable thead tr th:first-child {
    padding-left: 0 !important;
}

@media (max-width: 768px) {

    /* Mobil Kontroller (Arama + Sayfa Boyutu) - grupbilgisi.php'deki urun-mobile-controls görünümü */
    .page-personelsaticianaliz .nk-tb-toolbar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 12px 10px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .page-personelsaticianaliz .nk-tb-toolbar-left {
        order: 2 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .page-personelsaticianaliz .nk-tb-toolbar-right {
        order: 1 !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_filter {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        display: block !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_filter label {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        margin: 0 !important;
        font-size: 0 !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_filter label::before {
        content: "\e9ee";
        font-family: "Nioicon" !important;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--slate-500);
        font-size: 14px;
        pointer-events: none;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        padding: 8px 10px 8px 32px !important;
        border: 1px solid var(--slate-200, #e2e8f0) !important;
        border-radius: 8px !important;
        background: var(--std-surface, #fff) !important;
        color: var(--std-title) !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        height: 36px !important;
        margin: 0 !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_length {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        display: block !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_length label {
        display: block !important;
        margin: 0 !important;
        font-size: 0 !important;
    }

    .page-personelsaticianaliz .dataTables_wrapper .dataTables_length select {
        padding: 8px 10px !important;
        border: 1px solid var(--slate-200, #e2e8f0) !important;
        border-radius: 8px !important;
        background: var(--std-surface, #fff) !important;
        color: var(--std-title) !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        height: 36px !important;
        width: auto !important;
        margin: 0 !important;
    }

    .dark-mode.page-personelsaticianaliz .dataTables_wrapper .dataTables_filter input,
    .dark-mode.page-personelsaticianaliz .dataTables_wrapper .dataTables_length select {
        background: #1b2333 !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        color: #e2e8f0 !important;
    }
}

/* ============ Global Location Popover & Preview ============ */
.rep-lokasyon-tag {
    cursor: pointer !important;
}

.rep-lokasyon-tag:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.rep-lokasyon-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 6px;
    font-size: 13px;
    color: #475569;
    min-width: 220px;
    max-width: min(520px, 88vw);
    white-space: normal;
    z-index: 99999 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    max-height: 250px;
    overflow-y: auto;
    word-break: break-word;
}

.rep-lokasyon-popover strong {
    color: #1f2b4d !important;
}

.rep-lokasyon-popover hr {
    border-color: rgba(0, 0, 0, 0.08) !important;
    margin: 8px 0 !important;
}

.rep-lokasyon-popover.is-visible {
    display: block !important;
}

.dark-mode .rep-lokasyon-popover {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

.dark-mode .rep-lokasyon-popover strong {
    color: #e5ecff !important;
}

.dark-mode .rep-lokasyon-popover hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ============ Stacking Context & Backdrop Overlay via :has ============ */
body:has(.rep-lokasyon-popover.is-visible)::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998 !important;
    pointer-events: auto;
}

.rep-hero:has(.rep-lokasyon-popover.is-visible) {
    z-index: 999999 !important;
    position: relative !important;
    overflow: visible !important;
}

@media (max-width: 768px) {

    body .std-mlist .rep-hero-sub .rep-lokasyon-popover,
    body .rep-hero .rep-lokasyon-popover,
    body .rep-lokasyon-popover {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 85% !important;
        max-width: 320px !important;
        min-width: unset !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
        padding: 16px !important;
        text-align: center !important;
        background: #fff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 12px !important;
        z-index: 999999 !important;
        margin: 0 !important;
        max-height: 75vh !important;
        overflow-y: auto !important;
        word-break: break-word !important;
    }

    body.dark-mode .std-mlist .rep-hero-sub .rep-lokasyon-popover,
    body.dark-mode .rep-hero .rep-lokasyon-popover,
    body.dark-mode .rep-lokasyon-popover {
        background: #1e293b !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }
}

/* ============ Premium Standard Table Styling for all reports ============ */
.std-mlist .card .table,
.std-mlist .card-inner .table,
.std-mlist table.table {
    border-collapse: collapse !important;
    width: 100% !important;
}

.std-mlist table.table thead tr th {
    background: var(--slate-50, #f8fafc) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    color: var(--slate-500, #6e82a5) !important;
    border-bottom: 1px solid var(--slate-200, #e5e9f2) !important;
    padding: 12px 16px !important;
}

.std-mlist table.table tbody tr td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--slate-100, #f1f5f9) !important;
    vertical-align: middle !important;
}

.std-mlist table.table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.04) !important;
}

/* Dark Mode support */
.dark-mode.std-mlist table.table thead tr th {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
}

.dark-mode.std-mlist table.table tbody tr td {
    border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

.dark-mode.std-mlist table.table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Responsive columns standard */
@media (max-width: 768px) {
    .std-mlist .desktop-col {
        display: none !important;
    }

    .std-mlist .mobile-col {
        display: table-cell !important;
    }
}

@media (min-width: 769px) {
    .std-mlist .mobile-col {
        display: none !important;
    }

    .std-mlist .desktop-col {
        display: table-cell !important;
    }
}

/* ==========================================================================
   BANKA HAREKETİ MOBİL GÖRÜNÜMÜ STILLERI (GLOBAL)
   ========================================================================== */
.bank-movement-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 0;
}

.bank-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 58px;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 8px;
    background-color: var(--white, #fff);
    flex-shrink: 0;
    padding: 4px;
}

.dark-mode .bank-date-box {
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.03);
}

.bank-date-month {
    font-size: 10px;
    font-weight: 500;
    color: var(--slate-400, #94a3b8);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.bank-date-day {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate-800, #1e293b);
    line-height: 1;
    margin-bottom: 2px;
}

.dark-mode .bank-date-day {
    color: #f1f5f9;
}

.bank-date-year {
    font-size: 9px;
    color: var(--slate-400, #94a3b8);
    line-height: 1;
}

.bank-content-wrap {
    flex-grow: 1;
    margin-left: 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.bank-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800, #1e293b);
    margin: 0;
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.dark-mode .bank-title {
    color: #f1f5f9;
}

.bank-desc {
    font-size: 11px;
    color: var(--slate-500, #64748b);
    line-height: 1.4;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 12px;
    flex-grow: 1;
    text-align: left;
}

.dark-mode .bank-desc {
    color: #94a3b8;
}

.bank-metrics {
    min-width: unset !important;
    margin-left: auto;
    flex-shrink: 0;
}

/* ========================================================================= */
/* STD SOLID MODAL (e.g. for Franchisee Alt Firma Update Popup)              */
/* ========================================================================= */
.std-solid-modal .modal-content {
    background: var(--std-surface, #ffffff) !important;
    background-color: var(--std-surface, #ffffff) !important;
    border: 1px solid var(--std-border, #dbdfea) !important;
    border-radius: 16px;
    color: var(--std-title, #364a63) !important;
}

.std-solid-modal .modal-header {
    background: var(--std-surface-soft, #f8fafc) !important;
    background-color: var(--std-surface-soft, #f8fafc) !important;
    border-bottom: 1px solid var(--std-border, #dbdfea) !important;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.std-solid-modal .modal-body {
    background: var(--std-surface, #ffffff) !important;
    background-color: var(--std-surface, #ffffff) !important;
}

.std-solid-modal .modal-footer {
    background: var(--std-surface-soft, #f8fafc) !important;
    background-color: var(--std-surface-soft, #f8fafc) !important;
    border-top: 1px solid var(--std-border, #dbdfea) !important;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.std-solid-modal .modal-title {
    color: var(--std-title);
    font-weight: 800;
}

/* Ensure footer items wrap nicely but stay side-by-side as much as possible */
@media (max-width: 575.98px) {
    .std-solid-modal .modal-footer {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 10px;
    }
}

/* ==========================================================================
   GÜNLÜK İŞLEMLER ÖZET SAYFASI MOBİL/TABLET GÖRÜNÜMÜ STILLERI
   ========================================================================== */
@media (max-width: 768px) {
    .page-gunlukislemlerozet .bank-movement-row {
        align-items: flex-start !important;
        padding: 12px 4px !important;
    }
    
    .page-gunlukislemlerozet .bank-date-box {
        margin-top: 2px !important;
        background: var(--std-surface-soft, #f7f9fc);
        border: 1px solid var(--std-border, #e5e9f2);
        border-radius: 8px;
        width: 54px;
        height: 54px;
        flex-shrink: 0;
    }
    
    .dark-mode.page-gunlukislemlerozet .bank-date-box {
        background: #212b3e !important;
        border-color: #364159 !important;
    }
    
    .page-gunlukislemlerozet .bank-date-month {
        font-size: 9px;
        font-weight: 700;
        color: var(--slate-500, #6e82a5);
        text-transform: uppercase;
        line-height: 1;
        margin-bottom: 2px;
    }
    
    .dark-mode.page-gunlukislemlerozet .bank-date-month {
        color: #94a3b8 !important;
    }
    
    .page-gunlukislemlerozet .bank-date-day {
        font-size: 16px;
        font-weight: 800;
        color: var(--slate-800, #1e293b);
        line-height: 1;
        margin-bottom: 2px;
    }
    
    .dark-mode.page-gunlukislemlerozet .bank-date-day {
        color: #f1f5f9 !important;
    }
    
    .page-gunlukislemlerozet .bank-date-year {
        font-size: 8px;
        color: var(--slate-400, #94a3b8);
        line-height: 1;
    }

    .page-gunlukislemlerozet .bank-metrics-list {
        display: flex !important;
        flex-direction: column;
        gap: 2px;
        text-align: right;
        min-width: 120px;
        line-height: 1.25;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .page-gunlukislemlerozet .bank-metrics-list .metric-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .page-gunlukislemlerozet .bank-metrics-list .metric-row .m-label {
        color: var(--slate-400, #9fb0d6);
        font-size: 10px;
        text-transform: uppercase;
        font-weight: 600;
    }
    
    .page-gunlukislemlerozet .bank-metrics-list .metric-row .m-val {
        font-size: 12px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    
    .page-gunlukislemlerozet .bank-metrics-list .metric-row.bakiye-row {
        border-top: 1px dashed rgba(128, 148, 174, 0.2);
        padding-top: 3px;
        margin-top: 3px;
    }
    
    .dark-mode.page-gunlukislemlerozet .bank-metrics-list .metric-row.bakiye-row {
        border-top-color: rgba(255, 255, 255, 0.12);
    }

    /* Hero section responsive overrides */
    .page-gunlukislemlerozet .rep-hero-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        height: auto !important;
        min-height: unset !important;
    }
    
    .page-gunlukislemlerozet .rep-hero-text {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        height: auto !important;
    }
    
    .page-gunlukislemlerozet .rep-hero-sub {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gunlukislemlerozet .rep-hero-sub .rep-lokasyon-tag {
        display: inline-flex !important;
        width: auto !important;
        align-self: flex-start !important;
    }
    
    .page-gunlukislemlerozet .rep-hero-actions {
        margin-top: 8px !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .page-gunlukislemlerozet .rep-hero-actions .btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
}