/* ============================================
   EMMPOS - Modern PIN Login & Hesabat CSS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

:root {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --primary-darker: #0D47A1;
    --success: #4CAF50;
    --success-dark: #388E3C;
    --danger: #FF5722;
    --danger-dark: #E64A19;
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #F5F5F5;
    --bg-tertiary: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff; /* İlk açılanda ağ fon */
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Login ekranı açılanda gradient fon */
body.login-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   CACHE CLEAR BUTTON
   ============================================ */
.cache-clear-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cache-clear-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.cache-clear-btn:active {
    transform: scale(0.95) rotate(180deg);
}

/* ============================================
   INITIAL LOADING SCREEN
   ============================================ */
.initial-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

.initial-loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.initial-logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.initial-logo-icon {
    font-size: 4rem;
    color: white;
}

.initial-logo-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 2px;
}

.initial-loading-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.initial-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-secondary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ============================================
   LOADING SCREEN (Old - kept for compatibility)
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.login-container {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 350px;
    padding: 30px 20px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease;
    box-sizing: border-box;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: var(--shadow);
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.welcome-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* PIN Display */
.pin-display-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 20px;
    border: 2px solid var(--bg-tertiary);
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.pin-dot.filled {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    transform: scale(1.2);
}

/* Number Pad */
.number-pad {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.pad-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pad-key {
    flex: 1;
    max-width: 70px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.pad-key:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pad-key:active {
    transform: translateY(0) scale(0.95);
}

.pad-key-delete {
    background: var(--danger);
}

.pad-key-delete:hover {
    background: var(--danger-dark);
}

.pad-key-login {
    background: var(--success);
}

.pad-key-login:hover {
    background: var(--success-dark);
}

.pad-key-login:disabled {
    background: var(--bg-tertiary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Status Messages */
.status-text {
    text-align: center;
    font-size: 11px;
    color: var(--danger);
    margin-top: 10px;
    min-height: 20px;
    transition: all 0.3s ease;
}

.status-text[style*="font-size: 18px"] {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase;
    padding: 12px 20px;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 8px;
    border: 2px solid var(--danger);
    margin-top: 15px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.loading-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-secondary);
}

.progress-bar {
    width: 80px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================
   HESABAT SCREEN
   ============================================ */
.hesabat-screen {
    min-height: 100vh;
    background: var(--bg-secondary);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.hesabat-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.hesabat-header {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.header-left p {
    font-size: 14px;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Filters */
.filters-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .filters-section {
        flex-wrap: wrap;
        gap: 10px;
        flex-direction: row; /* Yan-yana göstər */
    }
    
    .filter-group-inline {
        flex: 1 1 auto;
        min-width: 140px;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group-inline {
    flex: 0 0 auto;
}

#locationFilterGroup.hidden {
    display: none;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.filter-select-small {
    min-width: 120px;
    max-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Date Filter with Custom Range */
.date-filter-group {
    position: relative;
}

.date-filter-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-date-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    animation: fadeIn 0.2s ease;
}

.custom-date-overlay.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.custom-date-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--bg-tertiary);
    z-index: 10000;
    min-width: 320px;
    max-width: 90vw;
    width: auto;
    display: none;
    animation: fadeInScale 0.2s ease;
}

.custom-date-popup.show {
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.custom-date-popup.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-date-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.date-picker-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.date-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.date-separator {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.date-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-cancel {
    padding: 6px 16px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    background: #F5F5F5;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #E0E0E0;
}

.btn-apply {
    padding: 6px 20px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-apply:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.stat-primary {
    border-left-color: var(--primary);
}

.stat-card.stat-success {
    border-left-color: var(--success);
}

.stat-card.stat-warning {
    border-left-color: #FF9800;
}

.stat-card.stat-info {
    border-left-color: #00BCD4;
}

.stat-card.stat-danger {
    border-left-color: var(--danger);
}

.stat-card.stat-profit {
    border-left-color: #9C27B0;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    line-height: 1;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 5px 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    position: relative;
    min-height: 1.5rem;
    display: inline-block;
    width: 100%;
    transition: opacity 0.2s ease;
}

.stat-value.loading {
    color: transparent !important;
    opacity: 0;
}

.stat-value.loading::after {
    content: '⏳';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    line-height: 1;
    animation: hourglass-spin 1.2s linear infinite;
    z-index: 10;
    display: block;
    opacity: 1;
}

@keyframes hourglass-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) rotate(90deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
    75% {
        transform: translate(-50%, -50%) rotate(270deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-secondary);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    table-layout: auto;
}

.data-table thead {
    background: var(--bg-secondary);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--bg-tertiary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--bg-tertiary);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

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

/* Account Row Expandable */
.account-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.account-row:hover {
    background: var(--bg-secondary) !important;
}

.account-row.expanded {
    background: rgba(33, 150, 243, 0.05);
}

.account-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-icon {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--primary);
    transition: transform 0.2s ease;
    width: 16px;
    text-align: center;
}

.account-expand-row {
    background: var(--bg-secondary);
}

.account-expand-row td {
    padding: 0 !important;
    border-bottom: 2px solid var(--bg-tertiary);
}

.account-details-cell {
    padding: 20px !important;
    background: white;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.account-details-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.account-details-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.account-details-data {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Mobil cihazlarda hesab detalları alt-alta */
@media (max-width: 768px) {
    .account-details-cell {
        padding: 15px !important;
    }
    
    .account-details-grid {
        grid-template-columns: 1fr; /* Telefonda alt-alta */
        gap: 15px;
        min-width: 0;
    }
    
    .account-detail-card {
        min-width: 0;
        width: 100%;
    }
    
    .account-detail-content {
        padding: 12px;
    }
    
    .account-detail-header {
        padding: 10px 12px;
    }
    
    .account-detail-header h3 {
        font-size: 0.9rem;
    }
    
    .detail-label {
        font-size: 0.85rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
    
    .detail-value.total {
        font-size: 1rem;
    }
}

.account-detail-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--bg-tertiary);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.account-detail-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 1rem;
}

.account-detail-header.income {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.account-detail-header.expense {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.account-detail-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.account-detail-content {
    padding: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.account-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.account-detail-item:last-of-type {
    border-bottom: none;
}

.account-detail-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-top: 8px;
    border-top: 2px solid var(--bg-tertiary);
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.detail-value.total {
    font-size: 1.1rem;
    font-weight: 700;
}

.account-detail-card.income-card .detail-value.total {
    color: var(--success);
}

.account-detail-card.expense-card .detail-value.total {
    color: var(--danger);
}

.loading-row {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Income/Expense Section */
.income-expense-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ie-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ie-header {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.ie-header.income {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.ie-header.expense {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.ie-content {
    padding: 20px;
}

.ie-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.ie-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ie-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.ie-detail-item:last-child {
    border-bottom: none;
}

.loading-text {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
}

/* Status Badges */
.status-paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-due {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-partial {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.data-table td.positive {
    color: var(--success);
    font-weight: 600;
}

.data-table td.negative {
    color: var(--danger);
    font-weight: 600;
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .login-container {
        max-width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    .hesabat-container {
        padding: 15px;
        box-sizing: border-box;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .filters-section {
        flex-direction: row; /* Yan-yana göstər */
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .section-card {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }
    
    /* Hesab məlumatları cədvəli - kompakt və tam görünən */
    #accountsTable {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed;
    }
    
    #accountsTable th {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    #accountsTable th:first-child {
        width: 60%; /* Hesab adı üçün 60% */
    }
    
    #accountsTable th:last-child {
        width: 40%; /* Balans üçün 40% */
    }
    
    #accountsTable td {
        padding: 10px 6px;
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .account-name-cell {
        gap: 6px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .account-name-cell span {
        flex-shrink: 0;
    }
    
    .expand-icon {
        font-size: 0.6rem;
        width: 14px;
        flex-shrink: 0;
    }
    
    /* Balans sütunu üçün */
    #accountsTable td:last-child {
        text-align: right;
        white-space: nowrap;
        font-weight: 600;
    }
    
    .section-card {
        padding: 15px;
    }
    
    .section-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
}

