/* HRMS panel chrome — dark navy sidebar + example-style topbar */

:root {
    --hrms-sidebar-bg: #071940;
    --hrms-sidebar-bg-deep: #030d22;
    --hrms-sidebar-border: rgba(255, 255, 255, 0.08);
    --hrms-sidebar-text: rgba(255, 255, 255, 0.88);
    --hrms-sidebar-muted: rgba(147, 197, 253, 0.72);
    --hrms-sidebar-icon: rgba(226, 232, 240, 0.72);
    --hrms-sidebar-hover: rgba(255, 255, 255, 0.08);
    --hrms-sidebar-active: #1d68ed;
    --hrms-page-bg: #f3f6fb;
    --hrms-card-radius: 0.9rem;
}

/* ---------- Page shell ---------- */
html,
.fi-body,
.fi-main-ctn,
.fi-page {
    background-color: var(--hrms-page-bg) !important;
}

.fi-body {
    overflow-x: clip;
}

.fi-layout {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.fi-main {
    background-color: transparent !important;
    min-width: 0;
}

/* Soft cards / sections / table wrappers */
.fi-section,
.fi-wi-stats-overview-stat,
.fi-ta-ctn,
.fi-wi-widget {
    border-radius: var(--hrms-card-radius) !important;
}

.fi-section,
.fi-ta-ctn {
    box-shadow: 0 1px 2px rgba(15, 41, 94, 0.04), 0 8px 24px -12px rgba(15, 41, 94, 0.1) !important;
    border-color: #e8eef7 !important;
}

/* Tables: allow horizontal scroll + readable wrapped cells */
.fi-ta-ctn {
    overflow-x: auto !important;
}

.fi-ta-table {
    min-width: 100%;
}

.fi-ta-cell,
.fi-ta-header-cell {
    white-space: normal !important;
}

.fi-ta-text {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---------- Sidebar ---------- */
.fi-main-sidebar .fi-sidebar,
.fi-sidebar {
    background: linear-gradient(180deg, var(--hrms-sidebar-bg) 0%, var(--hrms-sidebar-bg-deep) 100%) !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-shadow: 0 0 #0000 !important;
}

.fi-sidebar.fi-sidebar-open,
.fi-sidebar.lg\:bg-transparent,
.dark .fi-sidebar,
.dark .fi-main-sidebar .fi-sidebar {
    background: linear-gradient(180deg, var(--hrms-sidebar-bg) 0%, var(--hrms-sidebar-bg-deep) 100%) !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

.fi-sidebar-header {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-shadow: 0 0 #0000 !important;
}

/* Search stays fixed; only the menu list scrolls */
.fi-sidebar-nav {
    padding-top: 0.5rem !important;
    padding-bottom: 0.75rem !important;
    overflow: hidden !important;
    gap: 0.75rem !important;
}

.fi-sidebar-nav-search {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background: var(--hrms-sidebar-bg);
    padding-top: 0.35rem !important;
    padding-bottom: 0.65rem !important;
    margin-bottom: 0 !important;
}

.fi-sidebar-nav-search .fi-input-wrp {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

.fi-sidebar-nav-search .fi-input,
.fi-sidebar-nav-search input {
    color: #ffffff !important;
    background: transparent !important;
}

.fi-sidebar-nav-search .fi-input::placeholder,
.fi-sidebar-nav-search input::placeholder {
    color: rgba(226, 232, 240, 0.55) !important;
}

.fi-sidebar-nav-groups {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 1rem;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.fi-sidebar-nav-groups::-webkit-scrollbar {
    width: 6px;
}

.fi-sidebar-nav-groups::-webkit-scrollbar-track {
    background: transparent;
}

.fi-sidebar-nav-groups::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
}

.fi-sidebar-nav-groups::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.55);
}

/* Collapse / expand chevron — blend into navy, no harsh outline */
.fi-sidebar-header .fi-icon-btn {
    color: rgba(226, 232, 240, 0.7) !important;
    background: transparent !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

.fi-sidebar-header .fi-icon-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.fi-sidebar .fi-logo {
    height: auto !important;
}

.fi-sidebar .fi-logo,
.fi-sidebar .fi-logo .hrms-brand-text {
    color: #ffffff !important;
}

.fi-sidebar-group-label {
    color: var(--hrms-sidebar-muted) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

.fi-sidebar-group-icon,
.fi-sidebar-group-collapse-button {
    color: var(--hrms-sidebar-muted) !important;
}

.fi-sidebar-item-button {
    border-radius: 0.65rem !important;
    padding: 0.55rem 0.75rem !important;
}

.fi-sidebar-item-button:hover,
.fi-sidebar-item-button:focus-visible {
    background: var(--hrms-sidebar-hover) !important;
}

.fi-sidebar-item-icon {
    color: var(--hrms-sidebar-icon) !important;
}

.fi-sidebar-item-label {
    color: var(--hrms-sidebar-text) !important;
    font-weight: 500 !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-button,
.fi-sidebar-item-button[aria-current='page'] {
    background: var(--hrms-sidebar-active) !important;
    box-shadow: 0 8px 18px -8px rgba(29, 104, 237, 0.65) !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-button:hover,
.fi-sidebar-item.fi-active > .fi-sidebar-item-button:focus-visible {
    background: #1557d4 !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.fi-sidebar-item.fi-active .fi-sidebar-item-label {
    color: #ffffff !important;
}

.fi-sidebar-item-grouped-border > div.bg-gray-300,
.fi-sidebar-item-grouped-border > div.dark\:bg-gray-600 {
    background-color: rgba(148, 163, 184, 0.35) !important;
}

/* ---------- Brand logo ---------- */
.hrms-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
}

.hrms-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, #38bdf8 0%, #1d68ed 100%);
    box-shadow: 0 6px 14px -6px rgba(29, 104, 237, 0.7);
    flex-shrink: 0;
}

.hrms-brand-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    color: #ffffff;
}

.hrms-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    color: #ffffff;
}

/* ---------- Topbar ---------- */
.fi-topbar {
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-shadow: 0 0 #0000 !important;
}

.fi-topbar > nav,
.hrms-topbar-nav {
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e8eef7 !important;
    outline: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-shadow: 0 0 #0000 !important;
    gap: 0.75rem !important;
}

/* Kill Livewire navigate progress bar if it sticks at the top */
#nprogress,
#nprogress .bar,
#nprogress .peg,
#nprogress .spinner {
    display: none !important;
}

.hrms-topbar-icon-btn {
    border-radius: 0.65rem !important;
    background: #f3f6fb !important;
}

.hrms-topbar-search-slot {
    margin-inline-start: 0.25rem;
    position: relative;
    z-index: 40;
}

.hrms-topbar-search-slot .fi-global-search {
    width: 100%;
    position: relative;
}

.hrms-topbar-search-slot .fi-global-search-field,
.hrms-topbar-search-slot .fi-input-wrp {
    width: 100% !important;
    max-width: 28rem;
    background: #f3f6fb !important;
    border: 1px solid #e5ebf5 !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
}

.hrms-topbar-search-slot .fi-input-wrp:focus-within {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(29, 104, 237, 0.12) !important;
    background: #ffffff !important;
}

.hrms-topbar-search-slot input {
    font-size: 0.875rem !important;
    color: #0f172a !important;
}

.hrms-topbar-search-slot input::placeholder {
    color: #94a3b8 !important;
}

/* Global search dropdown — keep it compact and under the search field */
.fi-topbar,
.hrms-topbar-nav {
    overflow: visible !important;
}

.fi-global-search-results-ctn {
    z-index: 60 !important;
    left: 0 !important;
    right: auto !important;
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    width: min(22rem, calc(100vw - 2rem)) !important;
    max-width: 22rem !important;
    margin-top: 0.5rem !important;
    border: 1px solid #e8eef7 !important;
    border-radius: 0.9rem !important;
    box-shadow: 0 18px 40px -20px rgba(15, 41, 94, 0.35) !important;
    background: #ffffff !important;
}

.fi-global-search-no-results-message {
    color: #64748b !important;
    font-weight: 500 !important;
}

.fi-global-search-result-link,
.fi-global-search-result-group-label {
    color: #0f172a !important;
}

.hrms-topbar-notify .fi-icon-btn {
    border-radius: 9999px !important;
    background: #f3f6fb !important;
}

/* User menu: avatar + name */
.hrms-user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem 0.55rem 0.25rem 0.25rem;
    border-radius: 9999px;
    border: 1px solid #e8eef7;
    background: #ffffff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.hrms-user-menu-trigger:hover {
    background: #f8fafc;
    border-color: #dbe4f2;
}

.hrms-user-menu-meta {
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding-inline-end: 0.2rem;
}

@media (min-width: 640px) {
    .hrms-user-menu-meta {
        display: inline-flex;
    }
}

.hrms-user-menu-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hrms-user-menu-caret {
    color: #94a3b8;
}

/* Primary buttons match login blue */
.fi-btn-color-primary {
    box-shadow: 0 8px 18px -10px rgba(29, 104, 237, 0.55) !important;
}

/* Breadcrumbs quieter */
.fi-breadcrumbs {
    color: #94a3b8 !important;
}

/* Page title */
.fi-header-heading {
    letter-spacing: -0.02em;
    color: #0f172a !important;
}

/* ---------- Organization chart (tree mockup) ---------- */
.org-chart-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.org-chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.org-chart-toggles {
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.25rem;
    border-radius: 0.75rem;
    background: #eef2f7;
}

.org-chart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 0.6rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    cursor: pointer;
}

.org-chart-toggle.is-active {
    background: #1d68ed;
    color: #fff;
    box-shadow: 0 8px 16px -10px rgba(29, 104, 237, 0.7);
}

.org-chart-search {
    position: relative;
    min-width: min(100%, 18rem);
    flex: 1 1 16rem;
    max-width: 22rem;
}

.org-chart-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.org-chart-search-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    padding: 0.65rem 1rem 0.65rem 2.35rem;
    font-size: 0.875rem;
    color: #0f172a;
    outline: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.org-chart-search-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(29, 104, 237, 0.15);
}

.org-chart-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #fff;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.org-chart-canvas {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0.5rem 0 1.5rem;
    width: 100%;
}

.org-tree {
    display: block;
    width: 100%;
    max-width: 100%;
}

.org-tree-level {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem 1.25rem;
    padding-top: 1.25rem;
    position: relative;
    list-style: none;
    margin: 0;
    padding-left: 0;
    width: 100%;
    max-width: 100%;
}

.org-tree-level--roots {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 0;
}

.org-tree-level--roots::before {
    display: none;
}

.org-tree-level:not(.org-tree-level--roots)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 1.25rem;
    background: #cbd5e1;
}

.org-tree-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 1.25rem;
    max-width: 100%;
}

.org-tree-level--roots > .org-tree-item {
    padding-top: 0;
    width: min(100%, 56rem);
}

.org-tree-level--roots > .org-tree-item::before,
.org-tree-level--roots > .org-tree-item::after {
    display: none;
}

.org-tree-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 1.25rem;
    background: #cbd5e1;
}

.org-tree-children {
    width: 100%;
    max-width: 100%;
}

.org-card {
    width: min(100%, 14.5rem);
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    border-radius: 0.9rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #dbe7fb;
    background: #ffffff;
    box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.35);
    text-align: left;
    position: relative;
}

.org-card--clickable {
    cursor: pointer;
    user-select: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.org-card--clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -14px rgba(15, 23, 42, 0.4);
}

.org-card--linkable {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.org-card--linkable:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -14px rgba(15, 23, 42, 0.4);
}

.org-card-link {
    display: flex;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.org-card-link--disabled {
    pointer-events: none;
    cursor: default;
}

.org-card--root {
    width: min(100%, 16rem);
    background: linear-gradient(180deg, #1d68ed 0%, #1554c4 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 28px -16px rgba(29, 104, 237, 0.75);
}

.org-card--mid {
    background: #e8f1ff;
    border-color: #c9ddff;
}

.org-card--leaf {
    background: #fff;
    border-color: #e2e8f0;
}

.org-card-icon {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    background: rgba(29, 104, 237, 0.12);
    color: #1d68ed;
}

.org-card--root .org-card-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.org-card--purple .org-card-icon { background: #f3e8ff; color: #7c3aed; }
.org-card--green .org-card-icon { background: #dcfce7; color: #15803d; }
.org-card--orange .org-card-icon { background: #ffedd5; color: #c2410c; }
.org-card--blue .org-card-icon { background: #dbeafe; color: #1d4ed8; }
.org-card--sky .org-card-icon { background: #e0f2fe; color: #0284c7; }
.org-card--root.org-card--purple .org-card-icon,
.org-card--root.org-card--green .org-card-icon,
.org-card--root.org-card--orange .org-card-icon,
.org-card--root.org-card--blue .org-card-icon,
.org-card--root.org-card--sky .org-card-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.org-card-body {
    min-width: 0;
    flex: 1;
}

.org-card-chevron {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: #94a3b8;
    align-self: flex-start;
    border: 0;
    background: transparent;
    padding: 0.15rem;
    border-radius: 0.4rem;
    cursor: pointer;
    line-height: 0;
}

.org-card-chevron:hover {
    background: rgba(15, 23, 42, 0.06);
}

.org-card--root .org-card-chevron {
    color: rgba(255, 255, 255, 0.85);
}

.org-card-chevron svg {
    transition: transform 0.15s ease;
}

.org-card-chevron svg.is-collapsed {
    transform: rotate(-90deg);
}

.org-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.org-card--root .org-card-title {
    color: #fff;
}

.org-card-name {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.org-card--root .org-card-name {
    color: rgba(255, 255, 255, 0.92);
}

.org-card-role {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    color: #64748b;
}

.org-card--root .org-card-role {
    color: rgba(255, 255, 255, 0.78);
}

.org-card-badge {
    display: inline-flex;
    margin-top: 0.55rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
}

.org-chart-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.org-chart-list-row {
    padding-left: calc(var(--depth, 0) * 1.25rem);
}

.org-card--compact {
    width: 100%;
    max-width: 28rem;
}

@media (max-width: 768px) {
    .org-card,
    .org-card--root {
        width: min(100%, 16rem);
    }

    .org-tree-level {
        gap: 0.75rem;
    }
}

/* ---------- Company Profile overview ---------- */
.cp-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cp-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #fff;
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.cp-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 1.1rem;
    border: 1px solid #dbe7fb;
    background:
        linear-gradient(110deg, rgba(255,255,255,0.96) 0%, rgba(232,241,255,0.92) 55%, rgba(219,234,254,0.75) 100%),
        radial-gradient(circle at 90% 20%, rgba(29,104,237,0.18), transparent 45%);
    box-shadow: 0 12px 28px -22px rgba(15, 23, 42, 0.4);
}

.cp-hero::after {
    content: "";
    position: absolute;
    right: -2rem;
    bottom: -3rem;
    width: 14rem;
    height: 14rem;
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(29,104,237,0.18), rgba(29,104,237,0.02));
    transform: rotate(18deg);
    pointer-events: none;
}

.cp-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: min(100%, 42rem);
    flex: 1;
}

.cp-hero-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #1d68ed;
    color: #fff;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 10px 20px -10px rgba(29, 104, 237, 0.8);
}

.cp-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cp-hero-name {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.cp-hero-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.cp-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
}

.cp-status-badge.is-active {
    background: #dcfce7;
    color: #15803d;
}

.cp-hero-tagline {
    margin: 0.55rem 0 0;
    max-width: 42rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin-top: 0.95rem;
}

.cp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 500;
}

.cp-meta-item svg {
    color: #1d68ed;
}

.cp-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
}

.cp-edit-btn,
.cp-mini-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 600;
}

.cp-edit-btn {
    border-radius: 0.7rem;
    background: #1d68ed;
    color: #fff !important;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    box-shadow: 0 10px 20px -12px rgba(29, 104, 237, 0.9);
}

.cp-edit-btn:hover {
    background: #1554c4;
}

.cp-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.cp-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 18px -16px rgba(15, 23, 42, 0.35);
}

.cp-stat-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.7rem;
}

.cp-stat-icon--blue { background: #dbeafe; color: #1d4ed8; }
.cp-stat-icon--indigo { background: #e0e7ff; color: #4338ca; }
.cp-stat-icon--sky { background: #e0f2fe; color: #0284c7; }
.cp-stat-icon--orange { background: #ffedd5; color: #c2410c; }
.cp-stat-icon--green { background: #dcfce7; color: #15803d; }

.cp-stat-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

.cp-stat-value {
    margin-top: 0.25rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.cp-stat-value.is-green {
    color: #16a34a;
}

.cp-stat-hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.cp-stat-hint.is-up,
.cp-stat-hint.is-green {
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cp-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
    display: inline-block;
}

.cp-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.cp-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 8px 18px -16px rgba(15, 23, 42, 0.35);
}

.cp-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.cp-detail-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #0f172a;
}

.cp-detail-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    background: #e8f1ff;
    color: #1d68ed;
}

.cp-mini-edit {
    color: #1d68ed;
    font-size: 0.78rem;
}

.cp-kv {
    display: grid;
    gap: 0.75rem;
}

.cp-kv > div {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.75rem;
    align-items: start;
}

.cp-kv--stacked > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.cp-kv dt {
    margin: 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.cp-kv dd {
    margin: 0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

.cp-link {
    color: #1d68ed !important;
    text-decoration: none;
}

.cp-link:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .cp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cp-stats {
        grid-template-columns: 1fr;
    }

    .cp-kv > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* ---------- Missing Timesheets page ---------- */
.mt-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mt-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 1.1rem;
    border: 1px solid #dbe7fb;
    background:
        linear-gradient(110deg, #ffffff 0%, #eef5ff 58%, #e3efff 100%);
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
}

.mt-hero-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
}

.mt-hero-icon {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 0.95rem;
    display: grid;
    place-items: center;
    background: #1d68ed;
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 10px 18px -10px rgba(29, 104, 237, 0.8);
}

.mt-hero-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.mt-hero-text {
    margin: 0.45rem 0 0;
    max-width: 42rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}

.mt-hero-art {
    display: none;
    position: relative;
    width: 7.5rem;
    height: 5.5rem;
    flex: 0 0 auto;
}

@media (min-width: 900px) {
    .mt-hero-art {
        display: block;
    }
}

.mt-hero-calendar {
    position: absolute;
    right: 0.4rem;
    top: 0.3rem;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: #1d68ed;
    box-shadow: 0 10px 20px -14px rgba(29, 104, 237, 0.55);
}

.mt-hero-clock {
    position: absolute;
    right: -0.15rem;
    bottom: 0.15rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #1d68ed;
    color: #fff;
    box-shadow: 0 8px 14px -8px rgba(29, 104, 237, 0.9);
}

.mt-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.05rem;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.mt-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #eef2f7;
}

.mt-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: #0f172a;
}

.mt-card-title-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    background: #e8f1ff;
    color: #1d68ed;
}

.mt-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1e3a8a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.45rem 0.35rem 0.8rem;
}

.mt-total-count {
    min-width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #1d68ed;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 0.35rem;
}

.mt-empty {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.5rem 1.15rem;
    color: #15803d;
    font-size: 0.92rem;
    font-weight: 600;
}

.mt-table-wrap {
    overflow-x: auto;
}

.mt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.mt-table thead th {
    background: #f3f8ff;
    color: #334155;
    font-weight: 700;
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.mt-table tbody td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #0f172a;
}

.mt-table tbody tr:last-child td {
    border-bottom: 0;
}

.mt-col-index {
    width: 3rem;
    color: #64748b !important;
    font-weight: 600;
}

.mt-col-count {
    width: 5.5rem;
    text-align: center !important;
}

.mt-employee {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.mt-avatar,
.mt-avatar-img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    flex: 0 0 auto;
}

.mt-avatar {
    display: inline-grid;
    place-items: center;
    background: #1d68ed;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.mt-avatar-img {
    object-fit: cover;
}

.mt-employee-name {
    font-weight: 700;
    color: #0f172a;
}

.mt-department {
    color: #475569 !important;
    font-weight: 600;
}

.mt-dates {
    color: #334155 !important;
    line-height: 1.5;
    max-width: 28rem;
}

.mt-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
}

@media (max-width: 768px) {
    .mt-hero {
        padding: 1.1rem;
    }

    .mt-dates {
        max-width: 16rem;
    }
}
