/* Anasayfa header kart */
.kp-card {
    background: var(--rz-base-background-color, #fff);
    border: 1px solid var(--rz-border-200, #e5e7eb);
    border-radius: 16px;
    padding: 14px 16px;
}

.kp-card-title {
    font-weight: 700;
    font-size: 1.1rem;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}

@media (max-width:1024px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width:560px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    background: var(--kp-card);
    border: 1px solid var(--kp-border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 22px rgba(2,8,23,.06);
}

.kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kpi-label {
    color: var(--rz-text-tertiary-color, #64748b);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--rz-base-200, #eef2f7);
}

.kpi-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.kpi-sub {
    font-size: 12px;
    color: var(--rz-text-tertiary-color, #94a3b8);
}

/* Renk varyasyonları */
.kpi-card.primary .kpi-icon {
    background: rgba(14,165,233,.12);
}

.kpi-card.primary .kpi-value {
    color: #0ea5e9;
}

.kpi-card.success .kpi-icon {
    background: rgba(34,197,94,.12);
}

.kpi-card.success .kpi-value {
    color: #22c55e;
}

.kpi-card.info .kpi-icon {
    background: rgba(6,182,212,.12);
}

.kpi-card.info .kpi-value {
    color: #06b6d4;
}

.kpi-card.warning .kpi-icon {
    background: rgba(245,158,11,.12);
}

.kpi-card.warning .kpi-value {
    color: #f59e0b;
}

/* ===== DARK THEME DÜZELTMELERI ===== */
body.dark-theme .row-red, 
body.dark-theme .cell-red {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

body.dark-theme .row-green, 
body.dark-theme .cell-green {
    background-color: rgba(34, 197, 94, 0.15) !important;
    color: #86efac !important;
}

body.dark-theme .kpi-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme .kpi-label {
    color: #94a3b8 !important;
}

body.dark-theme .kpi-value {
    color: #e2e8f0 !important;
}

body.dark-theme .kpi-card.primary .kpi-icon {
    background: rgba(56, 189, 248, 0.15) !important;
}

body.dark-theme .kpi-card.primary .kpi-value {
    color: #38bdf8 !important;
}

body.dark-theme .kpi-card.success .kpi-icon {
    background: rgba(74, 222, 128, 0.15) !important;
}

body.dark-theme .kpi-card.success .kpi-value {
    color: #4ade80 !important;
}

body.dark-theme .kpi-card.info .kpi-icon {
    background: rgba(34, 211, 238, 0.15) !important;
}

body.dark-theme .kpi-card.info .kpi-value {
    color: #22d3ee !important;
}

body.dark-theme .kpi-card.warning .kpi-icon {
    background: rgba(251, 191, 36, 0.15) !important;
}

body.dark-theme .kpi-card.warning .kpi-value {
    color: #fbbf24 !important;
}

body.dark-theme .tile {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme .t-caption {
    color: #64748b !important;
}

body.dark-theme .t-value {
    color: #e2e8f0 !important;
}

body.dark-theme .section-card {
    background: linear-gradient(180deg, #1e293b, #162032) !important;
    border-color: #334155 !important;
}

body.dark-theme .hissedar-item {
    background-color: #162032 !important;
    color: #e2e8f0 !important;
}

body.dark-theme .stat-item {
    border-bottom-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-theme .stat-label {
    color: #94a3b8 !important;
}

body.dark-theme .stat-value {
    color: #e2e8f0 !important;
}

body.dark-theme .stat-value.kalan {
    color: #f87171 !important;
}

body.dark-theme .stat-value.fiyat {
    color: #86efac !important;
}

body.dark-theme .summary-value {
    color: #e2e8f0 !important;
}

body.dark-theme .summary-value.kalan {
    color: #f87171 !important;
}

body.dark-theme .empty-icon {
    color: #475569 !important;
}

body.dark-theme .hissedar-info {
    color: #e2e8f0 !important;
}

body.dark-theme .form-actions {
    border-top-color: #334155 !important;
}

body.dark-theme .gr-wrap {
    color: #e2e8f0 !important;
}

body.dark-theme .gr-head {
    border-bottom-color: #334155 !important;
}

body.dark-theme .gr-sub {
    color: #94a3b8 !important;
}

body.dark-theme .gr-badge {
    background: rgba(220, 74, 66, 0.15) !important;
    color: #fca5a5 !important;
}

body.dark-theme .amount-box {
    border-color: #334155 !important;
    background: #162032 !important;
}

body.dark-theme .panel {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme .panel-head {
    border-bottom-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-theme .pay-item {
    border-bottom-color: #334155 !important;
}

body.dark-theme .pay-icon {
    background: #162032 !important;
    color: #dc4a42 !important;
}

body.dark-theme .pay-time,
body.dark-theme .pay-sub {
    color: #94a3b8 !important;
}

body.dark-theme .pay-amount,
body.dark-theme .pay-main {
    color: #e2e8f0 !important;
}

body.dark-theme .mini-kpi {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme .mini-kpi-cap {
    color: #94a3b8 !important;
}

body.dark-theme .mini-kpi-val {
    color: #e2e8f0 !important;
}

body.dark-theme .stat {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme .stat .cap {
    color: #94a3b8 !important;
}

body.dark-theme .stat .val {
    color: #e2e8f0 !important;
}

body.dark-theme .stat .val.success {
    color: #86efac !important;
}

body.dark-theme .stat .val.danger {
    color: #f87171 !important;
}

body.dark-theme .hitem {
    border-color: #334155 !important;
    background: #162032 !important;
}

body.dark-theme .hitem span {
    color: #e2e8f0 !important;
}

.hs-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem
}

.hs-header {
    margin-bottom: .5rem
}

.hs-title {
    font-weight: 700;
    font-size: 1.1rem
}

    .hs-title .badge {
        background: var(--rz-base-200, #eef2ff);
        color: var(--rz-secondary, #4338ca);
        border-radius: 8px;
        padding: .1rem .45rem;
        margin-right: .4rem
    }

.hs-sub {
    color: var(--rz-text-tertiary-color, #667085);
    font-size: .85rem
}

.h-grid {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 1rem
}

.col-6 {
    grid-column: span 6
}

.col-sm-12 {
}

@media (max-width:1024px) {
    .col-6 {
        grid-column: span 12
    }
}

.tile {
    background: var(--rz-base-100, #f8fbff);
    border: 1px solid var(--rz-border-200, #e7eefb);
    border-radius: 12px;
    padding: .75rem 1rem;
    margin-bottom: .5rem;
    box-shadow: 0 1px 0 rgba(16,24,40,.04)
}

.t-caption {
    font-size: .75rem;
    color: var(--rz-text-tertiary-color, #667085);
    margin-bottom: .25rem
}

.t-value {
    font-weight: 700;
    font-size: 1rem
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem
}

.amount-box {
    border: 1px dashed var(--rz-border-200, #e5e7eb);
    border-radius: 12px;
    padding: .75rem 1rem;
    background: var(--rz-base-background-color, #fff)
}

.check-line {
    display: flex;
    align-items: center
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    background: var(--rz-base-background-color, #fff);
    padding: .75rem 1rem;
    border-top: 1px solid var(--rz-border-200, #eef2f7);
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    border-radius: 0 0 16px 16px
}

.hs-person {
    padding: .15rem 0
}
/* ===== Hisse Satış — stabil layout (FINAL) ===== */

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--rz-border-200);
}

    .stat-item:first-child {
        padding-top: 0;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.stat-label {
    color: var(--rz-text-tertiary-color);
}

.stat-value {
    font-weight: 600;
}

    .stat-value.kalan {
        color: var(--rz-danger);
        font-size: 1.1rem;
    }

    .stat-value.fiyat {
        color: var(--rz-success-darker);
    }

.hissedar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--rz-border-radius);
    background-color: var(--rz-base-100);
    margin-bottom: 0.5rem;
}

.hissedar-info {
    line-height: 1.3;
}

.empty-icon {
    font-size: 2.5rem;
    color: var(--rz-base-400);
}

.summary-value {
    font-weight: 700;
    font-size: 1.2rem;
    text-align: right;
}

    .summary-value.kalan {
        color: var(--rz-danger-dark);
        font-size: 1.4rem;
    }

.form-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--rz-border-200);
}
/* Kapsayıcı */
.gr-wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 16px;
}

/* Başlık */
.gr-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rz-border-200);
}

.gr-title {
    letter-spacing: .2px;
}

.gr-sub {
    color: var(--rz-text-tertiary-color);
}

.gr-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gr-badge {
    border-radius: 999px;
    padding: .2rem .6rem;
}

/* Bölüm kartı */
.section-card {
    border-radius: 16px;
    border: 1px solid var(--rz-border-200);
    background: radial-gradient(1100px 500px at -10% -20%, rgba(234,244,255,.6), transparent 55%), radial-gradient(900px 500px at 110% 10%, rgba(255,248,225,.45), transparent 55%), var(--rz-base-0, #fff);
    box-shadow: 0 20px 42px rgba(17,24,39,.08);
    padding: 16px;
    margin-bottom: 16px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .section-title .rz-icon {
        font-size: 22px;
        color: var(--rz-primary);
    }

.muted {
    color: var(--rz-text-tertiary-color);
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}

    .kpi-grid.kpi-3 {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

        .kpi-grid.kpi-3 {
            grid-template-columns: repeat(3, minmax(0,1fr));
        }
}

@media (max-width: 900px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

        .kpi-grid.kpi-3 {
            grid-template-columns: repeat(2, minmax(0,1fr));
        }
}

@media (max-width: 560px) {
    .kpi-grid, .kpi-grid.kpi-3 {
        grid-template-columns: 1fr;
    }
}

/* KPI Kartı */
.kpi-card {
    border: 1px solid var(--rz-border-200);
    background: linear-gradient(180deg, var(--rz-base-0,#fff), var(--rz-base-100,#fafafa));
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 10px 22px rgba(16,24,40,.06);
    transition: transform .12s ease, box-shadow .12s ease;
}

    .kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(16,24,40,.10);
    }

    .kpi-card.col-span-2 {
        grid-column: span 2;
    }

.kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.kpi-label {
    color: var(--rz-text-tertiary-color, #6b7280);
    font-size: .8rem;
    letter-spacing: .2px;
}

.kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--rz-base-200, #eef2f7);
}

    .kpi-icon .rz-icon {
        font-size: 18px;
    }

/* Değer */
.kpi-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .2px;
    font-variant-numeric: tabular-nums;
    color: var(--rz-text-color);
}

    .kpi-value.money {
        font-feature-settings: "tnum" on, "lnum" on;
    }

/* Renk varyasyonları */
.kpi-card.primary .kpi-icon {
    background: rgba(29,78,216,.12);
}

.kpi-card.primary .kpi-value {
    color: #1d4ed8;
}

.kpi-card.success .kpi-icon {
    background: rgba(34,197,94,.12);
}

.kpi-card.success .kpi-value {
    color: #16a34a;
}

.kpi-card.warning .kpi-icon {
    background: rgba(245,158,11,.12);
}

.kpi-card.warning .kpi-value {
    color: #d97706;
}

.kpi-card.info .kpi-icon {
    background: rgba(6,182,212,.12);
}

.kpi-card.info .kpi-value {
    color: #0891b2;
}

.danger-text {
    color: #b42318;
}

.bb-wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 16px;
}

/* Header */
.bb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rz-border-200);
    margin-bottom: 12px;
}

.head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.head-icon {
    font-size: 28px;
    color: var(--rz-primary);
}

.muted {
    color: var(--rz-text-tertiary-color);
}

.head-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Loading */
.loading-card {
    margin-top: 10px;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width:1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width:900px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width:560px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    border: 1px solid var(--rz-border-200);
    background: linear-gradient(180deg, var(--rz-base-0,#fff), var(--rz-base-100,#fafafa));
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 10px 22px rgba(16,24,40,.06);
    transition: transform .12s ease, box-shadow .12s ease;
}

    .kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(16,24,40,.10);
    }

.kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.kpi-label {
    color: var(--rz-text-tertiary-color, #6b7280);
    font-size: .8rem;
    letter-spacing: .2px;
}

.kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--rz-base-200, #eef2f7);
}

    .kpi-icon .rz-icon {
        font-size: 18px;
    }

.kpi-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .2px;
    font-variant-numeric: tabular-nums;
}

    .kpi-value.money {
        font-feature-settings: "tnum" on, "lnum" on;
    }

.kpi-sub {
    font-size: .8rem;
}

/* color variants */
.kpi-card.primary .kpi-icon {
    background: rgba(29,78,216,.12);
}

.kpi-card.primary .kpi-value {
    color: #1d4ed8;
}

.kpi-card.success .kpi-icon {
    background: rgba(34,197,94,.12);
}

.kpi-card.success .kpi-value {
    color: #16a34a;
}

.kpi-card.info .kpi-icon {
    background: rgba(6,182,212,.12);
}

.kpi-card.info .kpi-value {
    color: #0891b2;
}

/* Header */
.bb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--rz-border-200);
    padding-bottom: 8px
}

.bb-title {
    display: flex;
    align-items: center;
    gap: 10px
}

.bb-controls {
    display: flex;
    gap: 10px;
    align-items: center
}

/* KPI grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px
}

.kpi .kpi-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px
}

.kpi .kpi-cap {
    font-size: .85rem;
    color: var(--rz-text-tertiary-color)
}

.kpi .kpi-val {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1
}

.kpi .kpi-sub {
    font-size: .8rem;
    color: var(--rz-text-tertiary-color)
}

/* Payment mini cards */
.mini-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}

.mini-kpi {
    border: 1px solid var(--rz-border-200);
    border-radius: 12px
}

.mini-kpi-cap {
    color: var(--rz-text-tertiary-color);
    font-size: .85rem;
    margin: .6rem 1rem .2rem
}

.mini-kpi-val {
    font-size: 20px;
    font-weight: 800;
    margin: 0 1rem 1rem
}

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 12px
}

.panel {
    border-radius: 14px;
    border: 1px solid var(--rz-border-200)
}

.panel-head {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--rz-border-200);
    font-weight: 600
}

/* Payments list */
.pay-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .6rem .25rem;
    border-bottom: 1px solid var(--rz-border-200)
}

    .pay-item:last-child {
        border-bottom: none
    }

.pay-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--rz-base-200);
    display: grid;
    place-items: center;
    color: var(--rz-primary)
}

.pay-main {
    flex: 1
}

.pay-top {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.pay-time {
    font-size: .85rem;
    color: var(--rz-text-tertiary-color)
}

.pay-amount {
    font-size: 1rem
}

.pay-sub {
    font-size: .85rem;
    color: var(--rz-text-tertiary-color)
}

@media (max-width: 1100px) {
    .content-grid {
        grid-template-columns: 1fr
    }

    .kpi-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width: 700px) {
    .kpi-grid {
        grid-template-columns: 1fr
    }

    .mini-kpi-grid {
        grid-template-columns: 1fr
    }
}

/*Küçükbaşrapor Header */
.bb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--rz-border-200);
    padding-bottom: 8px
}

.bb-title {
    display: flex;
    align-items: center;
    gap: 10px
}

.bb-controls {
    display: flex;
    gap: 10px;
    align-items: center
}

/* KPI grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px
}

.kpi .kpi-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px
}

.kpi .kpi-cap {
    font-size: .85rem;
    color: var(--rz-text-tertiary-color)
}

.kpi .kpi-val {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1
}

.kpi .kpi-sub {
    font-size: .8rem;
    color: var(--rz-text-tertiary-color)
}

/* Payment mini cards */
.mini-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}

.mini-kpi {
    border: 1px solid var(--rz-border-200);
    border-radius: 12px
}

.mini-kpi-cap {
    color: var(--rz-text-tertiary-color);
    font-size: .85rem;
    margin: .6rem 1rem .2rem
}

.mini-kpi-val {
    font-size: 20px;
    font-weight: 800;
    margin: 0 1rem 1rem
}

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 12px
}

.panel {
    border-radius: 14px;
    border: 1px solid var(--rz-border-200)
}

.panel-head {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--rz-border-200);
    font-weight: 600
}

/* Payments list */
.pay-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .6rem .25rem;
    border-bottom: 1px solid var(--rz-border-200)
}

    .pay-item:last-child {
        border-bottom: none
    }

.pay-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--rz-base-200);
    display: grid;
    place-items: center;
    color: var(--rz-primary)
}

.pay-main {
    flex: 1
}

.pay-top {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.pay-time {
    font-size: .85rem;
    color: var(--rz-text-tertiary-color)
}

.pay-amount {
    font-size: 1rem
}

.pay-sub {
    font-size: .85rem;
    color: var(--rz-text-tertiary-color)
}

@media (max-width: 1100px) {
    .content-grid {
        grid-template-columns: 1fr
    }

    .kpi-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width: 700px) {
    .kpi-grid {
        grid-template-columns: 1fr
    }

    .mini-kpi-grid {
        grid-template-columns: 1fr
    }
}
/* === Hisse Satış – düzen === */
.hs-dialog-wrapper { display:flex; flex-direction:column; height:100%; }

/* Üst bilgi bandı */
.hs-info-bar {
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
    gap:8px; padding:10px 16px;
    background:var(--rz-base-100, #f0f4ff); border-bottom:1px solid var(--rz-base-200, #e2e8f0);
    border-radius:8px 8px 0 0;
}
.hs-info-bar-left { display:flex; align-items:center; gap:12px; }
.hs-kesim-text { font-size:.85rem; color:#64748b; }
.hs-info-bar-right { display:flex; gap:6px; flex-wrap:wrap; }
.hs-mini-stat {
    display:flex; flex-direction:column; align-items:center;
    background:#fff; border:1px solid var(--rz-base-200, #e2e8f0); border-radius:8px;
    padding:4px 12px; min-width:80px;
}
.hs-mini-label { font-size:.7rem; color:#64748b; line-height:1; }
.hs-mini-val { font-weight:700; font-size:.9rem; line-height:1.3; }
.hs-mini-val.hs-success { color:#0f766e; }
.hs-mini-val.hs-danger { color:#b42318; }

/* Ana içerik: form + sidebar */
.hs-content { display:flex; gap:16px; padding:12px 16px; flex:1; overflow-y:auto; }
.hs-form-area { flex:1; min-width:0; }
.hs-sidebar { width:240px; flex-shrink:0; }

/* Bölüm başlıkları */
.hs-section-label {
    font-size:.8rem; font-weight:600; color:#475569; text-transform:uppercase; letter-spacing:.5px;
    margin-bottom:8px; padding-bottom:4px; border-bottom:2px solid var(--rz-primary, #3b82f6);
    display:inline-block;
}

/* Form satırları */
.hs-form-row { display:flex; gap:10px; margin-bottom:10px; }
.hs-form-row > * { min-width:0; }
@media (max-width: 768px) {
    .hs-form-row { flex-direction:column; }
    .hs-content { flex-direction:column; }
    .hs-sidebar { width:100%; }
}

/* Hissedar listesi */
.hs-hissedar-list {
    max-height:280px; overflow-y:auto;
    border:1px solid var(--rz-base-200, #e2e8f0); border-radius:8px;
    padding:6px;
}
.hs-hissedar-item {
    display:flex; align-items:center; gap:8px;
    padding:6px 8px; border-radius:6px;
    border-bottom:1px solid var(--rz-base-100, #f1f5f9);
}
.hs-hissedar-item:last-child { border-bottom:none; }
.hs-hissedar-item:hover { background:var(--rz-base-100, #f8fafc); }
.hs-hissedar-info { flex:1; min-width:0; display:flex; flex-direction:column; }
.hs-hissedar-name { font-size:.82rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hs-hissedar-phone { font-size:.72rem; color:#64748b; }
.hs-hissedar-adet {
    font-size:.72rem; font-weight:700; color:var(--rz-primary);
    background:var(--rz-base-100, #eff6ff); border-radius:10px; padding:2px 8px;
    white-space:nowrap;
}
.hs-empty-state {
    display:flex; flex-direction:column; align-items:center; gap:6px;
    padding:24px 0; color:#94a3b8; font-size:.85rem;
}

/* Alt bar */
.hs-footer-bar {
    display:flex; align-items:center; gap:12px; flex-wrap:wrap;
    padding:10px 16px;
    border-top:1px solid var(--rz-base-200, #e2e8f0);
    background:var(--rz-base-100, #f8fafc);
    border-radius:0 0 8px 8px;
}
.hs-footer-left { display:flex; align-items:center; }
.hs-footer-summary { display:flex; gap:16px; flex:1; justify-content:center; }
.hs-total-item { display:flex; gap:4px; align-items:center; font-size:.85rem; }
.hs-footer-actions { display:flex; gap:8px; }
.hs-success { color:#0f766e; }
.hs-danger { color:#b42318; }

/* Dark theme */
body.dark-theme .hs-info-bar { background:#1e293b; border-color:#334155; }
body.dark-theme .hs-mini-stat { background:#0f172a; border-color:#334155; }
body.dark-theme .hs-mini-label { color:#94a3b8; }
body.dark-theme .hs-kesim-text { color:#94a3b8; }
body.dark-theme .hs-section-label { color:#94a3b8; border-color:#3b82f6; }
body.dark-theme .hs-hissedar-list { border-color:#334155; }
body.dark-theme .hs-hissedar-item { border-color:#1e293b; }
body.dark-theme .hs-hissedar-item:hover { background:#1e293b; }
body.dark-theme .hs-hissedar-name { color:#e2e8f0; }
body.dark-theme .hs-hissedar-phone { color:#64748b; }
body.dark-theme .hs-hissedar-adet { background:#1e293b; color:#60a5fa; }
body.dark-theme .hs-footer-bar { background:#1e293b; border-color:#334155; }
body.dark-theme .hs-empty-state { color:#64748b; }

/* Eski uyumluluk */
.stat { background:var(--rz-base-100, #f8fbff);border:1px solid var(--rz-border-200, #e7eefb);border-radius:12px;padding:.6rem .8rem; }
.stat .cap{font-size:.8rem;color:#667085;margin-bottom:.2rem}
.stat .val{font-weight:800;font-size:1.05rem}
.stat .val.success{color:#0f766e}
.stat .val.danger{color:#b42318}
.hitem{display:flex;align-items:center;gap:.6rem;padding:.5rem .6rem;border:1px solid var(--rz-border-200);border-radius:12px;margin-bottom:.5rem}

/* ===== Loading Spinner ===== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    gap: 18px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--rz-border-200, #e5e7eb);
    border-top: 4px solid var(--rz-primary, #1d4ed8);
    border-radius: 50%;
    animation: kp-spin .7s linear infinite;
}

body.dark-theme .loading-spinner {
    border-color: #334155 !important;
    border-top-color: #dc4a42 !important;
}

.loading-text {
    color: var(--rz-text-tertiary-color, #6b7280);
    font-size: .95rem;
    font-weight: 500;
    animation: kp-pulse 1.5s ease-in-out infinite;
}

body.dark-theme .loading-text {
    color: #94a3b8 !important;
}

@keyframes kp-spin {
    to { transform: rotate(360deg); }
}

@keyframes kp-pulse {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

/* ===== Anasayfa KPI Kartları ===== */
.idx-kpi {
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 22px rgba(2,8,23,.06);
}

.idx-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.idx-kpi-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.idx-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.idx-kpi-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.idx-kpi-sub {
    font-size: 12px;
    color: #64748b;
}

.idx-kpi-value {
    color: #000;
}

body.dark-theme .idx-kpi-value {
    color: #e2e8f0 !important;
}

/* Light tema renkleri */
.idx-kpi-blue { background: linear-gradient(135deg,#e0f2fe 0%,#f0f9ff 100%); border: 1px solid #bae6fd; }
.idx-kpi-green { background: linear-gradient(135deg,#dcfce7 0%,#ecfdf5 100%); border: 1px solid #bbf7d0; }
.idx-kpi-indigo { background: linear-gradient(135deg,#e0e7ff 0%,#eef2ff 100%); border: 1px solid #c7d2fe; }
.idx-kpi-amber { background: linear-gradient(135deg,#fef3c7 0%,#fffbeb 100%); border: 1px solid #fde68a; }

.idx-kpi-blue .idx-kpi-label { color: #0369a1; }
.idx-kpi-green .idx-kpi-label { color: #166534; }
.idx-kpi-indigo .idx-kpi-label { color: #3730a3; }
.idx-kpi-amber .idx-kpi-label { color: #92400e; }

.idx-icon-blue { background: rgba(14,165,233,.12); color: #0284c7; }
.idx-icon-green { background: rgba(34,197,94,.12); color: #16a34a; }
.idx-icon-indigo { background: rgba(99,102,241,.12); color: #4f46e5; }
.idx-icon-amber { background: rgba(245,158,11,.12); color: #d97706; }

.idx-val-blue { color: #0ea5e9; }
.idx-val-green { color: #22c55e; }
.idx-val-indigo { color: #4f46e5; }
.idx-val-amber { color: #f59e0b; }

/* Dark tema */
body.dark-theme .idx-kpi {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.3) !important;
}

body.dark-theme .idx-kpi-blue { 
    background: linear-gradient(135deg, rgba(56,189,248,0.1) 0%, rgba(30,41,59,0.6) 100%) !important;
    border-color: rgba(56,189,248,0.3) !important;
}

body.dark-theme .idx-kpi-green { 
    background: linear-gradient(135deg, rgba(74,222,128,0.1) 0%, rgba(30,41,59,0.6) 100%) !important;
    border-color: rgba(74,222,128,0.3) !important;
}

body.dark-theme .idx-kpi-indigo { 
    background: linear-gradient(135deg, rgba(129,140,248,0.1) 0%, rgba(30,41,59,0.6) 100%) !important;
    border-color: rgba(129,140,248,0.3) !important;
}

body.dark-theme .idx-kpi-amber { 
    background: linear-gradient(135deg, rgba(251,191,36,0.1) 0%, rgba(30,41,59,0.6) 100%) !important;
    border-color: rgba(251,191,36,0.3) !important;
}

body.dark-theme .idx-kpi-label { 
    color: #94a3b8 !important; 
}

body.dark-theme .idx-kpi-blue .idx-kpi-label { color: #38bdf8 !important; }
body.dark-theme .idx-kpi-green .idx-kpi-label { color: #4ade80 !important; }
body.dark-theme .idx-kpi-indigo .idx-kpi-label { color: #818cf8 !important; }
body.dark-theme .idx-kpi-amber .idx-kpi-label { color: #fbbf24 !important; }

body.dark-theme .idx-kpi-sub { 
    color: #64748b !important; 
}

body.dark-theme .idx-val-blue { color: #38bdf8 !important; }
body.dark-theme .idx-val-green { color: #4ade80 !important; }
body.dark-theme .idx-val-indigo { color: #818cf8 !important; }
body.dark-theme .idx-val-amber { color: #fbbf24 !important; }

body.dark-theme .idx-icon-blue { background: rgba(56,189,248,.15) !important; color: #38bdf8 !important; }
body.dark-theme .idx-icon-green { background: rgba(74,222,128,.15) !important; color: #4ade80 !important; }
body.dark-theme .idx-icon-indigo { background: rgba(129,140,248,.15) !important; color: #818cf8 !important; }
body.dark-theme .idx-icon-amber { background: rgba(251,191,36,.15) !important; color: #fbbf24 !important; }

/* ===== Küçükbaş satış/ödeme fiş aksiyonları ===== */
.kb-receipt-options {
    margin-top: 0.25rem;
    padding: 0.85rem;
    border: 1px solid var(--rz-border-200, #dbe3ef);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--rz-base-0, #ffffff), var(--rz-base-100, #f8fafc));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(15, 23, 42, 0.05);
}

.kb-receipt-options__header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.7rem;
}

.kb-receipt-options__title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    color: #475569;
}

.kb-receipt-options__desc {
    font-size: 0.75rem;
    color: var(--rz-text-tertiary-color, #64748b);
}

.kb-receipt-options__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.kb-receipt-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.55rem;
    min-height: 74px;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--rz-border-200, #dbe3ef);
    border-radius: 12px;
    background: var(--rz-base-background-color, #ffffff);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.kb-receipt-option:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.kb-receipt-option.is-active {
    border-color: rgba(37, 99, 235, 0.36);
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.6), rgba(255, 255, 255, 0.95));
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.12);
}

.kb-receipt-option--wa.is-active {
    border-color: rgba(22, 163, 74, 0.36);
    background: linear-gradient(145deg, rgba(220, 252, 231, 0.7), rgba(255, 255, 255, 0.95));
    box-shadow: 0 12px 22px rgba(22, 163, 74, 0.14);
}

.kb-receipt-option__check {
    padding-top: 0.12rem;
}

.kb-receipt-option__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.kb-receipt-option__content .rz-label {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.kb-receipt-option__content small {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.35;
}

.kb-receipt-option .rz-icon {
    width: 28px;
    height: 28px;
    margin-top: 0.1rem;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1.06rem;
    color: #475569;
    background: var(--rz-base-100, #f1f5f9);
}

.kb-receipt-option--wa .rz-icon {
    color: #15803d;
    background: rgba(34, 197, 94, 0.14);
}

@media (max-width: 920px) {
    .kb-receipt-options__grid {
        grid-template-columns: 1fr;
    }
}

body.dark-theme .kb-receipt-options {
    border-color: #334155 !important;
    background: linear-gradient(145deg, #111b2c, #0f172a) !important;
    box-shadow: none !important;
}

body.dark-theme .kb-receipt-options__title {
    color: #cbd5e1 !important;
}

body.dark-theme .kb-receipt-options__desc {
    color: #94a3b8 !important;
}

body.dark-theme .kb-receipt-option {
    border-color: #334155 !important;
    background: #0f172a !important;
}

body.dark-theme .kb-receipt-option:hover {
    border-color: #475569 !important;
    box-shadow: none !important;
}

body.dark-theme .kb-receipt-option.is-active {
    border-color: rgba(96, 165, 250, 0.55) !important;
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.26), rgba(15, 23, 42, 0.95)) !important;
}

body.dark-theme .kb-receipt-option--wa.is-active {
    border-color: rgba(74, 222, 128, 0.56) !important;
    background: linear-gradient(145deg, rgba(20, 83, 45, 0.32), rgba(15, 23, 42, 0.95)) !important;
}

body.dark-theme .kb-receipt-option__content .rz-label {
    color: #e2e8f0 !important;
}

body.dark-theme .kb-receipt-option__content small {
    color: #94a3b8 !important;
}

body.dark-theme .kb-receipt-option .rz-icon {
    color: #94a3b8 !important;
    background: #1e293b !important;
}

body.dark-theme .kb-receipt-option--wa .rz-icon {
    color: #4ade80 !important;
    background: rgba(74, 222, 128, 0.18) !important;
}
