/* ==========================================================================
   MACROSENS CMMS - HYBRIX Ultra-Clean SaaS Theme for App Panel (/app)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --hybrix-bg: #f4f5f8;
    --hybrix-card-bg: #ffffff;
    --hybrix-sidebar-bg: #ffffff;
    --hybrix-border: #e9ebec;
    --hybrix-border-hover: #d7dadc;
    --hybrix-text-primary: #212529;
    --hybrix-text-secondary: #878a99;
    --hybrix-primary: #3b82f6;
    --hybrix-primary-hover: #2563eb;
    --hybrix-primary-light: #eff6ff;
    --hybrix-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark,
:root.dark,
html.dark {
    --hybrix-bg: #0b1120;
    --hybrix-card-bg: #1e293b;
    --hybrix-sidebar-bg: #111827;
    --hybrix-border: #1f2937;
    --hybrix-border-hover: #374151;
    --hybrix-text-primary: #f8fafc;
    --hybrix-text-secondary: #94a3b8;
}

/* 1. Typography & Global Body Styling (Light & Dark) */
body, body.fi-body {
    font-family: var(--hybrix-font) !important;
    background-color: var(--hybrix-bg) !important;
    color: var(--hybrix-text-primary) !important;
    -webkit-font-smoothing: antialiased !important;
}

.dark body,
.dark body.fi-body,
.dark .fi-layout,
.dark .fi-main-ctn,
.dark .fi-main,
.dark .fi-page,
.dark main {
    background-color: #0b1120 !important;
    color: #f8fafc !important;
}

/* Page Titles and Breadcrumbs in Dark Mode */
.dark .fi-header-heading,
.dark .fi-page-header-heading,
.dark .fi-header h1,
.dark h1.fi-header-heading,
.dark h1, .dark h2, .dark h3 {
    color: #f8fafc !important;
}

.dark .fi-breadcrumbs,
.dark .fi-breadcrumbs-item-label,
.dark .fi-breadcrumbs a,
.dark .fi-breadcrumbs li {
    color: #94a3b8 !important;
}

.dark .fi-breadcrumbs a:hover {
    color: #ffffff !important;
}

/* 2. Topbar / Header (Pure Hybrix Clean Style) */
.fi-topbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--hybrix-border) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03) !important;
}

.dark .fi-topbar {
    background-color: #111827 !important;
    border-bottom: 1px solid #1f2937 !important;
}

/* 3. Sidebar (Hybrix Minimalist Clean Style) */
.fi-sidebar {
    background-color: var(--hybrix-sidebar-bg) !important;
    border-right: 1px solid var(--hybrix-border) !important;
    box-shadow: none !important;
}

.dark .fi-sidebar {
    background-color: #111827 !important;
    border-right: 1px solid #1f2937 !important;
}

/* Sidebar Logo Header */
.fi-logo {
    max-height: 2.25rem !important;
    height: 2.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

/* Sidebar Navigation Items */
.fi-sidebar-item-btn {
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    margin: 0.125rem 0.5rem !important;
    color: #495057 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

.fi-sidebar-item-btn:hover {
    background-color: #f3f4f6 !important;
    color: var(--hybrix-primary) !important;
}

.dark .fi-sidebar-item-btn:hover {
    background-color: #1f2937 !important;
    color: #60a5fa !important;
}

/* Active Sidebar Item Highlighting */
.fi-sidebar-item.fi-active .fi-sidebar-item-btn,
.fi-sidebar-item[aria-current="page"] .fi-sidebar-item-btn {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    border-left: 3.5px solid #2563eb !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08) !important;
}

.dark .fi-sidebar-item.fi-active .fi-sidebar-item-btn {
    background-color: rgba(59, 130, 246, 0.18) !important;
    color: #60a5fa !important;
    border-left: 3.5px solid #60a5fa !important;
}

/* Active Sidebar Icon */
.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #2563eb !important;
}

.dark .fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #60a5fa !important;
}

/* Sidebar Group Section Headers (MENU, PAGES, APPS style) */
.fi-sidebar-group-label {
    text-transform: uppercase !important;
    font-size: 0.6875rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    color: #94a3b8 !important;
    padding-left: 0.875rem !important;
}

/* 4. Cards, Sections & Widgets (Hybrix Elevate Style) */
.fi-section,
.fi-ta-ctn,
.fi-wi:not(.fi-wi-stats-overview),
.fi-card:not(.fi-wi-stats-overview-stat) {
    background-color: #ffffff !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(226, 232, 240, 0.7) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.dark .fi-section,
.dark .fi-ta-ctn,
.dark .fi-card,
.dark .fi-wi:not(.fi-wi-stats-overview) {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3) !important;
}

.fi-wi:not(.fi-wi-stats-overview):hover,
.fi-section:hover {
    border-color: var(--hybrix-border-hover) !important;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.06) !important;
}

.dark .fi-wi:not(.fi-wi-stats-overview):hover,
.dark .fi-section:hover {
    border-color: #475569 !important;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.4) !important;
}

/* 5. Hybrix Primary Buttons */
.fi-btn.fi-color-primary,
.fi-btn[type="submit"],
.fi-btn-primary {
    border-radius: 0.5rem !important;
    background-color: #3b82f6 !important;
    background-image: none !important;
    border: 1px solid #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px 0 rgba(59, 130, 246, 0.25) !important;
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

.fi-btn.fi-color-primary:hover,
.fi-btn[type="submit"]:hover,
.fi-btn-primary:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* 6. Form Inputs (Hybrix Sleek & Compact Single-Border Architecture) */
.fi-input-wrp {
    border-radius: 0.5rem !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
    min-height: 38px !important;
    padding: 0 0.625rem !important;
    display: flex !important;
    align-items: center !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.fi-input-wrp:not(:has(textarea)) {
    min-height: 38px !important;
}

.fi-input-wrp:has(textarea),
.fi-fo-textarea .fi-input-wrp,
.fi-textarea-wrp {
    height: auto !important;
    min-height: 75px !important;
    align-items: flex-start !important;
    padding: 0.5rem 0.625rmm !important;
}

.fi-fo-textarea .fi-input-wrp-content-ctn,
.fi-fo-textarea .fi-input-wrp-content-ctn > div,
.fi-textarea-wrp .fi-input-wrp-content-ctn > div,
.fi-input-wrp:has(textarea) .fi-input-wrp-content-ctn > div,
.fi-fo-field-wrp:has(textarea) .fi-input-wrp-content-ctn > div {
    width: 100%!important;
    flex: 1 1 100%!important;
    flex-grow: 1 !important;
}

.dark .fi-input-wrp {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25) !important;
}

.fi-input-wrp:hover {
    border-color: #9ca3af !important;
}

.dark .fi-input-wrp:hover {
    border-color: #475569 !important;
}

.fi-input-wrp:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.dark .fi-input-wrp:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

.fi-input-wrp-content-ctn {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.fi-input,
.fi-select-input,
.fi-input-wrp input,
.fi-input-wrp select,
.fi-fo-field-wrp input,
.fi-fo-field-wrp select {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    color: #0f172a !important;
    font-family: var(--hybrix-font) !important;
}

.dark .fi-input,
.dark .fi-select-input,
.dark .fi-input-wrp input,
.dark .fi-input-wrp select,
.dark .fi-fo-field-wrp input,
.dark .fi-fo-field-wrp select {
    color: #f8fafc !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* ==========================================================================
   SELECT & CHOICES.JS FULL-WIDTH & ARROW ALIGNMENT FIX
   ========================================================================== */
.fi-fo-select-wrp,
.fi-fo-select,
.fi-select-input,
.fi-select-input > div,
.choices {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    position: relative !important;
}

.choices__inner {
    width: 100% !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    box-shadow: none !important;
}

.choices__list--single {
    width: 100% !important;
    padding: 0 1.5rem 0 0 !important;
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
}

.choices__list--multiple {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding: 0.25rem 1.5rem 0.25rem 0 !important;
}

.choices__list--dropdown,
.choices[data-type*="select-one"] .choices__list--dropdown,
.choices[data-type*="select-multiple"] .choices__list--dropdown {
    width: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    z-index: 50 !important;
}

.dark .choices__list--dropdown,
.dark .choices[data-type*="select-one"] .choices__list--dropdown,
.dark .choices[data-type*="select-multiple"] .choices__list--dropdown {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

.choices__placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.dark .choices__placeholder {
    color: #64748b !important;
}

/* Position Chevron Arrow cleanly at the far right */
.choices[data-type*="select-one"]::after,
.choices[data-type*="select-multiple"]::after,
.choices::after {
    position: absolute !important;
    right: 0.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    pointer-events: none !important;
    border-color: #64748b transparent transparent transparent !important;
    border-width: 5px 5px 0 5px !important;
}

.dark .choices[data-type*="select-one"]::after,
.dark .choices[data-type*="select-multiple"]::after,
.dark .choices::after {
    border-color: #94a3b8 transparent transparent transparent !important;
}

.choices.is-open::after {
    border-color: transparent transparent #64748b transparent !important;
    border-width: 0 5px 5px 5px !important;
    margin-top: 0 !important;
}

.dark .choices.is-open::after {
    border-color: transparent transparent #94a3b8 transparent !important;
}

/* Native select element support */
select.fi-select-input,
.fi-select-input select {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    text-align: left !important;
    padding-right: 1.5rem !important;
    cursor: pointer !important;
}

/* Filament Select Trigger Button (only the main trigger button, NOT badge delete buttons) */
button.fi-select-input-btn,
.fi-select-input > button.fi-select-input-btn {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    padding-right: 0.25rem !important;
}

/* Badges / Chips in Multi-Select & Tags Inputs */
.fi-select-input-value-badges-ctn {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem !important;
    width: 100% !important;
    min-width: 0 !important;
}

.fi-select-input .fi-badge,
.fi-badge {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.35rem !important;
    width: auto !important;
    min-width: unset !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 1.5rem !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 0.375rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.fi-select-input .fi-badge-label-ctn,
.fi-badge-label-ctn {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    width: auto !important;
}

.fi-select-input .fi-badge-label,
.fi-badge-label {
    display: inline !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    width: auto !important;
    font-size: 0.8125rem !important;
    line-height: 1.25 !important;
}

.fi-select-input .fi-badge-delete-btn,
.fi-badge-delete-btn,
button.fi-badge-delete-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1rem !important;
    min-width: 1rem !important;
    max-width: 1rem !important;
    height: 1rem !important;
    min-height: 1rem !important;
    max-height: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: 0.25rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    flex: 0 0 auto !important;
}

.fi-select-input .fi-badge-delete-btn svg,
.fi-badge-delete-btn svg {
    width: 0.75rem !important;
    height: 0.75rem !important;
    display: block !important;
}

.fi-input-wrp textarea,
.fi-fo-field-wrp textarea,
.fi-fo-textarea textarea {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    padding: 0.25rem 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 65px !important;
    color: #0f172a !important;
    font-family: var(--hybrix-font) !important;
    resize: vertical !important;
}

.dark .fi-input-wrp textarea,
.dark .fi-fo-field-wrp textarea,
.dark .fi-fo-textarea textarea {
    color: #f8fafc !important;
}

/* Suffix and Prefix action buttons (e.g. select arrows, clear chips) */
.fi-input-wrp-suffix-ctn,
.fi-input-wrp-prefix-ctn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0.25rem !important;
}

.fi-input-wrp-suffix-ctn svg,
.fi-input-wrp-prefix-ctn svg,
.fi-input-wrp-suffix-ctn .fi-icon-btn-icon {
    width: 1.1rem !important;
    height: 1.1rem !important;
    display: block !important;
    color: #64748b !important;
}

/* Table Search Input */
.fi-ta-search-field .fi-input-wrp {
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 0.5rem !important;
}

/* 7. Hybrix Table Header & Rows */
.fi-ta-header-cell {
    font-family: var(--hybrix-font) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.725rem !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
    background-color: #f8fafc !important;
}

.dark .fi-ta-header-cell,
.dark .fi-ta-header {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

.fi-ta-row:hover {
    background-color: #f8fafc !important;
}

.dark .fi-ta-row:hover {
    background-color: #243044 !important;
}

.dark .fi-ta-cell,
.dark .fi-ta-text,
.dark .fi-ta-content {
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

/* 9. Hybrix Modal Windows */
.fi-modal-window {
    background-color: #ffffff !important;
    border-radius: 1rem !important;
    border: 1px solid var(--hybrix-border) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

.dark .fi-modal-window {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* 10. HYBRIX SAAS CALENDAR STYLING (Guava EventCalendar) */
.ec {
    font-family: var(--hybrix-font) !important;
    background-color: #ffffff !important;
    border-radius: 0.875rem !important;
    padding: 1.25rem !important;
}

.ec-toolbar {
    margin-bottom: 1.25rem !important;
}

.ec-title {
    font-family: var(--hybrix-font) !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #1e293b !important;
}

.ec-button {
    font-family: var(--hybrix-font) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    border-radius: 0.5rem !important;
    padding: 0.4rem 0.85rem !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ec-button.ec-dayGridMonth::after {
    content: "Mes" !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}

.ec-button.ec-timeGridWeek::after {
    content: "Semana" !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}

.ec-button.ec-timeGridDay::after {
    content: "Día" !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}

.ec-button.ec-listWeek::after {
    content: "Agenda" !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}

.ec-button.ec-today {
    display: none !important;
}

.ec-all-day .ec-sidebar {
    font-size: 0 !important;
}

.ec-all-day .ec-sidebar::after {
    content: "Todo el día" !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    display: block !important;
    text-align: right !important;
    padding-right: 0.5rem !important;
}

.dark .ec-all-day .ec-sidebar::after {
    color: #94a3b8 !important;
}

.ec-button:hover,
.ec-button.ec-active {
    background-color: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

@media (max-width: 768px) {
    .ec-toolbar {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }

    .ec-toolbar > div {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }

    .ec-title {
        text-align: center !important;
        font-size: 1.05rem !important;
    }

    .ec-button {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
    }
}

.ec-col-head, .ec-day-head {
    background-color: #f8fafc !important;
    color: #3b82f6 !important;
    font-family: var(--hybrix-font) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.06em !important;
    padding: 0.625rem 0.375rem !important;
    border-color: #e2e8f0 !important;
}

.ec-main {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
}

.ec-day {
    border-color: #f1f5f9 !important;
    background-color: #ffffff !important;
    transition: background-color 0.15s ease !important;
}

.ec-day:hover {
    background-color: #f8fafc !important;
}

.ec-day.ec-today {
    background-color: rgba(238, 242, 255, 0.7) !important;
}

.ec-day.ec-today .ec-day-head time {
    color: #4f46e5 !important;
    font-weight: 800 !important;
}

.ec-event {
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0.375rem !important;
    padding: 0.25rem 0.6rem !important;
    font-weight: 600 !important;
    font-size: 0.78125rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.ec-event:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   11. HYBRIX STATS OVERVIEW WIDGET (Clean Transparent Outer Wrapper & Soft Cards)
   ========================================================================== */

/* Outer Stats Widget Wrapper - Make background transparent so gray page bg (#f4f5f8) shows between cards */
.fi-section.fi-section-not-contained,
.fi-wi.fi-wi-stats-overview,
div.fi-wi-stats-overview,
.fi-wi-stats-overview-stats-ctn {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
}

/* Individual Stat Cards - Ultra soft subtle border with rounded corners */
.fi-wi-stats-overview-stat,
.fi-wi-stats-overview div.fi-card,
.fi-wi-stats-overview-stat-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    border-radius: 0.875rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.01) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.dark .fi-wi-stats-overview-stat {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

.fi-wi-stats-overview-stat:hover {
    border-color: rgba(203, 213, 225, 0.9) !important;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-1px) !important;
}

/* Stat Label / Header */
.fi-wi-stats-overview-stat-label {
    font-family: var(--hybrix-font) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

/* Stat Value / Big Number */
.fi-wi-stats-overview-stat-value {
    font-family: var(--hybrix-font) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.dark .fi-wi-stats-overview-stat-value {
    color: #f8fafc !important;
}

/* ==========================================================================
   12. HYBRIX STAT CARDS (Light & Dark Mode)
   ========================================================================== */

.hybrix-stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.7) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.hybrix-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(203, 213, 225, 0.9) !important;
    transform: translateY(-1px);
}

.hybrix-stat-title {
    color: #94a3b8 !important;
}

.hybrix-stat-value {
    color: #0f172a !important;
}

.hybrix-stat-sub {
    color: #64748b !important;
}

.hybrix-stat-icon-blue {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.1) !important;
}

.hybrix-stat-icon-green {
    background: #dcfce7 !important;
    color: #15803d !important;
    box-shadow: 0 2px 4px rgba(21, 128, 61, 0.1) !important;
}

.hybrix-stat-icon-amber {
    background: #fef3c7 !important;
    color: #d97706 !important;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.1) !important;
}

.hybrix-stat-icon-purple {
    background: #f3e8ff !important;
    color: #7c3aed !important;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.1) !important;
}

.hybrix-stat-icon-cyan {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.1) !important;
}

.hybrix-stat-icon-red {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1) !important;
}

/* Dark Mode: Stat Cards */
.dark .hybrix-stat-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

.dark .hybrix-stat-card:hover {
    border-color: #475569 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.dark .hybrix-stat-title {
    color: #94a3b8 !important;
}

.dark .hybrix-stat-value {
    color: #f8fafc !important;
}

.dark .hybrix-stat-sub {
    color: #cbd5e1 !important;
}

.dark .hybrix-stat-icon-blue {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #60a5fa !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2) !important;
}

.dark .hybrix-stat-icon-green {
    background: rgba(34, 197, 94, 0.18) !important;
    color: #4ade80 !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2) !important;
}

.dark .hybrix-stat-icon-amber {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2) !important;
}

.dark .hybrix-stat-icon-purple {
    background: rgba(168, 85, 247, 0.18) !important;
    color: #c084fc !important;
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.2) !important;
}

.dark .hybrix-stat-icon-cyan {
    background: rgba(6, 182, 212, 0.18) !important;
    color: #38bdf8 !important;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.2) !important;
}

.dark .hybrix-stat-icon-red {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2) !important;
}

/* ==========================================================================
   13. HYBRIX CHART WIDGET HEIGHT ALIGNMENT (Light & Dark Mode)
   ========================================================================== */

:root {
    --hybrix-stats-height: 370px;
}

.fi-wi-chart {
    height: var(--hybrix-stats-height) !important;
    max-height: var(--hybrix-stats-height) !important;
    min-height: var(--hybrix-stats-height) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

.fi-wi-chart > .fi-section,
.fi-wi-chart > .fi-card,
.fi-wi-chart .fi-section-content-ctn {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    height: 100% !important;
    max-height: var(--hybrix-stats-height) !important;
    box-sizing: border-box !important;
}

.fi-wi-chart .fi-section-header {
    padding: 0.75rem 1.25rem 0.2rem !important;
    flex-shrink: 0 !important;
}

.fi-wi-chart .fi-section-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 1.25rem 0.35rem !important;
    overflow: hidden !important;
    height: calc(var(--hybrix-stats-height) - 52px) !important;
    max-height: calc(var(--hybrix-stats-height) - 52px) !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
}

.fi-wi-chart .fi-wi-chart-canvas-ctn {
    flex: 1 1 auto !important;
    position: relative !important;
    height: 100% !important;
    max-height: calc(var(--hybrix-stats-height) - 62px) !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

.fi-wi-chart canvas {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
}

/* Dark Mode Chart Card */
.dark .fi-wi-chart > .fi-section,
.dark .fi-wi-chart > .fi-card {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
}

.dark .fi-wi-chart .fi-section-header-heading {
    color: #f8fafc !important;
}

/* ==========================================================================
   14. GUAVA CALENDAR IN DARK MODE
   ========================================================================== */

.dark .guava-calendar,
.dark .guava-calendar-widget,
.dark [wire\:id*="calendar"],
.dark .fi-wi-widget:has(.ec),
.dark .fi-wi-widget:has(.ec) > .fi-section,
.dark .fi-wi-widget:has(.ec) > .fi-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

.dark .ec {
    --ec-bg-color: #1e293b !important;
    --ec-text-color: #f1f5f9 !important;
    --ec-border-color: #334155 !important;
    --ec-today-bg-color: rgba(59, 130, 246, 0.18) !important;
    --ec-highlight-color: rgba(51, 65, 85, 0.6) !important;
    --ec-button-bg-color: #0f172a !important;
    --ec-button-border-color: #334155 !important;
    --ec-button-text-color: #e2e8f0 !important;
    --ec-button-active-bg-color: #3b82f6 !important;
    --ec-button-active-border-color: #3b82f6 !important;
    --ec-button-active-text-color: #ffffff !important;
    --ec-popup-bg-color: #1e293b !important;
}

.dark .ec-header,
.dark .ec-toolbar,
.dark .ec-body,
.dark .ec-day-grid,
.dark .ec-days {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.dark .ec-main {
    border: 1px solid #334155 !important;
    background-color: #1e293b !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
}

.dark .ec-title,
.dark .ec-toolbar .ec-title {
    color: #f8fafc !important;
    font-weight: 800 !important;
    font-family: var(--hybrix-font) !important;
}

.dark .ec-col-head,
.dark .ec-col-group,
.dark .ec-day-head {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
    font-weight: 700 !important;
}

.dark .ec-day {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

.dark .ec-day.ec-other-month {
    background-color: #152033 !important;
    opacity: 0.55 !important;
}

.dark .ec-day time,
.dark .ec-day-head time {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
}

.dark .ec-button {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
    border-radius: 0.5rem !important;
}

.dark .ec-button:hover,
.dark .ec-button.ec-active {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

/* Event text readability in dark mode */
.dark .ec-event {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.dark .ec-event-title,
.dark .ec-event-time {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   15. SIDEBAR LOGOUT FOOTER & PROFILE IN DARK MODE
   ========================================================================== */

.dark .fi-sidebar-footer,
.dark [data-sidebar-footer] {
    border-top: 1px solid #1f2937 !important;
    background-color: #111827 !important;
}

.dark .fi-sidebar-footer .bg-white {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* ==========================================================================
   16. HYBRIX AUTH SIGNIN COVER STYLING (/app/login, /admin/login, /work/login)
   ========================================================================== */

.hybrix-auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    background: linear-gradient(135deg, #071530 0%, #0d2861 35%, #17429b 70%, #1e40af 100%) !important;
    font-family: var(--hybrix-font) !important;
    box-sizing: border-box;
}

.hybrix-auth-wrapper *, .hybrix-auth-wrapper *::before, .hybrix-auth-wrapper *::after {
    box-sizing: border-box;
}

/* Background mesh & lights */
.hybrix-auth-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hybrix-auth-orb-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    border-radius: 9999px;
    background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
    opacity: 0.25;
    filter: blur(80px);
    pointer-events: none;
}

.hybrix-auth-orb-2 {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 9999px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    opacity: 0.22;
    filter: blur(90px);
    pointer-events: none;
}

/* Main Split Container */
.hybrix-auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    min-height: 640px;
    display: flex;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Left Hero Column */
.hybrix-auth-hero {
    display: flex;
    flex: 1 1 58%;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    background: linear-gradient(160deg, rgba(13, 37, 85, 0.88) 0%, rgba(10, 25, 60, 0.96) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1023px) {
    .hybrix-auth-hero {
        display: none !important;
    }
}

.hybrix-auth-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hybrix-brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hybrix-brand-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.hybrix-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hybrix-brand-sub {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.hybrix-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.hybrix-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
}

.hybrix-hero-headline {
    font-size: 2.125rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.hybrix-hero-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.hybrix-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 520px;
}

.hybrix-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: all 0.2s ease;
}

.hybrix-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateX(3px);
}

.hybrix-feat-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hybrix-feat-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.hybrix-feat-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.4;
}

.hybrix-hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Right Card Column */
.hybrix-auth-card-side {
    display: flex;
    flex: 1 1 42%;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background-color: #ffffff;
}

.dark .hybrix-auth-card-side {
    background-color: #0f172a;
}

.hybrix-auth-card-inner {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.hybrix-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.hybrix-card-header-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    margin-bottom: 0.85rem;
}

.dark .hybrix-card-header-icon {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-color: rgba(37, 99, 235, 0.3);
}

.hybrix-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}

.dark .hybrix-card-title {
    color: #f8fafc;
}

.hybrix-card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.dark .hybrix-card-subtitle {
    color: #94a3b8;
}

/* Mobile Brand Header */
.hybrix-mobile-brand {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1023px) {
    .hybrix-mobile-brand {
        display: flex !important;
    }
}

/* Auth Card Reset for Filament Simple Content */
.hybrix-auth-form-container .fi-simple-page {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
}

.hybrix-auth-form-container .fi-simple-page-content {
    padding: 0 !important;
    background: transparent !important;
}

.hybrix-auth-form-container .fi-simple-header {
    display: none !important;
}

.hybrix-auth-form-container .fi-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Input Fields in Auth Form */
.hybrix-auth-form-container .fi-input-wrp {
    background-color: #030712 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}

.hybrix-auth-form-container .fi-input-wrp:focus-within {
    background-color: #080e1e !important;
    background: #080e1e !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35) !important;
}

.dark .hybrix-auth-form-container .fi-input-wrp {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
}

.dark .hybrix-auth-form-container .fi-input-wrp:focus-within {
    background-color: #1e293b !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25) !important;
}

.hybrix-auth-form-container input {
    font-size: 0.875rem !important;
    color: #1e293b !important;
    padding: 0.65rem 0.85rem !important;
}

.dark .hybrix-auth-form-container input {
    color: #f8fafc !important;
}

.hybrix-auth-form-container label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 0.25rem !important;
}

.dark .hybrix-auth-form-container label {
    color: #cbd5e1 !important;
}

/* Submit Action Button in Auth Form */
.hybrix-auth-form-container button[type="submit"],
.hybrix-auth-form-container .fi-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    justify-content: center !important;
    margin-top: 0.5rem !important;
}

.hybrix-auth-form-container button[type="submit"]:hover,
.hybrix-auth-form-container .fi-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    transform: translateY(-1px) !important;
}

.hybrix-auth-form-container button[type="submit"]:active,
.hybrix-auth-form-container .fi-btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

/* Forgot Password & Links */
.hybrix-auth-form-container a {
    color: #2563eb !important;
    font-weight: 600 !important;
    transition: color 0.15s ease !important;
}

.hybrix-auth-form-container a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

.dark .hybrix-auth-form-container a {
    color: #60a5fa !important;
}

.dark .hybrix-auth-form-container a:hover {
    color: #93c5fd !important;
}




/* Segmented Switcher & Quick Demo Cards */
.hybrix-segmented-nav {
    display: flex !important;
    background: #090d16 !important;
    padding: 6px !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    gap: 6px !important;
    margin-bottom: 1.75rem !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}

.hybrix-seg-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    border-radius: 0.75rem !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.hybrix-seg-btn.active-work {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.hybrix-seg-btn.active-app {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.hybrix-seg-btn.inactive {
    color: #94a3b8 !important;
    background: transparent !important;
}

.hybrix-seg-btn.inactive:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.hybrix-quick-accounts {
    margin-top: 1.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.hybrix-account-chip {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.65rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 0.75rem !important;
    color: #cbd5e1 !important;
}


/* HIGH CONTRAST LOGIN FORM & SINGLE-BORDER OVERRIDES */
.hybrix-auth-form-container label,
.hybrix-auth-form-container .fi-fo-field-wrp-label,
.hybrix-auth-form-container .fi-fo-field-wrp-label span,
.hybrix-auth-form-container [class*="label"] {
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
}

.hybrix-auth-form-container .fi-checkbox-label,
.hybrix-auth-form-container .fi-checkbox-label span,
.hybrix-auth-form-container .fi-checkbox-wrp label span {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.hybrix-auth-form-container a,
.hybrix-auth-form-container .fi-link,
.hybrix-auth-form-container .fi-link span {
    color: #60a5fa !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
}

.hybrix-auth-form-container .fi-input-wrp {
    background-color: #030712 !important;
    border: 1px solid #334155 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    outline: none !important;
}

.hybrix-auth-form-container .fi-input-wrp:hover {
    border-color: #475569 !important;
}

.hybrix-auth-form-container .fi-input-wrp:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
}

.hybrix-auth-form-container .fi-input-wrp-content-ctn {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
}

.hybrix-auth-form-container input,
.hybrix-auth-form-container .fi-input {
    background-color: transparent !important;
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.hybrix-auth-form-container input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #030712 inset !important;
}

.hybrix-auth-form-container .fi-input-wrp-suffix-ctn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-left: 0.5rem !important;
}

.hybrix-auth-form-container .fi-input-wrp-suffix-ctn button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hybrix-auth-form-container .fi-input-wrp-suffix-ctn button:hover {
    color: #38bdf8 !important;
}
/* ==========================================================================
   14. WORK ORDER & ASSET DETAIL MODALS (Full SaaS Hybrix Styling)
   ========================================================================== */

.ot-modal-container {
    font-family: var(--hybrix-font) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    color: #1e293b !important;
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
    padding: 0.25rem 0 !important;
}

.dark .ot-modal-container {
    color: #f1f5f9 !important;
}

/* Grids */
.ot-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
}

.ot-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 1rem !important;
}

.ot-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1rem !important;
}

/* Summary Box / Top Bar */
.ot-summary-box {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1.125rem !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
}

.dark .ot-summary-box {
    background-color: rgba(30, 41, 59, 0.6) !important;
    border-color: #334155 !important;
}

/* Field labels and values */
.ot-label {
    display: block !important;
    text-transform: uppercase !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
    margin-bottom: 0.25rem !important;
}

.dark .ot-label {
    color: #94a3b8 !important;
}

.ot-value {
    font-size: 0.875rem !important;
    color: #0f172a !important;
    font-weight: 500 !important;
}

.dark .ot-value {
    color: #f8fafc !important;
}

.ot-value-bold {
    font-size: 0.9375rem !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}

.dark .ot-value-bold {
    color: #ffffff !important;
}

.ot-tag {
    font-family: monospace !important;
    font-size: 0.75rem !important;
    color: #2563eb !important;
    font-weight: 700 !important;
}

.dark .ot-tag {
    color: #60a5fa !important;
}

/* Badges */
.ot-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 9999px !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    line-height: 1 !important;
}

.ot-badge-success { background-color: #dcfce7 !important; color: #166534 !important; }
.ot-badge-warning { background-color: #fef3c7 !important; color: #92400e !important; }
.ot-badge-danger  { background-color: #fee2e2 !important; color: #991b1b !important; }
.ot-badge-info    { background-color: #dbeafe !important; color: #1e40af !important; }
.ot-badge-purple  { background-color: #f3e8ff !important; color: #6b21a8 !important; }
.ot-badge-gray    { background-color: #f1f5f9 !important; color: #475569 !important; }

.dark .ot-badge-success { background-color: rgba(22, 101, 52, 0.3) !important; color: #86efac !important; }
.dark .ot-badge-warning { background-color: rgba(146, 64, 14, 0.3) !important; color: #fde047 !important; }
.dark .ot-badge-danger  { background-color: rgba(153, 27, 27, 0.3) !important; color: #fca5a5 !important; }
.dark .ot-badge-info    { background-color: rgba(30, 64, 175, 0.3) !important; color: #93c5fd !important; }
.dark .ot-badge-purple  { background-color: rgba(107, 33, 168, 0.3) !important; color: #d8b4fe !important; }
.dark .ot-badge-gray    { background-color: rgba(71, 85, 105, 0.3) !important; color: #cbd5e1 !important; }

/* Content Cards */
.ot-card-box {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1rem 1.125rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.dark .ot-card-box {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.ot-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #475569 !important;
    margin-bottom: 0.625rem !important;
}

.dark .ot-card-header {
    color: #94a3b8 !important;
}

.ot-card-body {
    font-size: 0.8125rem !important;
    color: #334155 !important;
    line-height: 1.5 !important;
}

.dark .ot-card-body {
    color: #cbd5e1 !important;
}

/* Cost Breakdown Banner */
.ot-cost-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid #334155 !important;
    border-radius: 0.875rem !important;
    padding: 1.125rem !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15) !important;
}

.ot-cost-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #60a5fa !important;
    margin-bottom: 0.875rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 0.5rem !important;
}

.ot-cost-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.75rem !important;
}

@media (max-width: 768px) {
    .ot-cost-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.ot-cost-card {
    background-color: rgba(30, 41, 59, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0.5rem !important;
    padding: 0.625rem 0.75rem !important;
    text-align: center !important;
}

.ot-cost-card-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(29, 78, 216, 0.35) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.ot-cost-label {
    display: block !important;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #94a3b8 !important;
    margin-bottom: 0.25rem !important;
}

.ot-cost-value {
    font-size: 0.9375rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.ot-cost-value-highlight {
    font-size: 1.0625rem !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
}

/* Tables in Modal */
.ot-table-wrapper {
    overflow-x: auto !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.625rem !important;
    background-color: #ffffff !important;
}

.dark .ot-table-wrapper {
    border-color: #334155 !important;
    background-color: #1e293b !important;
}

.ot-table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
    font-size: 0.75rem !important;
}

.ot-table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.05em !important;
    padding: 0.625rem 0.875rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.dark .ot-table th {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

.ot-table td {
    padding: 0.625rem 0.875rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
}

.dark .ot-table td {
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

.ot-table tr:last-child td {
    border-bottom: none !important;
}

.ot-table tr:hover td {
    background-color: #f8fafc !important;
}

.dark .ot-table tr:hover td {
    background-color: rgba(51, 65, 85, 0.4) !important;
}

/* Evidences Gallery */
.ot-evidence-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 0.875rem !important;
}

.ot-evidence-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.625rem !important;
    overflow: hidden !important;
    padding: 0.5rem !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.dark .ot-evidence-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.ot-evidence-img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 0.375rem !important;
    transition: transform 0.2s ease !important;
}

.ot-evidence-img:hover {
    transform: scale(1.03) !important;
}

.ot-evidence-notes {
    font-size: 0.6875rem !important;
    color: #64748b !important;
    font-style: italic !important;
    margin-top: 0.375rem !important;
    padding: 0 0.25rem !important;
}

.dark .ot-evidence-notes {
    color: #94a3b8 !important;
}

/* Signatures */
.ot-signatures-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
}

.ot-sig-box {
    background-color: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 0.625rem !important;
    padding: 0.875rem !important;
    text-align: center !important;
}

.dark .ot-sig-box {
    background-color: rgba(15, 23, 42, 0.5) !important;
    border-color: #475569 !important;
}

.ot-sig-img {
    max-height: 55px !important;
    max-width: 160px !important;
    margin: 0 auto 0.5rem auto !important;
    display: block !important;
}

.ot-sig-placeholder {
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    font-style: italic !important;
    font-size: 0.75rem !important;
}

/* ==========================================================================
   7.1 TABLE ACTIONS: SLEEK, REFINED & COMPACT ICON BUTTONS
   ========================================================================== */

/* Actions Column: Compact Width & Left Alignment */
.fi-ta-actions-header-cell,
.fi-ta-actions-cell,
th[class*="actions"],
td[class*="actions"] {
    white-space: nowrap !important;
}

.fi-ta-actions,
div[class*="fi-ta-actions"],
td[class*="actions"] > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
}

/* Ensure regular text buttons size naturally and don't get squished */
.fi-ta-actions .fi-btn,
.fi-ta-actions a.fi-btn,
.fi-ta-actions button.fi-btn {
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 0.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

/* Icon-only buttons (when explicitly iconButton()) */
.fi-ta-actions .fi-icon-btn,
.fi-ta-actions a.fi-icon-btn,
.fi-ta-actions button.fi-icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    min-height: 2rem !important;
    padding: 0 !important;
    border-radius: 0.4rem !important;
}



/* ========================================================================
   CUSTOMIZER DRAWER - CHECKBOX TEXT & BUTTON ROUNDED
   ======================================================================== */

/* Botones dentro del desplegable (Habilitar Drag & Drop, Restablecer): Bordes redondeados */
[x-show="showCustomizer"] button {
    border-radius: 9999px !important;
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
    transition: all 0.2s ease !important;
}

/* Contenedor principal del desplegable en modo dark */
.dark [x-show="showCustomizer"] {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

/* Opciones / Checkboxes del desplegable en modo dark */
.dark [x-show="showCustomizer"] label {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Texto de los checkboxes en modo dark: Blanco / Slate claro de alto contraste */
.dark [x-show="showCustomizer"] label span,
.dark [x-show="showCustomizer"] label {
    color: #e2e8f0 !important;
}





/* Resaltado tenue rojizo para repuestos bajo stock mínimo */
tr.row-low-stock,
tr.row-low-stock > td {
    background-color: rgba(254, 226, 226, 0.55) !important;
}

tr.row-low-stock:hover,
tr.row-low-stock:hover > td {
    background-color: rgba(254, 202, 202, 0.75) !important;
}

.dark tr.row-low-stock,
.dark tr.row-low-stock > td {
    background-color: rgba(127, 29, 29, 0.28) !important;
}

.dark tr.row-low-stock:hover,
.dark tr.row-low-stock:hover > td {
    background-color: rgba(127, 29, 29, 0.45) !important;
}
