/**
 * ZioteriaCRM Glassmorphism & Enterprise UI Styling
 */

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 36, 56, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(99, 102, 241, 0.4);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --info-gradient: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
}

/* Glassmorphism Containers */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* KPI Metric Cards */
.kpi-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    transition: all 0.25s ease-in-out;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    border-color: var(--border-glass-glow);
}

.kpi-card .kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.kpi-card .kpi-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.kpi-card .kpi-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* Sidebar & Navbar */
.glass-sidebar {
    width: 260px;
    background: rgba(13, 18, 30, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glass-nav {
    background: rgba(13, 18, 30, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 1050;
}

/* Corporate Entity Header Switcher (Inner Menu) */
.corp-switcher-menu {
    min-width: 340px !important;
    width: max-content !important;
    max-width: 440px !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 14px !important;
    padding: 0.85rem !important;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    z-index: 1060 !important;
    margin-top: 0.5rem !important;
}

.corp-switcher-header {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.4rem 0.65rem 0.65rem;
    white-space: nowrap !important;
}

.corp-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 0.85rem !important;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    white-space: nowrap !important;
}

.corp-switcher-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.corp-switcher-item.active {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.45);
    color: #ffffff;
    font-weight: 600;
}

.corp-switcher-item.active .corp-badge {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    border-radius: 10px;
    margin: 0.2rem 0.75rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.35);
}

/* Kanban Board Layout */
.kanban-wrapper {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    min-height: calc(100vh - 180px);
}

.kanban-column {
    flex: 0 0 320px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
}

.kanban-header {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-cards-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 150px;
}

.kanban-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kanban-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.kanban-card:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.3;
    border: 2px dashed #6366f1;
}

/* Dossier Modal Styling */
.modal-content.glass-modal {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: var(--text-primary);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.accordion-glass .accordion-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 10px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-glass .accordion-button {
    background: rgba(30, 41, 59, 0.7);
    color: #ffffff;
    font-weight: 600;
}

.accordion-glass .accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.accordion-glass .accordion-button::after {
    filter: invert(1);
}

/* Priority Badges */
.badge-priority-low { background: #3b82f6; color: #fff; }
.badge-priority-medium { background: #06b6d4; color: #fff; }
.badge-priority-high { background: #f59e0b; color: #fff; }
.badge-priority-urgent { background: #ef4444; color: #fff; animation: pulse 2s infinite; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Subtle / Soft Badges with Guaranteed High Contrast */
.badge.bg-success.text-success,
.badge.bg-success[class*="bg-opacity-"] {
    background-color: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.45) !important;
}

.badge.bg-primary.text-primary,
.badge.bg-primary[class*="bg-opacity-"] {
    background-color: rgba(99, 102, 241, 0.18) !important;
    color: #a5b4fc !important;
    border: 1px solid rgba(99, 102, 241, 0.45) !important;
}

.badge.bg-info.text-info,
.badge.bg-info[class*="bg-opacity-"] {
    background-color: rgba(6, 182, 212, 0.18) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(6, 182, 212, 0.45) !important;
}

.badge.bg-warning.text-warning,
.badge.bg-warning[class*="bg-opacity-"] {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

.badge.bg-danger.text-danger,
.badge.bg-danger[class*="bg-opacity-"] {
    background-color: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
}

.badge.bg-secondary[class*="bg-opacity-"] {
    background-color: rgba(148, 163, 184, 0.15) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

/* Table Action Buttons with Clean Margins & Proportions */
.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.table-actions form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.table-action-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 0.82rem;
    line-height: 1;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.table-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.table-action-btn.btn-action-edit {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.2);
}
.table-action-btn.btn-action-edit:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.table-action-btn.btn-action-view {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}
.table-action-btn.btn-action-view:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.55);
    color: #38bdf8;
}

.table-action-btn.btn-action-embed {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}
.table-action-btn.btn-action-embed:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.55);
    color: #fbbf24;
}

.table-action-btn.btn-action-add {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}
.table-action-btn.btn-action-add:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.55);
    color: #60a5fa;
}

.table-action-btn.btn-action-danger,
.table-action-btn.btn-action-delete {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}
.table-action-btn.btn-action-danger:hover,
.table-action-btn.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.55);
    color: #f87171;
}

/* Form Controls in Dark Glass */
.form-control, .form-select {
    background-color: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid var(--border-glass) !important;
    color: #ffffff !important;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(30, 41, 59, 0.85) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===================================================
   Select2 Dark Theme & Glitch Prevention
   =================================================== */
.select2-container--bootstrap-5 .select2-selection {
    background-color: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid var(--border-glass) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: 38px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.75rem !important;
}

/* Select2 Multiple / Tags (Meta Tags) Dark Glass Styling */
.select2-container--bootstrap-5 .select2-selection--multiple,
.select2-container .select2-selection--multiple {
    min-height: 38px !important;
    height: auto !important;
    background-color: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid var(--border-glass) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered,
.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

/* Tag Pill / Choice Badge */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice,
.select2-container .select2-selection--multiple .select2-selection__choice {
    background: rgba(99, 102, 241, 0.25) !important;
    border: 1px solid rgba(99, 102, 241, 0.5) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 2px 0 !important;
    line-height: 1.4 !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice .select2-selection__choice__display,
.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__display {
    color: #ffffff !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove 'X' Button on Tag */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove,
.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove,
.select2-selection__choice__remove {
    width: 0.75rem !important;
    height: 0.75rem !important;
    min-width: 0.75rem !important;
    min-height: 0.75rem !important;
    margin-right: 0.4rem !important;
    margin-left: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    color: #ef4444 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ef4444'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 0.75rem auto !important;
    opacity: 0.9 !important;
    transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove:hover,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover,
.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover,
.select2-selection__choice__remove:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

/* Inline Search Typing Input inside Meta Tags */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline,
.select2-container .select2-selection--multiple .select2-search--inline {
    display: inline-flex !important;
    flex-grow: 1 !important;
    margin: 2px 0 !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline .select2-search__field,
.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    padding: 2px 6px !important;
    margin: 0 !important;
    height: 26px !important;
    min-width: 80px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder,
.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
    color: #94a3b8 !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection--multiple,
.select2-container.select2-container--focus .select2-selection--multiple {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
    background-color: rgba(30, 41, 59, 0.85) !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #f8fafc !important;
    line-height: normal !important;
    padding-left: 0 !important;
    padding-right: 1.5rem !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    line-height: normal !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 50% !important;
    right: 0.75rem !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    width: auto !important;
}

.select2-container--bootstrap-5 .select2-selection.form-select-sm,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 0.8125rem !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75) !important;
    color: #f8fafc !important;
    z-index: 10600 !important;
}

.modal .select2-container {
    z-index: 1055 !important;
}
.modal .select2-dropdown {
    z-index: 10650 !important;
}

.select2-container--bootstrap-5 .select2-search__field {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid var(--border-glass) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.75rem !important;
}

.select2-container--bootstrap-5 .select2-search__field:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    outline: none !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    color: #cbd5e1 !important;
    padding: 8px 12px !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: rgba(99, 102, 241, 0.35) !important;
    color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background: rgba(99, 102, 241, 0.7) !important;
    color: #ffffff !important;
}

/* ===================================================
   FullCalendar Glass Dark Theme
   =================================================== */
.fc {
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: rgba(30, 41, 59, 0.3);
    --fc-neutral-text-color: #94a3b8;
    --fc-border-color: rgba(255, 255, 255, 0.08);
    --fc-button-text-color: #ffffff;
    --fc-button-bg-color: rgba(30, 41, 59, 0.8);
    --fc-button-border-color: rgba(255, 255, 255, 0.12);
    --fc-button-hover-bg-color: rgba(99, 102, 241, 0.3);
    --fc-button-hover-border-color: #6366f1;
    --fc-button-active-bg-color: #6366f1;
    --fc-button-active-border-color: #6366f1;
    --fc-event-bg-color: #3b82f6;
    --fc-event-border-color: #3b82f6;
    --fc-today-bg-color: rgba(99, 102, 241, 0.08);
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.fc .fc-button {
    border-radius: 8px !important;
    padding: 0.4rem 0.85rem !important;
    font-weight: 500;
    font-size: 0.85rem;
    margin: 3px !important;
    transition: all 0.2s ease;
}

.fc .fc-button-group {
    display: inline-flex !important;
    gap: 4px !important;
}

.fc .fc-button-group > .fc-button {
    border-radius: 8px !important;
    margin: 3px !important;
}

.fc .fc-toolbar > * > * {
    margin: 3px !important;
}

/* FullCalendar Chevron Icons using Bootstrap Icons */
.fc .fc-icon {
    font-family: 'bootstrap-icons', fcicons, sans-serif !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
}
.fc .fc-icon-chevron-left::before {
    content: "\F284" !important; /* bi-chevron-left */
}
.fc .fc-icon-chevron-right::before {
    content: "\F285" !important; /* bi-chevron-right */
}
.fc .fc-icon-chevrons-left::before {
    content: "\F282" !important; /* bi-chevron-double-left */
}
.fc .fc-icon-chevrons-right::before {
    content: "\F283" !important; /* bi-chevron-double-right */
}

.fc th {
    padding: 0.75rem 0.25rem !important;
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-color: var(--border-glass) !important;
}

.fc td {
    border-color: var(--border-glass) !important;
}

.fc .fc-daygrid-day-number {
    color: #cbd5e1;
    font-weight: 600;
    padding: 6px 10px;
}

.fc .fc-event {
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fc .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* ===================================================
   Dossier Interactive Pipeline Stepper
   =================================================== */
.pipeline-stepper {
    display: flex;
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.35rem;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.pipeline-step {
    flex: 1;
    min-width: 110px;
    text-align: center;
    padding: 0.5rem 0.4rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.pipeline-step:hover {
    background: rgba(45, 58, 82, 0.8);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.pipeline-step.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.pipeline-step.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Dossier Split-View Panels */
.dossier-card {
    background: rgba(20, 27, 45, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.dossier-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-glass);
}

/* ===================================================
   DataTables Glass Dark Theme
   =================================================== */
.dataTables_wrapper {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
    color: #94a3b8;
}

.dataTables_wrapper .dataTables_length select {
    background-color: rgba(20, 27, 45, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    border-radius: 8px !important;
    padding: 0.35rem 1.8rem 0.35rem 0.6rem !important;
}

.dataTables_wrapper .dataTables_filter input {
    background-color: rgba(20, 27, 45, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    border-radius: 8px !important;
    padding: 0.35rem 0.75rem !important;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    outline: none !important;
}

.dataTables_wrapper .dataTables_info {
    color: #94a3b8 !important;
    font-size: 0.8rem;
    padding-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 1rem;
}

.dataTables_wrapper .pagination .page-item .page-link {
    background-color: rgba(20, 27, 45, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    border-radius: 6px !important;
    margin: 0 2px;
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background: var(--primary-gradient) !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.dataTables_wrapper .pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

table.dataTable thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

table.dataTable tbody tr {
    background-color: transparent !important;
}

table.dataTable tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

table.dataTable tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    vertical-align: middle;
}

/* Dossier Timeline Category Filter Tabs */
.timeline-filter-btn {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.15s ease !important;
}

.timeline-filter-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.timeline-filter-btn.active {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.22) !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
}

.timeline-filter-btn .badge {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 4px !important;
}

.timeline-filter-btn.active .badge {
    background: rgba(99, 102, 241, 0.45) !important;
    color: #ffffff !important;
}

/* Dossier Activity Timeline Cards */
.timeline-activity-item {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.65rem !important;
}

.timeline-activity-item .timeline-date {
    white-space: nowrap !important;
    padding-left: 0.5rem !important;
}

/* Extra-small button utility for Bootstrap 5 */
.btn-xs, .btn-group-xs > .btn {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    border-radius: 0.25rem !important;
}

/* Universal Print Cleanup for Glass Theme */
@media print {
    aside, .glass-sidebar, header, .glass-nav, .d-print-none, .dropdown, #spotlightSearchModal, .toast-container {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    body > .d-flex {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    main, .content-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        min-height: auto !important;
    }
}



