@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    font-family: 'Montserrat', sans-serif;
}
h1, h2, h3, h4, h5, h6{
    font-family: 'Crimson Pro', serif;
}
.custom-toggle::after{
    display: none;
}

body {
    background: #f5f7fb;
}

.app-toast-container {
    bottom: auto !important;
    left: auto !important;
    position: fixed !important;
    right: 1rem !important;
    top: 4.75rem !important;
    width: min(24rem, calc(100vw - 2rem)) !important;
    z-index: 1090 !important;
}

.app-toast {
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.app-toast .toast-body {
    align-items: center;
    display: flex;
    font-weight: 600;
    line-height: 1.35;
    min-height: 3rem;
}

.nav-search-form {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    max-width: 24rem;
    min-width: 0;
    width: 100%;
}

.nav-search-form .form-control {
    min-width: 0;
}

.nav-search-form .btn {
    flex: 0 0 auto;
}

.dashboard-page .card,
.dashboard-filter,
.selected-employee {
    border-radius: 8px;
}

.dashboard-filter,
.selected-employee {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
}

.dashboard-stat {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-stat-link {
    color: inherit;
}

.dashboard-stat:hover,
.relationship-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.11) !important;
}

.stat-icon {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.relationship-card {
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.insight-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.11) !important;
}

.stat-icon-sm {
    flex: 0 0 2rem;
    height: 2rem;
    width: 2rem;
}

.employee-chip {
    background: #eef2ff;
    border: 1px solid #dbe4ff;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    padding: 0.35rem 0.65rem;
}

.employee-chip:hover {
    background: #dbeafe;
    color: #1e40af;
}

.employee-chip-muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.department-breakdown {
    scroll-margin-top: 1rem;
}

.department-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.employee-page .dashboard-filter {
    scroll-margin-top: 1rem;
}

.employee-results {
    scroll-margin-top: 1rem;
}

.employee-list-table .btn-sm {
    align-items: center;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.employee-row-inactive {
    --bs-table-bg: #fff5f5;
    --bs-table-striped-bg: #fff5f5;
}

.employee-mobile-list {
    display: grid;
    gap: 0.85rem;
}

.employee-mobile-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.employee-mobile-card-inactive {
    border-color: rgba(220, 53, 69, 0.22);
}

.employee-mobile-card-selected {
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 0.75rem 1.75rem rgba(13, 110, 253, 0.12);
}

.employee-mobile-card-header {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1rem 0.85rem;
}

.employee-avatar {
    align-items: center;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    color: #0369a1;
    display: inline-flex;
    flex: 0 0 2.65rem;
    font-weight: 700;
    height: 2.65rem;
    justify-content: center;
    width: 2.65rem;
}

.employee-mobile-title {
    flex: 1;
    min-width: 0;
}

.employee-mobile-title h3 {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.2rem;
    overflow-wrap: anywhere;
}

.employee-mobile-title p {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0;
}

.employee-mobile-meta {
    border-top: 1px solid #eef2f7;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-mobile-meta-item {
    border-bottom: 1px solid #eef2f7;
    min-width: 0;
    padding: 0.75rem 1rem;
}

.employee-mobile-meta-item:nth-child(odd) {
    border-right: 1px solid #eef2f7;
}

.employee-mobile-meta-item span {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.employee-mobile-meta-item strong {
    color: #1e293b;
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.employee-mobile-actions {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(5.75rem, 1fr));
    padding: 0.85rem 1rem 1rem;
}

.employee-mobile-actions .btn,
.employee-mobile-actions form {
    width: 100%;
}

.employee-mobile-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 2.25rem;
}

.employee-mobile-empty {
    align-items: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
}

.employee-mobile-empty i {
    font-size: 1.5rem;
}

.mobile-filter-bar {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.85rem;
}

.mobile-filter-bar span {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mobile-filter-bar strong {
    color: #0f172a;
    display: block;
    font-size: 0.95rem;
}

.mobile-filter-bar .btn {
    align-items: center;
    display: inline-flex;
    min-height: 2.4rem;
}

.employee-filter-offcanvas {
    border-radius: 8px 8px 0 0;
    height: min(82vh, 38rem) !important;
}

.employee-filter-offcanvas .offcanvas-header {
    border-bottom: 1px solid #eef2f7;
    padding: 1rem;
}

.employee-filter-offcanvas .offcanvas-title {
    color: #0f172a;
    font-family: 'Crimson Pro', serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.employee-filter-offcanvas .offcanvas-body {
    padding: 1rem;
}

.mobile-filter-form {
    display: grid;
    gap: 0.9rem;
    padding-bottom: 0.75rem;
}

.mobile-filter-form .form-label {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.mobile-filter-actions {
    background: #ffffff;
    bottom: 0;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 1fr 1fr;
    padding-top: 0.25rem;
    position: sticky;
}

.mobile-filter-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 2.5rem;
}

.dashboard-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dashboard-table tbody td,
.dashboard-table thead th {
    padding: 1rem;
}

@media (max-width: 575.98px) {
    .employee-page {
        padding-top: 1rem !important;
    }

    .employee-page .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .dashboard-filter,
    .selected-employee {
        padding: 1rem;
    }

    .employee-results > .d-flex:first-child {
        align-items: flex-start;
    }

    .employee-results .h4 {
        font-size: 1.2rem;
    }

    .dashboard-table tbody td,
    .dashboard-table thead th {
        padding: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .nav-search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        margin-left: 0;
        margin-top: 0.75rem;
        max-width: none;
    }
}
