/* ============================================
   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;
    padding-bottom: 100px; /* Footer üçün yer burax */
    width: 100%;
    box-sizing: border-box;
}

.hesabat-header {
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header-top {
    background: var(--primary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left-section,
.header-right-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-center-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.header-center-section.hidden,
#locationFilterGroup.hidden {
    display: none !important;
}

/* Location Selector (Text + Popup) */
.location-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-selector:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.location-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-arrow {
    font-size: 12px;
    opacity: 0.8;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.location-selector:hover .location-arrow {
    opacity: 1;
}

/* Location Popup */
.location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
    overscroll-behavior: contain;
}

.location-overlay.show {
    opacity: 1;
    visibility: visible;
}

.location-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 80vh;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.location-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.location-popup-drag-area {
    width: 100%;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.location-popup-drag-handle {
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: var(--bg-tertiary);
}

/* ============================================
   SALE DETAILS BOTTOM SHEET POPUP
   ============================================ */
.sale-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
    overscroll-behavior: contain;
}

.sale-details-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sale-details-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sale-details-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sale-details-drag-area {
    width: 100%;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.sale-details-drag-handle {
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: var(--bg-tertiary);
}

.sale-details-header {
    padding: 12px 20px 8px;
    border-bottom: 1px solid var(--bg-secondary);
    flex-shrink: 0;
}

.sale-details-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sale-details-body {
    padding: 12px 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sale-details-section {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-secondary);
}

.sale-details-section:last-child {
    margin-bottom: 0;
}

.sale-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 16px;
}

.sale-detail-row:last-child {
    margin-bottom: 0;
}

.sale-detail-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sale-detail-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.sale-detail-value.highlight {
    color: #E64A19;
}

.sale-detail-value.highlight-strong {
    color: #1B5E20;
    font-size: 15px;
}

.sale-detail-row.total-row {
    border-top: 1px dashed var(--bg-tertiary);
    padding-top: 8px;
    margin-top: 4px;
}

.sale-details-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sale-details-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
}

.sale-details-list-item-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 70%;
}

.sale-details-list-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.sale-details-list-item-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.sale-details-list-item-amount {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .sale-details-popup {
        max-height: 80vh;
    }
}

.location-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--bg-secondary);
    flex-shrink: 0;
}

.location-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.location-popup-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-popup-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.location-popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.location-item {
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    border: 2px solid transparent;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.location-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

.location-item.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
    font-weight: 600;
}

.location-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .location-selector {
        max-width: 150px;
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .location-popup {
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
    }
}

.header-right-section {
    margin-left: auto;
}

.modern-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 280px;
    display: inline-block;
}

.header-filter-select {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-filter-select:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 
                0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.header-filter-select:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: white;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.modern-select-wrapper:hover .select-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.header-filter-select:focus + .select-arrow {
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(-50%) rotate(180deg) scale(1.1);
}

/* Modern dropdown options styling */
.header-filter-select option {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    line-height: 1.5;
}

.header-filter-select option:hover,
.header-filter-select option:focus {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.header-filter-select option:checked {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
}

/* Modern dropdown appearance when open */
.header-filter-select:focus,
.header-filter-select:active {
    border-radius: 12px 12px 0 0;
    color: var(--text-primary);
}

/* Custom dropdown container styling */
.modern-select-wrapper {
    z-index: 1000;
}

/* Enhanced dropdown shadow when open */
.header-filter-select:focus {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1),
                0 0 0 4px rgba(33, 150, 243, 0.15);
}

/* Modern select styling for better dropdown appearance */
.header-filter-select {
    background-image: none;
}

/* Webkit browsers (Chrome, Safari) dropdown styling */
.header-filter-select::-webkit-scrollbar {
    width: 8px;
}

.header-filter-select::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.header-filter-select::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.header-filter-select::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.header-bottom {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.btn-calendar {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1565C0; /* Tünd göy rəng */
    font-size: 18px;
    flex-shrink: 0; /* Prevent calendar button from shrinking */
}

.btn-calendar:hover {
    background: transparent;
    color: #0D47A1; /* Daha tünd göy hover */
    transform: scale(1.05);
}

.btn-calendar:active {
    transform: scale(0.95);
}

.header-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 0;
}

.header-bottom h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Header Search Section */
.header-search-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0; /* Prevent search section from shrinking */
}

.btn-search {
    background: rgba(255, 255, 255, 0.2) !important;
}

.btn-search:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.btn-search i {
    font-size: 18px;
    color: #1565C0; /* Tünd göy rəng */
    transition: all 0.3s ease;
}

.search-input-wrapper-header {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--bg-secondary);
    border-radius: 8px;
    padding: 0 12px;
    transition: border-color 0.2s ease;
    min-width: 200px;
    max-width: 300px;
}

.search-input-wrapper-header:focus-within {
    border-color: var(--primary);
}

.search-input-header {
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    flex: 1;
    width: 100%;
}

.search-input-header::placeholder {
    color: rgba(0, 0, 0, 0.4); /* Solğun rəng */
    opacity: 0.6;
}


/* Column Management Button */
.btn-columns {
    background: rgba(255, 255, 255, 0.2) !important;
}

.btn-columns:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.btn-columns i {
    font-size: 18px;
    color: #1565C0; /* Tünd göy rəng */
    transition: all 0.3s ease;
}

/* Column Management Popup - Bottom Sheet Style */
.columns-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.columns-overlay.show {
    opacity: 1;
    visibility: visible;
}

.columns-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 80vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
}

.columns-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Drag Handle */
.columns-popup-drag-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 8px;
    cursor: grab;
    transition: background 0.2s ease;
}

.columns-popup-drag-handle:active {
    cursor: grabbing;
    background: #bbb;
}

.columns-popup-content {
    display: flex;
    flex-direction: column;
    max-height: calc(80vh - 24px);
    overflow: hidden;
}

.columns-popup-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg-secondary);
    flex-shrink: 0;
}

.columns-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.columns-popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.column-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

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

.column-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.column-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.column-checkbox-label span {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile adjustments for header search */
@media (max-width: 768px) {
    .header-bottom {
        flex-wrap: nowrap; /* Don't wrap on mobile */
        gap: 8px;
        padding: 12px 15px;
        overflow: hidden; /* Prevent overflow */
        justify-content: flex-start;
    }
    
    .header-title-section {
        flex: 0 0 auto;
        min-width: 0;
        overflow: hidden; /* Allow text truncation */
        margin-left: 0;
    }
    
    .header-bottom h1 {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .date-range-text {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .search-input-wrapper-header {
        min-width: 150px;
        max-width: calc(100vw - 120px);
        flex: 1;
    }
    
    .header-search-section {
        flex-shrink: 0;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .btn-calendar {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .btn-search,
    .btn-columns {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .columns-popup {
        max-height: 85vh;
    }
    
    .columns-popup-content {
        max-height: calc(85vh - 24px);
    }
}

.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);
}

.btn-menu {
    background: transparent !important;
}

.btn-menu:hover {
    background: transparent !important;
    opacity: 0.8;
}

.btn-logout {
    background: transparent !important;
}

.btn-logout:hover {
    background: transparent !important;
    opacity: 0.8;
}

.btn-logout i {
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}

.btn-menu i {
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}

/* 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);
    }
}

/* Modern Calendar Popup */
.calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    display: none;
    animation: fadeIn 0.2s ease;
    touch-action: none;
    overscroll-behavior: contain;
}

.calendar-overlay.show {
    display: block;
}

.calendar-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2C2C2C;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 10003;
    min-width: 320px;
    max-width: min(calc(100vw - 40px), 400px);
    width: 100%;
    max-height: min(calc(100vh - 40px), 700px);
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    animation: fadeInScale 0.3s ease;
    box-sizing: border-box;
}

/* Custom scrollbar for calendar popup */
.calendar-popup::-webkit-scrollbar {
    width: 6px;
}

.calendar-popup::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.calendar-popup::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.5);
    border-radius: 3px;
}

.calendar-popup::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.7);
}

.calendar-popup.show {
    display: block;
}

.calendar-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.calendar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
    text-transform: capitalize;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Calendar Grid */
.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.calendar-weekdays > div {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #7C3AED;
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
    min-height: 28px;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
    font-weight: 600;
}

.calendar-day.other-month {
    color: rgba(255, 255, 255, 0.3);
}

/* Selected Date Display */
.calendar-selected {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
}

.calendar-selected span {
    font-size: 12px;
    font-weight: 500;
    color: white;
}

/* Quick Buttons */
.calendar-quick-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.quick-btn {
    padding: 8px 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.quick-btn.active {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
    font-weight: 600;
}

/* Action Buttons */
.calendar-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-reset {
    flex: 1;
    padding: 10px;
    border: none;
    background: #EF4444;
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-apply-calendar {
    flex: 1;
    padding: 10px;
    border: none;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-apply-calendar:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

@media (max-width: 768px) {
    .calendar-popup {
        max-width: 95vw;
        max-height: 95vh;
        padding: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100vw - 20px);
    }
    
    .calendar-quick-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-content {
        gap: 10px;
    }
    
    .calendar-header h3 {
        font-size: 14px;
    }
    
    .calendar-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .calendar-day {
        font-size: 11px;
        min-height: 26px;
    }
    
    .calendar-weekdays > div {
        font-size: 10px;
        padding: 3px 0;
    }
    
    .quick-btn {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .btn-reset,
    .btn-apply-calendar {
        padding: 8px;
        font-size: 12px;
    }
    
    .calendar-selected {
        padding: 6px 10px;
    }
    
    .calendar-selected span {
        font-size: 11px;
    }
}

@media (max-height: 700px) {
    .calendar-popup {
        max-height: 95vh;
        padding: 12px;
    }
    
    .calendar-content {
        gap: 8px;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        font-size: 11px;
        min-height: 24px;
    }
    
    .calendar-weekdays > div {
        font-size: 10px;
        padding: 2px 0;
    }
    
    .calendar-quick-buttons {
        gap: 4px;
    }
    
    .quick-btn {
        padding: 5px 6px;
        font-size: 10px;
    }
    
    .calendar-selected {
        padding: 5px 8px;
    }
    
    .calendar-selected span {
        font-size: 10px;
    }
    
    .btn-reset,
    .btn-apply-calendar {
        padding: 8px;
        font-size: 11px;
    }
}

.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);
}

/* Section Headers Footer */
.section-headers-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    background: var(--bg-primary);
    border-top: 2px solid var(--bg-secondary);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.section-header-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-top: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-header-btn:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.section-header-btn.active {
    color: var(--primary);
    border-top-color: var(--primary);
    background: var(--bg-secondary);
}

.section-content {
    animation: fadeIn 0.3s ease;
}

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

/* 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;
    margin-bottom: 20px;
}

.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-return {
    border-left-color: #FF9800;
}

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

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

.stat-card.stat-purchase {
    border-left-color: #2196F3;
}

.clickable-stat {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.clickable-stat:active {
    transform: translateY(-2px);
}

.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);
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-search-icon {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-search-icon:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-search-icon i {
    font-size: 1rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid var(--bg-secondary);
    border-radius: 8px;
    padding: 0 12px;
    transition: border-color 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
}

.search-input {
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    flex: 1;
    min-width: 200px;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.btn-search-clear {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-search-clear:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-search-clear i {
    font-size: 0.85rem;
}

/* Mobile adjustments for search */
@media (max-width: 768px) {
    .search-input {
        min-width: 150px;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-container {
        width: 100%;
        justify-content: flex-end;
    }
}

.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;
}

/* Discount sales table - daha oxunaqlı sütunlar */
#discountSalesTable {
    width: 100%;
    table-layout: auto; /* Məzmun əsasında enləri hesabla, sözləri ortadan kəsmə */
}

#discountSalesTable th,
#discountSalesTable td {
    padding: 8px 8px;
}

/* Tarix sütunu üçün məzmun enində */
#discountSalesTable th.date-header,
#discountSalesTable td.date-cell {
    width: auto;
    min-width: auto;
    max-width: none;
    white-space: nowrap;
}

/* Digər sütunlarda sözlər yalnız boşluqlarda qırılsın (Pərakəndə / müştəri kimi) */
#discountSalesTable th:not(.date-header),
#discountSalesTable td:not(.date-cell) {
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

/* Cədvəldə kliklənə bilən sətirlər (satış detalları popupı üçün) */
#discountSalesTable tbody tr.clickable-row,
#returnSalesTable tbody tr.clickable-row,
#totalSalesTable tbody tr.clickable-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#discountSalesTable tbody tr.clickable-row:hover,
#returnSalesTable tbody tr.clickable-row:hover,
#totalSalesTable tbody tr.clickable-row:hover {
    background-color: rgba(21, 101, 192, 0.06);
}

/* Sortable header styles */
#discountSalesTable th.sortable-header {
    position: relative;
    transition: background-color 0.2s ease;
    touch-action: manipulation; /* Mobil cihazlarda daha yaxşı touch response */
    -webkit-tap-highlight-color: rgba(21, 101, 192, 0.2);
}

#discountSalesTable th.sortable-header:hover {
    background-color: rgba(21, 101, 192, 0.1);
}

#discountSalesTable th.sortable-header:active {
    background-color: rgba(21, 101, 192, 0.15);
}

/* Filter Button */
.btn-filter {
    background: rgba(255, 255, 255, 0.2) !important;
}

.btn-filter:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.btn-filter i {
    font-size: 18px;
    color: #1565C0; /* Tünd göy rəng */
    transition: all 0.3s ease;
}

/* Filter Popup - Right Side */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-overlay.show {
    opacity: 1;
    visibility: visible;
}

.filter-popup {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.filter-popup.show {
    transform: translateX(0);
}

.filter-popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.filter-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--bg-secondary);
    flex-shrink: 0;
}

.filter-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-popup-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-popup-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.filter-item {
    margin-bottom: 24px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

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

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--bg-secondary);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Filter Checkbox Group */
.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.filter-checkbox-label:hover {
    color: var(--primary);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.filter-checkbox-label span {
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.filter-checkbox-label:hover span {
    color: var(--primary);
}

.filter-popup-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--bg-secondary);
    flex-shrink: 0;
}

.btn-filter-clear,
.btn-filter-apply {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter-clear {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-filter-clear:hover {
    background: var(--bg-tertiary);
}

.btn-filter-apply {
    background: var(--primary);
    color: white;
}

.btn-filter-apply:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile adjustments for filter popup */
@media (max-width: 768px) {
    .filter-popup {
        width: 100%;
        max-width: 100vw;
    }
}

/* Total row styles */
#discountSalesTable tfoot {
    border-top: 2px solid var(--bg-tertiary);
    background: var(--bg-secondary);
}

#discountSalesTable tfoot .total-row td {
    padding: 12px 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border-top: 2px solid var(--bg-tertiary);
}

#discountSalesTable tfoot .total-row td.total-amount {
    font-weight: 700;
}

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

.data-table th {
    padding: 8px 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);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

/* Hesab məlumatları və Xərc kateqoriyaları cədvəlləri - eyni sütun enləri */
#accountsTable,
#expenseCategoriesTable {
    min-width: 100% !important;
    width: 100% !important;
    table-layout: fixed;
}

#accountsTable th:first-child,
#expenseCategoriesTable th:first-child {
    width: 60%; /* Ad/Kateqoriya üçün 60% */
}

#accountsTable th:last-child,
#expenseCategoriesTable th:last-child {
    width: 40%; /* Məbləğ üçün 40% */
    text-align: center;
}

#accountsTable td:last-child,
#expenseCategoriesTable td:last-child {
    text-align: center;
    font-weight: 600;
}

/* Xərc kateqoriyaları üçün xüsusi stillər */
#expenseCategoriesTable th {
    font-weight: 700; /* Bold başlıqlar */
}

#expenseCategoriesTable td:last-child {
    color: var(--danger); /* Qırmızı məbləğ */
}

.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;
    font-weight: 600;
}

.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);
}

/* ============================================
   ACCOUNT DETAILS POPUP (Bottom Sheet)
   ============================================ */
.account-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
    overscroll-behavior: contain;
}

.account-details-overlay.show {
    opacity: 1;
    visibility: visible;
}

.account-details-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 80vh;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.account-details-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-details-drag-area {
    padding: 12px 0 8px 0;
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.account-details-drag-handle {
    width: 40px;
    height: 5px;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.account-details-popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-secondary);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.account-details-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

/* Account Action Buttons */
.account-details-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.account-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--bg-tertiary);
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.account-action-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.account-action-btn:active {
    transform: scale(0.98);
}

.account-action-btn i {
    font-size: 0.875rem;
}

.account-action-btn.transfer-btn:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #2196f3;
}

.account-action-btn.book-btn:hover {
    background: #f3e5f5;
    border-color: #9c27b0;
    color: #9c27b0;
}

.account-action-btn.deposit-btn:hover {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #4caf50;
}

@media (max-width: 480px) {
    .account-details-actions {
        gap: 6px;
    }
    
    .account-action-btn {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }
    
    .account-action-btn span {
        display: none;
    }
    
    .account-action-btn i {
        font-size: 1rem;
    }
}

.account-details-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.account-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--bg-tertiary);
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.account-action-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.account-action-btn:active {
    transform: scale(0.98);
}

.account-action-btn i {
    font-size: 0.875rem;
}

.account-action-btn.transfer-btn:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #2196f3;
}

.account-action-btn.book-btn:hover {
    background: #f3e5f5;
    border-color: #9c27b0;
    color: #9c27b0;
}

.account-action-btn.deposit-btn:hover {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #4caf50;
}

@media (max-width: 480px) {
    .account-details-actions {
        gap: 6px;
    }
    
    .account-action-btn {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }
    
    .account-action-btn span {
        display: none;
    }
    
    .account-action-btn i {
        font-size: 1rem;
    }
}

.account-details-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.account-details-popup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
    color: var(--text-secondary);
}

.account-details-popup-loading .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;
}

.account-details-popup-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Expense Category Details Popup */
.expense-category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
    overscroll-behavior: contain;
}

.expense-category-overlay.show {
    opacity: 1;
    visibility: visible;
}

.expense-category-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 80vh;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.expense-category-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.expense-category-drag-area {
    padding: 12px 0 8px 0;
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.expense-category-drag-handle {
    width: 40px;
    height: 5px;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.expense-category-popup-header {
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid var(--bg-secondary);
    flex-shrink: 0;
}

.expense-category-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.expense-category-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.expense-category-popup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
    color: var(--text-secondary);
}

.expense-category-popup-loading .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;
}

.expense-category-popup-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-popup-card + .account-popup-card {
    margin-top: 8px;
}

.account-popup-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.account-popup-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-weight: 600;
}

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

.account-popup-card-header.expense {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.account-popup-card-header .card-icon {
    font-size: 1.2rem;
}

.account-popup-card-header h4 {
    margin: 0;
    font-size: 1rem;
}

.account-popup-card-body {
    padding: 12px 16px;
}

.account-popup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.account-popup-row:last-child {
    border-bottom: none;
}

.account-popup-row.total-row {
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    padding-top: 12px;
}

.account-popup-row .row-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.account-popup-row .row-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.account-popup-row .row-value.total.income {
    color: var(--success);
    font-size: 1.1rem;
}

.account-popup-row .row-value.total.expense {
    color: var(--danger);
    font-size: 1.1rem;
}

.account-popup-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    margin-top: 8px;
}

.account-popup-balance .balance-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.account-popup-balance .balance-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.account-popup-balance .balance-value.positive {
    color: #a7f3d0;
}

.account-popup-balance .balance-value.negative {
    color: #fecaca;
}

.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;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ie-header h3 {
    margin: 0;
    flex: 1;
}

.chart-type-buttons {
    display: flex;
    gap: 8px;
}

.chart-type-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.chart-type-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.chart-type-btn.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ie-header.income .chart-type-btn.active {
    color: var(--success);
    border-color: var(--success);
}

.ie-header.expense .chart-type-btn.active {
    color: var(--danger);
    border-color: var(--danger);
}

.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;
        padding-bottom: 100px; /* Footer üçün yer burax */
        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: center;
        white-space: nowrap;
        font-weight: 600;
    }
    
    /* Xərc kateqoriyaları cədvəli - hesab məlumatları ilə eyni stillər */
    #expenseCategoriesTable {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed;
    }
    
    #expenseCategoriesTable th {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    #expenseCategoriesTable th:first-child {
        width: 60%; /* Kateqoriya adı üçün 60% */
    }
    
    #expenseCategoriesTable th:last-child {
        width: 40%; /* Məbləğ üçün 40% */
        text-align: center;
    }
    
    #accountsTable th:last-child {
        text-align: center;
    }
    
    #expenseCategoriesTable td {
        padding: 10px 6px;
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    #expenseCategoriesTable td:first-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    #expenseCategoriesTable td:last-child {
        text-align: center;
        white-space: nowrap;
        font-weight: 600;
        color: var(--danger); /* Qırmızı məbləğ */
    }
    
    #expenseCategoriesTable th {
        font-weight: 700; /* Bold başlıqlar */
    }
}

/* Discount Amount Styling */
.discount-amount {
    color: #dc3545 !important; /* Qırmızı rəng */
    font-weight: 600;
}

/* Sidebar Menu Styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 9999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-menu.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--primary);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    flex: 1;
    padding: 10px 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid var(--bg-secondary);
}

.sidebar-menu-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.sidebar-menu-item i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu-item span {
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-divider {
    height: 1px;
    background: var(--bg-secondary);
    margin: 10px 0;
}

.sidebar-menu-group {
    display: flex;
    flex-direction: column;
}

.sidebar-menu-group-title {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid var(--bg-secondary);
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
}

.sidebar-menu-group-title:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.sidebar-menu-group-title i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu-group-title span {
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
}

.sidebar-menu-group-title::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: auto;
    color: var(--text-secondary);
}

.sidebar-menu-group.collapsed .sidebar-menu-group-title::after {
    transform: rotate(-90deg);
}

.sidebar-menu-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-menu-group:not(.collapsed) .sidebar-menu-group-items {
    max-height: 500px;
}

.sidebar-menu-subitem {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 48px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu-subitem:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-menu-subitem.active {
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

.sidebar-menu-subitem span {
    font-size: 0.95rem;
    font-weight: 400;
}

.sidebar-menu-item.active {
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.1);
    color: var(--primary);
    font-weight: 500;
}

.sidebar-logout {
    color: var(--danger);
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Body scroll lock when popup is open */
body.popup-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Refresh button */
.btn-refresh {
    color: #fff;
    background: transparent;
}

.btn-refresh:hover {
    color: #fff;
    background: transparent;
}

.btn-refresh:active i {
    animation: spin 0.5s ease;
}

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

/* Mobile adjustments for sidebar */
@media (max-width: 768px) {
    .sidebar-menu {
        width: 260px;
        left: -260px;
    }
}
    
    .section-card {
        padding: 15px;
    }
    
    .section-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
}

/* ============================================
   ACCOUNT MODAL (Transfer & Deposit)
   ============================================ */
.account-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
    overscroll-behavior: contain;
}

.account-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.account-modal-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10003;
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 85vh;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.account-modal-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-modal-drag-area {
    width: 100%;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: grab;
}

.account-modal-drag-handle {
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: var(--bg-tertiary);
}

.account-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-secondary);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-modal-header-center {
    justify-content: center;
}

.account-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.account-modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
}

.account-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.account-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.account-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--bg-secondary);
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group .required {
    color: var(--danger);
}

.form-value {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: white;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

@media (max-width: 480px) {
    .account-modal-popup {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
    }
    
    .account-modal-header {
        padding: 12px 15px;
    }
    
    .account-modal-body {
        padding: 15px;
    }
    
    .account-modal-footer {
        padding: 12px 15px;
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    min-width: 280px;
    max-width: 420px;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-notification.toast-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3), 0 2px 8px rgba(76, 175, 80, 0.2);
}

.toast-notification.toast-success::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-notification.toast-error {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.3), 0 2px 8px rgba(255, 87, 34, 0.2);
}

.toast-notification.toast-error::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-notification.toast-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.3), 0 2px 8px rgba(33, 150, 243, 0.2);
}

.toast-notification.toast-info::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-notification.toast-warning {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.3), 0 2px 8px rgba(255, 152, 0, 0.2);
}

.toast-notification.toast-warning::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ============================================
   Ödəniş Popup Styles
   ============================================ */
.odenis-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
    overscroll-behavior: contain;
}

.odenis-overlay.show {
    opacity: 1;
    visibility: visible;
    display: block;
}

.odenis-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 85vh;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.odenis-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.odenis-popup-drag-area {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: grab;
}

.odenis-popup-drag-handle {
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: var(--bg-tertiary);
}

.odenis-popup-header {
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--bg-secondary);
    flex-shrink: 0;
}

.odenis-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.odenis-popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.odenis-info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.odenis-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.odenis-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.odenis-label {
    color: #666;
    font-size: 14px;
}

.odenis-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.odenis-form-group {
    margin-bottom: 18px;
}

.odenis-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.odenis-form-group input,
.odenis-form-group select,
.odenis-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--bg-secondary);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    transition: all 0.2s ease;
}

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

.odenis-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.odenis-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.odenis-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-secondary);
}

.odenis-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.odenis-btn i {
    font-size: 16px;
}

.odenis-btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.odenis-btn-cancel:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.odenis-btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.odenis-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.odenis-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (min-width: 768px) {
    /* Desktop-də də aşağıdan çıxan bottom-sheet kimi qalsın,
       eni bütün səhifəni kaplasın */
    .odenis-popup {
        max-width: 100%;
        width: 100%;
        margin: 0;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        border-radius: 16px 16px 0 0;
    }
}