/* e-Ekstrem Design System */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --ee-primary: #16b89a;
    --ee-primary-dark: #0f8f79;
    --ee-primary-light: #e8faf6;
    --ee-secondary: #334155;
    --ee-sidebar: #0f172a;
    --ee-sidebar-hover: #1e293b;
    --ee-bg: #f4f7fb;
    --ee-surface: #ffffff;
    --ee-border: #e2e8f0;
    --ee-text: #18212f;
    --ee-text-muted: #64748b;
    --ee-success: #16a36a;
    --ee-danger: #e24c4b;
    --ee-warning: #f0a128;
    --ee-info: #3586d3;
    --ee-radius-sm: 8px;
    --ee-radius: 12px;
    --ee-radius-lg: 16px;
    --ee-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --ee-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --ee-sidebar-width: 248px;
    --ee-sidebar-collapsed: 72px;
    --ee-topbar-height: 64px;
    --ee-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ee-transition: all 0.2s ease;
}

[data-theme="dark"] {
    --ee-bg: #0b1220;
    --ee-surface: #111827;
    --ee-border: #1f2a3d;
    --ee-text: #e5eefb;
    --ee-text-muted: #94a3b8;
    --ee-secondary: #cbd5e1;
    --ee-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --ee-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Reset theme horizontal leftovers when ee shell is active */
body.ee-body {
    font-family: var(--ee-font);
    background: var(--ee-bg);
    color: var(--ee-text);
    margin: 0;
}

body.ee-body.loading {
    visibility: visible;
}

body.ee-body #wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

body.ee-body .topnav,
body.ee-body .navbar-custom .logo-box,
body.ee-body .rightbar-overlay {
    display: none !important;
}

/* ===== App Shell ===== */
.ee-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--ee-sidebar-width);
    height: 100vh;
    background: var(--ee-sidebar);
    color: #cbd5e1;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
}

.ee-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: var(--ee-topbar-height);
}

.ee-sidebar-brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.ee-sidebar-brand-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.ee-sidebar-brand-text span {
    color: var(--ee-primary);
}

.ee-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px 24px;
}

.ee-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.ee-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.ee-nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 16px 14px 8px;
}

.ee-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 2px;
    border-radius: var(--ee-radius-sm);
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ee-transition);
    border-left: 3px solid transparent;
    position: relative;
}

.ee-nav-link:hover {
    background: var(--ee-sidebar-hover);
    color: #f1f5f9;
    text-decoration: none;
}

.ee-nav-link.active {
    background: rgba(22, 184, 154, 0.15);
    color: #fff;
    border-left-color: var(--ee-primary);
}

.ee-nav-link i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.ee-nav-link .ee-nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ee-nav-link .ee-nav-arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.ee-nav-link[aria-expanded="true"] .ee-nav-arrow {
    transform: rotate(90deg);
}

.ee-nav-sub {
    list-style: none;
    padding: 4px 0 8px 12px;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
}

.ee-nav-sub::-webkit-scrollbar {
    width: 3px;
}

.ee-nav-sub::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.ee-bank-search {
    padding: 6px 10px 10px;
}

.ee-bank-search input {
    width: 100%;
    height: 36px;
    border-radius: var(--ee-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    padding: 0 12px;
    font-size: 12.5px;
    outline: none;
}

.ee-bank-search input::placeholder {
    color: #64748b;
}

.ee-bank-search input:focus {
    border-color: var(--ee-primary);
    box-shadow: 0 0 0 3px rgba(22, 184, 154, 0.2);
}

.ee-nav-sub .ee-nav-link {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 400;
}

.ee-nav-sub .ee-nav-link img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.ee-nav-sub .ee-nav-link.ee-bank-hidden {
    display: none;
}

.ee-bank-item.ee-bank-hidden {
    display: none !important;
}

/* Main area */
.ee-main {
    margin-left: var(--ee-sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
    background: var(--ee-bg);
}

body.ee-body .navbar-custom {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    height: var(--ee-topbar-height);
    background: var(--ee-surface) !important;
    border-bottom: 1px solid var(--ee-border);
    box-shadow: none !important;
    padding: 0;
    z-index: 1030;
    margin: 0;
}

body.ee-body .navbar-custom .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.ee-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ee-topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ee-menu-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ee-border);
    background: var(--ee-surface);
    border-radius: var(--ee-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ee-secondary);
    transition: var(--ee-transition);
}

.ee-menu-toggle:hover {
    background: var(--ee-primary-light);
    border-color: var(--ee-primary);
    color: var(--ee-primary-dark);
}

.ee-page-crumb {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ee-page-crumb-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ee-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ee-page-crumb-sub {
    font-size: 12px;
    color: var(--ee-text-muted);
    margin: 0;
}

.ee-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--ee-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ee-text-muted);
    transition: var(--ee-transition);
    text-decoration: none;
}

.ee-icon-btn:hover {
    background: var(--ee-primary-light);
    color: var(--ee-primary-dark);
    text-decoration: none;
}

.ee-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--ee-border);
    background: var(--ee-surface);
    cursor: pointer;
    color: var(--ee-text);
    text-decoration: none;
    transition: var(--ee-transition);
    height: 40px;
}

.ee-user-btn:hover {
    border-color: var(--ee-primary);
    background: var(--ee-primary-light);
    text-decoration: none;
    color: var(--ee-text);
}

.ee-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ee-primary), var(--ee-primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ee-user-name {
    font-size: 13px;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ee-body .content-page {
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 0;
    overflow: visible;
    min-height: calc(100vh - var(--ee-topbar-height));
}

body.ee-body .content-page .content {
    padding: 0;
}

body.ee-body .content > .container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
}

body.ee-body .footer {
    background: transparent;
    border-top: 1px solid var(--ee-border);
    color: var(--ee-text-muted);
    padding: 16px 24px;
    left: 0 !important;
    right: 0;
}

/* Collapsed sidebar */
body.ee-sidebar-collapsed .ee-sidebar {
    width: var(--ee-sidebar-collapsed);
}

body.ee-sidebar-collapsed .ee-sidebar-brand-text,
body.ee-sidebar-collapsed .ee-nav-text,
body.ee-sidebar-collapsed .ee-nav-arrow,
body.ee-sidebar-collapsed .ee-nav-label,
body.ee-sidebar-collapsed .ee-bank-search,
body.ee-sidebar-collapsed .ee-nav-sub {
    display: none;
}

body.ee-sidebar-collapsed .ee-nav-link {
    justify-content: center;
    padding: 12px;
    border-left-width: 0;
}

body.ee-sidebar-collapsed .ee-main {
    margin-left: var(--ee-sidebar-collapsed);
}

body.ee-sidebar-collapsed .ee-sidebar-brand {
    justify-content: center;
    padding: 18px 10px;
}

/* Overlay for mobile */
.ee-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1035;
}

/* ===== Components ===== */
.ee-page {
    width: 100%;
}

.ee-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ee-page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ee-text);
    margin: 0 0 4px;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.ee-page-subtitle {
    font-size: 14px;
    color: var(--ee-text-muted);
    margin: 0;
}

.ee-page-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ee-update-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--ee-surface);
    border: 1px solid var(--ee-border);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--ee-text-muted);
}

.ee-card {
    background: var(--ee-surface);
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius);
    box-shadow: var(--ee-shadow-sm);
    margin-bottom: 20px;
}

.ee-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ee-border);
}

.ee-card-header h5,
.ee-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ee-text);
}

.ee-card-body {
    padding: 20px;
}

.ee-stat-card {
    background: var(--ee-surface);
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius);
    box-shadow: var(--ee-shadow-sm);
    padding: 18px 20px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--ee-transition);
    cursor: default;
}

.ee-stat-card.is-clickable {
    cursor: pointer;
}

.ee-stat-card.is-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--ee-shadow);
    border-color: rgba(22, 184, 154, 0.35);
}

.ee-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ee-accent, var(--ee-primary));
}

.ee-stat-card[data-accent="try"] { --ee-accent: #16b89a; }
.ee-stat-card[data-accent="usd"] { --ee-accent: #3586d3; }
.ee-stat-card[data-accent="eur"] { --ee-accent: #6366f1; }
.ee-stat-card[data-accent="chf"] { --ee-accent: #e24c4b; }
.ee-stat-card[data-accent="total"] { --ee-accent: #0f8f79; }
.ee-stat-card[data-accent="count"] { --ee-accent: #f0a128; }
.ee-stat-card[data-accent="gbp"] { --ee-accent: #8b5cf6; }
.ee-stat-card[data-accent="qar"] { --ee-accent: #14b8a6; }

.ee-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ee-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ee-text-muted);
}

.ee-stat-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--ee-border);
}

.ee-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ee-primary-light);
    color: var(--ee-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ee-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ee-text);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    word-break: break-word;
}

.ee-stat-meta {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--ee-text-muted);
}

.ee-filter-card,
.ee-table-card {
    background: var(--ee-surface);
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius);
    box-shadow: var(--ee-shadow-sm);
    margin-bottom: 20px;
}

.ee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--ee-radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--ee-transition);
    text-decoration: none;
    white-space: nowrap;
}

.ee-btn:disabled,
.ee-btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.ee-btn-primary {
    background: var(--ee-primary);
    color: #fff;
    border-color: var(--ee-primary);
}

.ee-btn-primary:hover {
    background: var(--ee-primary-dark);
    border-color: var(--ee-primary-dark);
    color: #fff;
    text-decoration: none;
}

.ee-btn-secondary {
    background: var(--ee-surface);
    color: var(--ee-secondary);
    border-color: var(--ee-border);
}

.ee-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--ee-text);
    text-decoration: none;
}

.ee-btn-danger {
    background: var(--ee-danger);
    color: #fff;
    border-color: var(--ee-danger);
}

.ee-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
}

.ee-badge-success {
    background: rgba(22, 163, 106, 0.12);
    color: var(--ee-success);
}

.ee-badge-danger {
    background: rgba(226, 76, 75, 0.12);
    color: var(--ee-danger);
}

.ee-badge-info {
    background: rgba(53, 134, 211, 0.12);
    color: var(--ee-info);
}

.ee-badge-muted {
    background: #f1f5f9;
    color: var(--ee-text-muted);
}

.ee-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--ee-text-muted);
}

.ee-empty-state i {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: block;
}

.ee-empty-state h6 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ee-text);
    margin: 0 0 6px;
}

.ee-empty-state p {
    font-size: 13px;
    margin: 0 0 16px;
}

.ee-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--ee-text-muted);
}

.ee-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ee-loading-overlay[hidden] {
    display: none !important;
}

.ee-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--ee-border);
    border-top-color: var(--ee-primary);
    border-radius: 50%;
    animation: ee-spin 0.7s linear infinite;
}

@keyframes ee-spin {
    to { transform: rotate(360deg); }
}

/* Company cards */
.ee-company-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

#eeFirmaHesapToolbar .ee-company-search {
    display: flex;
    align-items: stretch;
    flex: 1 1 280px;
}

#eeFirmaHesapToolbar .input-group-text {
    border-radius: var(--ee-radius-sm) 0 0 var(--ee-radius-sm);
    color: var(--ee-text-muted);
    min-height: 42px;
}

#eeFirmaHesapToolbar #eeFirmaHesapSearch {
    min-height: 42px;
    border-radius: 0 var(--ee-radius-sm) var(--ee-radius-sm) 0;
}

#eeFirmaHesapCount {
    white-space: nowrap;
}

.ee-company-search {
    flex: 1 1 220px;
    min-width: 220px;
}

.ee-company-sort {
    flex: 0 1 200px;
    min-width: 180px;
}

.ee-company-toolbar .form-control,
.ee-company-toolbar .form-select {
    min-height: 42px;
    border-radius: var(--ee-radius-sm);
    border-color: #d8e0ea;
    font-size: 13.5px;
}

.ee-company-toolbar .form-control:focus,
.ee-company-toolbar .form-select:focus {
    border-color: var(--ee-primary);
    box-shadow: 0 0 0 3px rgba(22, 184, 154, 0.15);
}

.ee-company-card {
    background: var(--ee-surface);
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius);
    box-shadow: var(--ee-shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--ee-transition);
}

.ee-company-card-static {
    cursor: default;
}

.ee-company-card-static:hover {
    background: transparent;
}

.ee-company-card-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 18px 16px;
}

.ee-btn-sm {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12.5px;
}

.ee-company-grid {
    align-items: stretch;
}

.ee-company-grid .ee-company-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ee-firma-modal .modal-content {
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius-lg);
    box-shadow: var(--ee-shadow);
}

.ee-firma-modal .modal-header {
    border-bottom: 1px solid var(--ee-border);
    padding: 16px 20px;
}

.ee-firma-modal .modal-body {
    padding: 20px;
}

.ee-firma-modal .modal-footer {
    border-top: 1px solid var(--ee-border);
    padding: 12px 20px;
}

.ee-company-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.ee-company-card-header:hover {
    background: #f8fafc;
}

.ee-company-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--ee-border);
    padding: 4px;
    flex-shrink: 0;
}

.ee-company-info {
    flex: 1;
    min-width: 0;
}

.ee-company-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--ee-text);
}

.ee-company-meta {
    font-size: 12.5px;
    color: var(--ee-text-muted);
    margin: 0;
}

.ee-company-total {
    text-align: right;
    flex-shrink: 0;
}

.ee-company-total-label {
    font-size: 11px;
    color: var(--ee-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
}

.ee-company-total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ee-success);
    font-variant-numeric: tabular-nums;
}

.ee-company-chevron {
    color: var(--ee-text-muted);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.ee-company-card-header[aria-expanded="true"] .ee-company-chevron {
    transform: rotate(180deg);
}

.ee-currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 0 18px 18px;
}

.ee-account-card {
    background: #f8fafc;
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius-sm);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--ee-transition);
}

.ee-account-card:hover,
.ee-account-card.is-selected {
    background: var(--ee-primary-light);
    border-color: var(--ee-primary);
    transform: translateY(-1px);
}

.ee-account-card img {
    height: 22px;
    width: auto;
    margin-bottom: 6px;
}

.ee-account-code {
    font-size: 13px;
    font-weight: 700;
    color: var(--ee-text);
    margin: 0 0 4px;
}

.ee-account-count {
    font-size: 11.5px;
    color: var(--ee-text-muted);
    margin: 0 0 6px;
}

.ee-account-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--ee-text);
    font-variant-numeric: tabular-nums;
    margin: 0;
}

/* Tables */
.ee-table-wrap {
    overflow-x: auto;
}

body.ee-body table.dataTable,
body.ee-body .ee-table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

body.ee-body table.dataTable thead th,
body.ee-body .ee-table thead th {
    background: #f8fafc;
    color: var(--ee-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--ee-border);
    padding: 12px 14px;
    white-space: nowrap;
}

body.ee-body table.dataTable tbody td,
body.ee-body .ee-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: var(--ee-text);
}

body.ee-body table.dataTable tbody tr:hover td,
body.ee-body .ee-table tbody tr:hover td {
    background: #f8fffd;
}

.ee-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.ee-amount-credit {
    color: var(--ee-success) !important;
    font-weight: 700;
}

.ee-amount-debit {
    color: var(--ee-danger) !important;
    font-weight: 700;
}

/* Islem listesi satır renklendirme */
.ee-table-card table tbody tr.ee-row-credit > td,
table.dataTable tbody tr.ee-row-credit > td,
#example tbody tr.ee-row-credit > td {
    background-color: rgba(22, 163, 106, 0.10) !important;
}

.ee-table-card table tbody tr.ee-row-debit > td,
table.dataTable tbody tr.ee-row-debit > td,
#example tbody tr.ee-row-debit > td {
    background-color: rgba(226, 76, 75, 0.10) !important;
}

.ee-table-card table tbody tr.ee-row-credit:hover > td,
table.dataTable tbody tr.ee-row-credit:hover > td,
#example tbody tr.ee-row-credit:hover > td {
    background-color: rgba(22, 163, 106, 0.16) !important;
}

.ee-table-card table tbody tr.ee-row-debit:hover > td,
table.dataTable tbody tr.ee-row-debit:hover > td,
#example tbody tr.ee-row-debit:hover > td {
    background-color: rgba(226, 76, 75, 0.16) !important;
}

.ee-bank-expense-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ee-bank-expense-row:last-child {
    border-bottom: none;
}

.ee-bank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ee-primary-light);
    color: var(--ee-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.ee-bank-expense-info {
    flex: 1;
    min-width: 0;
}

.ee-bank-expense-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--ee-text);
}

.ee-progress {
    height: 6px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.ee-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ee-primary), var(--ee-primary-dark));
    border-radius: 999px;
}

.ee-bank-expense-amount {
    text-align: right;
    flex-shrink: 0;
}

.ee-bank-expense-amount strong {
    display: block;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.ee-bank-expense-amount span {
    font-size: 11.5px;
    color: var(--ee-text-muted);
}

.ee-chart-box {
    position: relative;
    min-height: 280px;
}

.ee-note {
    font-size: 12.5px;
    color: var(--ee-text-muted);
    background: var(--ee-primary-light);
    border: 1px solid rgba(22, 184, 154, 0.2);
    border-radius: var(--ee-radius-sm);
    padding: 10px 14px;
    margin-top: 12px;
}

/* Forms */
body.ee-body .form-control,
body.ee-body .form-select,
body.ee-body select.form-control {
    min-height: 42px;
    border-radius: var(--ee-radius-sm);
    border-color: #d8e0ea;
    font-size: 13.5px;
}

body.ee-body .form-control:focus,
body.ee-body .form-select:focus {
    border-color: var(--ee-primary);
    box-shadow: 0 0 0 3px rgba(22, 184, 154, 0.15);
}

body.ee-body .btn-primary {
    background-color: var(--ee-primary);
    border-color: var(--ee-primary);
}

body.ee-body .btn-primary:hover,
body.ee-body .btn-primary:focus {
    background-color: var(--ee-primary-dark);
    border-color: var(--ee-primary-dark);
}

body.ee-body .dropdown-menu {
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius-sm);
    box-shadow: var(--ee-shadow);
    font-size: 13.5px;
}

body.ee-body .dropdown-item {
    cursor: pointer;
    padding: 8px 14px;
}

body.ee-body .dropdown-item:hover {
    background: var(--ee-primary-light);
    color: var(--ee-primary-dark);
}

body.ee-body .dropdown-item i {
    width: 18px;
    margin-right: 6px;
}

/* DataTables polish */
body.ee-body .dt-buttons .btn {
    border-radius: var(--ee-radius-sm);
    font-size: 12.5px;
    min-height: 36px;
}

body.ee-body div.dataTables_wrapper div.dataTables_filter input {
    min-height: 38px;
    border-radius: var(--ee-radius-sm);
    border: 1px solid #d8e0ea;
    margin-left: 8px;
}

body.ee-body .page-item.active .page-link {
    background-color: var(--ee-primary);
    border-color: var(--ee-primary);
}

body.ee-body .page-link {
    color: var(--ee-primary-dark);
    cursor: pointer;
}

/* SuperAdmin notice */
.ee-admin-notice {
    max-width: 640px;
    margin: 40px auto;
    text-align: center;
    padding: 32px;
    background: var(--ee-surface);
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius-lg);
    box-shadow: var(--ee-shadow-sm);
}

.ee-admin-notice h3 {
    font-size: 22px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .ee-sidebar {
        transform: translateX(-100%);
    }

    body.ee-sidebar-open .ee-sidebar {
        transform: translateX(0);
        width: var(--ee-sidebar-width);
    }

    body.ee-sidebar-open .ee-sidebar-backdrop {
        display: block;
    }

    .ee-main,
    body.ee-sidebar-collapsed .ee-main {
        margin-left: 0;
    }

    body.ee-body .content > .container-fluid {
        padding: 12px;
    }

    .ee-page-title {
        font-size: 22px;
    }

    .ee-stat-value {
        font-size: 20px;
    }

    .ee-company-total {
        display: none;
    }

    .ee-user-name {
        display: none;
    }
}

@media (min-width: 992px) {
    .ee-company-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ee-company-grid .ee-company-card {
        margin-bottom: 0;
    }
}

@media (min-width: 1400px) {
    .ee-company-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Focus accessibility */
.ee-nav-link:focus-visible,
.ee-btn:focus-visible,
.ee-icon-btn:focus-visible,
.ee-menu-toggle:focus-visible,
.ee-company-card-header:focus-visible,
.ee-account-card:focus-visible {
    outline: 2px solid var(--ee-primary);
    outline-offset: 2px;
}

button,
a,
.ee-nav-link,
.ee-btn,
.ee-icon-btn,
.ee-menu-toggle,
.ee-company-card.is-clickable,
.ee-firma-doviz-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.ee-firma-doviz-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ee-shadow);
}

.ee-firma-doviz-card.is-selected {
    border-color: var(--ee-primary);
    box-shadow: 0 0 0 2px rgba(22, 184, 154, 0.25);
}

.ee-company-card.is-clickable,
.ee-company-card-header {
    cursor: pointer;
}

button:disabled,
.ee-btn:disabled {
    cursor: not-allowed;
}

.ee-loading-overlay,
body.ee-body.cursor-wait,
.ee-btn.is-loading {
    cursor: wait;
}

/* ===== Login (standalone) ===== */
.ee-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--ee-font);
    background: var(--ee-bg);
    color: var(--ee-text);
}

.ee-login-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
}

.ee-login-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background:
        radial-gradient(circle at 20% 20%, rgba(22, 184, 154, 0.35), transparent 42%),
        radial-gradient(circle at 80% 80%, rgba(53, 134, 211, 0.28), transparent 45%),
        linear-gradient(160deg, #0f172a 0%, #134e4a 55%, #0f766e 100%);
    color: #e2e8f0;
    overflow: hidden;
}

.ee-login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.ee-login-logo-lg {
    height: 72px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.ee-login-brand-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: #fff;
}

.ee-login-brand-text {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 28px;
}

.ee-login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ee-login-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #e2e8f0;
}

.ee-login-features i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5eead4;
}

.ee-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background:
        linear-gradient(180deg, rgba(232, 250, 246, 0.65), transparent 40%),
        var(--ee-bg);
}

.ee-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--ee-surface);
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius-lg);
    box-shadow: var(--ee-shadow);
    padding: 32px 28px;
}

.ee-login-card-head {
    margin-bottom: 24px;
}

.ee-login-logo-sm {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.ee-login-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    color: var(--ee-text);
}

.ee-login-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--ee-text-muted);
}

.ee-login-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ee-secondary);
    margin-bottom: 6px;
}

.ee-login-form .form-control {
    min-height: 46px;
    border-radius: var(--ee-radius-sm);
    border-color: #d8e0ea;
    font-size: 14px;
}

.ee-login-form .form-control:focus {
    border-color: var(--ee-primary);
    box-shadow: 0 0 0 3px rgba(22, 184, 154, 0.15);
}

.ee-password-wrap {
    position: relative;
    display: flex;
}

.ee-password-wrap .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.ee-password-toggle {
    width: 48px;
    min-height: 46px;
    border: 1px solid #d8e0ea;
    border-left: 0;
    background: #f8fafc;
    border-radius: 0 var(--ee-radius-sm) var(--ee-radius-sm) 0;
    color: var(--ee-text-muted);
    cursor: pointer;
    transition: var(--ee-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ee-password-toggle:hover {
    color: var(--ee-primary-dark);
    background: var(--ee-primary-light);
}

.ee-login-submit {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
}

.ee-login-forgot {
    text-align: center;
    margin: 18px 0 0;
}

.ee-login-forgot a {
    color: var(--ee-primary-dark);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
}

.ee-login-forgot a:hover {
    text-decoration: underline;
}

.ee-login-footer {
    text-align: center;
    margin: 24px 0 0;
    font-size: 12px;
    color: var(--ee-text-muted);
}

@media (max-width: 991.98px) {
    .ee-login-shell {
        grid-template-columns: 1fr;
    }

    .ee-login-brand {
        display: none;
    }

    .ee-login-panel {
        min-height: 100vh;
        padding: 24px 16px;
    }
}

/* ===== Bank transaction pages ===== */
.ee-bank-page-header {
    align-items: center;
}

.ee-bank-page-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.ee-bank-page-logo {
    height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    background: var(--ee-surface);
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius-sm);
    padding: 6px 10px;
}

.ee-filter-card .ee-card-body,
.ee-table-card .ee-card-body {
    padding: 20px;
}

.ee-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
}

.ee-filter-note {
    margin-top: 4px;
}

.ee-filter-note .alert {
    margin-bottom: 0;
    border-radius: var(--ee-radius-sm);
    font-size: 13px;
}

/* Bank filter: firma / hesap kart secimi */
.ee-native-hidden {
    display: none !important;
}

.ee-native-select {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ee-pick-flow {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ee-pick-section {
    background: #f8fafc;
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius);
    padding: 16px;
    transition: var(--ee-transition);
}

.ee-pick-section.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.ee-pick-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.ee-pick-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ee-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.ee-pick-head strong {
    display: block;
    font-size: 14px;
    color: var(--ee-text);
}

.ee-pick-head p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--ee-text-muted);
}

.ee-firm-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ee-firm-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--ee-border);
    background: var(--ee-surface);
    color: var(--ee-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ee-transition);
}

.ee-firm-chip:hover {
    border-color: var(--ee-primary);
    background: var(--ee-primary-light);
}

.ee-firm-chip.is-selected {
    border-color: var(--ee-primary);
    background: var(--ee-primary);
    color: #fff;
}

.ee-account-filters {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 10px;
}

.ee-account-filter-item .form-label {
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--ee-text-muted);
}

.ee-account-filter-item .form-control,
.ee-account-filter-item .form-select {
    min-height: 40px;
}

.ee-account-list {
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius-sm);
    background: var(--ee-surface);
    max-height: 320px;
    overflow: auto;
}

.ee-account-list-head,
.ee-account-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) 70px 110px 70px minmax(120px, 1.4fr);
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    width: 100%;
}

.ee-account-list-head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    border-bottom: 1px solid var(--ee-border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ee-text-muted);
}

.ee-account-row {
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--ee-text);
    font-size: 12.5px;
    transition: background 0.15s ease;
    min-height: 42px;
}

.ee-account-row:last-child {
    border-bottom: 0;
}

.ee-account-row:hover {
    background: #f8fffd;
}

.ee-account-row.is-selected {
    background: var(--ee-primary-light);
    box-shadow: inset 3px 0 0 var(--ee-primary);
}

.ee-account-col {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ee-account-col-main {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: normal;
    word-break: break-all;
    line-height: 1.3;
}

.ee-account-col-type {
    white-space: normal;
    line-height: 1.3;
}

.ee-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
}

.ee-pick-card {
    display: none;
}

@media (max-width: 991.98px) {
    .ee-account-filters {
        grid-template-columns: 1fr;
    }

    .ee-account-list-head {
        display: none;
    }

    .ee-account-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
        padding: 10px 12px;
    }

    .ee-account-col-main {
        grid-column: 1 / -1;
    }
}

.ee-pick-empty,
.ee-pick-loading {
    font-size: 13px;
    color: var(--ee-text-muted);
    padding: 8px 2px;
}

.ee-pick-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ee-date-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ee-date-col {
    width: 100%;
    max-width: none;
}

.ee-date-col .col-lg-10,
.ee-date-col .col-lg-8 {
    width: 100%;
    max-width: none;
    flex: 0 0 100%;
}

.ee-pick-flow .ee-filter-actions {
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 767.98px) {
    .ee-date-row {
        grid-template-columns: 1fr;
    }
}

/* Açıklama: DataTables .nowrap override — satır kaydır, kolonlara taşma */
body.ee-body table.dataTable td.ee-desc-cell,
body.ee-body table.nowrap td.ee-desc-cell,
body.ee-body .ee-table td.ee-desc-cell,
body.ee-body .ee-table-card table td.ee-desc-cell,
.ee-desc-cell {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 360px;
    min-width: 160px;
    line-height: 1.45;
    vertical-align: top;
}

/* DataTables .nowrap kalıntısı: 2. kolon (genelde Açıklama) */
body.ee-body .ee-table-card table.nowrap tbody td:nth-child(2),
body.ee-body table.dataTable.nowrap tbody td:nth-child(2) {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 360px;
    vertical-align: top;
}

body.ee-body table.dataTable thead th.sorting,
body.ee-body table.dataTable thead th.sorting_asc,
body.ee-body table.dataTable thead th.sorting_desc {
    background-image: none !important;
}

body.ee-body table.dataTable thead .sorting:before,
body.ee-body table.dataTable thead .sorting:after,
body.ee-body table.dataTable thead .sorting_asc:before,
body.ee-body table.dataTable thead .sorting_asc:after,
body.ee-body table.dataTable thead .sorting_desc:before,
body.ee-body table.dataTable thead .sorting_desc:after {
    opacity: 0.35;
}

.ee-summary-card {
    background: var(--ee-surface);
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius);
    box-shadow: var(--ee-shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.ee-summary-card .ee-card-header {
    background: linear-gradient(135deg, #fff7ed, #fff);
    color: var(--ee-danger);
}

.ee-summary-table {
    width: 100%;
    max-width: 480px;
    font-size: 13.5px;
}

.ee-summary-table th {
    padding: 6px 0;
    font-weight: 600;
    color: var(--ee-text);
}

.redborder {
    border-color: var(--ee-danger) !important;
    box-shadow: 0 0 0 3px rgba(226, 76, 75, 0.15) !important;
}

/* ===== Hareket Raporu ===== */
.ee-date-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ee-date-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--ee-border);
    background: var(--ee-surface);
    color: var(--ee-text-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ee-transition);
}

.ee-date-chip:hover,
.ee-date-chip.is-active {
    background: var(--ee-primary-light);
    border-color: var(--ee-primary);
    color: var(--ee-primary-dark);
}

.ee-report-hint {
    font-size: 13px;
    color: var(--ee-text-muted);
    margin: 0 0 12px;
}

/* ===== Döviz ===== */
.ee-fx-flag {
    height: 16px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.ee-fx-change-up {
    color: var(--ee-success);
    font-weight: 600;
}

.ee-fx-change-down {
    color: var(--ee-danger);
    font-weight: 600;
}

.ee-fx-rate {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* ===== DBS company accordion polish ===== */
.ee-dbs-page .ee-company-card {
    margin-bottom: 12px;
}

.ee-dbs-actions .btn {
    font-size: 12px;
    min-height: 32px;
    padding: 4px 10px;
    cursor: pointer;
}

.ee-dbs-actions .btn:hover {
    transform: translateY(-1px);
}
