﻿/* EMSL CRM - Bootstrap custom overrides and utilities */

/* Alpine.js cloak - hide until hydrated */
/*[x-cloak] {
    display: none !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --bg-light: #f0f4f6;
    --bg-soft: #f3f2ef;
    --bg-teal: #eaf6f7;
    --bg-sky: #c2f5ff;
    --border: #d5dee3;
    --border-alt: #babec5;
    --text-dark: #21262a;
    --text-navy: #00254a;
    --text-mid: #181c1f;
    --green-lite: #5bef76;
    --green-mid: #3bd85e;
    --green-main: #0fd46c;
    --green-deep: #00a63b;
    --black: #000000;
}*/

/* Modal overlay - for create/edit modals (Bootstrap modal alternative) */
/*.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 1rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,37,74,.5);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    z-index: 1001;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,37,74,.2);
    overflow: hidden;
}

.modal-x {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--border-alt);
    cursor: pointer;
    line-height: 1;
}*/

/* Loading spinner */
/*@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}*/

/* Sidebar - collapsible width */
/*.sidebar {
    width: 16rem;
    transition: width 0.3s, margin 0.3s;
}

    .sidebar.collapsed {
        width: 0;
        margin-left: -16rem;
        overflow: hidden;
    }*/

/* Custom scrollbar for sidebar nav */
/*.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}*/

/* Sidebar nav links - hover and active */
/*.sidebar .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary) !important;
}

.sidebar .nav-link.active {
    background-color: rgba(13, 110, 253, 0.15);
    color: var(--bs-primary) !important;
}*/


/* ─── LAYOUT ─────────────────────────────────── */
/*.admin-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}*/

/* ─── PANEL ──────────────────────────────────── */
/*.panel {
    background: #fff;
    border: 1px solid #dde3e8;
    border-radius: 10px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22px;
    border-bottom: 1px solid #dde3e8;
}

.panel-title {
    font-size: .88rem;
    font-weight: 700;
    color: #21262a;
    margin: 0;
}

.panel-body {
    padding: 22px;
}*/

/* ─── ALERTS ─────────────────────────────────── */
/*.crm-alert {
    padding: 10px 14px;
    border-radius: 7px;
    font-size: .81rem;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.crm-alert-success {
    background: #e6faf0;
    border-color: #b3efd1;
    color: #00622a;
}

.crm-alert-danger {
    background: #fdecea;
    border-color: #f5c2bb;
    color: #8b1a10;
}*/

/* ─── FORM FIELDS ────────────────────────────── */
/*.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 18px;
}

    .form-grid .span-full {
        grid-column: 1/-1;
    }

.f-label {
    display: block;
    font-size: .71rem;
    font-weight: 600;
    color: #6b7c85;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.f-input,
.f-select,
.f-textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: .81rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    background: #fff;
    color: #21262a;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    box-sizing: border-box;
}

    .f-input:focus,
    .f-select:focus,
    .f-textarea:focus {
        border-color: #0fd46c;
        box-shadow: 0 0 0 3px rgba(15, 212, 108, .12);
    }

.f-textarea {
    resize: vertical;
}*/

/* ─── BUTTONS ────────────────────────────────── */
/* ─── BUTTONS ────────────────────────────────── */
/*.crm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}*/

/* Primary Button - Navy */
/*.crm-btn-primary {
    background: #00254a;
    color: #ffffff;
}

    .crm-btn-primary:hover {
        background: #181c1f;
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 37, 74, 0.2);
    }

    .crm-btn-primary:active {
        transform: translateY(0);
        box-shadow: none;
    }*/

/* Secondary Button - Soft Blue */
/*.crm-btn-secondary {
    background: #f0f4f6;
    color: #21262a;
}

    .crm-btn-secondary:hover {
        background: #eaf6f7;
        color: #00254a;
    }

    .crm-btn-secondary:active {
        background: #dbedee;
    }*/

/* Success Button - Green */
/*.crm-btn-success {
    background: #00a63b;
    color: #ffffff;
}

    .crm-btn-success:hover {
        background: #0fd46c;
        color: #003820;
    }

    .crm-btn-success:active {
        background: #3bd85e;
    }*/

/* Danger Button - Red (using a complementary red) */
/*.crm-btn-danger {
    background: #dc3545;
    color: #ffffff;
}

    .crm-btn-danger:hover {
        background: #c82333;
        color: #ffffff;
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
    }*/

/* Warning Button - Using your green shades for warning */
/*.crm-btn-warning {
    background: #5bef76;
    color: #00254a;
}

    .crm-btn-warning:hover {
        background: #3bd85e;
        color: #00254a;
    }

    .crm-btn-warning:active {
        background: #0fd46c;
    }*/

/* Info Button - Cyan */
/*.crm-btn-info {
    background: #c2f5ff;
    color: #00254a;
}

    .crm-btn-info:hover {
        background: #eaf6f7;
        color: #00254a;
    }

    .crm-btn-info:active {
        background: #dbedee;
    }*/

/* Dark Button */
/*.crm-btn-dark {
    background: #21262a;
    color: #ffffff;
}

    .crm-btn-dark:hover {
        background: #181c1f;
        color: #ffffff;
    }

    .crm-btn-dark:active {
        background: #000000;
    }*/

/* Light Button */
/*.crm-btn-light {
    background: #ffffff;
    color: #21262a;
    border: 1px solid #d5dee3;
}

    .crm-btn-light:hover {
        background: #f3f2ef;
        border-color: #babec5;
    }

    .crm-btn-light:active {
        background: #dbedee;
    }*/

/* Outline Button Variations */
/*.crm-btn-outline-primary {
    background: transparent;
    color: #00254a;
    border: 1px solid #00254a;
}

    .crm-btn-outline-primary:hover {
        background: #00254a;
        color: #ffffff;
    }

.crm-btn-outline-success {
    background: transparent;
    color: #00a63b;
    border: 1px solid #00a63b;
}

    .crm-btn-outline-success:hover {
        background: #00a63b;
        color: #ffffff;
    }

.crm-btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

    .crm-btn-outline-danger:hover {
        background: #dc3545;
        color: #ffffff;
    }

.crm-btn-outline-info {
    background: transparent;
    color: #00254a;
    border: 1px solid #c2f5ff;
}

    .crm-btn-outline-info:hover {
        background: #c2f5ff;
        color: #00254a;
    }*/

/* Ghost Buttons (no border, subtle hover) */
/*.crm-btn-ghost {
    background: transparent;
    color: #21262a;
}

    .crm-btn-ghost:hover {
        background: #f0f4f6;
        color: #00254a;
    }

    .crm-btn-ghost:active {
        background: #eaf6f7;
    }

.crm-btn-ghost-primary {
    background: transparent;
    color: #00254a;
}

    .crm-btn-ghost-primary:hover {
        background: rgba(0, 37, 74, 0.08);
        color: #00254a;
    }

    .crm-btn-ghost-primary:active {
        background: rgba(0, 37, 74, 0.12);
    }*/

/* Rounded Button Variation */
/*.crm-btn-rounded {
    border-radius: 30px;
    padding: 7px 20px;
}*/

/* Small Button */
/*.crm-btn-sm {
    font-size: .7rem;
    padding: 5px 10px;
    gap: 4px;
}*/

/* Large Button */
/*.crm-btn-lg {
    font-size: .9rem;
    padding: 10px 20px;
    gap: 8px;
}*/

/* Block Button (full width) */
/*.crm-btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}*/

/* Icon Button (circular) */
/*.crm-btn-icon {
    padding: 8px;
    border-radius: 50%;
    aspect-ratio: 1;
}

    .crm-btn-icon i,
    .crm-btn-icon svg {
        font-size: 1rem;
        margin: 0;
    }*/

/* Disabled State */
/*.crm-btn:disabled,
.crm-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #babec5;
    color: #f3f2ef;
}*/

/* Loading State */
/*.crm-btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

    .crm-btn-loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: crm-spin 0.8s linear infinite;
    }

@keyframes crm-spin {
    to {
        transform: rotate(360deg);
    }
}*/

/* Button Groups */
/*.crm-btn-group {
    display: inline-flex;
    gap: 0;
}

    .crm-btn-group .crm-btn {
        border-radius: 0;
    }

        .crm-btn-group .crm-btn:first-child {
            border-top-left-radius: 6px;
            border-bottom-left-radius: 6px;
        }

        .crm-btn-group .crm-btn:last-child {
            border-top-right-radius: 6px;
            border-bottom-right-radius: 6px;
        }

        .crm-btn-group .crm-btn:not(:last-child) {
            border-right: 1px solid rgba(255, 255, 255, 0.2);
        }*/

/* Social Media Buttons */
/*.crm-btn-facebook {
    background: #3b5998;
    color: #ffffff;
}

    .crm-btn-facebook:hover {
        background: #2d4373;
    }

.crm-btn-instagram {
    background: #E1306C;
    color: #ffffff;
}

    .crm-btn-instagram:hover {
        background: #c13584;
    }

.crm-btn-google {
    background: #ffffff;
    color: #21262a;
    border: 1px solid #d5dee3;
}

    .crm-btn-google:hover {
        background: #f3f2ef;
    }*/

/* Gradient Buttons using your colors */
/*.crm-btn-gradient-green {
    background: linear-gradient(135deg, #00a63b 0%, #0fd46c 100%);
    color: #ffffff;
}

    .crm-btn-gradient-green:hover {
        background: linear-gradient(135deg, #0fd46c 0%, #3bd85e 100%);
        color: #003820;
    }

.crm-btn-gradient-navy {
    background: linear-gradient(135deg, #00254a 0%, #21262a 100%);
    color: #ffffff;
}

    .crm-btn-gradient-navy:hover {
        background: linear-gradient(135deg, #21262a 0%, #181c1f 100%);
    }*/

/* Link Styles (your existing) */
/*.crm-link {
    font-size: .75rem;
    font-weight: 600;
    color: #00a63b;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s;
}

    .crm-link:hover {
        color: #007a2b;
        text-decoration: underline;
    }

.crm-link-primary {
    color: #00254a;
}

    .crm-link-primary:hover {
        color: #181c1f;
    }

.crm-link-muted {
    color: #6c757d;
}

    .crm-link-muted:hover {
        color: #00254a;
    }*/
/* ─── FILTER BAR ─────────────────────────────── */
/*.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 14px 22px;
    border-bottom: 1px solid #dde3e8;
    background: #f7f9fb;
}

.filter-field {
    display: flex;
    flex-direction: column;
}

.f-filter {
    padding: 6px 10px;
    font-size: .78rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    background: #fff;
    color: #21262a;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

    .f-filter:focus {
        border-color: #0fd46c;
        box-shadow: 0 0 0 3px rgba(15, 212, 108, .12);
    }*/

/* ── ICON ACTION BUTTONS ── */
/*.row-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #dde3e8;
    background: #fff;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    flex-shrink: 0;
    padding: 0;
}

.row-edit-btn {
    color: #6b7c85;
}

    .row-edit-btn:hover {
        background: #e6eef5;
        border-color: #b8cfe0;
        color: #00254a;
    }

.row-del-btn {
    color: #6b7c85;
}

    .row-del-btn:hover {
        background: #fdecea;
        border-color: #f5c2bb;
        color: #d94f3d;
    }*/


/* ─── TABLE ──────────────────────────────────── */
/*.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table thead tr {
        border-bottom: 2px solid #dde3e8;
    }

    .data-table th {
        padding: 9px 16px;
        font-size: .67rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .07em;
        color: #6b7c85;
        background: #f7f9fb;
        text-align: left;
        white-space: nowrap;
    }

        .data-table th a,
        .data-table th button {
            color: #6b7c85;
            text-decoration: none;
            background: none;
            border: none;
            cursor: pointer;
            font: inherit;
            padding: 0;
        }

            .data-table th a:hover,
            .data-table th button:hover {
                color: #21262a;
            }

    .data-table tbody tr {
        border-bottom: 1px solid #edf1f4;
        transition: background .1s;
    }

        .data-table tbody tr:last-child {
            border-bottom: none;
        }

        .data-table tbody tr:hover {
            background: #f7f9fb;
        }

    .data-table td {
        padding: 11px 16px;
        font-size: .81rem;
        color: #21262a;
        vertical-align: middle;
    }

        .data-table td.col-muted {
            color: #6b7c85;
        }

        .data-table td.col-id {
            font-size: .72rem;
            font-weight: 600;
            color: #6b7c85;
            font-family: 'Courier New', monospace;
        }

        .data-table td.col-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }*/
/* ─── EMPTY STATE ────────────────────────────── */
/*.empty-state {
    padding: 40px 22px;
    text-align: center;
    color: #6b7c85;
    font-size: .82rem;
}*/

/* ─── PAGINATION WRAPPER ─────────────────────── */
/*.pagination-wrap {
    padding: 12px 22px;
    border-top: 1px solid #edf1f4;
}*/


/* ── MODAL ── */
/*.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    width: 100%;
    max-width: 30rem;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;*/
/*padding: 16px 22px;*/
/*border-bottom: 1px solid #dde3e8;
padding: 1.1rem 1.5rem;
border-bottom: 1px solid var(--border);
background: var(--bg-soft);
}

.modal-title {
font-size: .9rem;
font-weight: 700;
color: #21262a;
margin: 0;
}

.modal-close {
background: none;
border: none;
cursor: pointer;
color: #6b7c85;
padding: 4px;
border-radius: 5px;
display: flex;
align-items: center;
transition: background .12s, color .12s;
}

.modal-close:hover {
    background: #f0f4f6;
    color: #21262a;
}

.modal-body {
padding: 22px;
display: flex;
flex-direction: column;
gap: 14px;
}

.modal-footer {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 14px 22px;
border-top: 1px solid #dde3e8;
background: #fafbfc;
}*/

/* ── TINY INPUT SPINNER ───────────────────────── */
/*.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.spinner-tiny {
    position: absolute;
    right: 10px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(15, 212, 108, 0.2);
    border-top-color: #0fd46c;
    border-radius: 50%;
    animation: spin-tiny 0.6s linear infinite;
}

@keyframes spin-tiny {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width:900px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}*/


/* Offcanvas animations and styling */
/*.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    visibility: hidden;
    background-color: transparent;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    box-shadow: -4px 0 20px rgba(0, 37, 74, 0.15);
}

    .offcanvas.show {
        visibility: visible;
        transform: translateX(0);
    }

    .offcanvas.offcanvas-end {
        top: 0;
        right: 0;
        width: 450px;
        border-left: 1px solid #dbedee;
        transform: translateX(100%);
    }

    .offcanvas.show.offcanvas-end {
        transform: translateX(0);
    }

.offcanvas-header {
    padding: 1.25rem 1.5rem;
    background-color: #00254a;
}

.offcanvas-body {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: #f3f2ef;
}*/

/* Custom scrollbar */
/*.offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: #dbedee;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: #00a63b;
    border-radius: 3px;
}

    .offcanvas-body::-webkit-scrollbar-thumb:hover {
        background: #0fd46c;
    }*/

/* Backdrop */
/*.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    transition: opacity 0.3s ease;
}

    .offcanvas-backdrop.show {
        opacity: 0.5;
    }

    .offcanvas-backdrop.fade {
        opacity: 0;
    }*/

/* Card hover effects */
/*.card .form-check:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 166, 59, 0.1);
}*/

/* Progress bar animation */
/*.progress-bar {
    transition: width 0.3s ease;
}*/

/* Badge animations */
/*.badge {
    transition: all 0.2s ease;
}*/

/* Checkbox custom styling */
/*.form-check-input:checked {
    background-color: #00a63b;
    border-color: #00a63b;
}

.form-check-input:focus {
    border-color: #00a63b;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 166, 59, 0.25);
}

.form-check-input:disabled {
    background-color: #babec5;
    border-color: #babec5;
    opacity: 0.5;
}*/

/* Group header badge animation */
/*.badge.me-2 {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 166, 59, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 166, 59, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 166, 59, 0);
    }
}*/

/* Save button hover effect */
/*.sticky-bottom .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 37, 74, 0.2);
    background: linear-gradient(135deg, #181c1f 0%, #00254a 100%) !important;
}*/

/* Soft green background utility */
/*.bg-soft-green {
    background-color: #f0fff4 !important;
}*/


/* User Dropdown - QuickBooks Style */
/*.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    background: white;
    border: 1px solid #d5dee3;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

    .user-btn:hover {
        background: #f0f4f6;
        border-color: #00254a;
        box-shadow: 0 2px 8px rgba(0, 37, 74, 0.1);
    }

    .user-btn:focus {
        outline: none;
        border-color: #00a63b;
        box-shadow: 0 0 0 3px rgba(0, 166, 59, 0.15);
    }*/

/* Avatar */
/*.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00254a 0%, #181c1f 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    border: 2px solid #00a63b;
    transition: all 0.2s ease;
}

.user-btn:hover .avatar {
    transform: scale(1.05);
    border-color: #0fd46c;
}*/

/* User Name */
/*.user-name {
    font-weight: 500;
    color: #21262a;
    font-size: 0.9rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}*/

/* Dropdown Menu */
/*.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #dbedee;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 37, 74, 0.15);
    padding: 8px 0;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/* Dropdown Items */
/*.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #21262a;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

    .dropdown-item i {
        width: 18px;
        color: #00254a;
        transition: color 0.15s ease;
    }

    .dropdown-item:hover {
        background: #f0f4f6;
        color: #00254a;
        padding-left: 20px;
    }

        .dropdown-item:hover i {
            color: #00a63b;
        }

    .dropdown-item.text-danger {
        color: #dc3545 !important;
    }

        .dropdown-item.text-danger i {
            color: #dc3545;
        }

        .dropdown-item.text-danger:hover {
            background: #fff5f5;
        }*/

/* Dropdown Divider */
/*.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: linear-gradient(90deg, transparent, #dbedee 20%, #dbedee 80%, transparent);
    border: 0;
}*/

/* Rotate animation for chevron */
/*.rotate-180 {
    transform: rotate(180deg);
}*/

/* Mobile Responsive */
/*@media (max-width: 768px) {
    .user-name {
        max-width: 80px;
    }

    .dropdown-menu {
        right: -10px;
        min-width: 180px;
    }
}*/

/* Dark mode support (if needed) */
/*@media (prefers-color-scheme: dark) {
    .user-btn {
        background: #21262a;
        border-color: #00254a;
    }

        .user-btn:hover {
            background: #181c1f;
        }

    .user-name {
        color: white;
    }

    .dropdown-menu {
        background: #21262a;
        border-color: #00254a;
    }

    .dropdown-item {
        color: white;
    }

        .dropdown-item:hover {
            background: #00254a;
        }

    .dropdown-divider {
        background: linear-gradient(90deg, transparent, #00254a 20%, #00254a 80%, transparent);
    }
}*/

/*===========================================================================
  EMSL CRM - Master Stylesheet
  custom color palette
  ===========================================================================*/

/*---------------------------------------------------------------------------
  RESET & BASE STYLES
  ---------------------------------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Core Colors */
    --white: #ffffff;
    --bg-light: #f0f4f6;
    --bg-soft: #f3f2ef;
    --bg-teal: #eaf6f7;
    --bg-sky: #c2f5ff;
    --border-light: #d5dee3;
    --border-mid: #dbedee;
    --border-alt: #babec5;
    --text-dark: #21262a;
    --text-navy: #00254a;
    --text-mid: #181c1f;
    --text-muted: #6b7c85;
    /* Green Accents */
    --green-lite: #5bef76;
    --green-mid: #3bd85e;
    --green-main: #0fd46c;
    --green-deep: #00a63b;
    /* Utility */
    --danger: #dc3545;
    --danger-dark: #c82333;
    --danger-bg: #fff5f5;
    --black: #000000;
    /* Layout */
    --sidebar-width: 248px;
    --header-height: 58px;
    /* Component Specific */
    --sidebar-bg: #21262a;
    --sidebar-text: #a8b5bc;
    --sidebar-active: #ffffff;
    --sidebar-active-bg: rgba(15, 212, 108, 0.15);
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --accent: var(--green-main);
    --accent-dark: var(--green-deep);
    --accent-navy: var(--text-navy);
    --border: #dde3e8;
    --text: var(--text-dark);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: flex;
}

/*---------------------------------------------------------------------------
  UTILITY CLASSES
  ---------------------------------------------------------------------------*/
[x-cloak] {
    display: none !important;
}

.rotate-180 {
    transform: rotate(180deg);
}

.bg-soft-green {
    background-color: #f0fff4 !important;
}

/*---------------------------------------------------------------------------
  LAYOUT
  ---------------------------------------------------------------------------*/
.admin-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/*---------------------------------------------------------------------------
  SIDEBAR
  ---------------------------------------------------------------------------*/
aside {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    transition: width 0.25s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

aside.collapsed {
    width: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.sidebar-logo a {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo-badge {
    background: var(--accent);
    color: var(--text-navy);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sidebar-text);
    padding: 5px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    color: #fff;
    background: var(--sidebar-hover);
}

nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

nav::-webkit-scrollbar {
    width: 3px;
}

nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.81rem;
    font-weight: 400;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.12s;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active);
    font-weight: 600;
    position: relative;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.nav-footer {
    padding: 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.nav-footer a {
    display: block;
    font-size: 0.73rem;
    color: rgba(168, 181, 188, 0.5);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s;
    font-family: 'Courier New', monospace;
}

.nav-footer a:hover {
    color: var(--sidebar-text);
    background: var(--sidebar-hover);
}

/* Collapsible Nav Group */
.nav-group-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    color: rgba(168, 181, 188, 0.6);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 14px;
    transition: all 0.12s;
    font-family: 'Inter', sans-serif;
}

.nav-group-btn:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
}

.nav-group-btn .chevron {
    transition: transform 0.2s ease;
    color: rgba(168, 181, 188, 0.4);
    flex-shrink: 0;
}

.nav-group-btn.open .chevron {
    transform: rotate(180deg);
}

.nav-group-btn .group-icon {
    color: var(--accent);
    margin-right: 5px;
    opacity: 0.7;
}

.nav-group-items {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s cubic-bezier(.4, 0, .2, 1);
}

.nav-group-items.open {
    max-height: 600px;
}

.nav-group-items .nav-link {
    padding-left: 26px;
    font-size: 0.79rem;
}

/*---------------------------------------------------------------------------
  HEADER
  ---------------------------------------------------------------------------*/
header {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.15s;
}

.menu-btn:hover {
    background: var(--bg-light);
    color: var(--text);
}

.page-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.12s;
    text-decoration: none;
}

.icon-btn:hover {
    background: var(--bg-light);
    color: var(--text);
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    background: var(--danger);
    border-radius: 50%;
    border: 1.5px solid var(--white);
    display: none;
}

/*---------------------------------------------------------------------------
  USER DROPDOWN - QuickBooks Style
  ---------------------------------------------------------------------------*/
.dropdown-container {
    position: relative;
    display: inline-block;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.user-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-navy);
    box-shadow: 0 2px 8px rgba(0, 37, 74, 0.1);
}

.user-btn:focus {
    outline: none;
    border-color: var(--green-deep);
    box-shadow: 0 0 0 3px rgba(0, 166, 59, 0.15);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--text-navy) 0%, var(--text-mid) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    border: 2px solid var(--green-deep);
    transition: all 0.2s ease;
}

.user-btn:hover .avatar {
    transform: scale(1.05);
    border-color: var(--green-main);
}

.user-name {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown Menu */

/* Dropdown Menu */
.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #dbedee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 37, 74, 0.15);
    z-index: 1000;
    overflow: hidden;
}

/* Dropdown Items */
.dropdown-item-custom {
    display: block;
    padding: 10px 16px;
    color: #21262a;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item-custom:hover {
    background: #f0f4f6;
    color: #00254a;
    padding-left: 20px;
}

.dropdown-item-custom.text-danger {
    color: #dc3545;
}

.dropdown-item-custom.text-danger:hover {
    background: #fff5f5;
}

/* Divider */
.dropdown-divider-custom {
    height: 1px;
    margin: 4px 0;
    background: #dbedee;
    border: none;
}

/* Animation */
.dropdown-enter-active {
    transition: opacity 0.2s, transform 0.2s;
}


.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border-mid);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 37, 74, 0.15);
    padding: 8px 0;
    z-index: 1000;
    overflow: hidden;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item i {
    width: 18px;
    color: var(--text-navy);
    transition: color 0.15s ease;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--text-navy);
    padding-left: 20px;
}

.dropdown-item:hover i {
    color: var(--green-deep);
}

.dropdown-item.text-danger {
    color: var(--danger) !important;
}

.dropdown-item.text-danger i {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background: var(--danger-bg);
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: linear-gradient(90deg, transparent, var(--border-mid) 20%, var(--border-mid) 80%, transparent);
    border: 0;
}

/* Dropdown Animations */
.dropdown-enter-active {
    transition: opacity 0.2s, transform 0.2s;
}

.dropdown-enter-from {
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown-enter-to {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-leave-active {
    transition: opacity 0.15s, transform 0.15s;
}

.dropdown-leave-from {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

/*---------------------------------------------------------------------------
  MAIN CONTENT
  ---------------------------------------------------------------------------*/
main {
    flex: 1;
    overflow-y: auto;
    padding: 28px 30px;
    background: var(--bg-light);
}

/*---------------------------------------------------------------------------
  PANELS & CARDS
  ---------------------------------------------------------------------------*/
.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22px;
    border-bottom: 1px solid var(--border);
}

.panel-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.panel-body {
    padding: 22px;
}

/* Card styles (for permissions, etc) */
.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-mid);
    padding: 1rem 1.25rem;
}

.card-header h5 {
    color: var(--text-navy);
    font-weight: 500;
    font-size: 1rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 1.25rem;
}

/*---------------------------------------------------------------------------
  FORM ELEMENTS
  ---------------------------------------------------------------------------*/

.f-label {
    display: block;
    font-size: .71rem;
    font-weight: 600;
    color: #6b7c85;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.f-input,
.f-select,
.f-textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: .81rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    background: #fff;
    color: #21262a;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    box-sizing: border-box;
}

.f-input:focus,
.f-select:focus,
.f-textarea:focus {
    border-color: #0fd46c;
    box-shadow: 0 0 0 3px rgba(15, 212, 108, .12);
}

.f-textarea {
    resize: vertical;
}


.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    color: var(--text-navy);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: block;
}

/*.form-control, .f-input, .f-select, .f-textarea, .f-filter {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    transition: all 0.15s;
    outline: none;
    box-sizing: border-box;
}

    .form-control:focus, .f-input:focus, .f-select:focus, .f-textarea:focus, .f-filter:focus {
        border-color: var(--green-main);
        box-shadow: 0 0 0 3px rgba(15, 212, 108, 0.12);
    }

    .form-control:disabled {
        background-color: var(--bg-light);
        border-color: var(--border-alt);
    }*/

.form-check {
    padding-left: 1.75rem;
    margin-bottom: 0.25rem;
}

.form-check-input {
    margin-top: 0.2rem;
}

.form-check-input:checked {
    background-color: var(--green-deep);
    border-color: var(--green-deep);
}

.form-check-input:focus {
    border-color: var(--green-deep);
    box-shadow: 0 0 0 0.25rem rgba(0, 166, 59, 0.25);
}

.form-check-input:disabled {
    background-color: var(--border-alt);
    border-color: var(--border-alt);
    opacity: 0.5;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
}

.form-check-label:hover {
    color: var(--text-navy);
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 18px;
}

.form-grid .span-full {
    grid-column: 1/-1;
}

/* Input group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control:not(:first-child) {
    border-left: none;
}

.input-group-append {
    display: flex;
}

.input-group-append .btn {
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-navy);
    border-radius: 0 6px 6px 0;
}

.input-group-append .btn:hover {
    background: var(--bg-light);
    border-color: var(--border-alt);
}

/*---------------------------------------------------------------------------
  BUTTONS
  ---------------------------------------------------------------------------*/
.crm-btn, .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

/* Primary Button - Navy */
.crm-btn-primary, .btn-primary {
    background: var(--text-navy);
    color: var(--white);
}

.crm-btn-primary:hover, .btn-primary:hover {
    background: var(--text-mid);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 37, 74, 0.2);
}

.crm-btn-primary:active, .btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Secondary Button - Soft Blue */
.crm-btn-secondary, .btn-secondary {
    background: var(--bg-light);
    color: var(--text);
}

.crm-btn-secondary:hover, .btn-secondary:hover {
    background: var(--bg-teal);
    color: var(--text-navy);
}

/* Success Button - Green */
.crm-btn-success, .btn-success {
    background: var(--green-deep);
    color: var(--white);
}

.crm-btn-success:hover, .btn-success:hover {
    background: var(--green-main);
    color: #003820;
}

/* Danger Button */
.crm-btn-danger, .btn-danger {
    background: var(--danger);
    color: var(--white);
}

.crm-btn-danger:hover, .btn-danger:hover {
    background: var(--danger-dark);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

/* Info Button - Cyan */
.crm-btn-info, .btn-info {
    background: var(--bg-sky);
    color: var(--text-navy);
}

.crm-btn-info:hover, .btn-info:hover {
    background: var(--bg-teal);
    color: var(--text-navy);
}

/* Light Button */
.crm-btn-light, .btn-light {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.crm-btn-light:hover, .btn-light:hover {
    background: var(--bg-soft);
    border-color: var(--border-alt);
}

/* Outline Buttons */
.crm-btn-outline-primary {
    background: transparent;
    color: var(--text-navy);
    border: 1px solid var(--text-navy);
}

.crm-btn-outline-primary:hover {
    background: var(--text-navy);
    color: var(--white);
}

.crm-btn-outline-success {
    background: transparent;
    color: var(--green-deep);
    border: 1px solid var(--green-deep);
}

.crm-btn-outline-success:hover {
    background: var(--green-deep);
    color: var(--white);
}

/* Ghost Buttons */
.crm-btn-ghost {
    background: transparent;
    color: var(--text);
}

.crm-btn-ghost:hover {
    background: var(--bg-light);
    color: var(--text-navy);
}

/* Button Sizes */
.crm-btn-sm {
    font-size: .7rem;
    padding: 5px 10px;
    gap: 4px;
}

.crm-btn-lg {
    font-size: .9rem;
    padding: 10px 20px;
    gap: 8px;
}

.crm-btn-rounded {
    border-radius: 30px;
}

.crm-btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.crm-btn-icon {
    padding: 8px;
    border-radius: 50%;
    aspect-ratio: 1;
}

/* Button States */
.crm-btn:disabled, .btn:disabled,
.crm-btn.disabled, .btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: var(--border-alt);
    color: var(--bg-soft);
}

/* Loading State */
.crm-btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.crm-btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* Button Groups */
.crm-btn-group {
    display: inline-flex;
    gap: 0;
}

.crm-btn-group .crm-btn,
.crm-btn-group .btn {
    border-radius: 0;
}

.crm-btn-group .crm-btn:first-child,
.crm-btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.crm-btn-group .crm-btn:last-child,
.crm-btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/*---------------------------------------------------------------------------
  TABLES
  ---------------------------------------------------------------------------*/
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    border-bottom: 2px solid var(--border);
}

.data-table th {
    padding: 9px 16px;
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    background: #f7f9fb;
    text-align: left;
    white-space: nowrap;
}

.data-table th a,
.data-table th button {
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.data-table th a:hover,
.data-table th button:hover {
    color: var(--text);
}

.data-table tbody tr {
    border-bottom: 1px solid #edf1f4;
    transition: background .1s;
}

.data-table tbody tr:hover {
    background: #f7f9fb;
}

.data-table td {
    padding: 11px 16px;
    font-size: .81rem;
    color: var(--text);
    vertical-align: middle;
}

.data-table td.col-muted {
    color: var(--text-muted);
}

.data-table td.col-id {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.data-table td.col-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Table action buttons */
.row-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    transition: all .12s;
    padding: 0;
}

.row-edit-btn {
    color: var(--text-muted);
}

.row-edit-btn:hover {
    background: #e6eef5;
    border-color: #b8cfe0;
    color: var(--text-navy);
}

.row-del-btn {
    color: var(--text-muted);
}

.row-del-btn:hover {
    background: var(--danger-bg);
    border-color: #f5c2bb;
    color: var(--danger);
}

/*---------------------------------------------------------------------------
  FILTER BAR
  ---------------------------------------------------------------------------*/
/*.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    background: #f7f9fb;
}

.filter-field {
    display: flex;
    flex-direction: column;
}*/

/* ─── FILTER BAR ─────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 14px 22px;
    border-bottom: 1px solid #dde3e8;
    background: #f7f9fb;
}

.filter-field {
    display: flex;
    flex-direction: column;
}

.f-filter {
    padding: 6px 10px;
    font-size: .78rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    background: #fff;
    color: #21262a;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.f-filter:focus {
    border-color: #0fd46c;
    box-shadow: 0 0 0 3px rgba(15, 212, 108, .12);
}

/*---------------------------------------------------------------------------
  ALERTS
  ---------------------------------------------------------------------------*/
.alert, .crm-alert {
    padding: 10px 14px;
    border-radius: 7px;
    font-size: .81rem;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-info, .crm-alert-info {
    background: var(--bg-teal);
    color: var(--text-navy);
    border-left: 4px solid var(--text-navy);
}

.alert-success, .crm-alert-success {
    background: #e6faf0;
    border-color: #b3efd1;
    color: #00622a;
}

.alert-danger, .crm-alert-danger {
    background: #fdecea;
    border-color: #f5c2bb;
    color: #8b1a10;
}

/*---------------------------------------------------------------------------
  BADGES
  ---------------------------------------------------------------------------*/
.badge {
    padding: 0.35rem 0.65rem;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.badge-success {
    background: rgba(0, 166, 59, 0.1);
    color: var(--green-deep);
    border: 1px solid var(--green-deep);
}

.badge-secondary {
    background: var(--border-light);
    color: var(--text);
}

/*---------------------------------------------------------------------------
  MODALS
  ---------------------------------------------------------------------------*/
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 37, 74, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    
    
}

.modal-card{
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 37, 74, 0.2);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    
}
.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    z-index: 1001;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,37,74,.2);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.modal-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: all .12s;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text);
}

.modal-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

/* Modal loading */
.modal-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-loading .modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 37, 74, .5);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

/*---------------------------------------------------------------------------
  OFF-CANVAS
  ---------------------------------------------------------------------------*/
.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    visibility: hidden;
    background: transparent;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    box-shadow: -4px 0 20px rgba(0, 37, 74, 0.15);
}

.offcanvas.show {
    visibility: visible;
    transform: translateX(0);
}

.offcanvas.offcanvas-end {
    top: 0;
    right: 0;
    width: 450px;
    border-left: 1px solid var(--border-mid);
    transform: translateX(100%);
}

.offcanvas.show.offcanvas-end {
    transform: translateX(0);
}

.offcanvas-header {
    padding: 1.25rem 1.5rem;
    background: var(--text-navy);
}

.offcanvas-body {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--bg-soft);
}

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.offcanvas-backdrop.fade {
    opacity: 0;
}

.offcanvas-backdrop.show {
    opacity: 0.5;
}

/*---------------------------------------------------------------------------
  STATUS INDICATORS
  ---------------------------------------------------------------------------*/
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot-available {
    background: var(--green-main);
    box-shadow: 0 0 8px rgba(15, 212, 108, 0.6);
    animation: status-pulse 2s infinite;
}

.dot-busy {
    background: #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
    animation: status-pulse 2s infinite;
}

.dot-offline {
    background: var(--border-alt);
}

/* Pulse animation */
.pulse-available, .badge.me-2 {
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 212, 108, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(15, 212, 108, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 212, 108, 0);
    }
}

/*---------------------------------------------------------------------------
  ANIMATIONS
  ---------------------------------------------------------------------------*/
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-spin, .spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/*---------------------------------------------------------------------------
  PROGRESS BAR
  ---------------------------------------------------------------------------*/
.progress {
    height: 4px;
    background: var(--border-mid);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--green-deep);
    transition: width 0.3s ease;
}

/*---------------------------------------------------------------------------
  TOAST NOTIFICATIONS
  ---------------------------------------------------------------------------*/
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.toast:hover {
    transform: translateX(-2px);
}

.toast.success {
    background: var(--green-deep);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: #ffc107;
    color: var(--text);
}

.toast.info {
    background: var(--text-navy);
}

.toast .close {
    float: right;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    opacity: 0.8;
}

.toast .close:hover {
    opacity: 1;
}

/*---------------------------------------------------------------------------
  STATISTICS BOXES
  ---------------------------------------------------------------------------*/
.fb-leads-stat-box {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.fb-leads-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 37, 74, 0.08);
}

.fb-leads-stat-box .stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-navy);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.fb-leads-stat-box .stat-label {
    color: var(--text);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Border colors for stat boxes */
.fb-leads-stat-box.success {
    border-top: 4px solid var(--green-deep);
}

.fb-leads-stat-box.danger {
    border-top: 4px solid var(--danger);
}

.fb-leads-stat-box.warning {
    border-top: 4px solid #ffc107;
}

.fb-leads-stat-box.info {
    border-top: 4px solid var(--text-navy);
}

/*---------------------------------------------------------------------------
  STATUS INDICATORS (small dots)
  ---------------------------------------------------------------------------*/
.fb-leads-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.fb-leads-status-indicator.connected {
    background: var(--green-deep);
    box-shadow: 0 0 0 2px rgba(0, 166, 59, 0.2);
    animation: status-pulse 2s infinite;
}

.fb-leads-status-indicator.disconnected {
    background: var(--danger);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/*---------------------------------------------------------------------------
  HELP TEXT
  ---------------------------------------------------------------------------*/
.fb-leads-help-text {
    font-size: 0.8125rem;
    color: var(--border-alt);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.fb-leads-help-text a {
    color: var(--text-navy);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-navy);
}

.fb-leads-help-text a:hover {
    border-bottom: 1px solid var(--text-navy);
}

/*---------------------------------------------------------------------------
  SWEET ALERT CUSTOMIZATION
  ---------------------------------------------------------------------------*/
.swal2-styled.swal2-confirm .swal2-loader {
    border-color: #ffffff transparent #ffffff transparent;
}

.swal2-popup {
    border-radius: 12px !important;
    font-family: inherit;
}

/*---------------------------------------------------------------------------
  SELECT2 CUSTOMIZATION (if used)
  ---------------------------------------------------------------------------*/
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: var(--text);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--green-main);
    box-shadow: 0 0 0 3px rgba(15, 212, 108, 0.12);
}

/*---------------------------------------------------------------------------
  MEDIA QUERIES
  ---------------------------------------------------------------------------*/
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .user-name {
        max-width: 80px;
    }

    .dropdown-menu {
        right: -10px;
        min-width: 180px;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}


/* ── TINY INPUT SPINNER ───────────────────────── */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.spinner-tiny {
    position: absolute;
    right: 10px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(15, 212, 108, 0.2);
    border-top-color: #0fd46c;
    border-radius: 50%;
    animation: spin-tiny 0.6s linear infinite;
}

@keyframes spin-tiny {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #dbedee;
    border-top-color: #00a63b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── PAGINATION WRAPPER ─────────────────────── */
.pagination-wrap {
    padding: 12px 22px;
    border-top: 1px solid #edf1f4;
}


/*---------------------------------------------------------------------------
  DARK MODE SUPPORT (optional)
  ---------------------------------------------------------------------------*/
/*@media (prefers-color-scheme: dark) {
    .user-btn {
        background: var(--text);
        border-color: var(--text-navy);
    }

        .user-btn:hover {
            background: var(--text-mid);
        }

    .user-name {
        color: var(--white);
    }

    .dropdown-menu {
        background: var(--text);
        border-color: var(--text-navy);
    }

    .dropdown-item {
        color: var(--white);
    }

        .dropdown-item:hover {
            background: var(--text-navy);
        }

    .dropdown-divider {
        background: linear-gradient(90deg, transparent, var(--text-navy) 20%, var(--text-navy) 80%, transparent);
    }
}*/