/* ═══════════════════════════════════════════════════════════════
   ERP THEME OVERRIDES
   Brand color: #2FAC66 (green)
   ═══════════════════════════════════════════════════════════════ */

/* Blazorise Banner'ı Ekran Dışına Fırlatma Kodu */
#blazorise-license-banner-host {
    position: fixed !important;
    bottom: -9999px !important;
    right: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -99999 !important;
}

:root {
    --erp-primary: #2FAC66;
    --erp-primary-rgb: 47, 172, 102;
    --erp-primary-dark: #239B55;
    --erp-primary-light: rgba(47, 172, 102, 0.08);
    --erp-primary-soft: rgba(47, 172, 102, 0.12);
    --erp-gradient: linear-gradient(135deg, #2FAC66 0%, #27a05e 50%, #1e8a4f 100%);

/* ─── ErpSwitch Component Styles ─── */
.form-switch .form-check-input.erp-switch-input {
    width: 2.2em !important;
    height: 1.15em !important;
    border-color: #cbd5e1 !important;
    background-color: #e2e8f0 !important;
    transition: all 0.2s ease;
}

.form-switch .form-check-input.erp-switch-input:checked {
    background-color: var(--erp-primary) !important;
    border-color: var(--erp-primary) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input.erp-switch-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(var(--erp-primary-rgb), 0.25) !important;
    border-color: var(--erp-primary) !important;
}

    --erp-surface: #ffffff;
    --erp-surface-hover: #f8faf9;
    --erp-border: #e8ecf0;
    --erp-border-light: #f0f3f6;
    --erp-text-primary: #1a2332;
    --erp-text-secondary: #64748b;
    --erp-text-muted: #94a3b8;
    --erp-shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 4px rgba(0, 0, 0, .03);
    --erp-shadow-md: 0 2px 8px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
    --erp-shadow-lg: 0 4px 12px rgba(0, 0, 0, .08), 0 8px 32px rgba(0, 0, 0, .06);
    --erp-radius-sm: 8px;
    --erp-radius-md: 12px;
    --erp-radius-lg: 16px;

    --lpx-brand: #2FAC66 !important;
    --lpx-primary: #2FAC66 !important;
    --lpx-logo: url('/logo.svg');
    --lpx-logo-icon: url('/logo.svg');
    --bs-primary: #2FAC66 !important;
    --bs-primary-rgb: 47, 172, 102 !important;
    --b-theme-primary: #2FAC66 !important;
    --b-theme-primary-r: 47 !important;
    --b-theme-primary-g: 172 !important;
    --b-theme-primary-b: 102 !important;
    --bs-link-color: #2FAC66 !important;
    --bs-link-hover-color: #239B55 !important;
    --bs-link-color-rgb: 47, 172, 102 !important;

    /* Base accent color for native controls */
    accent-color: var(--erp-primary) !important;
}


/* ─── Global Typography (font loaded via <link> in App.razor) ─── */

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}

.lpx-sidebar,
.lpx-topbar,
.modal,
.dropdown-menu,
input,
textarea,
select,
button {
    font-family: inherit !important;
}


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — color & visual refinements (no layout changes)
   ═══════════════════════════════════════════════════════════════ */

.lpx-sidebar {
    border-right: 1px solid var(--erp-border) !important;
}

.lpx-sidebar,
.lpx-sidebar-container,
.lpx-nav-menu {
    overflow-x: hidden !important;
}

.lpx-sidebar .lpx-menu-item {
    transition: all 0.2s ease !important;
}

.lpx-sidebar .lpx-menu-item:hover {
    background: rgba(var(--erp-primary-rgb), 0.06) !important;
    color: var(--erp-primary) !important;
}

.lpx-sidebar .lpx-menu-item.active,
.lpx-sidebar .lpx-menu-item.selected {
    background: rgba(var(--erp-primary-rgb), 0.1) !important;
    color: var(--erp-primary) !important;
    font-weight: 600 !important;
}

.lpx-sidebar .erp-menu-logout .lpx-menu-item {
    color: #ef4444 !important;
    opacity: 0.85;
}

.lpx-sidebar .erp-menu-logout .lpx-menu-item:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #dc2626 !important;
    opacity: 1;
}

.lpx-sidebar .erp-menu-logout .lpx-menu-item i,
.lpx-sidebar .erp-menu-logout .lpx-menu-item .fa,
.lpx-sidebar .erp-menu-logout .lpx-menu-item .fas {
    color: #ef4444 !important;
}


/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB — hide on pages that use erp-page-header
   ═══════════════════════════════════════════════════════════════ */

.lpx-content-container>.container>nav[aria-label="breadcrumb"],
.lpx-content-container>.container-fluid>nav[aria-label="breadcrumb"],
.lpx-content-container .breadcrumb,
.lpx-content-container>.container>.abp-page-header,
.lpx-content-container>.container-fluid>.abp-page-header {
    display: none !important;
}


/* ─── Dil seçici kapalı ─── */
.lpx-language-selection,
.lpx-language-selection.dropdown,
[data-lpx-setting-icon="language"],
.setting-icon[data-lpx-setting-icon="language"],
.abp-navbar .dropdown .dropdown-toggle[title*="Language"],
.abp-navbar .dropdown .dropdown-toggle[title*="Dil"],
.abp-application-layout .navbar .nav-item .dropdown:has([data-lpx-setting-icon="language"]) {
    display: none !important;
}

/* ─── Blazorise lisans banner'ı kapalı ─── */
.blazorise-license-banner-host,
#blazorise-license-banner-host,
.b-license-banner,
[class*="license-banner"],
[id*="license-banner"],
[class*="blazorise-license"],
[id*="blazorise-license"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* ─── Switch / Toggle / Checkbox Kapalı/Açık Renkleri ─── */
body input[type="checkbox"]:checked,
body .form-check-input:checked,
body .custom-checkbox .custom-control-input:checked~.custom-control-label::before,
body .custom-control-input:checked~.custom-control-label::before,
body .lpx-checkbox input:checked+label::before {
    background-color: var(--erp-primary) !important;
    border-color: var(--erp-primary) !important;
}

body input[type="checkbox"]:focus,
body .form-check-input:focus,
body .custom-control-input:focus~.custom-control-label::before {
    border-color: var(--erp-primary-light) !important;
    box-shadow: 0 0 0 0.25rem var(--erp-primary-soft) !important;
}


/* ═══════════════════════════════════════════════════════════════
   TOPBAR — Tamamen gizle, erişimler sidebar'a taşındı
   ═══════════════════════════════════════════════════════════════ */

.lpx-topbar-container,
.lpx-topbar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.lpx-content-container {
    padding-top: 34px !important;
    margin-top: 0 !important;
}

.lpx-wrapper .lpx-content-container,
.lpx-wrapper>.lpx-content-container {
    top: 0 !important;
}

.lpx-sidebar-container+.lpx-content-container,
.lpx-sidebar+.lpx-content-container {
    margin-top: 0 !important;
}


/* ─── Global Theme Overrides ─── */

.pagination .page-item.active .page-link {
    background-color: var(--erp-primary) !important;
    border-color: var(--erp-primary) !important;
    color: #fff !important;
    border-radius: var(--erp-radius-sm);
}

#ApplicationContainer .pagination .page-item .page-link:hover,
#ApplicationContainer .pagination .page-item .page-link:focus,
#ApplicationContainer .pagination .page-item .page-link:active,
.pagination .page-item .page-link:hover,
.pagination .page-item .page-link:focus,
.pagination .page-item .page-link:active,
.pagination .page-link:hover,
.pagination .page-link:focus,
.pagination .page-link:active {
    color: var(--erp-primary) !important;
    background: rgba(var(--erp-primary-rgb), 0.08) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

#ApplicationContainer .pagination .page-item.active .page-link:hover,
#ApplicationContainer .pagination .page-item.active .page-link:focus,
.pagination .page-item.active .page-link:hover,
.pagination .page-item.active .page-link:focus {
    color: #fff !important;
    background-color: var(--erp-primary-dark) !important;
    border-color: var(--erp-primary-dark) !important;
}

.progress-bar,
.progress .progress-bar,
.b-progress-bar,
[class*="progress-bar"] {
    background-color: var(--erp-primary) !important;
}

/* Global spinner → yeşil (temayla uyumlu) */
.spinner-border,
.spinner-grow,
[class*="spinner-border"],
[class*="spinner-grow"] {
    border-color: rgba(var(--erp-primary-rgb), 0.25) !important;
    border-right-color: var(--erp-primary) !important;
}

.spinner-grow,
[class*="spinner-grow"] {
    background-color: var(--erp-primary) !important;
}

/* Renkli (dolu) butonlardaki spinner → beyaz */
.btn-primary .spinner-border,
.btn-danger .spinner-border,
.btn-success .spinner-border,
.btn-warning .spinner-border,
.btn-info .spinner-border,
.erp-btn-save .spinner-border,
.erp-btn-delete .spinner-border {
    border-color: rgba(255, 255, 255, 0.35) !important;
    border-right-color: #ffffff !important;
}

.btn-primary .spinner-grow,
.btn-danger .spinner-grow,
.erp-btn-save .spinner-grow,
.erp-btn-delete .spinner-grow {
    background-color: #ffffff !important;
}


/* ═══════════════════════════════════════════════════════════════
   ERP PAGE LAYOUT
   ═══════════════════════════════════════════════════════════════ */

/* Container override for full width */
.lpx-content-container>.container {
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.erp-page-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
}

.erp-page-content-visible {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.erp-page-content-hidden {
    display: none;
}

.erp-page-header {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.08) 120px, transparent 121px),
        radial-gradient(circle at 30% 100%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 70px, transparent 71px),
        var(--erp-gradient);
    border-radius: var(--erp-radius-md);
    padding: 16px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.erp-page-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.erp-page-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.erp-page-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.erp-page-subtitle {
    margin: 1px 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.erp-page-header-actions {
    position: relative;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 8px;
}

.erp-btn-add {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--erp-primary) !important;
    border: none !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: var(--erp-radius-sm) !important;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.erp-btn-add:hover {
    background: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}



/* ═══════════════════════════════════════════════════════════════
   TABLE CARD
   ═══════════════════════════════════════════════════════════════ */

.erp-table-card {
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-md);
    box-shadow: var(--erp-shadow-md);
    overflow: visible;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.erp-table-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--erp-border-light);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.erp-table-topline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--erp-text-primary);
    letter-spacing: 0.01em;
}

.erp-table-topline-subtitle {
    font-size: 0.8rem;
    color: var(--erp-text-secondary);
    font-weight: 600;
}

.erp-topline-count {
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--erp-text-muted);
    background: rgba(var(--erp-primary-rgb), 0.08);
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 6px;
    letter-spacing: 0.02em;
}

/* DataGrid wrapper */
.erp-table-card .erp-datagrid {
    border-radius: 0 0 var(--erp-radius-md) var(--erp-radius-md);
}

.erp-table-toolbar {
    display: flex;
    align-items: flex-start;
    padding: 10px 16px;
    border-bottom: 1px solid var(--erp-border-light);
    gap: 10px;
    background: #fff;
    position: relative;
    z-index: 20;
}

.erp-filter-icon-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 36px;
    border-radius: 8px;
    background: var(--erp-primary-light, rgba(47, 172, 102, 0.08));
    color: var(--erp-primary, #2FAC66);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.erp-filter-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.erp-search-box {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 300px;
}

.erp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--erp-text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.erp-search-input {
    width: 100%;
    padding: 9px 36px 9px 40px;
    border: 1.5px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    font-size: 0.84rem;
    color: var(--erp-text-primary);
    background: var(--erp-surface);
    outline: none;
    transition: all 0.2s ease;
}

.erp-search-input::placeholder {
    color: var(--erp-text-muted);
}

.erp-search-input:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.1);
}

.erp-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--erp-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.erp-search-clear:hover {
    color: var(--erp-text-primary);
    background: var(--erp-primary-light);
}

/* ─── Modern Filter Toolbar ─── */
.erp-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--erp-border-light);
    background: #fff;
}

.erp-filter-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.erp-filter-chip {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.erp-filter-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--erp-text-muted);
    margin: 0;
    line-height: 1;
}

.erp-filter-select {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    height: 36px;
    font-size: 0.83rem;
    font-family: inherit;
    padding: 0 8px 0 10px;
    border: 1.5px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    color: var(--erp-text-primary);
    background-color: var(--erp-surface);
    transition: border-color 0.18s, box-shadow 0.18s;
    cursor: pointer;
    width: auto;
    outline: none;
}

.erp-filter-select:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.1);
    outline: none;
}

.erp-filter-select option {
    color: var(--erp-text-primary);
    background-color: #fff;
}

.erp-filter-input {
    height: 36px;
    font-size: 0.83rem;
    padding: 0 8px 0 10px;
    border: 1.5px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    color: var(--erp-text-primary);
    background-color: var(--erp-surface);
    transition: border-color 0.18s, box-shadow 0.18s;
    width: auto;
    min-width: 140px;
}

.erp-filter-input:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.1);
    outline: none;
}

/* Unified search bar with embedded action button */
.erp-filter-search-group {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 420px;
    background: var(--erp-surface);
    border: 1.5px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.erp-filter-search-group:focus-within {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.10);
}

.erp-filter-search-icon,
.erp-filter-search-spinner {
    position: absolute;
    left: 12px;
    color: var(--erp-text-muted);
    font-size: 0.82rem;
    pointer-events: none;
    transition: color 0.2s;
}

.erp-filter-search-spinner {
    color: var(--erp-primary);
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.erp-filter-search-group:focus-within .erp-filter-search-icon {
    color: var(--erp-primary);
}

.erp-filter-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 9px 12px 9px 34px;
    font-size: 0.84rem;
    color: var(--erp-text-primary);
    min-width: 0;
}

.erp-filter-search-input::placeholder {
    color: var(--erp-text-muted);
}

@media (max-width: 768px) {
    .erp-filter-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .erp-filter-chips {
        width: 100%;
    }

    .erp-filter-chip {
        flex: 1;
    }

    .erp-filter-select {
        width: 100%;
    }

    .erp-filter-search-group {
        max-width: 100%;
    }
}

.erp-table-meta {
    display: flex;
    align-items: center;
}

.erp-record-count {
    font-size: 0.8rem;
    color: var(--erp-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.erp-grid-wrapper {
    position: relative;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Tablo dar ekranda taşsın, yatay scroll çıksın */
.erp-grid-wrapper .erp-datagrid,
.erp-grid-wrapper .table-responsive {
    overflow-x: visible !important;
    max-width: none !important;
}

.erp-grid-wrapper .erp-datagrid table {
    min-width: 900px;
}

.erp-grid-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(2px);
    z-index: 5;
    pointer-events: none;
}

.erp-grid-loading-spinner {
    width: 2.2rem;
    height: 2.2rem;
    border-width: 0.26em;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}


/* ─── DataGrid ─── */

.erp-datagrid {
    background: var(--erp-surface) !important;
}

.erp-datagrid table {
    font-size: 0.75rem;
    margin-bottom: 0;
    background: var(--erp-surface) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.erp-datagrid table thead th {
    background: #f7f9fb !important;
    color: var(--erp-text-secondary) !important;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 10px !important;
    border-bottom: 1px solid var(--erp-border) !important;
    border-top: none !important;
    line-height: 1.15;
}

.erp-datagrid table tbody tr {
    cursor: default !important;
    line-height: 1.2;
    height: auto !important;
    min-height: 0 !important;
}

.erp-datagrid table tbody td {
    padding: 2px 10px !important;
    height: 1px !important;
    min-height: 0 !important;
    vertical-align: middle;
    border-bottom: 1px solid var(--erp-border-light) !important;
    background: var(--erp-surface) !important;
    color: var(--erp-text-primary) !important;
    transition: background 0.15s ease;
    user-select: none;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Blazorise/Bootstrap default hücre padding ve satır yüksekliğini ez */
.erp-datagrid .table> :not(caption)>*>* {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.2 !important;
}

/* Blazorise default: .b-table.table tbody th/td padding override (global) */
.erp-datagrid.b-table.table tbody th,
.erp-datagrid.b-table.table tbody td,
.erp-datagrid table.b-table.table tbody th,
.erp-datagrid table.b-table.table tbody td,
.erp-datagrid .b-table.table tbody th,
.erp-datagrid .b-table.table tbody td {
    padding: 2px 10px !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

/* Hücre içi butonların row yüksekliğini artırmasını engelle */
.erp-datagrid table tbody td .btn {
    min-height: 0 !important;
    line-height: 1 !important;
}

.erp-datagrid table tbody tr:hover td {
    background: var(--erp-surface-hover) !important;
}

.erp-datagrid table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Satır seçim highlight'ını tamamen kapat */
.erp-datagrid table tbody tr.selected td,
.erp-datagrid table tbody tr.table-active td,
.erp-datagrid table tbody tr.table-primary td,
.erp-datagrid table tbody tr[class*="selected"] td,
.erp-datagrid table tbody tr[class*="active"] td {
    background: var(--erp-surface) !important;
    color: var(--erp-text-primary) !important;
    box-shadow: none !important;
    outline: none !important;
}

.erp-datagrid table tbody tr.selected:hover td,
.erp-datagrid table tbody tr.table-active:hover td,
.erp-datagrid table tbody tr[class*="selected"]:hover td {
    background: var(--erp-surface-hover) !important;
}

.erp-datagrid table tbody tr {
    outline: none !important;
}

.erp-datagrid table tbody tr:focus td,
.erp-datagrid table tbody tr:focus-within td {
    background: var(--erp-surface) !important;
    outline: none !important;
    box-shadow: none !important;
}

.erp-datagrid .pagination,
.erp-datagrid .table-responsive+div,
.erp-datagrid [class*="flex"][class*="justify"] {
    background: var(--erp-surface) !important;
    border-top: 1px solid var(--erp-border-light);
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.erp-datagrid .pagination {
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
}

.erp-datagrid .page-item {
    flex-shrink: 0;
}

.erp-datagrid .page-link {
    color: var(--erp-text-secondary) !important;
    background: var(--erp-surface) !important;
    border-color: var(--erp-border) !important;
    border-radius: var(--erp-radius-sm) !important;
    font-size: 0.8rem;
    padding: 5px 10px;
    min-width: 32px;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.erp-datagrid .page-link:hover {
    background: var(--erp-primary-light) !important;
    color: var(--erp-primary) !important;
    border-color: rgba(var(--erp-primary-rgb), 0.2) !important;
}

.erp-datagrid .page-item.active .page-link {
    background: var(--erp-primary) !important;
    border-color: var(--erp-primary) !important;
    color: #fff !important;
}

/* Pagination info text (x-y arası, z kayıt) */
.erp-datagrid .select-field,
.erp-datagrid small,
.erp-datagrid span.small,
.erp-datagrid [class*="pagination"]+span {
    font-size: 0.8rem;
    color: var(--erp-text-muted);
    white-space: nowrap;
}


/* ─── Brand Cell (Avatar + Name) ─── */

.erp-brand-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.erp-brand-avatar {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: var(--erp-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.erp-brand-name {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--erp-text-primary);
}


/* ─── Sticky actions column (dar ekranda aksiyonlar hep görünsün) ─── */

.erp-datagrid table thead th:last-child {
    position: sticky !important;
    right: 0 !important;
    z-index: 2 !important;
    min-width: 150px !important;
    width: 150px !important;
    max-width: 150px !important;
    background: #f7f9fb !important;
    border-left: 1px solid var(--erp-border) !important;
    box-shadow: -6px 0 10px rgba(0, 0, 0, 0.08) !important;
}

.erp-datagrid table tbody td:last-child {
    position: sticky !important;
    right: 0 !important;
    z-index: 1 !important;
    min-width: 150px !important;
    width: 150px !important;
    max-width: 150px !important;
    background: var(--erp-surface) !important;
    border-left: 1px solid var(--erp-border-light) !important;
    box-shadow: -6px 0 10px rgba(0, 0, 0, 0.06) !important;
}

.erp-datagrid table tbody tr:hover td:last-child {
    background: var(--erp-surface-hover) !important;
}


/* ─── Action Buttons ─── */

.erp-actions-cell {
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Sticky last column for action buttons */
.erp-datagrid table thead tr th:last-child,
.erp-datagrid table tbody tr td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
}

.erp-datagrid table thead tr th:last-child {
    background: var(--erp-surface, #fff);
}

.erp-datagrid table tbody tr td:last-child {
    background: var(--erp-surface, #fff);
}

.erp-datagrid table tbody tr:hover td:last-child {
    background: var(--erp-row-hover, #f8fafc);
}

.erp-datagrid table tbody tr td:last-child::before,
.erp-datagrid table thead tr th:last-child::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.04));
    pointer-events: none;
}

.erp-action-btn,
.erp-action-btn.btn,
.erp-action-btn.btn.btn-light {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid transparent !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.erp-action-edit,
.erp-action-edit.btn,
.erp-action-edit.btn.btn-light {
    color: var(--erp-primary) !important;
}

.erp-action-edit:hover,
.erp-action-edit.btn:hover {
    background: var(--erp-primary-light) !important;
    border-color: rgba(var(--erp-primary-rgb), 0.15) !important;
    color: var(--erp-primary-dark) !important;
    transform: translateY(-1px);
}

.erp-action-delete,
.erp-action-delete.btn,
.erp-action-delete.btn.btn-light {
    color: #ef4444 !important;
}

.erp-action-delete:hover,
.erp-action-delete.btn:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    transform: translateY(-1px);
}


/* ─── Empty State ─── */

.erp-empty-state {
    padding: 54px 24px;
    text-align: center;
}

.erp-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--erp-primary-light);
    color: var(--erp-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.erp-empty-title {
    font-weight: 600;
    color: var(--erp-text-primary);
    margin-bottom: 4px;
    font-size: 1rem;
}

.erp-empty-subtitle {
    color: var(--erp-text-muted);
    font-size: 0.84rem;
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}


/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */

.erp-modal .modal-content {
    border: none;
    border-radius: var(--erp-radius-lg) !important;
    box-shadow: var(--erp-shadow-lg), 0 0 0 1px rgba(0, 0, 0, .03);
    overflow: hidden;
}

.erp-modal-header {
    padding: 24px 28px 16px !important;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    gap: 14px;
}

.erp-modal-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.erp-modal-icon-create {
    background: var(--erp-primary-light);
    color: var(--erp-primary);
}

.erp-modal-icon-edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.erp-modal-icon-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.erp-modal-title {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--erp-text-primary);
    margin: 0;
}

.erp-modal-body {
    padding: 8px 28px 24px !important;
}

.erp-modal-footer {
    padding: 16px 28px 24px !important;
    border-top: none !important;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.erp-modal-header-delete {
    padding-bottom: 12px !important;
}


/* ─── Modal Fields ─── */

.erp-field {
    margin-bottom: 18px;
}

.erp-field:last-child {
    margin-bottom: 0;
}

.erp-field-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--erp-text-primary);
    margin-bottom: 8px;
}

.erp-field-input,
.erp-field .form-control,
.erp-field input.text-edit {
    border: 1.5px solid var(--erp-border) !important;
    border-radius: var(--erp-radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease;
    color: var(--erp-text-primary) !important;
}

.erp-field-input:focus,
.erp-field .form-control:focus,
.erp-field input.text-edit:focus {
    border-color: var(--erp-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.1) !important;
}

.form-select option:checked,
.form-select option:hover {
    background-color: var(--erp-primary) !important;
    color: white !important;
}


/* ─── Native Select Overrides (Forced) ─── */
select.form-select option,
select.erp-filter-select option {
    background-color: var(--erp-surface);
    color: var(--erp-text-primary);
}

select.form-select option:checked,
select.form-select option:hover,
select.form-select option:focus,
select.form-select option:active,
select.erp-filter-select option:checked,
select.erp-filter-select option:hover,
select.erp-filter-select option:focus,
select.erp-filter-select option:active {
    background: var(--erp-primary) linear-gradient(0deg, var(--erp-primary) 0%, var(--erp-primary) 100%) !important;
    background-color: var(--erp-primary) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 100px var(--erp-primary) !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ─── Custom Enum Dropdown ─── */

.erp-enum-dropdown {
    width: 100%;
}

.erp-enum-dropdown-toggle,
.erp-enum-dropdown-toggle.btn,
.erp-enum-dropdown-toggle.btn.btn-light {
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid var(--erp-border) !important;
    border-radius: var(--erp-radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    color: var(--erp-text-primary) !important;
    background-color: var(--erp-surface) !important;
    font-weight: 400 !important;
    text-align: left !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.erp-enum-dropdown-toggle:hover,
.erp-enum-dropdown-toggle.btn:hover {
    border-color: var(--erp-primary) !important;
    background-color: var(--erp-surface) !important;
}

.erp-enum-dropdown-toggle:focus,
.erp-enum-dropdown-toggle.btn:focus {
    border-color: var(--erp-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.18) !important;
    background-color: var(--erp-surface) !important;
    outline: none !important;
}

.erp-enum-dropdown-toggle:focus-visible,
.erp-enum-dropdown-toggle.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.28) !important;
}

.erp-enum-dropdown-toggle::after {
    border: none !important;
    content: '\f078' !important;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free' !important;
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--erp-text-muted);
    margin-left: auto;
    transition: transform 0.2s ease;
}

.erp-enum-dropdown.show .erp-enum-dropdown-toggle::after {
    transform: rotate(180deg);
}

.erp-enum-dropdown-menu,
.erp-enum-dropdown-menu.dropdown-menu {
    width: 100% !important;
    border: 1px solid var(--erp-border) !important;
    border-radius: var(--erp-radius-sm) !important;
    box-shadow: var(--erp-shadow-md) !important;
    padding: 4px !important;
    margin-top: 4px !important;
    max-height: 220px;
    overflow-y: auto;
}

.erp-searchable-dropdown-menu,
.erp-searchable-dropdown-menu.dropdown-menu {
    max-height: 280px;
    overflow-y: auto;
    padding-top: 0 !important;
}

.erp-enum-dropdown-item,
.erp-enum-dropdown-item.dropdown-item {
    border-radius: 6px !important;
    padding: 9px 14px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--erp-text-primary) !important;
    transition: all 0.15s ease !important;
    cursor: pointer;
}

.erp-enum-dropdown-item:hover,
.erp-enum-dropdown-item.dropdown-item:hover {
    background: var(--erp-primary-light) !important;
    color: var(--erp-primary) !important;
}

.erp-enum-dropdown-item.active,
.erp-enum-dropdown-item.dropdown-item.active {
    background: var(--erp-primary-soft) !important;
    color: var(--erp-primary) !important;
    font-weight: 600 !important;
}

.erp-enum-dropdown-item.active:hover,
.erp-enum-dropdown-item.dropdown-item.active:hover {
    background: var(--erp-primary-soft) !important;
    color: var(--erp-primary-dark) !important;
}


/* ─── Modal Buttons ─── */

.erp-btn-cancel {
    background: #f8f9fa !important;
    border: 1px solid var(--erp-border) !important;
    color: var(--erp-text-secondary) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    border-radius: var(--erp-radius-sm) !important;
    transition: all 0.2s ease;
}

.erp-btn-cancel:hover {
    background: #e9ecef !important;
    color: var(--erp-text-primary) !important;
}

.erp-btn-save {
    background: var(--erp-primary) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 24px !important;
    border-radius: var(--erp-radius-sm) !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(var(--erp-primary-rgb), 0.3);
}

.erp-btn-save:hover {
    background: var(--erp-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--erp-primary-rgb), 0.3);
}

.erp-btn-delete {
    background: #ef4444 !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 24px !important;
    border-radius: var(--erp-radius-sm) !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.erp-btn-delete:hover {
    background: #dc2626 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}


/* ─── Delete Confirm Modal ─── */

.erp-delete-modal .modal-content {
    border: none !important;
    border-radius: var(--erp-radius-lg) !important;
    box-shadow: 0 24px 72px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04) !important;
    overflow: hidden !important;
}

.erp-delete-modal-body {
    padding: 0 !important;
    text-align: center;
}

/* ─ Kırmızı gradient üst bant ─ */
.erp-delete-header-band {
    position: relative;
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 40%, #fca5a5 100%);
    padding: 40px 32px 28px;
    overflow: hidden;
    border-bottom: 1px solid rgba(239, 68, 68, 0.12);
}

.erp-delete-header-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.07);
    pointer-events: none;
}

.erp-delete-header-deco-1 {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -60px;
}

.erp-delete-header-deco-2 {
    width: 140px;
    height: 140px;
    bottom: -50px;
    left: -30px;
    background: rgba(239, 68, 68, 0.05);
}

.erp-delete-icon-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.erp-delete-icon-ring {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0.08);
    animation: erp-delete-ring-pulse 2.5s ease-in-out infinite;
}

.erp-delete-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 60%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45), 0 2px 8px rgba(239, 68, 68, 0.25);
    animation: erp-delete-icon-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes erp-delete-icon-in {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes erp-delete-ring-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0.08);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }
}

/* ─ İçerik alanı ─ */
.erp-delete-content {
    padding: 28px 36px 8px;
}

.erp-delete-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: #1a1a2e;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.erp-delete-message {
    color: var(--erp-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* ─ Ayraç çizgi ─ */
.erp-delete-divider {
    height: 1px;
    background: var(--erp-border-light);
    margin: 24px 32px 0;
}

/* ─ Butonlar ─ */
.erp-delete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 32px 28px;
}

.erp-delete-btn-cancel {
    min-width: 130px;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
}

.erp-delete-actions .erp-btn-delete {
    min-width: 150px;
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}

.erp-delete-actions .erp-btn-delete:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45) !important;
}


/* ═══════════════════════════════════════════════════════════════
   NOTIFICATIONS (Blazorise NotificationProvider) — Premium Toast
   ═══════════════════════════════════════════════════════════════ */

.b-notification-container {
    z-index: 9999 !important;
    padding: 16px !important;
}

.b-notification {
    --toast-accent: var(--erp-primary);
    --toast-accent-rgb: var(--erp-primary-rgb);
    --toast-bg: #ffffff;
    --toast-icon: '\f058';

    min-width: 360px;
    max-width: 420px;
    border: none !important;
    border-radius: 16px !important;
    background: var(--toast-bg) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 4px 12px rgba(0, 0, 0, .06),
        0 12px 36px rgba(0, 0, 0, .1),
        0 24px 60px rgba(0, 0, 0, .06) !important;
    overflow: hidden;
    position: relative;
    animation: erp-toast-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes erp-toast-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.94);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.b-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--toast-accent) 0%,
            rgba(var(--toast-accent-rgb), 0.6) 50%,
            rgba(var(--toast-accent-rgb), 0.2) 100%);
    animation: erp-toast-progress 4s linear forwards;
}

@keyframes erp-toast-progress {
    from {
        transform: scaleX(1);
        transform-origin: left;
    }

    to {
        transform: scaleX(0);
        transform-origin: left;
    }
}

.b-notification::after {
    content: var(--toast-icon);
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 18px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(var(--toast-accent-rgb), 0.1);
    color: var(--toast-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 36px;
    text-align: center;
}

.b-notification .notification {
    border-radius: 16px !important;
    padding: 18px 20px 18px 68px !important;
    background: transparent !important;
    border: none !important;
    color: var(--erp-text-primary) !important;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.b-notification .notification .delete {
    position: absolute;
    top: 16px;
    right: 14px;
    background: transparent !important;
    border-radius: 8px !important;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none !important;
    cursor: pointer;
    color: var(--erp-text-muted) !important;
    opacity: 0;
}

.b-notification:hover .notification .delete {
    opacity: 1;
}

.b-notification .notification .delete:hover {
    background: rgba(0, 0, 0, .06) !important;
    color: var(--erp-text-primary) !important;
}

.b-notification .notification .delete::before,
.b-notification .notification .delete::after {
    background-color: currentColor !important;
}


/* ─── Success ─── */

.b-notification:has(.is-success) {
    --toast-accent: #22c55e;
    --toast-accent-rgb: 34, 197, 94;
    --toast-icon: '\f058';
}

.b-notification .notification.is-success {
    background: transparent !important;
    border: none !important;
    color: var(--erp-text-primary) !important;
}


/* ─── Error / Danger ─── */

.b-notification:has(.is-danger) {
    --toast-accent: #ef4444;
    --toast-accent-rgb: 239, 68, 68;
    --toast-icon: '\f06a';
}

.b-notification .notification.is-danger {
    background: transparent !important;
    border: none !important;
    color: var(--erp-text-primary) !important;
}


/* ─── Warning ─── */

.b-notification:has(.is-warning) {
    --toast-accent: #f59e0b;
    --toast-accent-rgb: 245, 158, 11;
    --toast-icon: '\f071';
}

.b-notification .notification.is-warning {
    background: transparent !important;
    border: none !important;
    color: var(--erp-text-primary) !important;
}


/* ─── Info ─── */

.b-notification:has(.is-info) {
    --toast-accent: #3b82f6;
    --toast-accent-rgb: 59, 130, 246;
    --toast-icon: '\f05a';
}

.b-notification .notification.is-info {
    background: transparent !important;
    border: none !important;
    color: var(--erp-text-primary) !important;
}


/* ─── Notification Text ─── */

.b-notification .notification-title,
.b-notification .notification strong:first-child,
.b-notification .notification .media-content>strong {
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    display: block;
    margin-bottom: 2px;
    color: var(--erp-text-primary) !important;
    letter-spacing: -0.01em;
}

.b-notification .notification-body,
.b-notification .notification .media-content {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--erp-text-secondary) !important;
    padding-right: 24px;
}

.b-notification .notification .media-content p {
    margin: 0;
}


/* ─── Hover lift ─── */

.b-notification {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.b-notification:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 6px 16px rgba(0, 0, 0, .08),
        0 16px 48px rgba(0, 0, 0, .12),
        0 32px 72px rgba(0, 0, 0, .06) !important;
}


/* ─── Multiple toast spacing ─── */

.b-notification+.b-notification {
    margin-top: 8px;
}


/* ═══════════════════════════════════════════════════════════════
   BLAZORISE MESSAGE MODAL (fallback - alert/confirm diyalogları)
   ═══════════════════════════════════════════════════════════════ */

.b-message-confirm .modal-content,
.b-message-alert .modal-content {
    border: none !important;
    border-radius: var(--erp-radius-lg) !important;
    box-shadow: var(--erp-shadow-lg), 0 0 0 1px rgba(0, 0, 0, .03) !important;
    overflow: hidden;
}

.b-message-confirm .modal-header,
.b-message-alert .modal-header {
    padding: 20px 24px 12px !important;
    border-bottom: none !important;
}

.b-message-confirm .modal-title,
.b-message-alert .modal-title {
    font-weight: 700 !important;
    font-size: 1.05rem !important;
}

.b-message-confirm .modal-body,
.b-message-alert .modal-body {
    padding: 4px 24px 20px !important;
    font-size: 0.925rem;
    color: var(--erp-text-secondary);
    line-height: 1.6;
}

.b-message-confirm .modal-footer,
.b-message-alert .modal-footer {
    padding: 12px 24px 20px !important;
    border-top: none !important;
    gap: 8px;
}

.b-message-confirm .modal-footer .btn,
.b-message-alert .modal-footer .btn {
    border-radius: var(--erp-radius-sm) !important;
    padding: 8px 20px !important;
    font-weight: 600;
    font-size: 0.875rem;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* ─── Dropdown Search ─── */

.erp-dropdown-search-wrapper {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 8px 8px 6px;
    border-bottom: 1px solid var(--erp-border-light);
    display: flex;
    align-items: center;
    gap: 0;
}

.erp-dropdown-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--erp-text-muted);
    font-size: 0.75rem;
    pointer-events: none;
}

.erp-dropdown-search-input {
    width: 100%;
    padding: 7px 10px 7px 30px;
    border: 1.5px solid var(--erp-border);
    border-radius: 6px;
    font-size: 0.84rem;
    color: var(--erp-text-primary);
    background: var(--erp-surface);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.erp-dropdown-search-input::placeholder {
    color: var(--erp-text-muted);
}

.erp-dropdown-search-input:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 2px rgba(var(--erp-primary-rgb), 0.1);
}


/* ─── Field Validation Error ─── */

.erp-field-invalid,
.erp-field-invalid.btn,
.erp-field-invalid.btn.btn-light,
input.erp-field-invalid,
textarea.erp-field-invalid,
.erp-field-invalid.form-control,
.erp-field-invalid.text-edit {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

.erp-field-error-message {
    color: #dc3545 !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
    padding-left: 2px;
}

.erp-field-loading {
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--erp-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   TRANSFER COMPANIES — Filter Tabs
   ═══════════════════════════════════════════════════════════════ */

.erp-filter-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: var(--erp-radius-sm);
    padding: 3px;
}

.erp-vertical-separator {
    width: 2px;
    height: 24px;
    background-color: var(--erp-border);
    border-radius: 2px;
}

.erp-filter-tab {
    padding: 7px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--erp-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.erp-filter-tab:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--erp-text-primary);
}

.erp-filter-tab.active {
    background: #fff;
    color: var(--erp-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}


/* ─── Transfer Type Badges ─── */

.erp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.erp-badge-vehicle {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.erp-badge-cargo {
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
}


/* ─── Avatar Variants ─── */

.erp-avatar-vehicle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.erp-avatar-cargo {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
}


/* ─── Status Icons ─── */

.erp-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.erp-status-active {
    background: rgba(47, 172, 102, 0.1);
    color: var(--erp-primary);
}

.erp-status-inactive {
    background: rgba(148, 163, 184, 0.1);
    color: var(--erp-text-muted);
}


/* ─── User Count Badge ─── */

.erp-user-count-cell {
    display: flex;
    justify-content: center;
}

.erp-user-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.erp-badge-active-users {
    background: rgba(47, 172, 102, 0.1);
    color: var(--erp-primary);
}

.erp-badge-no-users {
    background: rgba(148, 163, 184, 0.08);
    color: var(--erp-text-muted);
}


/* ─── Manage Users Action Button ─── */

.erp-action-users,
.erp-action-users.btn,
.erp-action-users.btn.btn-light {
    color: #3b82f6 !important;
}

.erp-action-users:hover,
.erp-action-users.btn:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════
   TRANSFER COMPANIES — Create/Edit Modal: Type Selector
   ═══════════════════════════════════════════════════════════════ */

.erp-type-selector {
    display: flex;
    gap: 10px;
}

.erp-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 16px;
    border: 2px solid var(--erp-border);
    border-radius: var(--erp-radius-md);
    background: var(--erp-surface);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--erp-text-secondary);
}

.erp-type-btn:hover {
    border-color: rgba(var(--erp-primary-rgb), 0.3);
    background: var(--erp-primary-light);
    color: var(--erp-primary);
}

.erp-type-btn.selected {
    border-color: var(--erp-primary);
    background: var(--erp-primary-light);
    color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.1);
}

.erp-type-icon {
    font-size: 1.3rem;
}

.erp-type-display {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1.5px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--erp-text-secondary);
}


/* ─── API Settings Section ─── */

.erp-api-section {
    margin-top: 8px;
    border: 1.5px solid var(--erp-border);
    border-radius: var(--erp-radius-md);
    overflow: hidden;
}

.erp-api-section-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #f8fafc;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--erp-text-primary);
    border-bottom: 1px solid var(--erp-border-light);
}

.erp-api-toggle {
    display: flex;
    align-items: center;
}

.erp-api-fields {
    padding: 16px 18px;
}


/* ─── Checkbox override ─── */

.erp-check,
.erp-check input[type="checkbox"],
.erp-check .form-check-input {
    accent-color: var(--erp-primary) !important;
}

.erp-check .form-check-input:checked,
.form-check .erp-check .form-check-input:checked,
.erp-check.form-check .form-check-input:checked,
input.form-check-input.erp-check:checked {
    background-color: var(--erp-primary) !important;
    border-color: var(--erp-primary) !important;
}

.erp-check .form-check-input:focus,
.erp-check.form-check .form-check-input:focus {
    border-color: var(--erp-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.15) !important;
}

.form-check-input:checked {
    background-color: var(--erp-primary) !important;
    border-color: var(--erp-primary) !important;
}

.form-check-input:focus {
    border-color: var(--erp-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.15) !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--erp-primary) !important;
    border-color: var(--erp-primary) !important;
}


/* ─── Modal: User Management Icon ─── */

.erp-modal-icon-users {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.erp-modal-subtitle {
    font-size: 0.82rem;
    color: var(--erp-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.erp-user-mgmt-modal .erp-modal-header {
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--erp-border-light) !important;
}


/* ═══════════════════════════════════════════════════════════════
   TRANSFER COMPANIES — User Management Modal
   ═══════════════════════════════════════════════════════════════ */

.erp-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 24px;
    color: var(--erp-text-secondary);
    font-size: 0.9rem;
}

.erp-user-management-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.erp-user-panel {
    display: flex;
    flex-direction: column;
}

.erp-user-panel-assigned {
    border-right: 1px solid var(--erp-border-light);
}

.erp-user-panel-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--erp-text-primary);
    background: #f8fafc;
    border-bottom: 1px solid var(--erp-border-light);
}

.erp-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--erp-primary-soft);
    color: var(--erp-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.erp-user-panel-search {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid var(--erp-border-light);
    background: #fff;
}

.erp-search-icon-sm {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--erp-text-muted);
    font-size: 0.78rem;
    pointer-events: none;
}

.erp-search-input-sm {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1.5px solid var(--erp-border);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--erp-text-primary);
    background: var(--erp-surface);
    outline: none;
    transition: all 0.2s ease;
}

.erp-search-input-sm::placeholder {
    color: var(--erp-text-muted);
}

.erp-search-input-sm:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 2px rgba(var(--erp-primary-rgb), 0.1);
}

.erp-user-panel-body {
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
    padding: 8px;
}

.erp-user-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    text-align: center;
    color: var(--erp-text-muted);
    font-size: 0.85rem;
}

.erp-user-empty-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.erp-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--erp-radius-sm);
    transition: all 0.15s ease;
    position: relative;
}

.erp-user-row:hover {
    background: var(--erp-surface-hover);
}

.erp-user-row-inactive {
    opacity: 0.55;
}

.erp-user-row-inactive:hover {
    opacity: 0.8;
}

.erp-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.erp-avatar-active {
    background: var(--erp-gradient);
}

.erp-avatar-inactive {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.erp-avatar-available {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.erp-user-info {
    flex: 1;
    min-width: 0;
}

.erp-user-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--erp-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-user-username {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-user-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.erp-action-btn-sm,
.erp-action-btn-sm.btn {
    width: 28px;
    height: 28px;
    padding: 0 !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: all 0.15s ease;
}

.erp-action-btn-sm:hover {
    transform: translateY(-1px);
}

.erp-user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    position: absolute;
    right: 6px;
    top: 6px;
}

.dot-active {
    background: var(--erp-primary);
    box-shadow: 0 0 0 2px rgba(var(--erp-primary-rgb), 0.2);
}

.dot-inactive {
    background: #cbd5e1;
}

.erp-brand-sub {
    font-size: 0.78rem;
    line-height: 1.3;
    margin-top: 2px;
}

.erp-plate-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 3px;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: 'Courier New', monospace;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .erp-page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .erp-page-header-actions {
        width: 100%;
    }

    .erp-btn-add {
        width: 100%;
        justify-content: center;
    }

    .erp-table-toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .erp-search-box {
        max-width: 100%;
    }

    .erp-filter-tabs {
        width: 100%;
    }

    .erp-filter-tab {
        flex: 1;
        justify-content: center;
        font-size: 0.75rem;
        padding: 6px 8px;
    }

    .erp-type-selector {
        flex-direction: column;
    }

    .erp-user-management-grid {
        grid-template-columns: 1fr;
    }

    .erp-user-panel-assigned {
        border-right: none;
        border-bottom: 1px solid var(--erp-border-light);
    }

    .erp-user-panel-body {
        max-height: 250px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   SKELETON PAGE LOADING
   ═══════════════════════════════════════════════════════════════ */

@keyframes erp-skeleton-shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.erp-page-content-hidden {
    position: absolute;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    overflow: hidden;
}

.erp-page-content-visible {
    animation: erp-skeleton-fadein 0.3s ease;
}

@keyframes erp-skeleton-fadein {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.erp-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: erp-skeleton-shimmer 1.4s ease infinite;
}

.erp-page-skeleton {
    padding: 0;
}

.erp-skeleton-header {
    background: linear-gradient(135deg, var(--erp-primary) 0%, var(--erp-primary-dark) 100%);
    border-radius: var(--erp-radius-md);
    padding: 16px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.erp-skeleton-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.erp-skeleton-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
}

.erp-skeleton-header-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.erp-skeleton-header-lines .erp-skeleton-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 25%, rgba(255, 255, 255, 0.25) 37%, rgba(255, 255, 255, 0.15) 63%);
    background-size: 800px 100%;
    animation: erp-skeleton-shimmer 1.4s ease infinite;
}

.erp-skeleton-header-lines .erp-skeleton-line:first-child {
    width: 140px;
    height: 16px;
}

.erp-skeleton-header-lines .erp-skeleton-line:last-child {
    width: 200px;
    height: 10px;
}

.erp-skeleton-header-btn {
    width: 110px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.erp-skeleton-card {
    background: #fff;
    border-radius: var(--erp-radius-lg);
    border: 1px solid var(--erp-border-light);
    box-shadow: var(--erp-shadow-sm);
    overflow: hidden;
}

.erp-skeleton-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--erp-border-light);
}

.erp-skeleton-search {
    width: 220px;
    height: 36px;
    border-radius: 8px;
}

.erp-skeleton-filter {
    width: 100px;
    height: 14px;
    border-radius: 6px;
}

.erp-skeleton-table {
    padding: 0;
}

.erp-skeleton-table-header {
    display: flex;
    gap: 16px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--erp-border-light);
    background: var(--erp-surface);
}

.erp-skeleton-table-header .erp-skeleton-line {
    height: 10px;
    opacity: 0.6;
}

.erp-skeleton-table-row {
    display: flex;
    gap: 10px;
    padding: 3px 10px;
    border-bottom: 1px solid var(--erp-border-light);
    align-items: center;
}

.erp-skeleton-table-row:last-child {
    border-bottom: none;
}

.erp-skeleton-table-row .erp-skeleton-line {
    height: 10px;
}

.erp-skeleton-avatar {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: erp-skeleton-shimmer 1.4s ease infinite;
    flex-shrink: 0;
}

.erp-skeleton-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.erp-skeleton-action-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: erp-skeleton-shimmer 1.4s ease infinite;
}


/* ═══════════════════════════════════════════════════════════════
   INFINITE SCROLL
   ═══════════════════════════════════════════════════════════════ */

.erp-infinite-scroll-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.erp-scroll-sentinel {
    height: 1px;
    width: 100%;
}

.erp-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: var(--erp-primary);
}


/* ═══════════════════════════════════════════════════════════════
   IMAGE UPLOAD (ErpImageUpload)
   ═══════════════════════════════════════════════════════════════ */

.erp-image-upload {
    padding: 0;
}

.erp-image-upload-actions label {
    cursor: pointer;
    margin-bottom: 0;
}

.erp-image-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.erp-image-upload-item {
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    overflow: hidden;
    background: var(--erp-surface);
}

.erp-image-upload-thumb-wrap {
    position: relative;
    aspect-ratio: 1;
    background: var(--erp-border-light);
}

.erp-image-upload-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.erp-image-upload-main-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--erp-primary);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.erp-image-upload-item-actions {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    border-top: 1px solid var(--erp-border-light);
}

.erp-image-upload-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: var(--erp-text-secondary);
}


/* ═══════════════════════════════════════════════════════════════
   STOCK CARD DETAIL PAGE — Header & Summary
   ═══════════════════════════════════════════════════════════════ */

.erp-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.erp-detail-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.erp-detail-header-right {
    flex-shrink: 0;
}

.erp-detail-back-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--erp-radius-sm);
    border: 1px solid var(--erp-border);
    background: var(--erp-surface);
    color: var(--erp-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.erp-detail-back-btn:hover {
    background: var(--erp-border-light);
    color: var(--erp-text);
}

.erp-detail-header-info {
    min-width: 0;
}

.erp-detail-header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--erp-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-detail-header-subtitle {
    font-size: 0.85rem;
    color: var(--erp-text-secondary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.erp-summary-card {
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.erp-summary-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--erp-text-muted);
    font-weight: 500;
}

.erp-summary-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--erp-text);
    line-height: 1.3;
    word-break: break-all;
}

.erp-summary-number {
    font-size: 1.5rem;
    color: var(--erp-primary);
}

.erp-summary-price {
    color: #16a34a;
}

.erp-summary-muted {
    color: var(--erp-text-muted);
    font-weight: 400;
}

.erp-summary-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
}

.erp-summary-sub {
    font-size: 0.75rem;
    color: var(--erp-text-muted);
}


/* ═══════════════════════════════════════════════════════════════
   DETAIL TABS (shared: detail page + edit modal)
   ═══════════════════════════════════════════════════════════════ */

.erp-detail-tabs {
    border-bottom: 2px solid var(--erp-border);
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0 1rem;
}

.erp-detail-tabs .nav-item {
    margin: 0;
    padding: 0;
}

.erp-detail-tabs .nav-link {
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--erp-text-secondary);
    padding: 0.75rem 1.1rem;
    margin-bottom: -2px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.15s, border-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    outline: none;
    box-shadow: none !important;
}

.erp-detail-tabs .nav-link:hover {
    color: var(--erp-primary);
    background: none !important;
}

.erp-detail-tabs .nav-link:focus {
    box-shadow: none !important;
    outline: none !important;
}

.erp-detail-tabs .nav-link.active {
    color: var(--erp-primary) !important;
    border-bottom-color: var(--erp-primary) !important;
    background: none !important;
    font-weight: 600;
}

.erp-detail-tabs .nav-link .fa,
.erp-detail-tabs .nav-link .fas {
    font-size: 0.85rem;
    opacity: 0.7;
}

.erp-detail-tabs .nav-link.active .fa,
.erp-detail-tabs .nav-link.active .fas {
    opacity: 1;
}

.erp-detail-tabs .badge {
    font-size: 0.65rem;
    padding: 0.15em 0.45em;
    vertical-align: middle;
    border-radius: 10px;
}


/* ═══════════════════════════════════════════════════════════════
   DETAIL GRID (field layout)
   ═══════════════════════════════════════════════════════════════ */

.erp-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.erp-detail-field {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--erp-border-light);
}

.erp-detail-field-wide {
    grid-column: 1 / -1;
}

.erp-detail-field-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--erp-text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.erp-detail-field-value {
    font-size: 0.92rem;
    color: var(--erp-text);
    word-break: break-word;
}

.erp-detail-field-desc {
    white-space: pre-wrap;
    color: var(--erp-text-secondary);
}

.erp-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.erp-price {
    font-weight: 600;
    color: #16a34a;
}

@media (max-width: 640px) {
    .erp-detail-grid {
        grid-template-columns: 1fr;
    }

    .erp-detail-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ═══════════════════════════════════════════════════════════════
   BARCODE SECTION
   ═══════════════════════════════════════════════════════════════ */

.erp-barcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.erp-barcode-print-area {
    padding: 2rem 2.5rem;
    border: 1px dashed var(--erp-border);
    border-radius: var(--erp-radius);
    background: #fff;
    text-align: center;
    min-width: 280px;
    max-width: 400px;
}

.erp-barcode-svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.erp-barcode-label {
    font-size: 0.88rem;
    margin-top: 0.75rem;
}

.erp-barcode-label-code {
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.erp-barcode-label-name {
    color: var(--erp-text-secondary);
    margin-top: 2px;
    font-size: 0.85rem;
}

.erp-barcode-label-price {
    margin-top: 6px;
    font-weight: 700;
    color: #16a34a;
    font-size: 1.1rem;
}

.erp-print-barcode-btn {
    border-radius: var(--erp-radius-sm);
}


/* ═══════════════════════════════════════════════════════════════
   BARCODE CELL (list)
   ═══════════════════════════════════════════════════════════════ */

.erp-barcode-cell {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    color: var(--erp-text-secondary);
}


/* ═══════════════════════════════════════════════════════════════
   MOVEMENT TABLE
   ═══════════════════════════════════════════════════════════════ */

.erp-movement-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--erp-text-muted);
    font-weight: 600;
    border-bottom: 2px solid var(--erp-border);
    padding: 0.5rem 0.75rem;
}

.erp-movement-table tbody td {
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--erp-border-light);
}

.erp-movement-table tbody tr:hover {
    background: rgba(var(--erp-primary-rgb), 0.03);
}

.erp-movement-badge {
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.erp-movement-badge-purchase {
    background: #10b981;
    color: #ffffff;
}

.erp-movement-badge-sale {
    background: #ef4444;
    color: #ffffff;
}

.erp-movement-badge-return {
    background: #f59e0b;
    color: #ffffff;
}

.erp-movement-badge-stockcount {
    background: #3b82f6;
    color: #ffffff;
}

.erp-qty-positive {
    color: #059669;
}

.erp-qty-negative {
    color: #dc2626;
}

/* ─── Direction Badges (Giriş/Çıkış/Nötr) ─── */
.erp-direction-badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.erp-direction-in {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.erp-direction-out {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.erp-direction-neutral {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ─── Modal Section Divider & Title ─── */

.erp-modal-section-divider {
    margin-top: 8px;
    margin-bottom: 4px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--erp-border-light);
}

.erp-modal-section-title {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--erp-text-muted);
    padding-bottom: 6px;
}

.erp-section-animate {
    animation: erpSectionFadeIn 0.25s ease-out;
}

@keyframes erpSectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ─── Price Addon (₺) ─── */

.erp-price-addon .input-group-text {
    background: var(--erp-bg-light, #f8f9fa);
    border: 1.5px solid var(--erp-border);
    border-right: none;
    border-radius: var(--erp-radius-sm) 0 0 var(--erp-radius-sm);
    font-weight: 600;
    color: var(--erp-text-muted);
    font-size: 0.9rem;
    padding: 0 12px;
}

.erp-price-addon .form-control,
.erp-price-addon .numeric-edit {
    border-radius: 0 var(--erp-radius-sm) var(--erp-radius-sm) 0 !important;
}

/* ─── ErpPriceInput ─── */
.erp-price-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    background: #fff;
    transition: all 0.15s ease;
    overflow: hidden;
}

.erp-price-input:hover {
    border-color: #cbd5e1;
}

.erp-price-input-focused {
    border-color: var(--erp-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.1);
}

.erp-price-input-currency {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 100%;
    min-height: 38px;
    background: #f8fafc;
    border-right: 1.5px solid var(--erp-border);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--erp-text-muted);
    user-select: none;
    flex-shrink: 0;
}

.erp-price-input-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--erp-text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 0;
}

.erp-price-input-field::placeholder {
    color: var(--erp-text-muted);
    font-weight: 400;
}

.erp-price-input-field::-webkit-outer-spin-button,
.erp-price-input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
   EDIT MODAL (Extra Large with tabs)
   ═══════════════════════════════════════════════════════════════ */

.erp-modal-edit-stock .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}


/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */

@media print {
    body * {
        visibility: hidden;
    }

    #erp-barcode-print-area,
    #erp-barcode-print-area * {
        visibility: visible;
    }

    #erp-barcode-print-area {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        border: none;
        padding: 1rem;
        box-shadow: none;
    }

    .erp-print-barcode-btn,
    .erp-barcode-section .mt-3 {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ROW ACTIONS (satır düzenle/sil butonları)
   ═══════════════════════════════════════════════════════════════ */

.erp-row-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.erp-row-action-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: var(--erp-bg-muted, #f4f6f8);
    color: var(--erp-text-secondary, #6c757d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.8rem;
}

.erp-row-action-btn:hover {
    background: var(--erp-primary, #3b82f6);
    color: #fff;
    transform: scale(1.08);
}

.erp-row-action-btn.erp-row-action-delete:hover {
    background: #ef4444;
    color: #fff;
}

.erp-sticky-action-col {
    position: sticky;
    right: 0;
    background: #fff;
    z-index: 2;
    text-align: center;
}

/* Delete confirmation summary */
.erp-delete-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.erp-delete-summary strong {
    color: var(--erp-text-primary, #1e293b);
    margin-right: 4px;
}

/* Delete header variant */
.erp-modal-header-delete {
    border-bottom-color: #fecaca;
}

.erp-modal-icon-delete {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

.erp-btn-delete {
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
}

/* ─── Filter action buttons ─── */
.erp-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-bottom: 1px;
}

.erp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--erp-radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    height: 38px;
    line-height: 1;
}

.erp-filter-btn-primary {
    background: var(--erp-primary);
    color: #fff;
    border-color: var(--erp-primary);
}

.erp-filter-btn-primary:hover {
    background: var(--erp-primary);
    filter: brightness(0.94);
    box-shadow: 0 2px 6px rgba(var(--erp-primary-rgb), 0.18);
}

.erp-filter-btn-primary:focus,
.erp-filter-btn-primary:focus-visible {
    outline: none;
    background: var(--erp-primary);
    filter: none;
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.15);
}

.erp-filter-btn-light {
    background: #f8fafc;
    color: var(--erp-text-secondary);
    border-color: var(--erp-border);
}

.erp-filter-btn-light:hover {
    background: #f1f5f9;
    color: var(--erp-text-primary);
    border-color: #cbd5e1;
}

.erp-filter-btn .fa,
.erp-filter-btn .fas {
    font-size: 0.72rem;
}

/* ─── Date Range Picker ─── */
.erp-daterange {
    position: relative;
    display: inline-flex;
}

.erp-daterange-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 38px !important;
    border: 1.5px solid var(--erp-border) !important;
    border-radius: var(--erp-radius-sm);
    background: #f8fafc !important; /* Match SuperSelect bg-light */
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--erp-text-primary);
    transition: all 0.15s ease;
    white-space: nowrap;
    min-width: 180px;
}

.erp-daterange-trigger:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.erp-daterange-open .erp-daterange-trigger {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.1);
}

.erp-daterange-icon {
    color: var(--erp-primary);
    font-size: 0.82rem;
}

.erp-daterange-label {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-daterange-arrow {
    font-size: 0.65rem;
    color: var(--erp-text-muted);
    transition: transform 0.2s ease;
}

.erp-daterange-open .erp-daterange-arrow {
    transform: rotate(180deg);
}

.erp-daterange-clear-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: var(--erp-text-secondary);
    cursor: pointer;
    font-size: 0.6rem;
    padding: 0;
    transition: all 0.15s;
}

.erp-daterange-clear-x:hover {
    background: #ef4444;
    color: #fff;
}

.erp-daterange-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.erp-daterange-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid var(--erp-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    min-width: 300px;
    animation: erpDaterangeSlideIn 0.15s ease;
    overflow: hidden;
}

@keyframes erpDaterangeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.erp-daterange-presets {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 2px;
}

.erp-daterange-preset {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--erp-text-secondary);
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: left;
}

.erp-daterange-preset:hover {
    background: #f1f5f9;
    color: var(--erp-text-primary);
}

.erp-daterange-preset.active {
    background: rgba(var(--erp-primary-rgb), 0.08);
    color: var(--erp-primary);
    font-weight: 600;
}

.erp-daterange-preset .fa,
.erp-daterange-preset .fas {
    width: 16px;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.7;
}

.erp-daterange-preset.active .fa,
.erp-daterange-preset.active .fas {
    opacity: 1;
}

.erp-daterange-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0 12px;
}

.erp-daterange-custom {
    padding: 12px;
}

.erp-daterange-custom-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--erp-text-muted);
    margin-bottom: 8px;
}

.erp-daterange-inputs {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.erp-daterange-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.erp-daterange-field label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--erp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.erp-daterange-input {
    height: 34px;
    padding: 0 8px;
    border: 1.5px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    font-size: 0.8rem;
    color: var(--erp-text-primary);
    background: #fff;
    transition: border-color 0.15s;
    width: 100%;
}

.erp-daterange-input:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 2px rgba(var(--erp-primary-rgb), 0.1);
    outline: none;
}

.erp-daterange-separator {
    color: var(--erp-text-muted);
    font-size: 0.9rem;
    padding-bottom: 6px;
}

.erp-daterange-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: var(--erp-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.erp-daterange-apply:hover {
    background: var(--erp-primary-hover, #2563eb);
    box-shadow: 0 2px 8px rgba(var(--erp-primary-rgb), 0.3);
}

@media (max-width: 768px) {
    .erp-daterange-dropdown {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        min-width: auto;
        border-radius: 16px;
    }

    .erp-daterange-trigger {
        min-width: 140px;
    }

    .erp-filter-actions {
        width: 100%;
    }

    .erp-filter-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Detail page movement toolbar */
.erp-detail-movement-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .erp-detail-movement-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .erp-detail-movement-toolbar .erp-btn-add {
        width: 100%;
        justify-content: center;
    }
}

/* ─── Excel Export Button ─── */
.erp-btn-export {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #15803d !important;
    border: none !important;
    font-weight: 600;
    padding: 7px 14px !important;
    height: 36px;
    border-radius: var(--erp-radius-sm) !important;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    white-space: nowrap;
}

.erp-btn-export:hover {
    background: #fff !important;
    color: #15803d !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.erp-btn-export:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(21, 128, 61, 0.15);
}

.erp-btn-export:focus,
.erp-btn-export:focus-visible,
.erp-btn-export.show,
.erp-btn-export:not(:disabled):not(.disabled):active,
.erp-btn-export:not(:disabled):not(.disabled).active,
.show>.erp-btn-export.dropdown-toggle {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #15803d !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1) !important;
    outline: none !important;
}

.erp-btn-export span,
.erp-btn-export i {
    color: inherit;
    font-size: 0.9rem;
}

/* Export dropdown menu styling */
.erp-page-header-actions .dropdown-menu {
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
    min-width: 200px;
    z-index: 1060;
}

.erp-page-header-actions .dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--erp-text);
    transition: background 0.15s ease;
}

.erp-page-header-actions .dropdown-item:hover {
    background: var(--erp-hover);
}

.erp-page-header-actions .dropdown-item span {
    color: var(--erp-primary);
}

/* ─── Excel Export Modal ─── */
.erp-export-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.erp-export-modal .modal-dialog {
    max-width: 400px;
}

.erp-export-modal-body {
    padding: 0 !important;
    text-align: center;
}

/* Hero section */
.erp-export-hero {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #0d5a2d 0%, #15803d 30%, #22c55e 70%, #4ade80 100%);
    overflow: hidden;
    transition: background 0.5s;
}

.erp-export-hero-success {
    background: linear-gradient(135deg, #064e3b 0%, #059669 30%, #10b981 70%, #34d399 100%);
}

.erp-export-hero-error {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 30%, #ef4444 70%, #f87171 100%);
}

.erp-export-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Floating particles */
.erp-export-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.erp-export-particle-1 {
    width: 120px;
    height: 120px;
    top: -30px;
    right: -20px;
    animation: erpFloat 6s ease-in-out infinite;
}

.erp-export-particle-2 {
    width: 60px;
    height: 60px;
    bottom: -10px;
    left: 30px;
    animation: erpFloat 8s ease-in-out infinite reverse;
}

.erp-export-particle-3 {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20%;
    animation: erpFloat 5s ease-in-out 1s infinite;
}

.erp-export-particle-4 {
    width: 80px;
    height: 80px;
    bottom: 10px;
    right: 15%;
    background: rgba(255, 255, 255, 0.05);
    animation: erpFloat 7s ease-in-out 0.5s infinite reverse;
}

.erp-export-particle-5 {
    width: 24px;
    height: 24px;
    top: 40%;
    left: 60%;
    animation: erpFloat 4s ease-in-out 2s infinite;
}

@keyframes erpFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(8px, -12px) scale(1.05);
    }

    66% {
        transform: translate(-6px, 6px) scale(0.95);
    }
}

/* Icon container */
.erp-export-icon-container {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.erp-export-icon-outer {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 4px rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.4s;
}

.erp-export-icon-spinning {
    animation: erpRingSpin 3s linear infinite;
    box-shadow: 0 8px 32px rgba(21, 128, 61, 0.25), 0 0 0 4px rgba(34, 197, 94, 0.15);
}

@keyframes erpRingSpin {
    0% {
        box-shadow: 0 8px 32px rgba(21, 128, 61, 0.25), 0 0 0 4px rgba(34, 197, 94, 0.15);
    }

    50% {
        box-shadow: 0 8px 32px rgba(21, 128, 61, 0.4), 0 0 0 6px rgba(34, 197, 94, 0.25);
    }

    100% {
        box-shadow: 0 8px 32px rgba(21, 128, 61, 0.25), 0 0 0 4px rgba(34, 197, 94, 0.15);
    }
}

.erp-export-icon-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #15803d, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-export-hero-error .erp-export-icon-inner {
    background: linear-gradient(145deg, #b91c1c, #ef4444);
}

.erp-export-hero-success .erp-export-icon-inner {
    background: linear-gradient(145deg, #047857, #10b981);
}

.erp-export-icon-bounce {
    animation: erpIconBounce 2s ease-in-out infinite;
}

.erp-export-icon-pop {
    animation: erpIconPop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes erpIconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@keyframes erpIconPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Body content */
.erp-export-body-content {
    padding: 48px 32px 32px;
}

.erp-export-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--erp-text-primary, #0f172a);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.erp-export-title-success {
    color: #047857;
}

.erp-export-title-error {
    color: #b91c1c;
}

.erp-export-subtitle {
    font-size: 0.85rem;
    color: var(--erp-text-secondary, #64748b);
    margin-bottom: 0;
    line-height: 1.6;
}

.erp-export-subtitle-success {
    color: #059669;
    font-weight: 500;
    font-size: 0.8rem;
    background: #f0fdf4;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
    margin-top: 4px;
}

/* Loader */
.erp-export-loader {
    margin-top: 24px;
}

.erp-export-loader-track {
    height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.erp-export-loader-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #22c55e, #4ade80, #22c55e);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: erpLoaderSlide 2s ease-in-out infinite, erpLoaderShimmer 1.5s ease infinite;
}

@keyframes erpLoaderSlide {
    0% {
        width: 15%;
        margin-left: 0;
    }

    50% {
        width: 50%;
        margin-left: 25%;
    }

    100% {
        width: 15%;
        margin-left: 85%;
    }
}

@keyframes erpLoaderShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.erp-export-loader-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.erp-export-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: erpDotPulse 1.4s ease-in-out infinite;
}

.erp-export-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.erp-export-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes erpDotPulse {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
        background: #22c55e;
    }
}

/* Error actions */
.erp-export-error-actions {
    margin-top: 20px;
}

.erp-export-close-btn {
    padding: 8px 28px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.erp-export-close-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ─── DATAGRID TABLE HEADERS PROMINENCE ─── */
.erp-datagrid table thead th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #94a3b8 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.erp-datagrid table thead th span {
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* ─── FILTER TOOLBAR ALIGNMENT FIX ─── */
.erp-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.erp-filter-chip {
    display: flex;
    flex-direction: column;
}

.erp-filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* ─── BLAZORISE BANNER FIX ─── */
#blazorise-license-banner-host {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ─── PROFESSIONAL FORM VALIDATION ─── */
@keyframes erpShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid,
.erp-field-invalid {
    border-color: #f59e0b !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus,
.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.erp-field-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25) !important;
    border-color: #d97706 !important;
    background-color: #fff !important;
    background-image: none !important;
}

/* ─── VALIDATION: Error text below input ─── */
.erp-input-wrapper {
    position: relative;
}

/* Show Blazorise's invalid-feedback as styled error text below the field */
.invalid-feedback {
    display: block !important;
    color: #dc3545 !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
    padding-left: 2px;
}

/* Hide feedback when there's no error (Blazorise may still render the element) */
.valid-feedback,
.validation-message:empty {
    display: none !important;
}

/* ─── THEME PRIMARY BUTTON CORRECTIONS ─── */
.btn-primary,
.lpx-btn-primary {
    background-color: var(--erp-primary) !important;
    border-color: var(--erp-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.lpx-btn-primary:hover,
.btn-primary:focus,
.lpx-btn-primary:focus {
    background-color: var(--erp-primary-dark) !important;
    border-color: var(--erp-primary-dark) !important;
    color: #fff !important;
}


/* ═══════════════════════════════════════════════════════════════
   ORDER CREATE/EDIT PAGE — Premium UI/UX
   ═══════════════════════════════════════════════════════════════ */

/* ─── Section Card ─── */
.erp-order-section {
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-md);
    box-shadow: var(--erp-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.erp-order-section:hover {
    box-shadow: var(--erp-shadow-md);
    border-color: rgba(var(--erp-primary-rgb), 0.18);
}

/* Sol kenarda renkli accent şerit */
.erp-order-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: var(--erp-radius-md) 0 0 var(--erp-radius-md);
}

.erp-order-section.accent-green::before {
    background: var(--erp-gradient);
}

.erp-order-section.accent-blue::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.erp-order-section.accent-orange::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.erp-order-section.accent-purple::before {
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
}


/* ─── Section Header ─── */
.erp-order-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--erp-border-light);
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.erp-order-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.erp-order-section-icon.icon-green {
    background: rgba(var(--erp-primary-rgb), 0.10);
    color: var(--erp-primary);
}

.erp-order-section-icon.icon-blue {
    background: rgba(59, 130, 246, 0.10);
    color: #3b82f6;
}

.erp-order-section-icon.icon-orange {
    background: rgba(245, 158, 11, 0.10);
    color: #d97706;
}

.erp-order-section-icon.icon-purple {
    background: rgba(139, 92, 246, 0.10);
    color: #7c3aed;
}

.erp-order-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--erp-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.erp-order-section-subtitle {
    font-size: 0.75rem;
    color: var(--erp-text-muted);
    margin: 1px 0 0;
    font-weight: 400;
}


/* ─── Section Body ─── */
.erp-order-section-body {
    padding: 18px 20px 14px;
}

/* Kompakt form alan satırları */
.erp-order-section-body .row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 0;
}

.erp-order-section-body .col-md-6 {
    margin-bottom: 12px;
}

.erp-order-section-body .col-md-12 {
    margin-bottom: 12px;
}

/* Form label — küçük, bold, uppercase */
.erp-order-section-body .erp-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--erp-text-muted);
    margin-bottom: 5px;
}

/* Zorunlu alan göstergesi */
.erp-required-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
    margin-left: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Form input override — daha kompakt */
.erp-order-section-body .erp-field-input,
.erp-order-section-body .form-control,
.erp-order-section-body input.text-edit,
.erp-order-section-body textarea.form-control {
    padding: 8px 12px !important;
    font-size: 0.84rem !important;
    border: 1.5px solid var(--erp-border) !important;
    border-radius: var(--erp-radius-sm) !important;
    transition: all 0.2s ease;
}

.erp-order-section-body .erp-field-input:focus,
.erp-order-section-body .form-control:focus,
.erp-order-section-body input.text-edit:focus,
.erp-order-section-body textarea.form-control:focus {
    border-color: var(--erp-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--erp-primary-rgb), 0.08) !important;
}


/* ═══════════════════════════════════════════════════════════════
   ORDER ITEMS TABLE — Modernize
   ═══════════════════════════════════════════════════════════════ */

.erp-order-items-card {
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-md);
    box-shadow: var(--erp-shadow-sm);
    overflow: hidden;
    position: relative;
}

.erp-order-items-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-radius: var(--erp-radius-md) 0 0 var(--erp-radius-md);
}

.erp-order-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--erp-border-light);
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.erp-order-items-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.erp-order-items-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--erp-text-muted);
    background: rgba(var(--erp-primary-rgb), 0.08);
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.erp-btn-add-line {
    background: var(--erp-primary) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
    padding: 7px 16px !important;
    border-radius: var(--erp-radius-sm) !important;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(var(--erp-primary-rgb), 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.erp-btn-add-line:hover {
    background: var(--erp-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--erp-primary-rgb), 0.3);
}

/* Detay tablosu */
.erp-detail-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0;
    font-size: 0.78rem;
}

.erp-detail-table thead th {
    background: #f7f9fb !important;
    color: var(--erp-text-secondary) !important;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 10px !important;
    border-bottom: 2px solid var(--erp-border) !important;
    border-top: none !important;
    white-space: nowrap;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 2;
}

.erp-detail-table tbody td {
    padding: 6px 8px !important;
    vertical-align: middle;
    border-bottom: 1px solid var(--erp-border-light) !important;
    color: var(--erp-text-primary);
    font-size: 0.78rem;
}

/* Zebra striping */
.erp-detail-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.erp-detail-table tbody tr:hover td {
    background: rgba(var(--erp-primary-rgb), 0.04) !important;
}

.erp-detail-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Tablo içi inputlar — ultracompact */
.erp-detail-table .form-control,
.erp-detail-table .form-select,
.erp-detail-table input.text-edit,
.erp-detail-table select {
    padding: 4px 8px !important;
    font-size: 0.78rem !important;
    border: 1px solid var(--erp-border) !important;
    border-radius: 6px !important;
    min-height: 0 !important;
    height: 30px !important;
}

.erp-detail-table .form-control:focus,
.erp-detail-table .form-select:focus,
.erp-detail-table input.text-edit:focus,
.erp-detail-table select:focus {
    border-color: var(--erp-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--erp-primary-rgb), 0.1) !important;
}

.erp-detail-table .input-group {
    flex-wrap: nowrap;
}

.erp-detail-table .input-group .btn {
    padding: 4px 8px !important;
    min-height: 0 !important;
    height: 30px !important;
    font-size: 0.72rem;
    border-radius: 0 6px 6px 0 !important;
}

/* Satır silme butonu */
.erp-line-delete-btn,
.erp-line-delete-btn.btn {
    width: 26px;
    height: 26px;
    padding: 0 !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease;
}

.erp-line-delete-btn:hover,
.erp-line-delete-btn.btn:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
    transform: scale(1.1);
}

/* Boş tablo durumu */
.erp-order-empty-row td {
    padding: 40px 20px !important;
    text-align: center;
}

.erp-order-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--erp-primary-light);
    color: var(--erp-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.erp-order-empty-text {
    font-size: 0.85rem;
    color: var(--erp-text-muted);
    font-weight: 500;
    margin: 0;
}

.erp-order-empty-hint {
    font-size: 0.75rem;
    color: var(--erp-text-muted);
    opacity: 0.7;
    margin: 4px 0 0;
}


/* ═══════════════════════════════════════════════════════════════
   ORDER SUMMARY — Premium Total Card
   ═══════════════════════════════════════════════════════════════ */

.erp-order-summary-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 16px 0;
}

.erp-order-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 100%);
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-md);
    padding: 0;
    min-width: 320px;
    max-width: 400px;
    box-shadow: var(--erp-shadow-md);
    overflow: hidden;
}

.erp-order-summary-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--erp-border-light);
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.erp-order-summary-header-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(var(--erp-primary-rgb), 0.10);
    color: var(--erp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.erp-order-summary-header-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--erp-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.erp-order-summary-body {
    padding: 14px 20px;
}

.erp-order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.84rem;
}

.erp-order-summary-label {
    color: var(--erp-text-secondary);
    font-weight: 500;
}

.erp-order-summary-value {
    font-weight: 600;
    color: var(--erp-text-primary);
    font-variant-numeric: tabular-nums;
}

.erp-order-summary-value.text-danger {
    color: #ef4444 !important;
}

.erp-order-summary-value.text-blue {
    color: #3b82f6 !important;
}

.erp-order-summary-divider {
    height: 1px;
    background: var(--erp-border);
    margin: 8px 0;
}

.erp-order-summary-grand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--erp-gradient);
    margin: 0;
}

.erp-order-summary-grand-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.erp-order-summary-grand-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}


/* ═══════════════════════════════════════════════════════════════
   TENDER TOGGLE — Modern Switch
   ═══════════════════════════════════════════════════════════════ */

.erp-order-tender-area {
    margin-top: 4px;
    padding: 14px 16px;
    background: #f8faf9;
    border: 1.5px solid var(--erp-border);
    border-radius: var(--erp-radius-sm);
    transition: all 0.25s ease;
}

.erp-order-tender-area.is-active {
    border-color: rgba(var(--erp-primary-rgb), 0.25);
    background: rgba(var(--erp-primary-rgb), 0.03);
}

.erp-order-tender-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.erp-order-tender-toggle .form-check-input {
    width: 38px !important;
    height: 20px !important;
    border-radius: 20px !important;
    border: 2px solid var(--erp-border) !important;
    background-color: #e2e8f0 !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.erp-order-tender-toggle .form-check-input::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.erp-order-tender-toggle .form-check-input:checked {
    background-color: var(--erp-primary) !important;
    border-color: var(--erp-primary) !important;
}

.erp-order-tender-toggle .form-check-input:checked::before {
    transform: translateX(18px);
}

.erp-order-tender-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--erp-text-primary);
}

.erp-order-tender-label-icon {
    font-size: 0.8rem;
    color: #f59e0b;
    margin-right: 4px;
}

.erp-order-tender-field {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--erp-border-light);
    animation: erp-tender-slide-in 0.3s ease;
}

@keyframes erp-tender-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ═══════════════════════════════════════════════════════════════
   ORDER PAGE — Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .erp-order-summary {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .erp-order-section-body {
        padding: 14px 16px 10px;
    }

    .erp-order-items-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .erp-order-summary-grand-value {
        font-size: 1.1rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   ORDER PAGE — Bottom Action Bar (for future irsaliye tabs)
   ═══════════════════════════════════════════════════════════════ */

.erp-order-bottom-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--erp-surface);
    border-top: 1px solid var(--erp-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    border-radius: 0 0 var(--erp-radius-md) var(--erp-radius-md);
}


/* ═══════════════════════════════════════════════════════════════
   ORDER STATUS BADGES
   ═══════════════════════════════════════════════════════════════ */

.erp-order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.4;
}

.erp-status-pending {
    background: rgba(245, 158, 11, 0.10);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.20);
}

.erp-status-order-pending {
    background: rgba(59, 130, 246, 0.10);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.20);
}

.erp-status-ordered {
    background: rgba(139, 92, 246, 0.10);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.20);
}

.erp-status-completed {
    background: rgba(var(--erp-primary-rgb), 0.10);
    color: var(--erp-primary);
    border: 1px solid rgba(var(--erp-primary-rgb), 0.20);
}

.erp-status-default {
    background: rgba(100, 116, 139, 0.10);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.20);
}

/* Process action button */
.erp-line-process-btn,
.erp-line-process-btn.btn {
    width: 26px;
    height: 26px;
    padding: 0 !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #3b82f6 !important;
    transition: all 0.2s ease;
}

.erp-line-process-btn:hover,
.erp-line-process-btn.btn:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
    color: #2563eb !important;
    transform: scale(1.1);
}

/* Stock code display muted */
.erp-stock-code-display {
    font-size: 0.72rem;
    color: var(--erp-text-muted);
    font-weight: 500;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

/* ═══ Numeric inputs (quantity, price, discount, vat) ═══ */
.erp-num-input {
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: var(--erp-text);
    -moz-appearance: textfield;
    appearance: textfield;
}

.erp-num-input::-webkit-inner-spin-button,
.erp-num-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.erp-num-input:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 2px rgba(var(--erp-primary-rgb), 0.12);
    outline: none;
}

.erp-num-input:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* ═══ Quantity +/- buttons ═══ */
.erp-qty-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.erp-qty-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--erp-text-muted);
    font-size: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.erp-qty-btn:hover:not(:disabled) {
    background: var(--erp-primary);
    border-color: var(--erp-primary);
    color: #fff;
    transform: scale(1.1);
}

.erp-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.erp-qty-input {
    width: 46px !important;
    min-width: 46px;
    padding: 3px 2px !important;
    text-align: center;
    flex: 0 0 auto;
}

/* ═══ Save button in page header — white border ═══ */
.erp-page-header .erp-btn-save {
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, #198754, #157347) !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.erp-page-header .erp-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Force Bootstrap 5 switch color when primary color is bleeding into it */
.form-switch .form-check-input:checked {
    background-color: var(--erp-primary);
    border-color: var(--erp-primary);
}

/* ═══ Blazorise Switch Success Color Override ═══ */
/* Targets all possible variations Blazorise might output for Color=Success */
.form-switch.custom-switch-success .form-check-input:checked,
.form-switch .form-check-input.bg-success:checked,
.form-switch .form-check-input.is-valid:checked,
.was-validated .form-switch .form-check-input:valid:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

/* Hard override for any switch inside Settings page that we want green */
.erp-table-card .form-switch .form-check-input:checked,
.erp-modal .form-switch .form-check-input:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

/* ─── ErpDatePicker ─── */
.erp-datepicker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 42px;
    transition: all 0.2s ease;
    overflow: hidden;
    cursor: pointer;
}

.erp-datepicker-wrapper:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

.erp-datepicker-wrapper.focused {
    background-color: #ffffff;
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.erp-datepicker-wrapper.erp-field-invalid {
    background-color: #ffffff !important;
    border-color: #f59e0b !important;
}

.erp-datepicker-wrapper.erp-field-invalid.focused {
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25) !important;
    border-color: #d97706 !important;
}

.erp-datepicker-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
}

.erp-datepicker-wrapper.focused .erp-datepicker-icon {
    color: var(--erp-primary);
}

.erp-datepicker-wrapper.erp-field-invalid .erp-datepicker-icon {
    color: #f59e0b;
}

.erp-datepicker-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 32px;
    font-size: 0.875rem;
    color: #1e293b;
    cursor: pointer;
    outline: none;
}

.erp-datepicker-input::placeholder {
    color: #94a3b8;
}

.erp-datepicker-clear {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 50%;
    transition: all 0.2s;
    cursor: pointer;
}

.erp-datepicker-clear:hover {
    background-color: #e2e8f0;
    color: #475569;
}

.erp-datepicker-native {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    border: none;
}

.erp-dropdown-item-highlighted {
    background-color: var(--erp-primary-light, #e9ecef) !important;
    color: var(--erp-primary, #0d6efd) !important;
}


/* ═══════════════════════════════════════════════════════════════
   REPAIR ASSIGNMENTS — Tab Bar
   ═══════════════════════════════════════════════════════════════ */

.erp-tab-bar {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: var(--erp-radius-sm);
    padding: 4px;
}

.erp-tab-item {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--erp-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.erp-tab-item:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--erp-text-primary);
}

.erp-tab-item.active {
    background: #fff;
    color: var(--erp-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.erp-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: rgba(var(--erp-primary-rgb), 0.15);
    color: var(--erp-primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.erp-tab-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.erp-supply-stock-info {
    background: #f8fafc;
    border: 1px solid var(--erp-border-light);
    border-radius: var(--erp-radius-md);
    padding: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   PURCHASE INVOICES — Plain HTML table & page-level components
   ═══════════════════════════════════════════════════════════════ */

/* ─── Table (raw HTML table, not Blazorise DataGrid) ─── */

.erp-table-container {
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.erp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    table-layout: auto;
}

.erp-table thead th {
    background: #f7f9fb;
    color: var(--erp-text-secondary);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    border-bottom: 1.5px solid var(--erp-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.erp-table tbody td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--erp-border-light);
    color: var(--erp-text-primary);
}

.erp-table tbody tr:hover td {
    background: var(--erp-surface-hover);
}

.erp-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--erp-border-light);
    background: #fafbfc;
    border-radius: 0 0 var(--erp-radius-md) var(--erp-radius-md);
    font-size: 0.8rem;
}


/* ─── Upload Button (page header) ─── */

.erp-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--erp-primary);
    border: none;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--erp-radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    white-space: nowrap;
}

.erp-btn-upload:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.erp-btn-upload.disabled {
    opacity: 0.65;
    pointer-events: none;
    cursor: not-allowed;
}


/* ─── Badge ─── */

.erp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

.erp-badge-light {
    background: #f0f3f6;
    color: var(--erp-text-secondary);
}

.erp-badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.erp-badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.erp-badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.erp-badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.erp-badge-primary {
    background: rgba(var(--erp-primary-rgb), 0.12);
    color: var(--erp-primary);
}


/* ─── Icon Buttons (action column) ─── */

.erp-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--erp-radius-sm);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

.erp-btn-icon:hover {
    transform: translateY(-1px);
}

.erp-btn-icon-primary {
    color: var(--erp-primary);
    background: var(--erp-primary-light);
    border-color: rgba(var(--erp-primary-rgb), 0.15);
}

.erp-btn-icon-primary:hover {
    background: var(--erp-primary-soft);
    box-shadow: 0 2px 6px rgba(var(--erp-primary-rgb), 0.2);
}

.erp-btn-icon-info {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

.erp-btn-icon-info:hover {
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.erp-btn-icon-danger {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
}

.erp-btn-icon-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}


/* ─── Drawer (comparison panel) ─── */

.erp-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    display: flex;
    justify-content: flex-end;
}

.erp-drawer {
    background: #fff;
    width: 600px;
    max-width: 90vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    animation: erpDrawerSlide 0.25s ease;
}

.erp-drawer-xl {
    width: 900px;
    max-width: 95vw;
}

@keyframes erpDrawerSlide {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.erp-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--erp-border);
    flex-shrink: 0;
}

.erp-drawer-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--erp-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
}

.erp-drawer-close:hover {
    background: #f0f0f0;
    color: var(--erp-text-primary);
}

.erp-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

.erp-drawer-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--erp-border);
    flex-shrink: 0;
    background: #fafbfc;
}


/* ─── Comparison Stat Cards (fatura karşılaştırma) ─── */

.erp-cmp-stat-card {
    border-radius: var(--erp-radius-sm);
    padding: 14px 16px;
    border: 1px solid var(--erp-border-light);
}

.erp-cmp-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--erp-text-muted);
    margin-bottom: 4px;
}

.erp-cmp-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--erp-text-primary);
}

.erp-cmp-stat-primary {
    background: rgba(var(--erp-primary-rgb), 0.06);
    border-color: rgba(var(--erp-primary-rgb), 0.12);
}

.erp-cmp-stat-primary .erp-cmp-stat-value {
    color: var(--erp-primary);
}

.erp-cmp-stat-info {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.12);
}

.erp-cmp-stat-info .erp-cmp-stat-value {
    color: #2563eb;
}

.erp-cmp-stat-success {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.12);
}

.erp-cmp-stat-success .erp-cmp-stat-value {
    color: #16a34a;
}

.erp-cmp-stat-danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.12);
}

.erp-cmp-stat-danger .erp-cmp-stat-value {
    color: #dc2626;
}


/* ─── Modal backdrop / inline modal ─── */

.erp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.erp-modal-backdrop>.erp-modal {
    position: relative;
    background: #fff;
    border-radius: var(--erp-radius-md);
    box-shadow: var(--erp-shadow-lg);
    width: 100%;
    animation: erpModalFade 0.2s ease;
}

@keyframes erpModalFade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.erp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--erp-border-light);
}

.erp-modal-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.erp-modal-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--erp-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
}

.erp-modal-close:hover {
    background: #f0f0f0;
    color: var(--erp-text-primary);
}

.erp-modal-body {
    padding: 20px;
}

.erp-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--erp-border-light);
}

div[style*="blazorise"] {
    display: none !important;
}

.blazorise-license,
.b-license,
#blazorise-license {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   EXCEL EXPORT BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.erp-excel-btns {
    display: flex;
    gap: 4px;
}

.erp-excel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    position: relative;
}

.erp-excel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Visible export — outline style */
.erp-excel-btn-visible {
    background: rgba(255, 255, 255, 0.9);
    border-color: #16a34a;
    color: #16a34a;
}

.erp-excel-btn-visible:hover:not(:disabled) {
    background: #16a34a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* All export — filled style */
.erp-excel-btn-all {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.erp-excel-btn-all:hover:not(:disabled) {
    background: #15803d;
    border-color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.erp-excel-btn-all-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ─── EXPORT CONFIRM MODAL ─── */

.erp-export-confirm-modal .modal-dialog {
    z-index: 10060 !important;
}

.erp-export-confirm-modal ~ .modal-backdrop,
.erp-export-confirm-modal + .modal-backdrop {
    z-index: 10050 !important;
}

.erp-export-confirm-modal.show {
    z-index: 10055 !important;
}

.erp-export-confirm-modal .modal-content {
    border-radius: 16px !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

.erp-export-confirm-hero {
    position: relative;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #166534 100%);
    padding: 36px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.erp-export-confirm-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.erp-export-confirm-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.erp-export-confirm-circle-1 {
    width: 120px;
    height: 120px;
    top: -30px;
    right: -20px;
}

.erp-export-confirm-circle-2 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: 20%;
}

.erp-export-confirm-circle-3 {
    width: 50px;
    height: 50px;
    top: 10px;
    left: -10px;
}

.erp-export-confirm-icon-wrap {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ─── PENDING EXPORT PULSE ─── */

.erp-export-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    animation: erp-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes erp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
