/* MD E-Fatura - Unified App Stylesheet */
/* Base + Components + Utilities + Migrated Inline + Auth styles */

/* MD E-Fatura - Modern Admin Stylesheet */

:root {
    /* Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;

    --success: #10b981;
    --success-light: #ecfdf5;

    --warning: #f59e0b;
    --warning-light: #fffbeb;

    --danger: #ef4444;
    --danger-light: #fef2f2;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --bg-main: var(--slate-50);
    --bg-surface: #ffffff;
    --text-main: var(--slate-800);
    --text-muted: var(--slate-500);
    --border-color: var(--slate-200);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: contain;
}

/* iOS'un inputlara odaklanınca otomatik yakınlaşmasını engellemek için */
@media screen and (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Mobil cihazlarda tabloların    /* Data table mobile sizing */
    .data-table {
        font-size: 13px;
        width: 100% !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Structure */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--secondary);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--slate-400);
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.85);
}

.page-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--slate-800);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--slate-100);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Page Container */
.content-container {
    padding: 20px 24px;
    max-width: none;
    width: 100%;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

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

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-500);
}

/* Cards & Sections */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

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

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

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

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: var(--slate-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--slate-700);
}

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

.data-table tr:hover td {
    background: var(--slate-50);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-gonderildi,
.badge-onaylandi {
    background: var(--success-light);
    color: var(--success);
}

.badge-taslak {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-hata {
    background: var(--danger-light);
    color: var(--danger);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
    background: white;
    border-color: var(--border-color);
    color: var(--slate-700);
}

.btn-secondary:hover {
    background: var(--slate-50);
}

.btn-danger {
    background: var(--danger-light);
    color: var(--danger);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: white;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-control[type="color"] {
    min-height: 46px;
    padding: 6px;
}

.sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.sort-link-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    color: #cbd5e1;
}

.sort-link-icon-active {
    color: #3b82f6;
}

.sort-link-icon-muted {
    opacity: 0.3;
}

.sort-link-compact {
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 4px;
    display: inline-flex;
}

.table-input {
    padding: 8px 10px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* Alerts & Notices */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert,
.notice {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.alert.is-hiding,
.notice.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #10b98120;
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #ef444420;
}

.notice {
    width: 100%;
    margin: 20px 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    box-sizing: border-box;
    border-left: 5px solid transparent;
}

.notice p {
    margin: 0;
}

.notice-success {
    background: #e6fffa;
    color: #065f46;
    border-left-color: #10b981;
}

.notice-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.notice-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: #f59e0b;
}

.notice-info {
    background: #e0f2fe;
    color: #075985;
    border-left-color: #0ea5e9;
}

/* Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

.sidebar-footer {
    display: none !important;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
}

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

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

    .mobile-only {
        display: inline-flex !important;
    }

    .sidebar-footer {
        display: flex !important;
        padding: 16px;
        margin-top: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        gap: 8px;
        background: var(--secondary);
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .content-container {
        padding: 20px;
    }

    .top-bar {
        padding: 0 16px;
    }

    .stat-card {
        padding: 20px;
    }
}

/* Invoice Page Specific Layouts */
.invoice-top-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.invoice-section {
    margin-bottom: 32px;
}

@media (max-width: 991px) {
    .invoice-top-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

.invoice-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 991px) {
    .invoice-bottom-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .invoice-bottom-container {
        max-width: none !important;
    }
}

/* Mobile Responsive Table (Card View) */
@media (max-width: 768px) {
    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 16px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        padding: 16px;
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
    }

    .data-table td {
        display: flex;
        align-items: flex-start;
        /* Align top for multiline content */
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--slate-100);
        text-align: right;
        font-size: 14px;
        word-break: break-all;
        /* Break long words/UUIDs to prevent overflow */
        gap: 12px;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--slate-500);
        text-align: left;
        width: 100px;
        flex-shrink: 0;
        /* Label shouldn't shrink below min-width */
        word-break: normal;
        /* Label text shouldn't break */
    }

    /* Content wrapper to ensure alignment */
    .data-table td>*:not(:first-child) {
        /* Ideally target direct text or wrappers, but structure varies. 
           This targets elements after the pseudo-element (simulated).
           Actually pseudo-element is child of td but not in DOM tree for selector.
           So just rely on flex behavior.
        */
        flex: 1;
        text-align: right;
        min-width: 0;
        /* Allow flex item to shrink below content size */
    }

    .data-table td:last-child {
        border-bottom: none;
        padding-top: 16px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .data-table td:last-child::before {
        text-align: center;
        width: 100%;
        margin-bottom: 4px;
    }

    /* Reset button container for stacked layout */
    .data-table td:last-child>div {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 4px;
        width: 100%;
        overflow-x: visible !important;
    }

    /* Ensure divs inside td (like UUID stacks) break correctly */
    .data-table td div {
        word-break: break-all;
    }

    /* Hide label for checkbox / actions if not needed or handle specifically */
    .data-table td:has(input[type="checkbox"])::before {
        display: none;
    }

    .data-table td:first-child {
        border-bottom: 1px solid var(--slate-100);
        padding-bottom: 12px;
        margin-bottom: 4px;
        justify-content: center;
        /* Center checkbox */
    }

    /* Input checkbox fix for mobile */
    .data-table td:first-child input {
        display: inline-block;
    }



    .sidebar-footer .nav-item {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        margin-bottom: 0;
        color: var(--slate-300);
    }

    .sidebar-footer .nav-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }

    .sidebar-footer .nav-item.logout {
        color: #ff4d4d;
        background: rgba(255, 77, 77, 0.1);
        border-color: rgba(255, 77, 77, 0.2);
    }

    /* Fluid button sizes on mobile using clamp */
    .data-table td:last-child .btn {
        padding: clamp(8px, 1.5vw, 12px) clamp(10px, 2.5vw, 16px);
        font-size: clamp(12px, 1.2vw, 14px);
        gap: 4px;
    }

    .data-table td:last-child .btn i {
        width: clamp(14px, 1.8vw, 19px);
        height: clamp(14px, 1.8vw, 19px);
    }

    /* Settings/Details Table Specifics for Mobile */
    .data-table td:first-child input {
        display: inline-block;
    }

    /* Settings/Details Table Specifics for Mobile */
    .settings-table td {
        width: 100% !important;
        text-align: left;
        justify-content: flex-start;
        border-bottom: none;
        display: block;
        /* Fallback */
    }

    .settings-table td:first-child {
        color: var(--slate-500);
        padding-bottom: 4px;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .settings-table td:last-child {
        padding-top: 0;
        padding-bottom: 16px;
        font-size: 16px;
        font-weight: 500;
        border-bottom: 1px solid var(--slate-100);
    }

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

    /* Fix for Bulk Save Button Wrapping */
    #btn-bulk-save {
        white-space: nowrap;
    }

    /* Better Card Header on Mobile */
    .card-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Ensure the right-side actions in card header wrap correctly */
    .card-header>div:last-child {
        flex-wrap: wrap;
    }

    /* Batch Actions Mobile Layout (Sticky Bottom on Selection) */
    .batch-actions.show-fixed-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 12px 16px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        border-top: 1px solid var(--border-color);
        animation: slideUp 0.3s ease-out;
    }

    /* Hide total count in sticky mode to save space/confusion */
    .batch-actions.show-fixed-bottom span {
        display: none !important;
    }

    .batch-actions.show-fixed-bottom button {
        margin: 0;
        width: 100%;
        justify-content: center;
        height: 44px;
        /* Touchable area */
    }

    /* Single action button full width */
    .batch-actions.show-fixed-bottom.single-action {
        grid-template-columns: 1fr;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }
}

/* Default Desktop Styles for Batch Actions */
.batch-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Dropdown Menu (Desktop) */
.user-dropdown-container {
    position: relative;
    cursor: pointer;
    /* Ensure a slightly larger hit area */
    padding: 10px 0;
    margin: -10px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    margin-top: 5px;
    z-index: 1000;

    /* Smooth transition with delay to prevent jumping */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.user-dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Hover bridge pseudo-element */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--slate-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--slate-50);
    color: var(--primary);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
    color: var(--slate-400);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.logout {
    color: var(--danger);
    border-top: 1px solid var(--slate-100);
    margin-top: 4px;
    padding-top: 12px;
}

.dropdown-item.logout i {
    color: var(--danger);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide desktop elements on mobile */
@media (max-width: 1024px) {
    .dropdown-menu {
        display: none !important;
    }
}

/* Sidebar structure update for sticky footer */
.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}


/* Dashboard Overhaul Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-col-8 {
    grid-column: span 8;
}

.dashboard-col-4 {
    grid-column: span 4;
}

.dashboard-col-12 {
    grid-column: span 12;
}

@media (max-width: 1200px) {

    .dashboard-col-8,
    .dashboard-col-4 {
        grid-column: span 12;
    }
}

/* Enhanced Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.03;
    border-radius: 50%;
}

.stat-trend {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

/* Quick Actions Widget */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--slate-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--slate-700);
    transition: var(--transition);
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px);
}

.quick-action-btn i {
    width: 32px;
    height: 32px;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Connection Stats */
.connection-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--slate-50);
}

.connection-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.connection-info i {
    width: 20px;
    height: 20px;
    color: var(--slate-400);
}

.connection-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slate-300);
}

.status-online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-offline {
    background: var(--danger);
}

/* Desktop Specific Fixes */
@media (min-width: 769px) {
    .data-table th:last-child {
        text-align: center;
        /* Center "İşlemler" header */
    }

    .data-table td:last-child>div {
        justify-content: flex-end;
        /* Right align buttons */
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION BAR
   ======================================== */

/* Hide by default (desktop) */
.mobile-bottom-nav,
.mobile-menu-overlay {
    display: none;
}

/* Mobile only (< 768px) */
@media (max-width: 767px) {

    /* Hide footer on mobile */
    .admin-footer {
        display: none;
    }

    /* Add padding to main content to prevent overlap with bottom nav */
    .content-container {
        padding-bottom: 80px !important;
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 8px 0 12px;
        z-index: 1000;
        border-top: 1px solid #e2e8f0;
    }

    /* Navigation Items */
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        color: #64748b;
        font-size: 11px;
        font-weight: 500;
        transition: all 0.2s ease;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }

    .mobile-bottom-nav .nav-item i {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 10px;
    }

    /* Active State */
    .mobile-bottom-nav .nav-item.active {
        color: var(--primary);
    }

    /* Center Button (Highlighted) */
    .mobile-bottom-nav .nav-item-center {
        position: relative;
    }

    .mobile-bottom-nav .nav-item-center .center-button {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
        transform: translateY(-8px);
        transition: all 0.3s ease;
    }

    .mobile-bottom-nav .nav-item-center .center-button i {
        width: 28px;
        height: 28px;
        color: #ffffff;
        stroke-width: 2.5;
    }

    .mobile-bottom-nav .nav-item-center:active .center-button {
        transform: translateY(-6px) scale(0.95);
    }

    .mobile-bottom-nav .nav-item-center span {
        color: var(--primary);
        font-weight: 600;
    }

    /* Full-Screen Menu Overlay */
    .mobile-menu-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: all 0.3s ease;
        display: block;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Menu Content */
    .menu-overlay-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        background: #ffffff;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        overflow-y: auto;
    }

    .mobile-menu-overlay.active .menu-overlay-content {
        transform: translate(-50%, -50%) scale(1);
    }

    /* Menu Header */
    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 2px solid #e2e8f0;
    }

    .menu-header h2 {
        font-size: 20px;
        font-weight: 700;
        color: var(--secondary);
        margin: 0;
    }

    .menu-close-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f1f5f9;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .menu-close-btn:active {
        background: #e2e8f0;
        transform: scale(0.95);
    }

    .menu-close-btn i {
        width: 20px;
        height: 20px;
        color: #64748b;
    }

    /* Menu Items */
    .menu-items {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .menu-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 16px;
        text-decoration: none;
        color: #334155;
        font-size: 15px;
        font-weight: 500;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

    .menu-item:hover,
    .menu-item:active {
        background: #f1f5f9;
        color: var(--primary);
    }

    .menu-item i {
        width: 22px;
        height: 22px;
        color: #64748b;
        flex-shrink: 0;
    }

.menu-item:hover i,
.menu-item:active i {
    color: var(--primary);
}
}

/* ========================================
   MOBILE RESPONSIVE - GLOBAL FIXES
   ======================================== */

@media (max-width: 767px) {

    /* Filter form - stack vertically */
    .filter-form .filter-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Prevent horizontal overflow */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Admin layout - full width on mobile */
    .admin-layout {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Main content - remove padding that causes overflow */
    .main-content {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Content container - reduce padding */
    .content-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Cards - remove margin that causes overflow */
    .card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
    }

    /* Pagination - ensure it wraps and is centered */
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin: 20px 0;
    }

    .pagination-link {
        min-width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        background: white;
        border: 1px solid var(--slate-200);
        border-radius: 6px;
        font-size: 14px;
        color: var(--slate-700);
        text-decoration: none;
    }

    .pagination-link.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .pagination-ellipsis {
        display: flex;
        align-items: flex-end;
        padding-bottom: 4px;
        color: var(--slate-400);
    }

    /* Filter Grid - standardized for mobile */
    .filter-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: flex-end;
    }

    /* Action buttons wrapping inside cards */
    .data-table td[data-label="İşlemler"]>div {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    /* Form controls - prevent overflow */
    .form-control,
    select,
    input {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Modal foundation */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(2, 6, 23, 0.48);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal .modal-content {
    background: var(--bg-surface);
    border-radius: 16px;
    width: min(980px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

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

.modal .modal-body {
    padding: 20px;
    overflow: auto;
    max-height: calc(100dvh - 140px);
}

/* Mobile webapp tuning */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
    }

    body {
        min-height: 100dvh;
    }

    .top-bar {
        position: sticky;
        top: 0;
        z-index: 1001;
        padding-top: env(safe-area-inset-top);
        height: calc(var(--header-height) + env(safe-area-inset-top));
    }

    .content-container {
        padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-nav {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
        background: rgba(2, 6, 23, 0.62);
        backdrop-filter: none !important;
    }

    .modal .modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .modal .modal-header {
        position: sticky;
        top: 0;
        z-index: 2;
        padding-top: calc(12px + env(safe-area-inset-top));
    }

    .modal .modal-body {
        flex: 1;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

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

/* Dashboard page scoped styles */
body.page-dashboard .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

body.page-dashboard .dashboard-col-12 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

body.page-dashboard .chart-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.page-dashboard .dashboard-col-4,
body.page-dashboard .dashboard-col-8 {
    width: 100%;
    flex: none;
}

body.page-dashboard .detailed-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}

body.page-dashboard .chart-container {
    min-height: 250px;
    height: 300px;
}

@media (min-width: 640px) {
    body.page-dashboard .dashboard-col-12 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    body.page-dashboard .detailed-metrics {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1025px) {
    body.page-dashboard .dashboard-col-12 {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }

    body.page-dashboard .chart-row {
        flex-direction: row;
        flex-grow: 1;
        min-height: 0;
    }

    body.page-dashboard .dashboard-col-4 {
        flex: 0 0 calc(33.333% - 14px);
    }

    body.page-dashboard .dashboard-col-8 {
        flex: 1;
        min-width: 0;
    }

    body.page-dashboard .chart-container {
        flex-grow: 1;
        min-height: 200px;
        height: auto;
    }

    body.page-dashboard {
        overflow: hidden;
    }

    body.page-dashboard .main-content {
        height: 100vh;
        overflow: hidden;
    }

    body.page-dashboard .content-container {
        height: calc(100vh - 70px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 15px 24px !important;
        gap: 15px;
    }

    body.page-dashboard .dashboard-grid {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 15px;
        min-height: 0;
        padding-bottom: 0 !important;
    }

    body.page-dashboard .stats-grid {
        margin-bottom: 0 !important;
        flex-shrink: 0;
        gap: 15px !important;
    }

    body.page-dashboard .chart-row {
        flex-grow: 1;
        display: flex;
        gap: 15px;
        min-height: 0;
    }

    body.page-dashboard .card {
        height: 100%;
        display: flex;
        flex-direction: column;
        margin-bottom: 0 !important;
    }

    body.page-dashboard .card-body {
        flex-grow: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    body.page-dashboard .chart-container {
        flex-grow: 1;
        min-height: 0 !important;
    }
}

/* Invoice detail page scoped styles */
body.page-view-invoice {
    --invoice-bg: #ffffff;
    --invoice-border: #e2e8f0;
    --invoice-text: var(--secondary);
    --invoice-muted: #64748b;
}

body.page-view-invoice .invoice-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 50px;
}

body.page-view-invoice .invoice-header-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.page-view-invoice .invoice-header-banner h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

body.page-view-invoice .uuid-badge {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    margin-top: 10px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.page-view-invoice .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

body.page-view-invoice .detail-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--invoice-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.page-view-invoice .detail-card h3 {
    margin: 0 0 20px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--invoice-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.page-view-invoice .info-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

body.page-view-invoice .info-line:last-child {
    border-bottom: none;
}

body.page-view-invoice .info-label {
    color: var(--invoice-muted);
}

body.page-view-invoice .info-value {
    font-weight: 600;
    color: var(--invoice-text);
}

body.page-view-invoice .product-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--invoice-border);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.page-view-invoice .table-header {
    background: #f8fafc;
    padding: 20px 30px;
    border-bottom: 1px solid var(--invoice-border);
}

body.page-view-invoice .table-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--invoice-text);
}

body.page-view-invoice .total-section {
    background: #f8fafc;
    padding: 30px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--invoice-border);
}

body.page-view-invoice .total-box {
    width: 100%;
    max-width: 320px;
}

body.page-view-invoice .grand-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--primary);
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
}

@media print {

    body.page-view-invoice .admin-sidebar,
    body.page-view-invoice .top-bar,
    body.page-view-invoice .print-hide {
        display: none !important;
    }

    body.page-view-invoice .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.page-view-invoice .invoice-wrapper {
        max-width: 100% !important;
        padding: 0 !important;
    }

    body.page-view-invoice .invoice-header-banner {
        background: white !important;
        color: black !important;
        border: 2px solid #000;
        box-shadow: none;
        border-radius: 0;
    }

    body.page-view-invoice .detail-card,
    body.page-view-invoice .product-card {
        box-shadow: none;
        border-radius: 0;
    }

    body.page-view-invoice .uuid-badge {
        color: black;
        border: 1px solid #ddd;
    }
}

/* Batch print layout */
.batch-print-body {
    margin: 0;
    padding: 0;
}

.batch-print-invoice {
    page-break-after: always;
    padding: 20px;
}

@media print {
    .batch-print-body .no-print {
        display: none !important;
    }

    .batch-print-invoice {
        page-break-after: always;
    }
}

/* ===== Migrated Inline Styles ===== */
/* Auto-generated from inline styles in views and JS templates. Do not edit manually. */

.ui-0223188422 { font-size: 16px; font-weight: 700; color: var(--slate-800); }
.ui-02a1a72d59 { width: 8%; min-width: 80px; }
.ui-0355948471 { margin-bottom: 16px; position: relative; }
.ui-0465c72b27 { text-align: right; color: var(--invoice-muted); }
.ui-07692cf9f9 { padding: 16px 24px; border-bottom: 1px solid var(--slate-100); display: flex; justify-content: space-between; align-items: center; background: white; }
.ui-0acd0995e2 { padding: 24px; }
.ui-0b794c51e2 { font-size:12px;color:var(--slate-500); }
.ui-0b87e9e0af { font-weight:600; }
.ui-0bc5cea11c { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ui-0ce77ff21a { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; padding: 20px; background: var(--slate-50); border-radius: 12px; border: 1px solid var(--slate-100); }
.ui-1240a9f6c0 { width: 10%; min-width: 80px; }
.ui-125bbcf9f7 { display: none; position: fixed; z-index: 10000; left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.ui-12993fa622 { max-width: 500px; width: 100%; margin: 0 20px; background: white; border-radius: 16px; overflow: hidden; }
.ui-12bd0f521e { background:#f1f5f9; border:none; cursor:pointer; color:#64748b; width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:24px; transition: all 0.2s; }
.ui-13726d0350 { padding-left: 30px; }
.ui-139f2fc840 { color: #10b981; }
.ui-13cbe03b9a { text-align: right; }
.ui-141d4ecc61 { text-align: center; margin-top: 16px; }
.ui-1538ec39e9 { border: 1px solid #fee2e2; background-color: #fef2f2; }
.ui-15652492dc { text-align:center; padding: 30px; }
.ui-1579cf6c92 { padding: 4px 8px; height: auto; }
.ui-1717ccc52e { color: var(--text-muted); margin-top: 4px; }
.ui-1722b49337 { margin:0; font-size: 20px; font-weight: 800; color: var(--invoice-text); }
.ui-17f6317ec3 { font-size:13px; color:var(--slate-600); }
.ui-18efc01e7d { padding: 12px 32px; }
.ui-1abd7ce6a6 { vertical-align: middle; margin-right: 8px; color: var(--success); }
.ui-1aed559efa { display: none; position: absolute; inset: 0; background: rgba(255,255,255,0.8); z-index: 10; align-items: center; justify-content: center; flex-direction: column; }
.ui-1b6b4e5b75 { padding: 16px 24px; }
.ui-1bde8b93fb { width: 16px; }
.ui-1f1a5c4a11 { margin-bottom: 0; max-width: 400px; }
.ui-2036dec300 { font-size:11px; color:var(--text-muted); }
.ui-20528887d8 { font-size: 14px; color: var(--text-muted); }
.ui-2087058135 { margin-right: 12px; padding: 8px; display: none; }
.ui-2111ca6f47 { width: 100%; max-width: 450px; display: flex; flex-direction: column; gap: 20px; }
.ui-213abf37cf { text-align: center; font-size: 24px; letter-spacing: 8px; font-weight: 700; width:100%; }
.ui-22e91f97d7 { margin: 0; font-size: 16px; font-weight: 600; color: var(--slate-700); }
.ui-231bf90e2c { width: 40px; height: 40px; border: 4px solid var(--slate-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 16px; }
.ui-26b8af3d0e { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; }
.ui-27a6a6e0b2 { max-width: 500px; width: 100%; margin: 0 20px; background: white; border-radius: 16px; overflow: hidden; color: var(--secondary); }
.ui-2a2a4f0146 { font-size: 11px; color: var(--slate-400); text-align: center; margin: 0; font-style: italic; }
.ui-2b84b51120 { color: var(--success); font-weight: 600; }
.ui-2d31d2f44c { color:red; text-align:center; }
.ui-2e317256e4 { width: 100%; margin-top: 10px; }
.ui-3088da1131 { display: flex; align-items: center; gap: 8px; }
.ui-3131a23fd1 { max-height: 400px; overflow-y: auto; border: 1px solid var(--slate-200); border-radius: 8px; }
.ui-31400b43db { font-size: 12px; color: var(--slate-500); display: flex; justify-content: space-between; }
.ui-31432722c1 { width: 18px; height: 18px; vertical-align: middle; margin-right: 8px; }
.ui-31c62fd4ce { vertical-align: middle; margin-right: 8px; }
.ui-3287f12586 { background: #f8fafc; }
.ui-333c60e73d { font-weight: 600; display: block; margin-bottom: 8px; }
.ui-34e6ea5a8b { padding:4px; background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.ui-355eeddb9d { display: flex; flex-direction: column; gap: 8px; }
.ui-363ebd7123 { color: var(--primary); font-weight: 600; }
.ui-37806aeb4e { font-weight:600; color:var(--primary); }
.ui-3960c6e859 { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.ui-3b488ad3ba { padding: 4px; border-radius: 8px; }
.ui-3bbed08814 { padding: 20px; text-align: center; color: var(--slate-400); }
.ui-3c6b4160f0 { font-weight: 600; color: var(--slate-800); }
.ui-3d85e427de { font-weight: 700; color: var(--primary); }
.ui-3d8e20112f { margin-top: 24px; display: flex; gap: 12px; justify-content: flex-end; }
.ui-3f27f9f929 { flex: 1; overflow: hidden; background: #f8fafc; padding: 0; }
.ui-42493e9208 { text-align: center; padding: 30px; color: var(--slate-400); }
.ui-427a5607c1 { width:14px;height:14px; }
.ui-42acb60ee2 { font-weight: 700; }
.ui-432b79b0cd { padding: 0; position: relative; min-height: 100px; }
.ui-44a1992a16 { color: var(--slate-500); display: block; margin-top: 4px; }
.ui-45999d0623 { width: 14px; height: 14px; }
.ui-45f60f8c84 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui-46babdf7a2 { color:var(--secondary) }
.ui-4a3180e2eb { margin-bottom: 15px; }
.ui-4ac120810a { display: flex; flex-direction: column; gap: 24px; }
.ui-4c746aa832 { background: #fff; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border-color); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.ui-4cd01e567f { font-size: 13px; color: var(--text-muted); }
.ui-4d0391c7b7 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.ui-4e8fcd797e { margin-bottom: 24px; border-left: 4px solid var(--success); }
.ui-4f8695e4ed { flex:1; overflow:auto; padding:0; background: #e2e8f0; }
.ui-504649d0ad { margin-top: 15px; padding-top: 15px; border-top: 1px dashed #e2e8f0; font-size: 13px; color: var(--invoice-muted); line-height: 1.6; }
.ui-50666a574d { position: relative; }
.ui-506d8b4d76 { width: 12%; min-width: 120px; }
.ui-533e8fb4a7 { max-width: 700px; width: 100%; margin: 0 20px; }
.ui-559710e209 { grid-column: span 1; }
.ui-55a70da243 { flex-grow: 1; }
.ui-568cbda041 { margin-bottom: 24px; border-top: 3px solid var(--danger); }
.ui-571f88a18f { color: var(--slate-600); }
.ui-5767d91df6 { width:100%; padding:10px; border:1px solid #e2e8f0; border-radius:8px; text-align: center; font-size: 24px; letter-spacing: 8px; }
.ui-5b26bff947 { font-size: 11px; color: var(--text-muted); }
.ui-5be1cbca9f { padding: 24px; background: white; overflow-y: auto; flex: 1; }
.ui-5c05f4afaf { font-weight: 600; }
.ui-5f3eb38a49 { width: 50px; }
.ui-5f8bf09dcd { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.ui-5fb7cabed9 { font-size: 14px; font-weight: 600; color: var(--slate-500); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.ui-6159d9fe87 { padding: 6px; background: var(--danger-light); border: 1px solid #ef444420; }
.ui-618d9961b6 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.ui-61d8fe2ec5 { padding:4px; }
.ui-62e23ed138 { display: none; text-align: center; padding: 40px; background: white; border-radius: 16px; margin-bottom: 24px; border: 1px solid var(--slate-200); }
.ui-63c6fc863a { background: white; padding: 5px; border-radius: 8px; width: 140px; }
.ui-6468396cb6 { width: 100%; padding: 10px; }
.ui-648149cea2 { margin-bottom: 0; }
.ui-64a30a59ef { padding: 6px; }
.ui-6509fdab65 { width:14px; height:14px; }
.ui-65493a31ea { padding: 40px; text-align: center; color: var(--text-muted); }
.ui-65986d3deb { margin: 5px 0 0 0; font-size: 13px; color: var(--invoice-muted); }
.ui-66f0b0369f { width:44px; height:44px; object-fit:contain; border-radius:8px; background:#fff; border:1px solid var(--slate-200); }
.ui-678fbe454c { width:100%; padding:10px; border:1px solid #e2e8f0; border-radius:8px; }
.ui-67c2698cb2 { width: 100%; margin-top: 16px; }
.ui-6873ca02f7 { display: none; position: fixed; z-index: 10002; left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.ui-68b3eddc78 { text-align: center; padding: 40px; color: var(--slate-400); }
.ui-693434c7de { display: flex; gap: 8px; }
.ui-694ab2e9af { font-weight: 800; font-size: 18px; color: var(--primary); margin-bottom: 15px; line-height: 1.2; }
.ui-698af76fcc { font-weight: 600; text-decoration: line-through; }
.ui-69d66e5b2e { width: 100%; }
.ui-6a3658e56a { color: #991b1b; font-size: 14px; margin-bottom: 20px; font-weight: 500; }
.ui-6a76ddb7fb { background: var(--info-light); color: var(--info); }
.ui-6b4be33d3a { font-size: 12px; color: var(--slate-500); margin-top: 4px; }
.ui-6b53428b81 { font-weight: 700; color: var(--primary); font-size: 18px; }
.ui-6be0414481 { background: var(--secondary); color: #f8fafc; padding: 16px; border-radius: 8px; overflow: auto; max-height: 400px; font-family: monospace; font-size: 12px; }
.ui-6d27acf5ff { font-family: monospace; color: var(--primary); }
.ui-6d94a70f67 { display: flex; justify-content: space-between; }
.ui-6ec66e2fe2 { font-size: 14px; font-weight: 500; }
.ui-71cd433f91 { text-align: center; margin-bottom: 15px; background: #f8fafc; padding: 15px; border-radius: 12px; border: 1px dashed #cbd5e1; }
.ui-72a68ac344 { text-align: center; }
.ui-72ad2158ef { background:#f1f5f9; color:#475569; }
.ui-73d6d4c027 { display:block; margin-bottom:8px; font-weight:600; }
.ui-7608310bd1 { position:relative; background:white; width:95%; max-width:1100px; height:92vh; margin:4vh auto; border-radius:24px; display:flex; flex-direction:column; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); overflow: hidden; }
.ui-76d9c176a1 { padding:24px 32px; border-bottom:1px solid #f1f5f9; display:flex; justify-content:space-between; align-items:center; background: #ffffff; }
.ui-7726213371 { font-size: 16px; font-weight: 700; color: #10b981; }
.ui-7779a7cf03 { display: flex; border-top: 1px solid var(--slate-100); padding-top: 8px; justify-content: space-between; }
.ui-7903310953 { margin: 0; font-size: 18px; font-weight: 600; color: var(--slate-800); }
.ui-790a3823c9 { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.ui-796ac212f7 { padding: 24px; max-height: 80vh; overflow-y: auto; }
.ui-79e9d9bd05 { position: relative; display: flex; align-items: center; background: rgba(var(--primary-rgb), 0.1); padding: 4px 12px; border-radius: 20px; }
.ui-7a046f1d9f { width:100%; height:100%; border:none; background:white; }
.ui-7f35a72cdb { font-size: 12px; color: var(--slate-500); }
.ui-7f3cbaf643 { margin-bottom: 8px; }
.ui-7f6d2fcf08 { border-radius: 16px; border: 1px solid var(--invoice-border); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.ui-801e09c407 { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--slate-400); }
.ui-80aaa8cf46 { width: 10%; min-width: 100px; }
.ui-828d46ad85 { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); align-items: start; justify-content: center; }
.ui-82ffa0d402 { padding: 16px; border-top: 1px solid var(--slate-200); }
.ui-84f565431e { padding: 12px 16px; background: var(--slate-50); border-radius: 8px; margin-bottom: 12px; border-left: 4px solid var(--primary); }
.ui-858bab6872 { display: none; position: fixed; z-index: 10001; left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.ui-8696a5d8ce { font-size: 11px; font-weight: 700; color: var(--slate-400); text-transform: uppercase; margin-bottom: 4px; }
.ui-86aa5bbeda { text-align: center; padding: 20px; color: var(--slate-400); }
.ui-86f4310258 { position: fixed; top: 32px; right: 32px; z-index: 99999; max-width: 400px; animation: slideInFromRight 0.3s ease-out; }
.ui-873f29802f { width: 10%; }
.ui-87f07cc560 { font-weight: 600; color: #94a3b8; }
.ui-897733de3f { color: #000; }
.ui-897bdc9921 { padding: 24px; background: white; }
.ui-89fbd7473a { background-color: #fefefe; margin: 40px auto; padding: 0; border: none; width: 90%; max-width: 900px; height: calc(100% - 80px); border-radius: 12px; position: relative; display: flex; flex-direction: column; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); overflow: hidden; }
.ui-8bf4024bb1 { max-width: 900px; width: 100%; margin: 0 20px; max-height: 90vh; display: flex; flex-direction: column; }
.ui-8bfcc9b786 { width:100%; padding:10px; }
.ui-8d703344e0 { margin-bottom: 24px; }
.ui-8dd12b45d3 { margin-top: 32px; }
.ui-8e38c1d830 { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #e2e8f0; }
.ui-8e58121797 { justify-content: space-between; background: var(--slate-50); }
.ui-8e6a736146 { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.ui-9095aec1c2 { width: 16px; height: 16px; }
.ui-9470d3da87 { display: block; font-size: 10px; color: var(--slate-500); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.ui-9598cbae31 { max-width: 600px; width: 100%; margin: 0 20px; background: white; border-radius: 16px; overflow: hidden; }
.ui-96aee2633d { font-size: 12px; color: var(--slate-500); margin-top: 6px; }
.ui-96dd181a7b { background: var(--success-light); color: var(--success); }
.ui-97f1f46b97 { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.ui-97f75632ac { margin: 0; cursor: pointer; }
.ui-980f46df1b { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.ui-995e0170d5 { padding-left: 30px; font-weight: 600; }
.ui-9c86798309 { justify-content: space-between; background: #fff5f5; }
.ui-9d605971e2 { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.5; }
.ui-9dbdf2da44 { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; padding-bottom: 10px; }
.ui-9dfcba5fd1 { font-size: 13px; color: #64748b; text-decoration: none; }
.ui-9dfd8d7c25 { font-size: 13px; font-weight: 600; color: var(--slate-600); display: flex; align-items: center; gap: 8px; }
.ui-9e073b9ab7 { padding: 12px 16px; background: var(--slate-50); border-radius: 8px; margin-bottom: 12px; border-left: 4px solid var(--warning); }
.ui-9ede064d49 { text-align: right; padding-right: 30px; font-weight: 700; color: var(--primary); }
.ui-9faec4397b { text-align: center; color: var(--invoice-muted); font-size: 13px; }
.ui-9fe621c0f3 { background:#f8fafc; }
.ui-a052b689ee { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.3; }
.ui-a0c1ee4220 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 24px; }
.ui-a0fd3db06b { width: 32px; height: 32px; margin-bottom: 12px; opacity: 0.3; }
.ui-a3692712b8 { padding: 6px; border-radius: 8px; border: 1px solid var(--slate-200); background: var(--slate-50); color: var(--slate-600); }
.ui-a36b725440 { border: none; background: transparent; font-weight: 600; color: var(--primary); font-family: inherit; font-size: 14px; cursor: pointer; outline: none; padding: 0 20px 0 0; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.ui-a3b4c07f3e { border: none; background: transparent; }
.ui-a508970049 { margin-bottom: 20px; font-size: 14px; }
.ui-a50d881f95 { text-align: right; color: var(--primary); font-weight: 600; }
.ui-a527bac1ee { text-align:right; }
.ui-a5f37e835d { font-weight: 600; color: var(--primary); }
.ui-a659372d50 { width: 15%; }
.ui-a664c2716d { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--slate-200); border-radius:10px; margin-bottom:16px; }
.ui-a71d02b6cc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: flex-end; }
.ui-a737f918b0 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.ui-a85761ef92 { display:flex; align-items:center; gap:8px; margin:0; font-size:13px; }
.ui-aba882c663 { color: #f59e0b; }
.ui-ac49bc515b { display: none; position: fixed; z-index: 10002; left: 0; top: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.ui-af5bb0afde { font-weight: 500; }
.ui-afc576444a { width: 30%; }
.ui-b0178f3ca2 { font-size: 16px; font-weight: 700; color: #f59e0b; }
.ui-b01e8c3953 { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.ui-b3ba1a8cd5 { background: var(--warning-light); color: var(--warning); }
.ui-b52608060a { width: 100%; justify-content: center; }
.ui-b574419ff8 { float: none; margin-left: 10px; }
.ui-b75fad0009 { margin-bottom: 20px; }
.ui-b7cb483eea { height: 100%; width: 100%; display: flex; flex-direction: column; }
.ui-bb6b1de139 { padding: 4px; }
.ui-bcb0a0d8bd { padding: 0; }
.ui-bdcb61fbaf { font-size: 11px; margin-bottom: 4px; display: block; }
.ui-c06fbf8c2b { max-width: 600px; width: 100%; margin: 0 20px; }
.ui-c07348eeaf { font-weight: 600; color: var(--slate-900); }
.ui-c0a4c6d64a { margin: 0; font-size: 18px; font-weight: 600; }
.ui-c193781b87 { padding: 4px 8px; }
.ui-c19a75d8c9 { background: var(--secondary); color: #94a3b8; padding: 25px; border-radius: 12px; font-size: 13px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; line-height: 1.5; margin:0; }
.ui-c2109d59b9 { text-align: right; padding-right: 30px; }
.ui-c2bcea0858 { display: flex; justify-content: space-between; align-items: center; }
.ui-c3bae3c781 { display: none; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; font-weight: 600; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.ui-c3bbbbae3d { justify-content: space-between; }
.ui-c4976e7bbe { color: #ef4444; }
.ui-c59d7bf39d { cursor: pointer; user-select: none; }
.ui-c642e79973 { margin: 0; font-size: 18px; }
.ui-c69883b750 { width: 14px; height: 14px; color: var(--primary); position: absolute; right: 8px; pointer-events: none; }
.ui-c6fd34ab03 { background: var(--slate-100); color: var(--slate-600); }
.ui-c6feff577d { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 20px; }
.ui-c8a2cb8980 { width: 18px; height: 18px; }
.ui-c8be1ccba6 { display:none; }
.ui-c9e1647994 { font-weight: 600; width: 40%; }
.ui-cad980f4b7 { width:100%; }
.ui-cb794db265 { justify-content: space-between; background-color: rgba(var(--primary-rgb), 0.03); flex-wrap: wrap; gap: 16px; }
.ui-cb92ec43c6 { padding: 8px; }
.ui-ccddc6277e { width: 40px; text-align: center; }
.ui-ccf3ea1a5a { font-size: 16px; font-weight: 700; color: #ef4444; }
.ui-ce2047e5b4 { display: flex; gap: 4px; justify-content: flex-end; }
.ui-ce458c93ee { background: var(--primary-light); color: var(--primary); }
.ui-cf2c9023c6 { margin-top: 24px; display: flex; gap: 12px; }
.ui-cf444361d9 { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ui-d124d549e7 { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.ui-d1695c7515 { width: 100%; max-width: 450px; display: flex; flex-direction: column; gap: 24px; }
.ui-d265a6b9b9 { margin-top: 16px; }
.ui-d2f87c7fad { display: flex; gap: 4px; }
.ui-d45e5546ea { padding: 20px; background: white; }
.ui-d5621a90fb { text-align:center; padding: 20px; }
.ui-d58e3aa54d { padding-left: 40px; }
.ui-d5b43342a2 { grid-column: 1 / -1; }
.ui-d5f7d6ccce { display: flex; gap: 10px; }
.ui-d86680e672 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ui-d91b9ed5f3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--slate-700); }
.ui-d95145087c { font-weight: 700; color: var(--slate-900); }
.ui-da0d36d342 { color: var(--primary); }
.ui-da57c5e81e { vertical-align: middle; }
.ui-dac4fe6c9b { text-align:center; }
.ui-dba8fc139e { width: 100%; background-color: #dc2626; color: white; }
.ui-dc2e428fc7 { color:var(--primary) }
.ui-dc55a3ba48 { color: #991b1b; }
.ui-dcbe93ae1b { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(15, 23, 42, 0.8); z-index:9999; backdrop-filter: blur(8px); }
.ui-dd7272cd7c { margin-bottom: 30px; }
.ui-dd8c9d6540 { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.ui-df7e07373d { display: flex; align-items: center; gap: 4px; }
.ui-dff7576b08 { width: 30%; min-width: 200px; }
.ui-e07a1d4d1a { font-size: 11px; color: var(--slate-500); }
.ui-e0a616cef4 { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.ui-e0df73e7b8 { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(255,255,255,0.7); z-index:9999; align-items:center; justify-content:center; flex-direction:column; }
.ui-e1549fdc20 { opacity:0.5 }
.ui-e2d0c84ea1 { max-width: 500px; width: 100%; margin: 0 20px; }
.ui-e2ff0fd1a7 { display: flex; align-items: center; gap: 12px; }
.ui-e48b05836a { font-size:11px; }
.ui-e4e9263ea1 { color: var(--slate-500); }
.ui-e836ea1b87 { padding: 16px 24px; border-bottom: 1px solid var(--slate-100); display: flex; justify-content: space-between; align-items: center; }
.ui-e9385d530c { width: 40px; height: 40px; border: 4px solid var(--slate-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
.ui-e9e0e4af65 { font-size: 11px; }
.ui-ea44dfbc4a { display: none; position: fixed; z-index: 10003; left: 0; top: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.ui-ea96bdd3a7 { display:flex; align-items:center; gap:10px; }
.ui-eb21db20a3 { background-color: #fee2e2; border-bottom: 1px solid #fecaca; }
.ui-eb82ff0192 { font-size: 14px; color: var(--slate-500); font-weight: 500; }
.ui-ee3d55bf99 { flex: 1; }
.ui-eefff2f8dd { font-size: 13px; }
.ui-efd3feeff1 { padding: 20px; text-align: center; color: var(--slate-500); }
.ui-f012f14dbd { background:none; border:none; cursor:pointer; }
.ui-f01d8c00b2 { width: 100%; height: 100%; border: none; }
.ui-f2892a2e8a { display: none; }
.ui-f6caefb534 { padding: 16px 24px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.ui-f737028f8e { text-align: center; font-size: 24px; letter-spacing: 8px; font-weight: 700; width:100%; padding:10px; }
.ui-f75d63c1ee { color: var(--danger); }
.ui-f7663e7f0a { width: 100%; border-color: var(--slate-300); }
.ui-f780608dbf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ui-f9136614bb { opacity: 0.7; }
.ui-f986356f71 { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.ui-fba1ee7621 { margin-top: 24px; display: none; }
.ui-fd6df46b55 { font-size: 13px; color: var(--slate-500); }
.ui-fee18fcac8 { width: 5%; }
.ui-ff227d0632 { margin: 0; }

/* ===== Auth/Login Styles ===== */
/* MD E-Fatura - Login Page Styles */

/* Login Page Specific Styles */
body.login-page {
    font-family: 'Inter', -apple-system, sans-serif;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.2), transparent),
        radial-gradient(circle at bottom left, #7c3aed20, transparent),
        var(--slate-50);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--slate-200);
}

.login-card .header {
    text-align: center;
    margin-bottom: 40px;
}

.login-card .logo-box {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.3);
    overflow: hidden;
}

.login-card .logo-box .login-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    padding: 6px;
    background: #ffffff;
}

.login-card .header h1 {
    font-size: 24px;
    color: var(--slate-800);
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card .header p {
    color: #64748b;
    font-size: 14px;
}

.login-card .form-group {
    margin-bottom: 24px;
}

.login-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--slate-800);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    font-size: 16px;
    /* iOS auto-zoom engelleyici */
    transition: all 0.2s;
    font-family: inherit;
    background: var(--slate-50);
}

.login-card input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.login-card .options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.login-card .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-card .checkbox-group input {
    cursor: pointer;
}

.login-card .checkbox-group label {
    margin: 0;
    text-transform: none;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
}

.login-card .btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-card .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.3);
}

.login-card .error-msg {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #fee2e2;
}

.login-card .success-msg {
    background: #f0fdf4;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    border: 1px solid #dcfce7;
}

.login-card .footer {
    margin-top: 32px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* ===== Production Cleanup Overrides ===== */

/* Keep mobile table text readable after merge */
@media (max-width: 768px) {
    .data-table {
        font-size: 13px;
        width: 100% !important;
    }
}

/* Modal performance: disable expensive backdrop blur layers */
.modal,
.ui-125bbcf9f7,
.ui-6873ca02f7,
.ui-828d46ad85,
.ui-858bab6872,
.ui-8e6a736146,
.ui-ac49bc515b,
.ui-b01e8c3953,
.ui-dcbe93ae1b,
.ui-ea44dfbc4a {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Ensure all known modal content wrappers inherit base modal sizing logic */
.modal .ui-89fbd7473a,
.modal .ui-27a6a6e0b2,
.modal .ui-c06fbf8c2b,
.modal .ui-9598cbae31,
.modal .ui-12993fa622,
.modal .ui-e2d0c84ea1,
.modal .ui-533e8fb4a7,
.modal .ui-8bf4024bb1 {
    width: min(980px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 767px) {
    .modal .ui-89fbd7473a,
    .modal .ui-27a6a6e0b2,
    .modal .ui-c06fbf8c2b,
    .modal .ui-9598cbae31,
    .modal .ui-12993fa622,
    .modal .ui-e2d0c84ea1,
    .modal .ui-533e8fb4a7,
    .modal .ui-8bf4024bb1 {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .modal .ui-3f27f9f929,
    .modal .ui-796ac212f7,
    .modal .ui-d45e5546ea,
    .modal .ui-0acd0995e2,
    .modal .ui-897bdc9921,
    .modal .ui-5be1cbca9f {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== Mobile Bottom Nav Redesign (WebApp Dock + Bottom Sheet) ===== */
.mobile-bottom-nav.mobile-bottom-nav--app,
.mobile-menu-overlay .menu-overlay-content {
    font-family: inherit;
}

@media (max-width: 767px) {
    .mobile-bottom-nav.mobile-bottom-nav--app {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 1100;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        align-items: stretch;
        padding: 8px;
        border-radius: 20px;
        border: 1px solid rgba(var(--secondary-rgb, 15, 23, 42), 0.08);
        background: var(--bg-surface);
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
        backdrop-filter: saturate(130%);
    }

    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item {
        min-height: 56px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: var(--slate-500);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 4px;
        text-decoration: none;
        transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
    }

    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item .nav-icon-wrap {
        width: 28px;
        height: 28px;
        display: grid;
        place-items: center;
        border-radius: 10px;
    }

    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item i {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item .nav-label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1;
    }

    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item.active,
    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item[aria-expanded="true"] {
        color: var(--primary);
        background: rgba(var(--primary-rgb), 0.1);
    }

    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item:active {
        transform: translateY(1px) scale(0.98);
    }

    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item-primary {
        color: #fff;
        background: linear-gradient(140deg, var(--primary), #6366f1);
        box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.35);
    }

    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item-primary .nav-icon-wrap {
        background: rgba(255, 255, 255, 0.2);
    }

    .mobile-bottom-nav.mobile-bottom-nav--app .nav-item-primary .nav-label {
        color: #fff;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1099;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.24s ease, visibility 0s linear 0.24s;
        background: rgba(2, 6, 23, 0.46);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .mobile-menu-overlay .menu-overlay-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        width: 100%;
        max-width: none;
        max-height: min(76dvh, 640px);
        border-radius: 24px 24px 0 0;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -16px 40px rgba(2, 6, 23, 0.28);
        transform: translateY(100%);
        transition: transform 0.26s ease;
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
        overflow-y: auto;
    }

    .mobile-menu-overlay.active .menu-overlay-content {
        transform: translateY(0);
    }

    .mobile-menu-overlay .menu-handle {
        width: 46px;
        height: 5px;
        border-radius: 999px;
        background: var(--slate-300);
        margin: 2px auto 14px;
    }

    .mobile-menu-overlay .menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 14px;
    }

    .mobile-menu-overlay .menu-header h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        color: var(--text-main);
    }

    .mobile-menu-overlay .menu-close-btn {
        border: 0;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: var(--slate-100);
        color: var(--slate-700);
    }

    .mobile-menu-overlay .menu-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-menu-overlay .menu-item {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
        text-decoration: none;
        border: 1px solid var(--slate-200);
        color: var(--slate-700);
        background: linear-gradient(180deg, #fff, var(--slate-50));
        min-height: 56px;
    }

    .mobile-menu-overlay .menu-item i {
        width: 18px;
        height: 18px;
        color: var(--primary);
    }

    .mobile-menu-overlay .menu-item:active {
        transform: scale(0.98);
    }

    .mobile-menu-overlay .menu-item--danger {
        color: #b91c1c;
        border-color: #fecaca;
        background: #fef2f2;
    }

    .mobile-menu-overlay .menu-item--danger i {
        color: #b91c1c;
    }

    .content-container {
        padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Picker list item style moved from JS inline styles */
.product-picker-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--slate-100);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-picker-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--slate-100);
    cursor: pointer;
}
