/* Kurdistan Capital v6.3.0 - Sovereign Institutional UI (Full-Screen Fluid, Zero Dependencies) */
:root {
    --kc-primary: #06291e;
    --kc-primary-mid: #0c3e2e;
    --kc-primary-dark: #031711;
    --kc-gold: #b58b28;
    --kc-gold-light: #d4af4f;
    --kc-gold-hover: #96711c;
    --kc-gold-soft: #f3e7c8;
    --kc-card: #e6ebe9;
    --kc-input-bg: #eef1f0;
    --kc-surface-subtle: #dce2df;
    --kc-surface-tint: #ced6d2;
    --kc-text: #0e1815;
    --kc-text-muted: #384943;
    --kc-border: #b4c0ba;
    --kc-border-strong: #8fa098;
    --kc-font-sans: 'Noto Sans Arabic', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Tahoma, Arial, sans-serif;
    --kc-font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, 'Courier New', monospace;
    --kc-radius-sm: 8px;
    --kc-radius-md: 14px;
    --kc-radius-lg: 20px;
    --kc-shadow-sm: 0 4px 14px rgba(6, 33, 24, 0.05);
    --kc-shadow-md: 0 10px 28px rgba(6, 33, 24, 0.08);
    --kc-shadow-lg: 0 18px 42px rgba(6, 33, 24, 0.14);
    --kc-transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.kc-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(16px, 2.6vw, 34px) clamp(14px, 3vw, 38px);
    font-family: var(--kc-font-sans);
    color: var(--kc-text);
    box-sizing: border-box;
    overflow-x: clip;
}

.kc-wrapper *, .kc-wrapper *::before, .kc-wrapper *::after {
    box-sizing: border-box;
}

.kc-rtl {
    direction: rtl;
    text-align: right;
    line-height: 1.78;
}

.kc-ltr {
    direction: ltr;
    text-align: left;
    line-height: 1.65;
}

.kc-wrapper *:not(code):not(pre):not(.kc-secret-code-display):not(.kc-account-details),
.kc-wrapper button,
.kc-wrapper input,
.kc-wrapper select,
.kc-wrapper textarea,
.kc-toast {
    font-family: var(--kc-font-sans);
}

.kc-wrapper h1,
.kc-wrapper h2,
.kc-wrapper h3,
.kc-wrapper h4 {
    color: var(--kc-primary-dark);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.38;
}

.kc-section-title,
.kc-title {
    margin: 0 0 18px 0;
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    display: flex;
    align-items: center;
    gap: 10px;
}

.kc-section-title::before {
    content: "";
    width: 4px;
    height: 1.15em;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--kc-gold) 0%, var(--kc-primary) 100%);
    flex-shrink: 0;
}

/* ==========================================================================
   Dashboard Navigation Tabs
   ========================================================================== */
.kc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--kc-card);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--kc-border);
    box-shadow: var(--kc-shadow-sm);
}

.kc-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    background: transparent;
    color: var(--kc-text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
    min-height: 44px;
    transition: all var(--kc-transition);
}

.kc-tab:hover {
    background: var(--kc-surface-tint);
    color: var(--kc-primary);
}

.kc-tab.active {
    background: linear-gradient(135deg, var(--kc-primary) 0%, var(--kc-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 59, 44, 0.22);
}

.kc-tab-staff {
    background: var(--kc-gold-soft);
    color: #855c0f;
    border: 1px solid rgba(198, 156, 58, 0.45);
}

.kc-tab-staff:hover {
    background: #f6e9c8;
    color: #6d4a08;
}

.kc-tab-staff.active {
    background: linear-gradient(135deg, var(--kc-gold) 0%, var(--kc-gold-hover) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(198, 156, 58, 0.34);
}

/* ==========================================================================
   Hero Banner (Front Page / Transparency Board)
   ========================================================================== */
.kc-hero-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, var(--kc-primary-deepest, #010d09) 0%, var(--kc-primary) 55%, var(--kc-primary-mid) 100%);
    color: #ffffff;
    padding: clamp(28px, 4.6vw, 60px) clamp(20px, 4.4vw, 52px);
    border-radius: var(--kc-radius-lg);
    margin-bottom: 26px;
    box-shadow: var(--kc-shadow-lg);
    border: 1px solid rgba(198, 156, 58, 0.25);
    border-bottom: 4px solid var(--kc-gold);
}

.kc-hero-banner::before {
    content: "";
    position: absolute;
    top: -120px;
    inset-inline-end: -90px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 156, 58, 0.24) 0%, rgba(198, 156, 58, 0) 70%);
    pointer-events: none;
}

.kc-hero-banner::after {
    content: "";
    position: absolute;
    bottom: -110px;
    inset-inline-start: -70px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 212, 125, 0.14) 0%, rgba(43, 212, 125, 0) 72%);
    pointer-events: none;
}

.kc-hero-banner > * {
    position: relative;
    z-index: 1;
}

.kc-hero-banner h1 {
    color: #ffffff;
    font-size: clamp(1.55rem, 3.3vw, 2.55rem);
    margin: 0 0 14px 0;
    line-height: 1.3;
    max-width: 900px;
}

.kc-hero-banner p {
    color: #d6e6df;
    font-size: clamp(0.98rem, 1.45vw, 1.14rem);
    max-width: 780px;
    margin: 0 0 26px 0;
    line-height: 1.8;
}

.kc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   Cards & Containers
   ========================================================================== */
.kc-card {
    width: 100%;
    background: var(--kc-card);
    border: 1px solid var(--kc-border);
    border-radius: var(--kc-radius-md);
    padding: clamp(18px, 3vw, 32px);
    margin-bottom: 24px;
    box-shadow: var(--kc-shadow-sm);
}

.kc-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.kc-form-card {
    width: 100%;
    max-width: 620px;
    margin: 12px auto 24px;
    border-top: 4px solid var(--kc-gold);
    box-shadow: var(--kc-shadow-md);
}

/* ==========================================================================
   KPI Stats Grid
   ========================================================================== */
.kc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.kc-kpi-card {
    background: var(--kc-card);
    border: 1px solid var(--kc-border);
    border-radius: var(--kc-radius-md);
    padding: clamp(18px, 2.2vw, 26px);
    box-shadow: var(--kc-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform var(--kc-transition), box-shadow var(--kc-transition), border-color var(--kc-transition);
}

.kc-kpi-card::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: var(--kc-surface-tint);
    transition: background-color var(--kc-transition);
}

.kc-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--kc-shadow-md);
    border-color: var(--kc-border-strong);
}

.kc-kpi-card:hover::after {
    background: var(--kc-gold);
}

.kc-kpi-primary {
    background: linear-gradient(145deg, var(--kc-primary) 0%, var(--kc-primary-dark) 100%);
    color: #ffffff;
    border-color: rgba(198, 156, 58, 0.4);
    box-shadow: 0 10px 26px rgba(11, 59, 44, 0.2);
}

.kc-kpi-primary::after {
    background: linear-gradient(90deg, var(--kc-gold) 0%, var(--kc-gold-light) 100%);
}

.kc-kpi-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--kc-text-muted);
    margin-bottom: 8px;
}

.kc-kpi-primary .kc-kpi-label {
    color: #cfe0d9;
}

.kc-kpi-value {
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    font-weight: 800;
    color: var(--kc-primary-dark);
    direction: ltr;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.kc-kpi-primary .kc-kpi-value {
    color: var(--kc-gold-light);
}

/* ==========================================================================
   Capital Distribution Donut Chart
   ========================================================================== */
.kc-chart-layout {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3.5vw, 44px);
    flex-wrap: wrap;
    margin-top: 14px;
}

.kc-donut-wrap {
    flex: 0 0 200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: var(--kc-surface-subtle);
    border-radius: 50%;
    border: 1px solid var(--kc-border);
    box-shadow: inset 0 2px 8px rgba(6, 33, 24, 0.04);
}

.kc-donut-wrap svg {
    filter: drop-shadow(0 6px 14px rgba(6, 33, 24, 0.08));
}

.kc-chart-legend {
    flex: 1 1 300px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 10px;
}

.kc-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--kc-surface-subtle);
    border: 1px solid var(--kc-border);
    border-radius: 10px;
    transition: border-color var(--kc-transition), background-color var(--kc-transition);
}

.kc-legend-item:hover {
    background: var(--kc-card);
    border-color: var(--kc-gold);
}

.kc-legend-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.kc-legend-name {
    flex: 1 1 auto;
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--kc-text);
}

.kc-legend-val {
    color: var(--kc-primary);
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ==========================================================================
   Public 21-Digit Verifier Box
   ========================================================================== */
.kc-verify-box {
    background: linear-gradient(180deg, #e8edea 0%, #dce3e0 100%);
    border-inline-start: 4px solid var(--kc-gold);
}

.kc-verify-box p {
    color: var(--kc-text-muted);
    margin-top: 0;
}

.kc-verify-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.kc-verify-form input {
    flex: 1 1 260px;
    min-width: 0;
    padding: 13px 16px;
    border: 1.5px solid var(--kc-border-strong);
    border-radius: 10px;
    font-family: var(--kc-font-mono);
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    direction: ltr;
    background: var(--kc-input-bg);
    color: var(--kc-text);
    transition: border-color var(--kc-transition), box-shadow var(--kc-transition);
}

.kc-verify-form input:focus {
    outline: none;
    border-color: var(--kc-primary);
    box-shadow: 0 0 0 3px rgba(11, 59, 44, 0.13);
}

/* ==========================================================================
   Grids & Dashboard Vault Cards
   ========================================================================== */
.kc-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 20px;
}

.kc-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}

.kc-code-card {
    border-top: 4px solid var(--kc-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kc-stat-card {
    border-top: 4px solid var(--kc-gold);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kc-secret-code-display {
    font-family: var(--kc-font-mono);
    font-size: clamp(1.02rem, 2.1vw, 1.38rem);
    font-weight: 800;
    background: linear-gradient(180deg, #dbe3df 0%, #ced8d3 100%);
    border: 2px dashed var(--kc-primary);
    color: var(--kc-primary-dark);
    padding: 16px 14px;
    border-radius: 12px;
    margin: 14px 0;
    direction: ltr;
    text-align: center;
    letter-spacing: 0.06em;
    word-break: break-all;
    font-variant-numeric: tabular-nums;
}

.kc-big-number {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: var(--kc-primary);
    margin: 12px 0 8px;
    direction: ltr;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.kc-hint {
    color: var(--kc-text-muted);
    font-size: 0.94rem;
    margin: 0 0 14px;
}

.kc-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: var(--kc-surface-tint);
    color: var(--kc-primary);
    font-size: 0.83rem;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid rgba(11, 59, 44, 0.12);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.kc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.94rem;
    line-height: 1.35;
    text-align: center;
    min-height: 44px;
    transition: all var(--kc-transition);
}

.kc-btn:active {
    transform: translateY(0);
}

.kc-btn-primary {
    background: linear-gradient(135deg, var(--kc-primary) 0%, var(--kc-primary-dark) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(11, 59, 44, 0.22);
}

.kc-btn-primary:hover {
    background: linear-gradient(135deg, var(--kc-primary-mid) 0%, var(--kc-primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 59, 44, 0.28);
}

.kc-btn-gold {
    background: linear-gradient(135deg, var(--kc-gold) 0%, #b3892b 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(198, 156, 58, 0.3);
}

.kc-btn-gold:hover {
    background: linear-gradient(135deg, #d3a944 0%, var(--kc-gold-hover) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(198, 156, 58, 0.4);
}

.kc-btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
}

.kc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--kc-gold-light);
    transform: translateY(-1px);
}

.kc-btn-block {
    width: 100%;
}

.kc-btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
    min-height: 36px;
    border-radius: 8px;
}

@media (max-width: 560px) {
    .kc-hero-actions .kc-btn,
    .kc-verify-form .kc-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.kc-form-group {
    margin-bottom: 16px;
}

.kc-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
    font-size: 0.91rem;
    color: var(--kc-primary-dark);
}

.kc-form-group input,
.kc-form-group select,
.kc-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--kc-border-strong);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.96rem;
    color: var(--kc-text);
    background: var(--kc-input-bg);
    transition: border-color var(--kc-transition), box-shadow var(--kc-transition), background-color var(--kc-transition);
}

.kc-form-group input:focus,
.kc-form-group select:focus,
.kc-form-group textarea:focus {
    outline: none;
    border-color: var(--kc-primary);
    box-shadow: 0 0 0 3px rgba(11, 59, 44, 0.13);
}

.kc-form-group select:disabled,
.kc-form-group input:disabled {
    background: #d5dcd8;
    color: var(--kc-text-muted);
    cursor: not-allowed;
}

.kc-form-group input[type="file"] {
    padding: 8px 10px;
    background: var(--kc-surface-subtle);
    border-style: dashed;
}

.kc-form-group input[type="file"]::file-selector-button {
    background: var(--kc-primary);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 7px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    margin-inline-end: 10px;
}

.kc-form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--kc-primary);
}

/* ==========================================================================
   Transfer Methods & Sector Cards
   ========================================================================== */
.kc-methods-grid,
.kc-sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
    gap: 18px;
    margin-top: 14px;
}

.kc-method-box,
.kc-sector-card {
    border: 1px solid var(--kc-border);
    border-radius: var(--kc-radius-md);
    padding: 20px;
    background: var(--kc-surface-subtle);
    display: flex;
    flex-direction: column;
    transition: transform var(--kc-transition), box-shadow var(--kc-transition), border-color var(--kc-transition);
}

.kc-method-box:hover,
.kc-sector-card:hover {
    transform: translateY(-2px);
    border-color: var(--kc-border-strong);
    box-shadow: var(--kc-shadow-sm);
    background: var(--kc-card);
}

.kc-method-type {
    display: inline-flex;
    align-self: flex-start;
    background: var(--kc-gold);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.kc-method-box h4 {
    margin: 4px 0 10px;
    font-size: 1.04rem;
}

.kc-account-details {
    background: var(--kc-input-bg);
    border: 1px solid var(--kc-border);
    padding: 12px 14px;
    border-radius: 9px;
    direction: ltr;
    text-align: left;
    font-family: var(--kc-font-mono);
    font-size: 0.88rem;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 10px;
    color: var(--kc-primary-dark);
}

.kc-method-note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--kc-text-muted);
}

.kc-sector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.kc-sector-header h3 {
    margin: 0;
    font-size: 1.08rem;
    color: var(--kc-primary);
}

.kc-sector-pct {
    background: var(--kc-surface-tint);
    color: var(--kc-primary);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.kc-sector-desc {
    color: var(--kc-text-muted);
    font-size: 0.92rem;
    margin: 0 0 14px;
    flex: 1 0 auto;
}

.kc-sector-numbers {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    margin: 8px 0 10px;
    color: var(--kc-text-muted);
    font-variant-numeric: tabular-nums;
}

.kc-sector-numbers strong {
    color: var(--kc-primary-dark);
}

.kc-progress-bar {
    width: 100%;
    height: 10px;
    background: #cad6d0;
    border-radius: 999px;
    overflow: hidden;
}

.kc-sector-card {
    border-top: 4px solid var(--kc-sec-color, var(--kc-primary));
}

.kc-progress-fill {
    height: 100%;
    background: var(--kc-sec-color, linear-gradient(90deg, var(--kc-gold) 0%, var(--kc-gold-light) 100%));
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* ==========================================================================
   FAQ Items
   ========================================================================== */
.kc-faq-item {
    border-bottom: 1px solid var(--kc-border);
    padding: 18px 0;
}

.kc-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.kc-faq-item h3 {
    color: var(--kc-primary);
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.kc-faq-item p {
    margin: 0;
    color: var(--kc-text-muted);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.kc-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--kc-border);
    border-radius: 12px;
    background: var(--kc-card);
    margin-top: 12px;
}

.kc-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.kc-table th,
.kc-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--kc-border);
    vertical-align: middle;
}

.kc-table tbody tr:last-child td {
    border-bottom: none;
}

.kc-table tbody tr {
    transition: background-color 0.16s ease;
}

.kc-table tbody tr:hover {
    background: #dce3e0;
}

.kc-rtl .kc-table th,
.kc-rtl .kc-table td {
    text-align: right;
}

.kc-ltr .kc-table th,
.kc-ltr .kc-table td {
    text-align: left;
}

.kc-table th {
    background: var(--kc-surface-tint);
    color: var(--kc-primary-dark);
    font-weight: 800;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* ==========================================================================
   Status Pills & Alerts
   ========================================================================== */
.kc-status-approved,
.kc-status-pending,
.kc-status-rejected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
}

.kc-status-approved::before,
.kc-status-pending::before,
.kc-status-rejected::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kc-status-approved {
    color: #0e6f41;
    background: #e7f7ef;
    border: 1px solid #b8e6ce;
}

.kc-status-approved::before {
    background: #14995a;
}

.kc-status-pending {
    color: #8f5d00;
    background: #fff6e0;
    border: 1px solid #f2d999;
}

.kc-status-pending::before {
    background: #d69310;
}

.kc-status-rejected {
    color: #a81c1c;
    background: #fdecec;
    border: 1px solid #f6c0c0;
}

.kc-status-rejected::before {
    background: #d63030;
}

.kc-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 0.94rem;
    border-inline-start-width: 4px;
}

.kc-alert ul {
    margin: 0;
    padding-inline-start: 20px;
}

.kc-alert-success {
    background: #e7f7ef;
    color: #0e6f41;
    border: 1px solid #b8e6ce;
    border-inline-start-color: #0e6f41;
}

.kc-alert-danger {
    background: #fdecec;
    color: #a81c1c;
    border: 1px solid #f6c0c0;
    border-inline-start-color: #a81c1c;
}

/* ==========================================================================
   Toast Feedback (Zero-Dependency Copy Notification)
   ========================================================================== */
.kc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--kc-primary-dark);
    color: #ffffff;
    border: 1px solid var(--kc-gold);
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 14px 32px rgba(3, 19, 14, 0.3);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: calc(100vw - 32px);
    text-align: center;
}

.kc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   Clickable Report Cards, Triggers & Date-Range Report Modal (v6.3.0)
   ========================================================================== */
body.kc-modal-open {
    overflow: hidden;
}

.kc-clickable-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.kc-clickable-card:focus-visible,
.kc-clickable-legend:focus-visible,
.kc-btn-report-trigger:focus-visible {
    outline: 2px solid var(--kc-gold);
    outline-offset: 2px;
}

.kc-card-report-cue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--kc-primary);
    opacity: 0.85;
    transition: opacity var(--kc-transition), transform var(--kc-transition), color var(--kc-transition);
}

.kc-kpi-primary .kc-card-report-cue {
    color: var(--kc-gold-light);
    opacity: 0.92;
}

.kc-clickable-card:hover .kc-card-report-cue {
    opacity: 1;
    color: var(--kc-gold-hover);
}

.kc-kpi-primary.kc-clickable-card:hover .kc-card-report-cue {
    color: #ffffff;
}

.kc-sector-cue {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--kc-border);
}

.kc-clickable-legend {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.kc-clickable-row {
    cursor: pointer;
}

.kc-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.kc-card-header-flex .kc-section-title,
.kc-card-header-flex h3 {
    margin: 0;
}

.kc-btn-report-trigger {
    background: var(--kc-surface-tint);
    color: var(--kc-primary) !important;
    border: 1px solid rgba(11, 59, 44, 0.16);
}

.kc-btn-report-trigger:hover {
    background: var(--kc-primary);
    color: #ffffff !important;
    border-color: var(--kc-primary);
}

.kc-btn-muted {
    background: #dce4e0;
    color: var(--kc-text) !important;
    border: 1px solid var(--kc-border-strong);
}

.kc-btn-muted:hover {
    background: #cbd6d0;
}

/* Report Filter Bar (used in Modal, Inline Report & Dashboard History) */
.kc-report-filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
    gap: 12px;
    align-items: end;
    background: var(--kc-surface-subtle);
    border: 1px solid var(--kc-border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.kc-dash-filter-bar {
    margin-top: 8px;
}

.kc-rf-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--kc-primary-dark);
    margin-bottom: 5px;
}

.kc-rf-field input,
.kc-rf-field select {
    width: 100%;
    padding: 9px 11px;
    border: 1.5px solid var(--kc-border-strong);
    border-radius: 8px;
    background: var(--kc-input-bg);
    color: var(--kc-text);
    font-size: 0.9rem;
    min-height: 40px;
}

.kc-rf-field input:focus,
.kc-rf-field select:focus {
    outline: none;
    border-color: var(--kc-primary);
    box-shadow: 0 0 0 3px rgba(11, 59, 44, 0.12);
}

.kc-rf-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.kc-rf-actions .kc-btn {
    min-height: 40px;
}

/* Report Summary Strip */
.kc-report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.kc-report-stat {
    background: var(--kc-surface-subtle);
    border: 1px solid var(--kc-border);
    border-radius: 12px;
    padding: 14px 16px;
}

.kc-report-stat span {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--kc-text-muted);
    margin-bottom: 4px;
}

.kc-report-stat strong {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    color: var(--kc-primary-dark);
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.kc-report-stat-primary {
    background: linear-gradient(135deg, var(--kc-primary) 0%, var(--kc-primary-dark) 100%);
    border-color: var(--kc-primary);
}

.kc-report-stat-primary span {
    color: #cfe0d9;
}

.kc-report-stat-primary strong {
    color: var(--kc-gold-light);
}

.kc-report-stat-success {
    background: #e7f7ef;
    border-color: #b8e6ce;
}

.kc-report-stat-success strong {
    color: #0e6f41;
}

.kc-report-stat-warning {
    background: #fff6e0;
    border-color: #f2d999;
}

.kc-report-stat-warning strong {
    color: #8f5d00;
}

.kc-report-empty,
.kc-report-loading {
    text-align: center;
    padding: 34px 18px;
    background: var(--kc-surface-subtle);
    border: 1px dashed var(--kc-border-strong);
    border-radius: 12px;
    color: var(--kc-text-muted);
    font-weight: 600;
}

.kc-report-limit-note {
    font-size: 0.84rem;
    color: var(--kc-text-muted);
    margin: 10px 0 0;
}

.kc-mono-cell {
    font-family: var(--kc-font-mono);
    font-weight: 700;
    display: inline-block;
}

.kc-date-cell,
.kc-amount-cell {
    display: inline-block;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.kc-inline-report {
    border-top: 4px solid var(--kc-gold);
    box-shadow: var(--kc-shadow-md);
}

.kc-report-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

/* Interactive Report Modal (v6.3.0 — Spacious Full-View Scrollable Layout) */
.kc-report-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 24px);
    font-family: var(--kc-font-sans);
    color: var(--kc-text);
}

.kc-report-modal.open {
    display: flex;
}

.kc-report-modal *,
.kc-report-modal *::before,
.kc-report-modal *::after {
    box-sizing: border-box;
}

.kc-rm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(1, 13, 9, 0.72);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.kc-rm-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    height: min(92vh, 920px);
    max-height: 94vh;
    background: var(--kc-card);
    border-radius: var(--kc-radius-lg);
    border: 1px solid rgba(181, 139, 40, 0.4);
    border-top: 4px solid var(--kc-gold);
    box-shadow: 0 26px 70px rgba(1, 13, 9, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: kcModalPop 0.18s ease-out;
}

@keyframes kcModalPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kc-rm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px clamp(16px, 3vw, 26px);
    background: linear-gradient(135deg, var(--kc-primary-dark) 0%, var(--kc-primary) 100%);
    color: #ffffff;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(181, 139, 40, 0.35);
}

.kc-rm-title-wrap {
    min-width: 0;
}

.kc-rm-badge {
    background: rgba(181, 139, 40, 0.22);
    color: var(--kc-gold-light);
    border-color: rgba(181, 139, 40, 0.45);
    margin-bottom: 4px;
    font-size: 0.76rem;
    padding: 3px 10px;
}

.kc-rm-title-wrap h2 {
    margin: 0 0 2px;
    color: #ffffff;
    font-size: clamp(1.05rem, 2vw, 1.42rem);
    line-height: 1.3;
}

.kc-rm-title-wrap p {
    margin: 0;
    color: #cde0d8;
    font-size: 0.84rem;
}

.kc-rm-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kc-rm-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--kc-transition), border-color var(--kc-transition);
}

.kc-rm-close:hover {
    background: rgba(181, 139, 40, 0.28);
    border-color: var(--kc-gold);
}

/* Single Smooth Scroll Container for Toolbar + Report Body */
.kc-rm-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--kc-card);
}

.kc-rm-toolbar {
    padding: 16px clamp(16px, 3vw, 26px) 10px;
    background: var(--kc-surface-subtle);
    border-bottom: 1px solid var(--kc-border);
}

.kc-rm-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.kc-preset-btn {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--kc-border-strong);
    background: var(--kc-card);
    color: var(--kc-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--kc-transition);
}

.kc-preset-btn:hover {
    border-color: var(--kc-primary);
    color: var(--kc-primary);
    background: var(--kc-surface-tint);
}

.kc-preset-btn.active {
    background: var(--kc-primary);
    color: #ffffff;
    border-color: var(--kc-primary);
}

.kc-rm-filter-bar {
    margin-bottom: 4px;
    background: var(--kc-card);
}

.kc-rm-body {
    padding: 18px clamp(16px, 3vw, 26px) 28px;
}

.kc-rm-body .kc-table-responsive {
    max-height: none;
    box-shadow: var(--kc-shadow-sm);
}

.kc-rm-body .kc-table {
    min-width: 480px;
}

.kc-rm-body .kc-table tbody tr:nth-child(even) {
    background: var(--kc-surface-subtle);
}

.kc-rm-body .kc-table tbody tr:hover {
    background: var(--kc-surface-tint);
}

@media (max-width: 680px) {
    .kc-report-modal {
        padding: 0;
        align-items: flex-end;
    }

    .kc-rm-dialog {
        height: 94vh;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
    }

    .kc-rm-header {
        flex-wrap: wrap;
        padding: 12px 14px;
    }

    .kc-rm-header-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .kc-rf-actions .kc-btn {
        flex: 1 1 auto;
    }
}
