.dashboard-portal { min-height: 100vh; color: var(--color-text, #101828); background: var(--color-page, #fff); }
.dashboard-portal-header { position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; gap: 1rem; height: 4rem; padding: 0 1.25rem; color: #fff; background: var(--color-primary, #0096C7); box-shadow: 0 2px 10px rgb(16 24 40 / 12%); }
.dashboard-portal-menu-button { padding: .45rem .65rem; color: #fff; background: transparent; border: 1px solid rgb(255 255 255 / 35%); border-radius: .5rem; cursor: pointer; }
.dashboard-portal-brand { color: #fff; font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.dashboard-portal-brand { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-size: 1.05rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.dashboard-portal-brand:first-letter { color: var(--color-action, #0096C7); }
.dashboard-portal-header-nav { display: flex; align-items: center; gap: .2rem; min-width: 0; }
.dashboard-portal-header-nav-shell { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; gap: .25rem; }
.dashboard-portal-header-scroll { display: inline-grid; flex: 0 0 auto; width: 2rem; height: 2rem; place-items: center; padding: 0; color: var(--color-text, #101828); background: #fff; border: 1px solid var(--color-border, #d1d5db); border-radius: 50%; cursor: pointer; font-size: 1.55rem; line-height: 1; }
.dashboard-portal-header-scroll:hover { color: #fff; background: var(--color-primary, #0096C7); border-color: var(--color-primary, #0096C7); }
.dashboard-portal-header-item { position: relative; }
.dashboard-portal-header-link { display: inline-flex; align-items: center; gap: .35rem; padding: .65rem .7rem; color: #fff; border-radius: .5rem; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dashboard-portal-header-link:hover, .dashboard-portal-header-link.is-active { background: rgb(255 255 255 / 18%); }
.dashboard-portal-header-submenu { position: absolute; z-index: 110; top: calc(100% + .35rem); left: 0; display: none; min-width: 13rem; padding: .4rem; background: #fff; border: 1px solid var(--color-primary); border-radius: .55rem; box-shadow: 0 10px 24px rgb(16 24 40 / 18%); }
.dashboard-portal-header-item:hover > .dashboard-portal-header-submenu, .dashboard-portal-header-item:focus-within > .dashboard-portal-header-submenu { display: grid; gap: .15rem; }
.dashboard-portal-header-child { display: flex; align-items: center; gap: .45rem; padding: .55rem .6rem; color: var(--color-primary); border-radius: .35rem; font-size: .8rem; text-decoration: none; white-space: nowrap; }
.dashboard-portal-header-child:hover { color: #fff; background: var(--color-primary); }
.dashboard-portal-menu-search-wrap { position: relative; }
.dashboard-portal-menu-search { display: flex; align-items: center; gap: .4rem; width: min(15rem, 23vw); padding: .55rem .7rem; color: rgb(255 255 255 / 85%); border: 1px solid rgb(255 255 255 / 45%); border-radius: 999px; }
.dashboard-portal-menu-search input { width: 100%; min-width: 0; color: #fff; background: transparent; border: 0; outline: 0; font: inherit; font-size: .8rem; }
.dashboard-portal-menu-search input::placeholder { color: rgb(255 255 255 / 75%); }
.dashboard-portal-search-results { position: absolute; z-index: 120; top: calc(100% + .45rem); right: 0; width: 100%; max-width: calc(100vw - 2rem); max-height: 20rem; overflow-x: auto; overflow-y: auto; padding: .4rem; background: #fff; border: 1px solid var(--color-primary); border-radius: .6rem; box-shadow: 0 10px 24px rgb(16 24 40 / 20%); }
.dashboard-portal-search-results a { display: flex; width: max-content; min-width: 100%; align-items: center; gap: .55rem; padding: .6rem .65rem; color: var(--color-primary); border-radius: .4rem; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dashboard-portal-search-results a:hover { color: #fff; background: var(--color-primary); }
.dashboard-portal-search-empty { display: block; padding: .65rem; color: var(--color-muted); font-size: .8rem; }
.dashboard-portal-header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.dashboard-portal-date { color: rgb(255 255 255 / 85%); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.dashboard-portal-quick-attendance-wrap { display: flex; align-items: center; }
.dashboard-portal-quick-attendance-button { display: grid; flex: 0 0 auto; width: 2.25rem; height: 2.25rem; place-items: center; padding: 0 0 .08rem; color: #fff; background: var(--color-primary, #0096C7); border: 0; border-radius: 50%; cursor: pointer; font: 600 1.65rem/1 Arial, sans-serif; box-shadow: 0 2px 5px rgb(0 0 0 / 12%); }
.dashboard-portal-quick-attendance-button:hover { background: var(--color-primary-hover, #007AA3); }
.dashboard-portal-quick-attendance-button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.dashboard-portal-notification { position: relative; width: 2.25rem; height: 2.25rem; color: #fff; background: transparent; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.dashboard-portal-notification::after { position: absolute; top: .2rem; right: .2rem; width: .4rem; height: .4rem; content: ""; background: var(--color-action, #0096C7); border: 2px solid var(--color-primary, #0096C7); border-radius: 50%; }
.dashboard-portal-notification-wrap { position: relative; }
.dashboard-portal-notification-count { position: absolute; top: -.35rem; right: -.35rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .2rem; color: #fff; background: #dc2626; border-radius: 999px; font-size: .65rem; line-height: 1.1rem; text-align: center; }
.dashboard-portal-notification-panel { position: absolute; z-index: 30; top: calc(100% + .65rem); right: 0; width: min(24rem, 80vw); overflow: hidden; color: #17243a; background: #fff; border: 1px solid #e5eaf0; border-radius: .75rem; box-shadow: 0 12px 30px rgb(23 36 58 / 16%); }
.dashboard-portal-notification-heading { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid #e5eaf0; }
.dashboard-portal-notification-heading button { border: 0; background: transparent; color: #708096; font-size: 1.25rem; cursor: pointer; }
.dashboard-portal-notification-empty { padding: 1rem; color: #708096; font-size: .8rem; }
.dashboard-portal-notification-item { display: flex; width: 100%; flex-direction: column; gap: .25rem; padding: .75rem 1rem; border: 0; border-bottom: 1px solid #f0f2f5; background: #fff; color: #17243a; text-align: left; cursor: pointer; }
.dashboard-portal-notification-item:hover, .dashboard-portal-notification-item.is-unseen { background: #f0f9ff; }
.dashboard-portal-notification-item span { font-size: .8rem; }
.dashboard-portal-notification-item small { color: #708096; font-size: .7rem; }
.dashboard-portal-role-picker { display: grid; gap: .3rem; margin: .75rem 0; color: var(--color-muted, #667085); font-size: .72rem; font-weight: 700; }
.dashboard-portal-role-picker > .relative { width: 100%; }
.dashboard-portal-account { margin: 0; color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.dashboard-portal-account-wrap { position: relative; }
.dashboard-portal-account-backdrop { position: fixed; z-index: 90; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; cursor: default; }
.dashboard-portal-avatar { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; padding: 0; overflow: hidden; color: var(--color-primary, #0096C7); background: #fff; border: 2px solid rgb(255 255 255 / 75%); border-radius: 50%; cursor: pointer; font-size: .75rem; font-weight: 800; }
.dashboard-portal-avatar img, .dashboard-portal-account-large img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-portal-avatar:hover { background: var(--color-primary-soft, #E5F6FB); }
.dashboard-portal-account-menu { position: absolute; z-index: 100; top: calc(100% + .7rem); right: 0; width: 18rem; padding: .8rem; color: var(--color-text, #101828); background: #fff; border: 1px solid var(--color-border, #D1D5DB); border-radius: .75rem; box-shadow: 0 12px 30px rgb(16 24 40 / 18%); }
.dashboard-portal-account-summary { display: flex; align-items: center; gap: .65rem; padding: .25rem .25rem .8rem; border-bottom: 1px solid var(--color-border, #D1D5DB); }
.dashboard-portal-account-large { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; overflow: hidden; color: #fff; background: var(--color-primary, #0096C7); border-radius: 50%; font-size: .8rem; font-weight: 800; }
.dashboard-portal-account-summary strong, .dashboard-portal-account-summary small { display: block; }
.dashboard-portal-account-summary small { margin-top: .15rem; color: var(--color-muted, #667085); font-size: .72rem; }
.dashboard-portal-account-menu > a, .dashboard-portal-account-menu > button { display: block; width: 100%; margin-top: .25rem; padding: .6rem .5rem; color: var(--color-text, #101828); background: transparent; border: 0; border-radius: .45rem; cursor: pointer; font: inherit; font-size: .82rem; text-align: left; text-decoration: none; }
.dashboard-portal-account-menu > a:hover { color: var(--color-primary, #0096C7); background: var(--color-primary-soft, #E5F6FB); }
.dashboard-portal-account-menu > button { margin-top: .45rem; color: var(--color-destructive, #D92D20); border-top: 1px solid var(--color-border, #D1D5DB); border-radius: 0; }
.dashboard-portal-drawer { position: fixed; z-index: 60; inset: 0 auto 2.75rem 0; width: 18rem; padding: 1rem .75rem; overflow: visible; background: var(--color-surface, #fff); border-right: 1px solid var(--color-border, #d1d5db); box-shadow: 12px 0 30px rgb(16 24 40 / 16%); transform: translateX(-105%); transition: transform .2s ease; }
.dashboard-portal.is-sidebar-open .dashboard-portal-drawer { transform: translateX(0); }
.dashboard-portal.is-sidebar-closed .dashboard-portal-drawer { visibility: hidden; pointer-events: none; }
.dashboard-portal-drawer-backdrop { position: fixed; z-index: 50; inset: 4rem 0 2.75rem; width: 100%; padding: 0; background: rgb(16 24 40 / 22%); border: 0; backdrop-filter: blur(2px); cursor: pointer; }
.dashboard-portal-drawer-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1.25rem; }
.dashboard-portal-drawer-logo { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; color: #fff; background: var(--color-primary, #0096C7); border: 1px solid var(--color-primary, #0096C7); border-radius: .75rem; box-shadow: 0 4px 10px rgb(var(--color-primary-rgb, 0 150 199) / 22%); font-size: 1.25rem; font-weight: 900; text-decoration: none; }
.dashboard-portal-drawer-close { display: inline-grid; width: 2.2rem; height: 2.2rem; place-items: center; color: var(--color-primary, #0096C7); background: #fff; border: 1px solid var(--color-primary, #0096C7); border-radius: .55rem; cursor: pointer; }
.dashboard-portal-drawer-close:hover { color: #fff; background: var(--color-primary, #0096C7); }
.dashboard-portal-drawer-logo:hover { color: var(--color-primary, #0096C7); background: #fff; border-color: var(--color-primary-hover, #007AA3); }
.dashboard-portal-drawer-nav { display: grid; gap: .2rem; }
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.scrollbar-arrows {
    scrollbar-color: #94a3b8 #eef2f6;
    scrollbar-width: thin;
}
.scrollbar-arrows::-webkit-scrollbar {
    width: 12px;
}
.scrollbar-arrows::-webkit-scrollbar-track {
    background: #eef2f6;
    border-radius: 8px;
}
.scrollbar-arrows::-webkit-scrollbar-thumb {
    min-height: 42px;
    background: #94a3b8;
    border: 3px solid #eef2f6;
    border-radius: 8px;
}
.scrollbar-arrows::-webkit-scrollbar-thumb:hover { background: #64748b; }
.scrollbar-arrows::-webkit-scrollbar-button:single-button {
    display: block;
    height: 16px;
    background-color: #eef2f6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 9px 9px;
}
.scrollbar-arrows::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 8 4-4 4 4' fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
}
.scrollbar-arrows::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
}
.scrollbar-arrows::-webkit-scrollbar-button:single-button:hover { background-color: #dbe4ec; }
.dashboard-portal-drawer-item { position: relative; }
.dashboard-portal-section-title { display: block; padding: 0 .75rem .75rem; color: var(--color-muted, #667085); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-portal-link { display: flex; align-items: center; gap: .55rem; margin: .2rem 0; padding: .7rem .75rem; color: var(--color-text, #101828); background: #fff; border: 1px solid transparent; border-radius: .6rem; font-size: .875rem; font-weight: 600; text-decoration: none; }
.dashboard-portal-link:hover { color: #fff; background: var(--color-primary, #0096C7); border-color: var(--color-primary, #0096C7); }
.dashboard-portal-link.primary-menu-button:hover:not(:disabled) { color: var(--color-primary, #0096C7); background: #fff; border-color: var(--color-primary-hover, #007AA3); }
.dashboard-portal-link.is-active { color: #fff; background: var(--color-primary, #0096C7); }
.dashboard-portal-submenu-indicator { margin-left: auto; font-size: 1.2rem; }
.dashboard-portal-submenu { position: absolute; z-index: 35; top: 0; left: 100%; display: none; width: 15rem; padding: .65rem; background: var(--color-surface, #fff); border: 1px solid var(--color-primary, #0096C7); border-radius: .75rem; box-shadow: 0 12px 30px rgb(16 24 40 / 18%); }
.dashboard-portal-drawer-item:hover > .dashboard-portal-submenu, .dashboard-portal-drawer-item:focus-within > .dashboard-portal-submenu, .dashboard-portal-drawer-item.is-expanded > .dashboard-portal-submenu { display: block; }
.dashboard-portal-content { min-height: calc(100vh - 6rem); padding: 4.5rem 1.5rem 4.25rem; }
.dashboard-portal-content > nav[aria-label="breadcrumb"] { margin: 0; }
.dashboard-portal-content > nav[aria-label="breadcrumb"] ol { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.dashboard-portal-footer { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; height: 2.75rem; padding: .8rem 1.25rem; color: var(--color-muted, #667085); background: var(--color-surface, #fff); border-top: 1px solid var(--color-border, #d1d5db); font-size: .75rem; text-align: center; }
@media (max-width: 768px) {
    .dashboard-portal-header-nav, .dashboard-portal-menu-search-wrap { display: none; }
    .dashboard-portal-context { display: none; }
    .dashboard-portal-date { display: none; }
    .dashboard-portal-drawer { width: min(18rem, 86vw); }
    .dashboard-portal-submenu { position: static; width: auto; margin: .15rem 0 .35rem 1rem; box-shadow: none; }
    .dashboard-portal-drawer-item:hover > .dashboard-portal-submenu { display: none; }
    .dashboard-portal-drawer-item:focus-within > .dashboard-portal-submenu, .dashboard-portal-drawer-item.is-expanded > .dashboard-portal-submenu { display: block; }
    .dashboard-portal-content { margin-left: 0; padding-right: 1rem; padding-left: 1rem; }
}

/* Employee details uses the same compact desktop shell as the Kiran HRM reference. */
.dashboard-portal-staff {
    min-height: 100vh;
    color: #363949;
    background: #f6f6f9;
    font-family: "Poppins", sans-serif;
}
.dashboard-portal-staff .dashboard-portal-header {
    height: 60px;
    padding: 0 20px;
    gap: 1rem;
    color: #495057;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none;
}
.dashboard-portal-staff .dashboard-portal-menu-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    color: #535964;
    background: #f5f5f5;
    border: 0;
    border-radius: 6px;
    font-size: 20px;
    line-height: 1;
}
.dashboard-portal-staff .dashboard-portal-brand {
    color: #495057;
    font-size: .95rem;
    font-weight: 600;
}
.dashboard-portal-staff .dashboard-portal-brand:first-letter { color: var(--color-primary); }
.dashboard-portal-staff .dashboard-portal-header-nav { gap: .5rem; }
.dashboard-portal-staff .dashboard-portal-header-link {
    padding: .5rem 1rem;
    color: #495057;
    border-radius: .375rem;
    font-size: .8rem;
    font-weight: 500;
}
.dashboard-portal-staff .dashboard-portal-header-link:hover,
.dashboard-portal-staff .dashboard-portal-header-link.is-active {
    color: #fff;
    background: var(--color-primary);
}
.dashboard-portal-staff .dashboard-portal-header-link svg { width: 15px; height: 15px; }
.dashboard-portal-staff .dashboard-portal-header-actions { gap: .75rem; }
.dashboard-portal-staff .dashboard-portal-menu-search { width: 230px; padding: .45rem .7rem; color: #8b929c; border-color: #d1d5db; }
.dashboard-portal-staff .dashboard-portal-menu-search input { color: #495057; font-size: .8rem; }
.dashboard-portal-staff .dashboard-portal-menu-search input::placeholder { color: #8b929c; }
.dashboard-portal-staff .dashboard-portal-date { color: #535964; font-size: .78rem; }
.dashboard-portal-staff .dashboard-portal-quick-attendance-button { width: 30px; height: 30px; color: #fff; background: var(--color-primary); font-size: 1.45rem; }
.dashboard-portal-staff .dashboard-portal-quick-attendance-button:hover { background: var(--color-primary-hover); }
.dashboard-portal-staff .dashboard-portal-notification { color: #535964; border-color: #d1d5db; }
.dashboard-portal-staff .dashboard-portal-notification::after { background: #e91e63; border-color: #fff; }
.dashboard-portal-staff .dashboard-portal-avatar { width: 30px; height: 30px; color: #000; border: 1px solid #000; font-size: .7rem; }
.dashboard-portal-staff .dashboard-portal-content {
    position: fixed;
    z-index: 1;
    inset: 60px 0 28px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 1rem .75rem 1.5rem;
}
.dashboard-portal-staff .dashboard-portal-footer {
    height: 28px;
    padding: 3.5px;
    color: #535964;
    background: #e0e0e0;
    border-top: 0;
    font: 400 12.32px/18.48px Poppins, sans-serif;
    text-align: center;
}

/* Modals render inside the page content stacking context. Lower the fixed
   shell chrome only while a modal is present so it remains above the page
   normally and the modal can still cover it when open. */
.dashboard-portal-staff:has(.dashboard-portal-content .fixed.inset-0) .dashboard-portal-header,
.dashboard-portal-staff:has(.dashboard-portal-content .fixed.inset-0) .dashboard-portal-footer {
    z-index: 0;
}
.dashboard-portal-staff:has(.dashboard-portal-content .fixed.inset-0) .staff-setup-tabs {
    visibility: hidden !important;
    pointer-events: none !important;
}
.dashboard-portal-staff .dashboard-portal-drawer { top: 0; }
.dashboard-portal-staff .dashboard-portal-drawer-backdrop { top: 0; }

/* Kiran HRM-style staff navigation.  This is deliberately scoped to the
   staff portal so customer and restaurant shells retain their own layout. */
.dashboard-portal-staff .dashboard-portal-header {
    justify-content: flex-start;
    padding: 0 20px;
}
.dashboard-portal-staff .dashboard-portal-menu-button {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    color: #535964;
    background: #f5f5f5;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.dashboard-portal-staff .dashboard-portal-brand {
    display: block;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 2px;
    background: url('/_content/HRM.UI/images/chef-logo.png') center / contain no-repeat;
}
.dashboard-portal-staff .dashboard-portal-brand.company-logo-loading,
.dashboard-portal-staff .dashboard-portal-drawer-logo.company-logo-loading {
    background-image: none;
}
.dashboard-portal-staff .dashboard-portal-brand.has-company-logo {
    display: grid;
    place-items: center;
    background: none;
}
.dashboard-portal-staff .dashboard-portal-brand.has-company-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.dashboard-portal-staff .dashboard-portal-header-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-start;
    margin-left: .5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.dashboard-portal-staff .dashboard-portal-header-nav::-webkit-scrollbar { display: none; }
.dashboard-portal-staff .dashboard-portal-header-nav-shell { margin-left: 1rem; }
.dashboard-portal-staff .dashboard-portal-header-item { flex: 0 0 auto; }
.dashboard-portal-staff .dashboard-portal-header-scroll {
    width: 28px;
    height: 28px;
    color: #111827;
    background: #fff;
    border-color: #d1d5db;
    font-size: 1.25rem;
}
.dashboard-portal-staff .dashboard-portal-header-scroll:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Header parents are plain labels; their children appear as a hover dropdown. */
.dashboard-portal-staff .dashboard-portal-header .dashboard-portal-submenu-indicator,
.dashboard-portal-staff .dashboard-portal-header-child svg {
    display: none !important;
}

.dashboard-portal-staff .dashboard-portal-header-submenu {
    top: 100%;
}
.dashboard-portal-header-floating-submenu {
    position: fixed;
    z-index: 110;
    top: 0;
    left: 8px;
    display: grid;
    min-width: 13rem;
    max-width: calc(100vw - 1rem);
    gap: .15rem;
    padding: .4rem;
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: .55rem;
    box-shadow: 0 10px 24px rgb(16 24 40 / 18%);
}
.dashboard-portal-staff .dashboard-portal-header-link {
    gap: .45rem;
    min-height: 32px;
    padding: .5rem .95rem;
    color: #363949;
    font-family: Poppins, sans-serif;
    font-size: 12.32px;
    font-weight: 500;
}
.dashboard-portal-staff .dashboard-portal-header-link svg { width: 16px; height: 16px; }
.dashboard-portal-staff .dashboard-portal-header-actions { margin-left: 0; }
.dashboard-portal-staff .dashboard-portal-menu-search {
    width: 230px;
    height: 38px;
    padding: 0 14px;
    color: #94a3b8;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 30px;
}
.dashboard-portal-staff .dashboard-portal-menu-search:focus-within {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px -2px rgb(var(--color-primary-rgb) / 15%);
}
.dashboard-portal-staff .dashboard-portal-menu-search input,
.dashboard-portal-staff .dashboard-portal-menu-search input::placeholder { color: #94a3b8; font-size: .85rem; }

.dashboard-portal-staff .dashboard-portal-drawer {
    position: fixed;
    display: flex;
    flex-direction: column;
    z-index: 60;
    inset: 0 auto 28px 0;
    width: 250px;
    padding: 0 14px 12px;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(-105%);
}
.dashboard-portal-staff.is-sidebar-open .dashboard-portal-drawer { transform: translateX(0); }
.dashboard-portal-staff .dashboard-portal-drawer-backdrop {
    z-index: 50;
    inset: 0 0 28px;
    background: rgb(0 0 0 / 48%);
    backdrop-filter: none;
}
.dashboard-portal-staff .dashboard-portal-drawer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    height: 91px;
    flex: 0 0 91px;
    margin: 0 -14px 10px;
    place-items: center;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.dashboard-portal-staff .dashboard-portal-drawer-logo {
    display: block;
    width: 90px;
    height: 90px;
    align-self: center;
    justify-self: center;
    background: url('/_content/HRM.UI/images/chef-logo.png') center / contain no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.dashboard-portal-staff .dashboard-portal-drawer-logo.has-company-logo {
    display: grid;
    place-items: center;
    background: none;
}
.dashboard-portal-staff .dashboard-portal-drawer-logo.has-company-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.dashboard-portal-staff .dashboard-portal-drawer-nav {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    gap: 10px;
    max-height: calc(100vh - 133px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px 8px 0;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-color: transparent transparent;
    scrollbar-width: none;
}
.dashboard-portal-staff .dashboard-portal-drawer-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.dashboard-portal-staff .dashboard-portal-link {
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    color: var(--color-primary);
    background: #fff;
    border: 1px solid rgb(0 0 0 / 6%);
    border-radius: 6px;
    box-shadow: 0 3px 14px rgb(0 0 0 / 11%);
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.dashboard-portal-staff .dashboard-portal-link svg { width: 18px; height: 18px; }
.dashboard-portal-staff .dashboard-portal-link:hover,
.dashboard-portal-staff .dashboard-portal-link.is-active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.02);
}
.dashboard-portal-staff .dashboard-portal-link:hover svg,
.dashboard-portal-staff .dashboard-portal-link.is-active svg { color: #fff; }
.dashboard-portal-staff .dashboard-portal-submenu-indicator { font-size: 24px; line-height: 1; }
.dashboard-portal-staff .dashboard-portal-submenu {
    position: absolute;
    z-index: 70;
    top: 0;
    left: 100%;
    width: 300px;
    padding: 10px 0;
    background: #fff;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 5px 18px rgb(0 0 0 / 22%);
}
@supports (position-anchor: --drawer-item) {
    .dashboard-portal-staff .dashboard-portal-submenu {
        position: fixed;
        top: anchor(top);
        left: anchor(right);
        margin-left: 0;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        overflow-x: hidden;
    }
}
.dashboard-portal-staff .dashboard-portal-submenu::before {
    content: "";
    position: absolute;
    top: 0;
    right: 100%;
    bottom: 0;
    width: 14px;
}
.dashboard-portal-staff .dashboard-portal-submenu .dashboard-portal-link {
    min-height: 0;
    padding: 9px 18px;
    color: #535964;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
}
.dashboard-portal-staff .dashboard-portal-submenu .dashboard-portal-link:hover { color: #fff; background: var(--color-primary); transform: none; }
.dashboard-portal-sidebar-floating-submenu {
    position: fixed;
    z-index: 80;
    top: 8px;
    left: 8px;
    display: grid;
    width: max-content;
    min-width: 220px;
    max-width: min(30rem, calc(100vw - 16px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: .35rem 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: .35rem;
    box-shadow: 4px 4px 12px rgb(0 0 0 / 10%);
    scrollbar-width: none;
}
.dashboard-portal-sidebar-floating-submenu::-webkit-scrollbar { display: none; width: 0; height: 0; }
.dashboard-portal-sidebar-floating-submenu::before {
    position: absolute;
    top: 0;
    right: 100%;
    bottom: 0;
    width: 14px;
    content: "";
}
.dashboard-portal-staff .dashboard-portal-link.is-submenu-open {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.02);
}
.dashboard-portal-sidebar-floating-submenu .dashboard-portal-link {
    min-height: 0;
    padding: .6rem 1.2rem;
    color: #495057;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: .94rem;
    font-weight: 400;
    white-space: nowrap;
}
.dashboard-portal-sidebar-floating-submenu .dashboard-portal-link:hover { color: #fff; background: var(--color-primary); transform: none; }
.dashboard-portal-quick-attendance-overlay { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgb(0 0 0 / 50%); }
.dashboard-portal-quick-attendance-modal { width: min(500px, calc(100vw - 2rem)); overflow: hidden; color: #363949; background: #fff; border: 1px solid #d8dde5; border-radius: 8px; box-shadow: 0 12px 30px rgb(0 0 0 / 25%); font-family: Poppins, sans-serif; }
.dashboard-portal-quick-attendance-heading { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 14px; border-bottom: 1px solid #d8dde5; }
.dashboard-portal-quick-attendance-heading h2 { margin: 0; color: var(--color-primary, #0096C7); font-size: .95rem; font-weight: 600; }
.dashboard-portal-quick-attendance-close { display: grid; width: 30px; height: 30px; place-items: center; padding: 0 0 .12rem; color: #fff; background: #ff4545; border: 0; border-radius: 4px; cursor: pointer; font: 400 1.6rem/1 Arial, sans-serif; }
.dashboard-portal-quick-attendance-close:hover { background: #e93232; }
.dashboard-portal-quick-attendance-body { padding: 18px 14px 16px; }
.dashboard-portal-quick-attendance-error { margin-bottom: 10px; padding: 6px 8px; color: #9b1c1c; background: #fff4f4; border: 1px solid #f1b4b4; border-radius: 4px; font-size: .7rem; }
.dashboard-portal-quick-attendance-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 158px)); column-gap: 88px; }
.dashboard-portal-quick-attendance-fields label, .dashboard-portal-quick-attendance-remarks { display: grid; gap: 4px; color: #363949; font-size: .72rem; font-weight: 500; }
.dashboard-portal-quick-attendance-fields input, .dashboard-portal-quick-attendance-remarks textarea { box-sizing: border-box; width: 100%; min-height: 25px; padding: 5px 8px; color: #495057; background: #fff; border: 1px solid #adb5bd; border-radius: 4px; outline: 0; font: 500 .75rem/1.2 Poppins, sans-serif; }
.dashboard-portal-quick-attendance-fields input:disabled { background: #e9ecef; opacity: 1; }
.dashboard-portal-quick-attendance-remarks { width: min(70%, 330px); margin-top: 7px; }
.dashboard-portal-quick-attendance-remarks em { color: #dc2626; font-style: normal; }
.dashboard-portal-quick-attendance-remarks textarea { height: 30px; min-height: 30px; resize: vertical; }
.dashboard-portal-quick-attendance-fields input:focus, .dashboard-portal-quick-attendance-remarks textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgb(var(--color-primary-rgb, 0 150 199) / 16%); }
.dashboard-portal-quick-attendance-actions { display: flex; justify-content: center; margin-top: 7px; }
.dashboard-portal-quick-attendance-save { min-width: 80px; min-height: 27px; padding: 5px 12px; color: #fff; background: var(--color-primary, #0096C7); border: 0; border-radius: 5px; cursor: pointer; font: 600 .8rem/1.2 Poppins, sans-serif; }
.dashboard-portal-quick-attendance-save:hover:not(:disabled) { background: var(--color-primary-hover, #007AA3); }
.dashboard-portal-quick-attendance-save:disabled { cursor: wait; opacity: .65; }
@media (max-width: 768px) {
    .dashboard-portal-staff .dashboard-portal-header { justify-content: flex-start; gap: .5rem; padding: 0 10px; }
    .dashboard-portal-staff .dashboard-portal-header-nav-shell { margin-left: .25rem; gap: .15rem; }
    .dashboard-portal-staff .dashboard-portal-header-scroll { width: 28px; height: 28px; font-size: 1.25rem; }
    .dashboard-portal-staff .dashboard-portal-drawer { width: min(250px, 86vw); }
    .dashboard-portal-sidebar-floating-submenu { width: min(300px, calc(100vw - 16px)); }
    .dashboard-portal-quick-attendance-fields { grid-template-columns: 1fr; gap: 12px; }
    .dashboard-portal-quick-attendance-remarks { width: 100%; }
    .dashboard-portal-quick-attendance-heading { min-height: 64px; padding-inline: 14px; }
    .dashboard-portal-quick-attendance-body { padding: 20px 14px; }
}

/* Generic parent-menu landing page, styled after the Kiran HRM submenu cards. */
.staff-submenu-page {
    min-height: 100%;
    padding: .25rem;
    background: #fdfcfc;
    border-radius: 8px;
}
.staff-submenu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}
.staff-submenu-card {
    display: flex;
    min-width: 0;
    min-height: 110px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 1.25rem .25rem;
    color: var(--color-primary);
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
    transition: transform .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.staff-submenu-card:hover,
.staff-submenu-card:focus-visible {
    color: #fff;
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
    transform: translateY(-5px);
}
.staff-submenu-card-icon {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 2.25rem;
    line-height: 1;
}
.staff-submenu-card-label {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
}
.staff-submenu-page-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    color: var(--color-muted);
    font-size: .9rem;
}
@media (max-width: 1100px) and (min-width: 769px) {
    .staff-submenu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .staff-submenu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: .75rem; }
    .staff-submenu-card { min-height: 105px; }
}
@media (max-width: 460px) {
    .staff-submenu-grid { grid-template-columns: 1fr; }
}
