/* OmniWork-360 - Theme Styling */
:root {
    --pharm-primary: #0f4c81;
    --pharm-primary-dark: #0a3258;
    --pharm-secondary: #00a896;
    --pharm-secondary-dark: #028090;
    --pharm-accent: #f4a261;
    --pharm-danger: #e63946;
    --pharm-success: #2a9d8f;
    --pharm-warning: #e76f51;
    --pharm-light: #f8f9fa;
    --pharm-dark: #1d2d44;
    --pharm-sidebar-bg: #0d2847;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333333;
}

/* Sidebar */
.app-sidebar {
    width: 260px;
    background: #243758;
    height: 100vh;
    max-height: 100dvh;
    position: sticky;
    top: 0;
    color: #cbd5e1;
    box-shadow: 2px 0 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    z-index: 1020;
}

.sidebar-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #223453;
}

.sidebar-nav {
    display: inline-block;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Custom sleek scrollbar for sidebar nav and app sidebar */
.app-sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}
.app-sidebar::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.app-sidebar::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.app-sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    position: relative;
    overflow: visible !important;
    background-color: #1a315b;
}

.sidebar-footer .dropup {
    position: relative;
    overflow: visible;
}

#sidebarUserDropdownMenu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: unset;
    margin: 0;
    z-index: 1060;
    background: #0d2847;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    padding: 0.35rem;
}

#sidebarUserDropdownMenu.show {
    display: block !important;
}

#sidebarUserDropdownMenu .dropdown-item {
    color: #cbd5e1;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    transition: all 0.15s ease-in-out;
}

#sidebarUserDropdownMenu .dropdown-item:hover,
#sidebarUserDropdownMenu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Searchable Multi-Select Employee Dropdown Component */
.employee-multiselect-box {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #ffffff;
    min-height: 44px;
    padding: 0.375rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    cursor: text;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.employee-multiselect-box.is-focused {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.employee-tag {
    background: linear-gradient(135deg, #0f4c81 0%, #00a896 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.employee-tag .btn-remove-tag {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
    margin-left: 0.25rem;
    line-height: 1;
    cursor: pointer;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease-in-out;
}

.employee-tag .btn-remove-tag:hover {
    color: #ffffff;
}

.employee-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    margin-top: 0.25rem;
    max-height: 280px;
    overflow-y: auto;
}

.employee-dropdown-item {
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.15s ease-in-out;
    border-bottom: 1px solid #f1f5f9;
}

.employee-dropdown-item:last-child {
    border-bottom: none;
}

.employee-dropdown-item:hover {
    background-color: #f8fafc;
}

.employee-dropdown-item.is-selected {
    background-color: #f0fdfa;
}

.company-domain-link {
    color: #94a3b8;
    transition: color 0.15s ease-in-out;
    max-width: 100%;
}

.company-domain-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.app-sidebar .brand-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

.app-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    margin: 2px 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.app-sidebar .nav-link i {
    font-size: 1.15rem;
    margin-right: 12px;
    width: 22px;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.app-sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.app-sidebar .nav-link:hover i {
    transform: scale(1.18);
}

.app-sidebar .nav-link.active {
    color: #ffffff !important;
    background: #1a315b !important;
    font-weight: 600;
    box-shadow: 0 0 4px rgb(0 255 228 / 35%);
    border-left: 8px solid #00ffe4;
}

.app-sidebar .nav-link.active i {
    filter: drop-shadow(0 0 6px currentColor);
}

/* Sidebar Nav Icon Vibrant Palette (High-contrast against dark navy #0d2847) */
.app-sidebar .icon-cyan    { color: #00f0ff !important; }
.app-sidebar .icon-sky     { color: #38bdf8 !important; }
.app-sidebar .icon-blue    { color: #60a5fa !important; }
.app-sidebar .icon-indigo  { color: #818cf8 !important; }
.app-sidebar .icon-purple  { color: #c084fc !important; }
.app-sidebar .icon-pink    { color: #f472b6 !important; }
.app-sidebar .icon-rose    { color: #fb7185 !important; }
.app-sidebar .icon-red     { color: #f87171 !important; }
.app-sidebar .icon-orange  { color: #fb923c !important; }
.app-sidebar .icon-amber   { color: #f59e0b !important; }
.app-sidebar .icon-yellow  { color: #facc15 !important; }
.app-sidebar .icon-lime    { color: #a3e635 !important; }
.app-sidebar .icon-green   { color: #4ade80 !important; }
.app-sidebar .icon-emerald { color: #10b981 !important; }
.app-sidebar .icon-teal    { color: #2dd4bf !important; }

.sidebar-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    padding: 0.8rem 1.5rem 0.3rem;
    font-weight: 700;
}

/* Header & Navbar */
.app-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

/* Cards */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0 !important;
}

/* Stat Cards */
.stat-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.stat-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Badges */
.badge-priority-urgent { background-color: #dc3545; color: white; }
.badge-priority-high { background-color: #fd7e14; color: white; }
.badge-priority-medium { background-color: #0d6efd; color: white; }
.badge-priority-low { background-color: #6c757d; color: white; }

.badge-status-todo { background-color: #6c757d; color: white; }
.badge-status-in_progress { background-color: #0dcaf0; color: #000; }
.badge-status-completed { background-color: #198754; color: white; }
.badge-status-blocked { background-color: #dc3545; color: white; }
.badge-status-closed { background-color: #212529; color: white; }

/* Overdue Badge Pulse */
.badge-overdue {
    background-color: #dc3545;
    color: white;
    animation: overduePulse 2s infinite;
}

@keyframes overduePulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Grade Badges */
.grade-badge-lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.grade-A-plus { background-color: #d1e7dd; color: #0f5132; border: 2px solid #badbcc; }
.grade-A { background-color: #cfe2ff; color: #084298; border: 2px solid #b6d4fe; }
.grade-B { background-color: #cff4fc; color: #055160; border: 2px solid #b6effb; }
.grade-C { background-color: #fff3cd; color: #664d03; border: 2px solid #ffecb5; }
.grade-D { background-color: #f8d7da; color: #842029; border: 2px solid #f5c2c7; }

/* Progress bar rounded */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

/* User avatar placeholder */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #0f4c81;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}
img.user-avatar {
    object-fit: cover;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: #dee2e6;
}
.timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #00a896;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #00a896;
}

.omniWork-360-icon-img {
    .login-page-icon {
        width: 100%;
        height: 100%;
    }

    &.header-section-icon {
        width: 10%;
        height: 10%;
        max-width: 38px;
        max-height: 38px;
        object-fit: contain;
    }
}

/* Centered Top Navbar Logo */
.app-navbar {
    position: relative;
}

.navbar-center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.navbar-center-logo img,
.navbar-center-logo .header-section-icon {
    width: 100px;
    height: 64px;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .navbar-center-logo img,
    .navbar-center-logo .header-section-icon {
        width: 32px;
        height: 32px;
        max-width: 32px;
        max-height: 32px;
    }
}

@media (max-width: 576px) {
    .navbar-center-logo img,
    .navbar-center-logo .header-section-icon {
        width: 28px;
        height: 28px;
        max-width: 28px;
        max-height: 28px;
    }
}

/* OmniWork 360 - Promotional Auth Information Showcase */
.promo-info-card {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 76, 129, 0.1) !important;
    box-shadow: 0 4px 20px rgba(13, 40, 71, 0.05);
}

.promo-top-bar {
    height: 4px;
    background: linear-gradient(90deg, #0f4c81 0%, #00a896 50%, #f4a261 100%);
    width: 100%;
}

.promo-logo-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.08) 0%, rgba(0, 168, 150, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 76, 129, 0.15);
}

.promo-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.promo-tagline {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pharm-secondary, #00a896);
}

.promo-lead-text {
    font-size: 0.85rem;
    line-height: 1.5;
}

.promo-live-support-card {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.05) 0%, rgba(0, 168, 150, 0.08) 100%);
    border-color: rgba(0, 168, 150, 0.22) !important;
}

.support-icon-pill {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f4c81 0%, #00a896 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 8px rgba(15, 76, 129, 0.2);
    flex-shrink: 0;
}

.support-heading {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.live-beacon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2a9d8f;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.7);
    animation: livePulseBeacon 2s infinite;
}

@keyframes livePulseBeacon {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(42, 157, 143, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 157, 143, 0);
    }
}

.promo-features-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.promo-feature-tile {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.38rem 0.6rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
}

.promo-feature-tile:hover {
    background: #f1f5f9;
    border-color: rgba(15, 76, 129, 0.15);
    transform: translateX(2px);
}

.feature-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.feature-icon-workforce {
    background: rgba(15, 76, 129, 0.12);
    color: #0f4c81;
}

.feature-icon-projects {
    background: rgba(0, 168, 150, 0.12);
    color: #00a896;
}

.feature-icon-deadlines {
    background: rgba(230, 57, 70, 0.12);
    color: #e63946;
}

.feature-icon-timelogs {
    background: rgba(244, 162, 97, 0.16);
    color: #d67a28;
}

.feature-icon-attendance {
    background: rgba(42, 157, 143, 0.14);
    color: #2a9d8f;
}

.feature-icon-payroll {
    background: rgba(13, 40, 71, 0.12);
    color: #0d2847;
}

.feature-icon-performance {
    background: rgba(99, 102, 241, 0.14);
    color: #4f46e5;
}

.feature-icon-compliance {
    background: rgba(14, 116, 144, 0.14);
    color: #0e7490;
}

.feature-tile-title {
    font-weight: 600;
    font-size: 0.84rem;
    color: #1d2d44;
    line-height: 1.25;
}

.feature-tile-desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
    margin-top: 1px;
}

.auth-wide-container {
    max-width: 1520px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.promo-trust-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Modern Status Toggle Switch */
.custom-status-switch {
    width: 2.85rem !important;
    height: 1.5rem !important;
    cursor: pointer;
    background-color: #cbd5e1;
    border-color: #cbd5e1;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.custom-status-switch:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}
.custom-status-switch:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
    border-color: #198754;
}
.status-toggle-wrapper {
    transition: all 0.2s ease;
    min-height: 48px;
}
.status-toggle-wrapper:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* ==========================================================================
   Universal Print Stylesheet - OmniWork 360
   Suppresses browser-generated headers/footers (URLs, dates, page numbers)
   and hides application chrome (navigation, sidebar, navbar, action buttons).
   ========================================================================== */
@page {
    margin: 0;
}

@media print {
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    html, body {
        background-color: #ffffff !important;
        color: #1e293b !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Suppress application UI chrome */
    aside,
    nav,
    footer,
    header,
    .app-sidebar,
    .app-navbar,
    .sidebar,
    .navbar,
    .topbar,
    .main-header,
    .app-header,
    .btn,
    .d-print-none,
    .no-print,
    .alert,
    .modal,
    .modal-backdrop,
    #sidebarCompanyLogoContainer,
    #sidebarCompanyPlaceholder,
    .print-top-bar,
    #btn-exit-impersonation,
    div:has(> #btn-exit-impersonation),
    div:has(> a[href*="companies/exit"]) {
        display: none !important;
    }

    /* Reset layout flex/grid constraints for natural page printing */
    body > .d-flex {
        display: block !important;
    }

    .app-main,
    .main-content,
    .content-wrapper,
    main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        background: transparent !important;
    }
}



