:root {
    --hrm-bg: #eef3f8;
    --hrm-surface: rgba(255, 255, 255, 0.86);
    --hrm-surface-solid: #ffffff;
    --hrm-border: rgba(148, 163, 184, 0.22);
    --hrm-text: #0f172a;
    --hrm-muted: #64748b;
    --hrm-green: #22c55e;
    --hrm-blue: #3b82f6;
    --hrm-gradient: linear-gradient(135deg, var(--hrm-green), var(--hrm-blue));
    --hrm-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
    --sidebar-width: 276px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--hrm-text);
    background: var(--hrm-bg);
    font-family: 'Prompt', 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Keep the authenticated workspace compact while legacy Bootstrap screens are
   migrated. Component-specific sizes below still preserve the visual hierarchy. */
.hrm-page {
    font-size: .875rem;
    line-height: 1.55;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hrm-page::before,
.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: linear-gradient(rgba(100, 116, 139, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 116, 139, .08) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hrm-orb, .auth-orb {
    position: fixed;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .18;
    pointer-events: none;
    z-index: -2;
}

.hrm-orb-one, .auth-orb-one { top: -160px; left: 10%; background: var(--hrm-green); }
.hrm-orb-two, .auth-orb-two { right: -120px; bottom: -180px; background: var(--hrm-blue); }

.eyebrow {
    margin: 0 0 5px;
    color: var(--hrm-blue);
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand-mark {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    background: var(--hrm-gradient);
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(59, 130, 246, .24);
}

.brand-mark-small { width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto; }

/* Authentication */
.auth-page { display: grid; place-items: center; padding: 32px; overflow-x: hidden; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) 460px; width: min(1080px, 100%); align-items: center; gap: 80px; }
.auth-intro { max-width: 580px; }
.auth-intro .brand-mark { margin-bottom: 34px; }
.auth-intro h1 { margin: 0 0 22px; font-family: 'Outfit', 'Prompt', sans-serif; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.03; letter-spacing: -.04em; }
.auth-intro h1 span { color: transparent; background: var(--hrm-gradient); -webkit-background-clip: text; background-clip: text; }
.auth-intro > p:last-child { max-width: 520px; color: var(--hrm-muted); font-size: 1.05rem; line-height: 1.8; }
.auth-card { padding: 38px; background: var(--hrm-surface); border: 1px solid rgba(255,255,255,.72); border-radius: 28px; box-shadow: var(--hrm-shadow); backdrop-filter: blur(22px); }
.auth-card-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.auth-card h2 { margin: 0; font-family: 'Outfit','Prompt',sans-serif; font-size: 1.8rem; }
.auth-help { margin: 12px 0 28px; color: var(--hrm-muted); font-size: .92rem; }
.status-pill, .count-badge, .metric-percent { border: 1px solid #bbf7d0; color: #15803d; background: #f0fdf4; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.status-pill { display: inline-flex; padding: 7px 10px; gap: 6px; align-items: center; }
.status-pill.approved { color:#166534; background:#dcfce7; border-color:#86efac; }
.status-pill.pending { color:#92400e; background:#fef3c7; border-color:#fcd34d; }
.status-pill.rejected { color:#991b1b; background:#fee2e2; border-color:#fca5a5; }
.auth-form { display: grid; gap: 18px; }
.field-group { display: grid; gap: 8px; color: #334155; font-size: .84rem; font-weight: 500; }
.input-shell { display: flex; height: 52px; align-items: center; gap: 12px; padding: 0 15px; background: rgba(248,250,252,.9); border: 1px solid #dbe3ee; border-radius: 14px; transition: .2s ease; }
.input-shell:focus-within { border-color: var(--hrm-blue); box-shadow: 0 0 0 4px rgba(59,130,246,.11); background: #fff; }
.input-shell i { color: #94a3b8; }
.input-shell input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--hrm-text); background: transparent; }
.password-toggle { display:inline-grid; width:36px; height:36px; flex:0 0 36px; place-items:center; padding:0; color:#64748b; background:transparent; border:0; border-radius:10px; cursor:pointer; }
.password-toggle:hover { color:#2563eb; background:#eff6ff; }
.password-toggle:focus-visible { color:#2563eb; outline:3px solid rgba(59,130,246,.18); outline-offset:1px; }
.password-toggle i { color:inherit; pointer-events:none; }
.remember-field { display: flex; align-items: center; gap: 9px; color: var(--hrm-muted); font-size: .84rem; cursor: pointer; }
.remember-field input { width: 17px; height: 17px; accent-color: var(--hrm-blue); }
.primary-button { display: flex; min-height: 52px; justify-content: center; align-items: center; gap: 12px; margin-top: 4px; color: #fff; background: var(--hrm-gradient); border: 0; border-radius: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 30px rgba(59,130,246,.2); transition: transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(59,130,246,.28); }

/* Application shell */
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { position: fixed; inset: 18px auto 18px 18px; z-index: 40; display: flex; width: calc(var(--sidebar-width) - 18px); flex-direction: column; padding: 20px 16px; overflow-y: auto; background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.85); border-radius: 24px; box-shadow: var(--hrm-shadow); backdrop-filter: blur(24px); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 2px 5px 20px; border-bottom: 1px solid var(--hrm-border); }
.sidebar-brand > span:nth-child(2) { display: grid; min-width: 0; }
.sidebar-brand strong { font-family: 'Outfit',sans-serif; font-size: 1.08rem; }
.sidebar-brand small, .profile-copy small { color: var(--hrm-muted); font-size: .72rem; }
.sidebar-close { display: none; margin-left: auto; }
.sidebar-nav { display: grid; gap: 3px; margin-top: 18px; }
.nav-section { display: grid; gap: 5px; }
.sidebar-label { margin: 18px 12px 6px; color: #94a3b8; font-family: 'Inter',sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-link { display: flex; min-height: 46px; align-items: center; gap: 13px; padding: 10px 13px; color: #526077; border-radius: 13px; text-decoration: none; font-size: .82rem; font-weight: 500; transition: .2s ease; }
.sidebar-link i { width: 21px; color: #7c8ba1; text-align: center; }
.sidebar-link:hover { color: var(--hrm-text); background: rgba(59,130,246,.07); }
.sidebar-link.active { color: #fff; background: var(--hrm-gradient); box-shadow: 0 10px 24px rgba(59,130,246,.18); }
.sidebar-link.active i { color: #fff; }
.sidebar-link.disabled { opacity: .45; cursor: not-allowed; }
.sidebar-group-trigger { width: 100%; border: 0; cursor: pointer; text-align: left; }
.sidebar-group-trigger .nav-chevron { width: auto; margin-left: auto; font-size: .65rem; transition: transform .2s ease; }
.nav-group.open .nav-chevron { transform: rotate(180deg); }
.nav-children { display: grid; max-height: 0; gap: 3px; overflow: hidden; opacity: 0; transition: max-height .28s ease, opacity .2s ease; }
.nav-group.open > .nav-children { max-height: 900px; margin: 4px 0 7px; opacity: 1; }
.sidebar-child-link { min-height: 39px; margin-left: 12px; padding: 8px 9px 8px 21px; border-left: 1px solid #dbe3ee; border-radius: 0 11px 11px 0; font-size: .74rem; }
.sidebar-child-link.active { color: #2563eb; background: #eff6ff; border-left-color: #3b82f6; box-shadow: none; }
.nav-children .nav-group > .sidebar-group-trigger { width: calc(100% - 12px); }
.sidebar-grandchild-link { min-height: 35px; margin-left: 25px; padding-left: 25px; font-size: .7rem; border-left-color: #e2e8f0; }
.sidebar-grandchild-link::before { content: ''; width: 5px; height: 5px; flex: 0 0 auto; background: #94a3b8; border-radius: 50%; }
.sidebar-grandchild-link.active::before { background: #3b82f6; }
.soon-badge { margin-left: auto; padding: 2px 6px; color: #64748b; background: #e2e8f0; border-radius: 999px; font-size: .56rem; white-space: nowrap; }
.sidebar-profile { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 16px 8px 2px; border-top: 1px solid var(--hrm-border); }
.profile-avatar { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--hrm-gradient); border-radius: 12px; font-weight: 600; }
.profile-copy { display: grid; min-width: 0; }
.profile-copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.app-stage { grid-column: 2; min-width: 0; }
.app-topbar { position: sticky; top: 18px; z-index: 30; display: flex; min-height: 76px; justify-content: space-between; align-items: center; gap: 22px; margin: 18px 24px 0 6px; padding: 13px 18px 13px 22px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.86); border-radius: 20px; box-shadow: 0 12px 36px rgba(15,23,42,.06); backdrop-filter: blur(22px); }
.topbar-title { display: flex; align-items: center; gap: 13px; }
.topbar-title h1 { margin: 0; font-family: 'Outfit','Prompt',sans-serif; font-size: 1.45rem; line-height: 1.1; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.today-chip { padding: 9px 13px; color: var(--hrm-muted); background: rgba(248,250,252,.85); border: 1px solid var(--hrm-border); border-radius: 11px; font-size: .78rem; }
.icon-button, .logout-button { border: 0; cursor: pointer; }
.icon-button { display: inline-grid; width: 40px; height: 40px; place-items: center; color: var(--hrm-text); background: #f8fafc; border-radius: 11px; }
.menu-toggle { display: none; }
.logout-button { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 8px 13px; color: #475569; background: #fff; border: 1px solid var(--hrm-border); border-radius: 11px; font-size: .8rem; font-weight: 500; }
.logout-button:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.app-content { padding: 24px 24px 48px 6px; }

/* Dashboard */
.welcome-panel { position: relative; display: flex; min-height: 190px; justify-content: space-between; align-items: center; gap: 30px; padding: 32px 36px; overflow: hidden; color: #fff; background: linear-gradient(125deg,#16a34a 0%,#22c55e 30%,#3b82f6 100%); border-radius: 24px; box-shadow: 0 18px 45px rgba(59,130,246,.18); }
.welcome-panel::after { content: ''; position: absolute; width: 240px; height: 240px; right: -60px; top: -110px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.06),0 0 0 68px rgba(255,255,255,.04); }
.welcome-panel > div:first-child { position: relative; z-index: 1; }
.welcome-panel .eyebrow { color: rgba(255,255,255,.75); }
.welcome-panel h2 { margin: 4px 0 8px; font-family: 'Outfit','Prompt',sans-serif; font-size: clamp(1.7rem,3vw,2.5rem); }
.welcome-panel p:last-child { max-width: 650px; margin: 0; color: rgba(255,255,255,.82); }
.welcome-icon { position: relative; z-index: 1; display: grid; width: 82px; height: 82px; flex: 0 0 auto; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 24px; font-size: 2rem; backdrop-filter: blur(12px); }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.metric-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 19px; background: var(--hrm-surface); border: 1px solid rgba(255,255,255,.86); border-radius: 18px; box-shadow: 0 10px 32px rgba(15,23,42,.055); backdrop-filter: blur(16px); }
.metric-icon, .list-icon { display: grid; place-items: center; border-radius: 14px; }
.metric-icon { width: 48px; height: 48px; }
.metric-copy p { margin: 0 0 3px; color: var(--hrm-muted); font-size: .8rem; }
.metric-copy div { display: flex; align-items: baseline; gap: 6px; }
.metric-copy strong { font-family: 'Outfit',sans-serif; font-size: 1.65rem; }
.metric-copy span { color: var(--hrm-muted); font-size: .72rem; }
.metric-percent { padding: 5px 8px; }
.tone-blue { color:#2563eb; background:#eff6ff; }
.tone-green { color:#16a34a; background:#f0fdf4; }
.tone-red { color:#dc2626; background:#fef2f2; }
.tone-purple { color:#7c3aed; background:#f5f3ff; }
.tone-orange { color:#ea580c; background:#fff7ed; }
.tone-cyan { color:#0891b2; background:#ecfeff; }
.learning-page { display:grid; gap:18px; min-width:0; }
.learning-page .directory-hero { margin-bottom:0; }
.learning-overview-grid { margin-top:0; }
.learning-page .metric-card { width:100%; color:var(--hrm-text); border-color:#e2e8f0; text-align:left; text-decoration:none; font:inherit; cursor:pointer; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.learning-page .metric-card:hover { transform:translateY(-2px); border-color:#bfdbfe; box-shadow:0 14px 34px rgba(59,130,246,.12); }
.learning-page .metric-card:focus-visible { outline:3px solid rgba(59,130,246,.24); outline-offset:2px; }
.learning-page .metric-card.selected { border-color:#60a5fa; background:linear-gradient(135deg,#f0fdf4,#eff6ff); box-shadow:0 12px 30px rgba(59,130,246,.13); }
.learning-page .metric-card:disabled { opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
.learning-browser { overflow:hidden; }
.learning-page .report-chart-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:18px; background:linear-gradient(135deg,#f8fafc,#eff6ff); border-bottom:1px solid var(--hrm-border); }
.learning-page .learning-grid-empty { grid-column:1/-1; min-height:130px; }
.learning-page [data-lesson-detail],.learning-page [data-exam-area] { min-width:0; }
.learning-page [data-exam-area]:empty,.learning-page [data-lesson-detail]:empty { display:none; }
.learning-detail { padding:0 18px 18px; }
.learning-page .section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0; border-bottom:1px solid var(--hrm-border); }
.learning-page .section-heading h3 { margin:0; color:#0f172a; font-family:'Outfit','Prompt',sans-serif; font-size:1.05rem; }
.learning-page .section-heading p { margin:4px 0 0; color:#64748b; font-size:.76rem; }
.learning-page .section-heading .primary-button { min-height:40px; margin:0; padding:7px 16px; white-space:nowrap; }
.learning-detail .dashboard-grid { grid-template-columns:1fr; margin-top:16px; }
.learning-detail .content-card { overflow:hidden; box-shadow:none; border-color:#e2e8f0; }
.learning-detail .content-card > img { display:block; width:auto; max-width:calc(100% - 36px)!important; max-height:420px; margin:18px auto 0; object-fit:contain; }
.learning-detail .content-card > p { margin:18px; }
.learning-richtext { padding:18px; overflow-wrap:anywhere; color:#475569; font-size:.82rem; line-height:1.75; }
.learning-richtext > :first-child { margin-top:0; }
.learning-richtext > :last-child { margin-bottom:0; }
.learning-richtext img,.learning-richtext iframe,.learning-richtext video,.learning-richtext table { max-width:100%!important; }
.learning-page [data-exam-area] { padding:0 18px 18px; }
.learning-page [data-exam-area] > .content-card { margin-top:12px; padding:18px; border-color:#e2e8f0; box-shadow:none; }
.learning-page [data-exam-area] > .content-card > h3 { margin:0 0 14px; color:#1e293b; font-size:.9rem; line-height:1.55; }
.choice-row { display:flex; min-height:44px; align-items:flex-start; gap:10px; margin-top:8px; padding:11px 13px; color:#475569; background:#f8fafc; border:1px solid #e2e8f0; border-radius:11px; font-size:.8rem; line-height:1.5; cursor:pointer; }
.choice-row:hover { color:#1e40af; background:#eff6ff; border-color:#bfdbfe; }
.choice-row:has(input:checked) { color:#1d4ed8; background:#eff6ff; border-color:#60a5fa; }
.choice-row input { width:16px; height:16px; flex:0 0 auto; margin:2px 0 0; accent-color:#3b82f6; }
.learning-score-shell { overflow:hidden; }
.learning-page .card-list { max-height:none; gap:12px; padding:18px; overflow:visible; }
.learning-page details.list-item { display:block; padding:0; overflow:hidden; background:#fff; border:1px solid #e2e8f0; border-radius:14px; }
.learning-page details.list-item:last-child { border-bottom:1px solid #e2e8f0; }
.learning-page details.list-item summary { position:relative; width:100%; padding:15px 46px 15px 17px; cursor:pointer; list-style:none; }
.learning-page details.list-item summary::-webkit-details-marker { display:none; }
.learning-page details.list-item summary::after { content:'+'; position:absolute; top:50%; right:17px; color:#64748b; font-size:1.15rem; transform:translateY(-50%); }
.learning-page details.list-item[open] summary { background:#f8fafc; border-bottom:1px solid #e2e8f0; }
.learning-page details.list-item[open] summary::after { content:'−'; }
.learning-page details.list-item p { display:block; margin:0; overflow:visible; -webkit-line-clamp:unset; }
.learning-page details.list-item summary p { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:5px; }
.learning-page details.list-item .full-field { display:grid; gap:10px; padding:16px 18px; }
.learning-page details.list-item .full-field p { padding:11px 13px; color:#64748b; background:#f8fafc; border-radius:10px; font-size:.76rem; line-height:1.65; }
.learning-page details.list-item .full-field strong { color:#334155; }
.learning-page .answer-review { border-left:4px solid #cbd5e1; }
.learning-page .answer-review.correct { color:#166534; background:#f0fdf4; border-left-color:#22c55e; }
.learning-page .answer-review.wrong { color:#b91c1c; background:#fef2f2; border-left-color:#ef4444; }
.learning-page .answer-review.unanswered { color:#92400e; background:#fffbeb; border-left-color:#f59e0b; }
.learning-page .answer-mark { display:inline-flex; margin-left:8px; font-weight:700; }
@media (max-width:1080px) { .learning-page .report-chart-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) {
    .learning-page .report-chart-grid { grid-template-columns:1fr; padding:13px; }
    .learning-page .section-heading { align-items:flex-start; flex-direction:column; }
    .learning-page .section-heading .primary-button { width:100%; }
    .learning-detail,.learning-page [data-exam-area] { padding-right:13px; padding-left:13px; }
    .learning-page .card-list { padding:13px; }
}
.learning-admin-page { display:grid; gap:18px; min-width:0; }
.learning-admin-page .directory-hero { margin-bottom:0; }
.learning-admin-menu { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.learning-admin-menu-card { position:relative; display:grid; min-height:190px; grid-template-rows:auto 1fr; gap:18px; padding:22px; overflow:hidden; color:#334155; border:1px solid rgba(255,255,255,.9); border-radius:20px; text-decoration:none; box-shadow:0 12px 36px rgba(15,23,42,.07); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.learning-admin-menu-card::after { content:''; position:absolute; right:-34px; bottom:-48px; width:140px; height:140px; background:currentColor; border-radius:50%; opacity:.06; }
.learning-admin-menu-card:hover { transform:translateY(-3px); border-color:#bfdbfe; box-shadow:0 18px 42px rgba(59,130,246,.13); }
.learning-admin-menu-card:focus-visible { outline:3px solid rgba(59,130,246,.24); outline-offset:2px; }
.learning-admin-menu-icon { display:grid; width:48px; height:48px; place-items:center; color:inherit; background:rgba(255,255,255,.82); border-radius:14px; font-size:1.15rem; box-shadow:0 8px 20px rgba(15,23,42,.07); }
.learning-admin-menu-copy { display:grid; align-content:end; gap:5px; }
.learning-admin-menu-copy small { color:currentColor; font:700 .65rem Inter,sans-serif; letter-spacing:.1em; text-transform:uppercase; opacity:.72; }
.learning-admin-menu-copy strong { color:#0f172a; font-family:Outfit,Prompt,sans-serif; font-size:1.05rem; }
.learning-admin-menu-copy>span { color:#64748b; font-size:.75rem; line-height:1.6; }
.learning-admin-menu-arrow { position:absolute; top:24px; right:24px; opacity:.55; }
.learning-admin-card { overflow:hidden; }
.learning-admin-section-header,.learning-admin-list-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; background:linear-gradient(135deg,#f8fafc,#eff6ff); border-bottom:1px solid #e2e8f0; }
.learning-admin-section-header>div { display:flex; align-items:center; gap:12px; }
.learning-admin-section-icon { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border-radius:11px; }
.learning-admin-section-header h3,.learning-admin-list-header h3 { margin:0; color:#0f172a; font-family:Outfit,Prompt,sans-serif; font-size:1rem; }
.learning-admin-section-header p,.learning-admin-list-header p { margin:3px 0 0; color:#64748b; font-size:.74rem; }
.learning-admin-form { padding:20px 22px 22px; border-bottom:1px solid #e2e8f0; }
.learning-admin-form label>span b { color:#dc2626; }
.learning-admin-form label>small { color:#94a3b8; font-size:.68rem; font-weight:400; }
.learning-admin-form .form-actions { align-items:center; margin:0; padding-top:2px; }
.learning-admin-form .form-actions button { min-height:40px; margin:0; }
.learning-upload-field input[type="file"] { padding:7px 9px; cursor:pointer; }
.learning-upload-field input[type="file"]::file-selector-button { margin:-3px 10px -3px -4px; padding:7px 11px; color:#2563eb; background:#eff6ff; border:0; border-radius:8px; cursor:pointer; }
.learning-upload-field img { display:block; width:min(320px,100%); max-height:190px; margin-top:6px; object-fit:contain; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; }
.learning-admin-list-section { min-width:0; }
.learning-admin-list-header { background:#fff; }
.learning-admin-list-section>.responsive-table { margin:0; border:0; border-radius:0; }
.learning-admin-list-section .dataTables_wrapper { border:0; border-radius:0; box-shadow:none; }
.learning-admin-list-section .data-table td strong { display:block; color:#1e293b; }
.learning-admin-list-section .data-table td small { display:block; margin-top:3px; color:#94a3b8; font-size:.68rem; }
.learning-admin-list-section .table-actions { flex-wrap:nowrap; }
.learning-admin-list-section .table-actions>a,.learning-admin-list-section .table-actions>button { display:inline-grid; width:34px; height:34px; place-items:center; margin:0; color:#2563eb; background:#eff6ff; border:0; border-radius:9px; text-decoration:none; cursor:pointer; }
.learning-admin-list-section .table-actions>.danger { color:#dc2626; background:#fef2f2; }
.question-workspace { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr); align-items:start; gap:18px; }
.question-editor-card,.question-list-card { overflow:hidden; }
.question-options { display:grid; gap:12px; padding:14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:13px; }
.question-options-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; color:#475569; font-size:.78rem; font-weight:700; }
.question-options-heading small { color:#94a3b8; font-size:.68rem; font-weight:400; }
.question-options-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.question-list-card { min-width:0; }
.question-list-badge { display:grid; width:38px; height:38px; place-items:center; color:#7c3aed; background:#f3e8ff; border-radius:11px; }
.question-card-list { max-height:680px; overflow-y:auto; }
.question-list-item { align-items:center; padding:15px 18px; }
.question-list-copy { min-width:0; flex:1 1 auto; }
.question-list-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.question-list-actions { display:flex; flex:0 0 auto; gap:7px; }
.question-list-actions button { display:grid; width:32px; height:32px; place-items:center; color:#2563eb; background:#eff6ff; border:0; border-radius:9px; cursor:pointer; }
.question-list-actions button.danger { color:#dc2626; background:#fef2f2; }
.question-list-actions button:focus-visible { outline:3px solid rgba(59,130,246,.22); outline-offset:2px; }
@media(max-width:1100px){.question-workspace{grid-template-columns:1fr}.question-card-list{max-height:380px}}
@media(max-width:700px){.question-options-grid{grid-template-columns:1fr}.question-options-heading{align-items:flex-start;flex-direction:column;gap:3px}.question-list-item{align-items:flex-start;padding:14px}.question-list-copy strong{white-space:normal}.question-list-actions{flex-direction:column}}
@media(max-width:980px){.learning-admin-menu{grid-template-columns:1fr}.learning-admin-menu-card{min-height:150px}}
@media(max-width:700px){
    .learning-admin-section-header,.learning-admin-list-header{padding:16px}
    .learning-admin-form{grid-template-columns:1fr;padding:16px}
    .learning-admin-form .full-field{grid-column:auto}
    .learning-admin-form .form-actions{align-items:stretch;flex-direction:column-reverse}
    .learning-admin-form .form-actions button{width:100%}
}
.dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.content-card { min-width: 0; background: var(--hrm-surface); border: 1px solid rgba(255,255,255,.86); border-radius: 20px; box-shadow: 0 12px 38px rgba(15,23,42,.055); backdrop-filter: blur(16px); }
#main-content > .content-card + .content-card { margin-top:18px; }
.content-card > .filter-grid:first-child,
.content-card > form.filter-grid:first-child { border-radius:20px 20px 0 0; }
.filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); align-items:end; gap:12px; padding:18px 20px; background:linear-gradient(135deg,#f8fafc,#eff6ff); border-bottom:1px solid #e2e8f0; }
.filter-grid label { display:grid; min-width:0; gap:7px; margin:0; color:#475569; font-size:.78rem; font-weight:600; }
.filter-grid input:not([type="checkbox"]):not([type="radio"]),
.filter-grid select,
.filter-grid textarea { width:100%; min-width:0; min-height:42px; padding:8px 11px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:10px; outline:none; }
.filter-grid input:focus,
.filter-grid select:focus,
.filter-grid textarea:focus { border-color:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.12); }
.filter-grid .select2-container { width:100%!important; min-width:0; }
.filter-grid > .primary-button,
.filter-grid > .secondary-button { min-height:42px; margin:0; padding:8px 15px; white-space:nowrap; }
.filter-grid > .primary-button { box-shadow:0 8px 22px rgba(59,130,246,.16); }
.report-chart-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; padding:18px 20px; }
.report-chart-grid .metric-card { display:grid; grid-template-columns:1fr; align-content:center; gap:5px; min-height:104px; padding:18px; }
.report-chart-grid .metric-card > span { color:#64748b; font-size:.76rem; }
.report-chart-grid .metric-card > strong { color:#0f172a; font:700 1.6rem/1.2 Outfit,Prompt,sans-serif; }
.report-chart-grid .metric-card > small { overflow:hidden; color:#94a3b8; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.content-card > .section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid #e2e8f0; }
.content-card > .section-heading h3 { margin:0; color:#0f172a; font:600 1rem/1.4 Outfit,Prompt,sans-serif; }
.content-card > .section-heading p:last-child { margin:4px 0 0; color:#64748b; font-size:.76rem; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px; border-bottom: 1px solid var(--hrm-border); }
.card-heading h3 { margin: 0; font-family: 'Outfit','Prompt',sans-serif; font-size: 1.08rem; }
.count-badge { min-width: 28px; padding: 5px 8px; text-align: center; }
.card-list { display: grid; max-height: 330px; overflow-y: auto; }
.list-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(226,232,240,.75); }
.list-item:last-child { border-bottom: 0; }
.list-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; }
.list-item strong { display: block; margin: 1px 0 4px; font-size: .86rem; }
.list-item p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--hrm-muted); font-size: .77rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.empty-state { display: grid; min-height: 170px; place-items: center; align-content: center; gap: 12px; color: #94a3b8; text-align: center; }
.empty-state i { font-size: 1.5rem; }
.empty-state p { margin: 0; font-size: .82rem; }
.form-card { background: var(--hrm-surface); border: 1px solid rgba(255,255,255,.86); border-radius: 20px; box-shadow: var(--hrm-shadow); backdrop-filter: blur(16px); }
.narrow-card { width: min(680px, 100%); }
.form-card-body { padding: 24px; }
.employee-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 14px; background: #f8fafc; border: 1px solid var(--hrm-border); border-radius: 14px; }
.employee-summary strong { display: block; font-size: .9rem; }
.employee-summary p { margin: 3px 0 0; color: var(--hrm-muted); font-size: .75rem; }
.settings-form { display: grid; gap: 18px; }
.form-submit { width: fit-content; min-width: 210px; padding: 0 20px; }
.field-error { color: #dc2626; font-size: .72rem; }
.alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 13px 15px; border: 1px solid; border-radius: 13px; font-size: .84rem; line-height: 1.5; }
.auth-card .alert { margin-bottom: 18px; }
.alert-success { color:#166534; background:#f0fdf4; border-color:#bbf7d0; }
.alert-danger { color:#991b1b; background:#fef2f2; border-color:#fecaca; }
.alert-info { margin-top:20px; color:#1e40af; background:#eff6ff; border-color:#bfdbfe; }
.swal2-container { font-family:Prompt,Inter,sans-serif; }
.swal2-popup { padding:24px; color:#334155; border:1px solid rgba(255,255,255,.86); border-radius:22px; box-shadow:0 28px 75px rgba(15,23,42,.24); }
.swal2-title { color:#0f172a; font-family:Outfit,Prompt,sans-serif; font-size:1.3rem; }
.swal2-html-container { color:#64748b; font-size:.84rem; line-height:1.65; }
.swal2-actions { gap:9px; }
.swal2-styled { min-height:40px; margin:0!important; padding:8px 17px; border-radius:11px!important; font:500 .8rem Prompt,Inter,sans-serif!important; box-shadow:none!important; }
.sidebar-backdrop { display: none; }

/* Legacy HRM feature screens inside the Mint shell */
.hrm-page .page-heading,.hrm-page .white-bg,.hrm-page .ibox,.hrm-page .ibox-content,.hrm-page .card{background:rgba(255,255,255,.9)!important;border-color:rgba(226,232,240,.9)!important}
.hrm-page .page-heading,.hrm-page .ibox,.hrm-page .card{border-radius:18px!important;box-shadow:0 12px 38px rgba(15,23,42,.055)!important}
.hrm-page .page-heading{margin:0 0 18px!important;padding:20px 24px!important}
.hrm-page .ibox-title,.hrm-page .card-header{padding:16px 20px!important;border-bottom:1px solid var(--hrm-border)!important;border-radius:18px 18px 0 0!important}
.hrm-page .ibox-content,.hrm-page .card-body{padding:20px!important;border-radius:0 0 18px 18px!important}
.hrm-page .form-control{min-height:42px;color:#334155;background:#f8fafc;border:1px solid #dbe3ee;border-radius:11px;box-shadow:none;font-size:.84rem}
.hrm-page .form-control:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.11)}
.hrm-page .btn{border-radius:11px;font-family:'Prompt',sans-serif;font-size:.82rem;font-weight:500}
.hrm-page .btn-primary,.hrm-page .btn-success,.hrm-page .btn-info{color:#fff;background:var(--hrm-gradient);border-color:transparent}
.hrm-page .table{color:#475569;background:#fff;border-radius:12px;overflow:hidden}
.hrm-page .table thead th{color:#64748b;background:#f8fafc;border-color:#e2e8f0;font-size:.76rem}
.hrm-page .table td{border-color:#e2e8f0;font-size:.82rem;vertical-align:middle}
[data-legacy-plugin-page] h1{font-size:1.45rem;line-height:1.3}
[data-legacy-plugin-page] h2{font-size:1.3rem;line-height:1.35}
[data-legacy-plugin-page] h3{font-size:1.12rem;line-height:1.4}
[data-legacy-plugin-page] h4{font-size:1rem;line-height:1.45}
[data-legacy-plugin-page] h5,[data-legacy-plugin-page] h6{font-size:.9rem;line-height:1.5}
[data-legacy-plugin-page] label,
[data-legacy-plugin-page] .control-label,
[data-legacy-plugin-page] .input-group-addon,
[data-legacy-plugin-page] .input-group-text{font-size:.82rem}
.hrm-page input[type="date"],
.hrm-page input[type="datetime-local"],
.hrm-page input[type="month"]{color-scheme:light}
.hrm-page input[type="date"]::-webkit-calendar-picker-indicator,
.hrm-page input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.hrm-page input[type="month"]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.72}
.datepicker-dropdown{z-index:2050!important;padding:10px!important;font-family:Prompt,Inter,sans-serif;background:#fff;border:1px solid #dbe3ed!important;border-radius:14px!important;box-shadow:0 18px 45px rgba(15,23,42,.16)}
.datepicker table{border-collapse:separate;border-spacing:2px}
.datepicker table tr th,.datepicker table tr td{width:34px;height:32px;border-radius:9px;font-size:.78rem}
.datepicker table tr th{color:#64748b;font-weight:600}
.datepicker table tr td.day:hover,.datepicker table tr td.focused{color:#2563eb;background:#eff6ff}
.datepicker table tr td.today,.datepicker table tr td.today:hover{color:#166534;background:#dcfce7;border-color:#bbf7d0}
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover{color:#fff!important;background:linear-gradient(135deg,#22c55e,#3b82f6)!important;border-color:transparent!important;text-shadow:none!important}
.datepicker .datepicker-switch:hover,.datepicker .prev:hover,.datepicker .next:hover,.datepicker tfoot tr th:hover{background:#f1f5f9!important}

/* General Staff keeps source Bootstrap DOM hooks, so normalize its old grid
   containers instead of rewriting the request forms and page JavaScript. */
[data-general-staff-page] .app-content{min-width:0}
[data-general-staff-page] .app-content>.page-heading,
[data-general-staff-page] .app-content>.row.white-bg{display:block!important;width:100%;max-width:none;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
[data-general-staff-page] .app-content>.page-heading>.card,
[data-general-staff-page] .app-content>.row.white-bg>div,
[data-general-staff-page] .app-content>.row.white-bg>div>.card{width:100%!important;max-width:none!important;min-width:0;flex:0 0 100%;margin:0!important}
[data-general-staff-page] .page-heading>.card,
[data-general-staff-page] .app-content>.row.white-bg .card{overflow:hidden}
[data-general-staff-page] .card-body,
[data-general-staff-page] .page-heading form{width:100%;min-width:0}
[data-general-staff-page] .page-heading .container,
[data-general-staff-page] .app-content>.row.white-bg .container{width:100%;max-width:none;padding-right:20px;padding-left:20px}
[data-general-staff-page] .d-flex.justify-content-between,
[data-general-staff-page] .title-content{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
[data-general-staff-page] .card-title,
[data-general-staff-page] .title-content h3{margin:0}
[data-general-staff-page] .table-responsive{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e2e8f0;border-radius:14px}
[data-general-staff-page] .table-responsive>.dataTables_wrapper{width:100%;min-width:0}
[data-general-staff-page] .table-responsive table.dataTable{width:100%!important;margin:0!important}
[data-general-staff-page] .table-responsive table.dataTable:not(.dtr-inline){min-width:760px}
[data-general-staff-page] table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
[data-general-staff-page] table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before{display:inline-grid;width:24px;height:24px;place-items:center;margin-right:8px;color:#fff;background:linear-gradient(135deg,#22c55e,#3b82f6);border:0;border-radius:7px;box-shadow:none;line-height:1}
[data-general-staff-page] table.dataTable>tbody>tr.child ul.dtr-details{display:grid;width:100%;gap:8px}
[data-general-staff-page] table.dataTable>tbody>tr.child ul.dtr-details>li{display:grid;grid-template-columns:minmax(130px,.35fr) 1fr;gap:12px;padding:8px 0;border-bottom:1px solid #edf2f7}
[data-general-staff-page] table.dataTable>tbody>tr.child span.dtr-title{color:#475569!important}
[data-general-staff-page] .input-group.date{display:flex;width:100%;flex-wrap:nowrap}
[data-general-staff-page] .input-group.date>.form-control{min-width:0;flex:1 1 auto;border-radius:11px 0 0 11px}
[data-general-staff-page] .input-group.date>.input-group-addon{display:flex;min-width:42px;align-items:center;justify-content:center;color:#64748b;background:#f8fafc;border:1px solid #dbe3ee;border-left:0;border-radius:0 11px 11px 0;cursor:pointer}
[data-general-staff-page] .bootstrap-select.form-control{min-height:0;height:auto;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
[data-general-staff-page] .bootstrap-select>.dropdown-toggle{display:flex;min-height:42px;align-items:center;padding:8px 38px 8px 12px;color:#334155;background:#f8fafc;border:1px solid #dbe3ee;border-radius:11px;box-shadow:none;outline:0!important}
[data-general-staff-page] .bootstrap-select>.dropdown-toggle:focus,
[data-general-staff-page] .bootstrap-select.show>.dropdown-toggle{color:#0f172a;background:#fff;border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.11)}
[data-general-staff-page] .bootstrap-select>.dropdown-toggle .filter-option{display:flex;align-items:center;position:static;height:auto;min-width:0;padding:0;overflow:hidden}
[data-general-staff-page] .bootstrap-select>.dropdown-toggle .filter-option-inner,
[data-general-staff-page] .bootstrap-select>.dropdown-toggle .filter-option-inner-inner{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-general-staff-page] .bootstrap-select>.dropdown-menu{z-index:2060;min-width:100%;padding:6px;background:#fff;border:1px solid #dbe3ed;border-radius:11px;box-shadow:0 18px 40px rgba(15,23,42,.14)}
[data-general-staff-page] .bootstrap-select .dropdown-menu.inner{max-height:min(320px,50vh)!important;padding:0;overflow-y:auto}
[data-general-staff-page] .bootstrap-select .dropdown-item{padding:8px 10px;color:#334155;border-radius:7px;font-size:.82rem;line-height:1.45;white-space:normal}
[data-general-staff-page] .bootstrap-select .dropdown-item:hover,
[data-general-staff-page] .bootstrap-select .dropdown-item:focus,
[data-general-staff-page] .bootstrap-select .dropdown-item.active{color:#1d4ed8;background:#eff6ff}
[data-general-staff-page] .page-heading>.card:has(.bootstrap-select){overflow:visible}
[data-general-staff-page] .loading{display:flex;align-content:flex-start;flex-wrap:wrap}
[data-general-staff-page] .loading>.form-group{width:100%;max-width:100%;flex:0 0 100%}
[data-general-staff-page] .loading>.form-group.col-lg-6{max-width:50%;flex-basis:50%}
[data-general-staff-page] .radio-option{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
[data-general-staff-page] .radio-option>label{width:100%;max-width:none;margin:0}
[data-general-staff-page] .btn-width-full{min-height:44px;padding:10px 18px}
@media (max-width:767px){
    [data-general-staff-page] .app-content>.page-heading>.card .card-body,
    [data-general-staff-page] .app-content>.row.white-bg .card-body{padding:16px!important}
    [data-general-staff-page] .page-heading .container,
    [data-general-staff-page] .app-content>.row.white-bg .container{padding-right:0;padding-left:0}
    [data-general-staff-page] .loading>.form-group.col-lg-6{max-width:100%;flex-basis:100%}
    [data-general-staff-page] .d-flex.justify-content-between>.btn,
    [data-general-staff-page] .title-content>.btn{width:100%;justify-content:center}
}

/* Employee directory and profile */
.directory-hero, .profile-hero { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:18px; padding:26px 30px; color:#fff; background:linear-gradient(125deg,#16a34a,#3b82f6); border-radius:22px; box-shadow:0 16px 40px rgba(59,130,246,.16); }
.directory-hero h2, .profile-hero h2 { margin:2px 0 6px; font-family:'Outfit','Prompt',sans-serif; font-size:1.75rem; }
.directory-hero p:last-child, .profile-hero p { margin:0; color:rgba(255,255,255,.78); font-size:.86rem; }
.directory-hero .eyebrow { color:rgba(255,255,255,.7); }
.directory-count { display:grid; min-width:110px; place-items:center; padding:14px 18px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); border-radius:16px; font-size:.72rem; backdrop-filter:blur(12px); }
.directory-count strong { font-family:'Outfit',sans-serif; font-size:1.65rem; }
.directory-card { overflow:hidden; }
.directory-card > .responsive-table { border:0; border-radius:0; }
.directory-card .dataTables_filter { display:none; }
.directory-filters { display:flex; align-items:flex-end; gap:12px; padding:20px; border-bottom:1px solid var(--hrm-border); }
.directory-filters label { display:grid; gap:7px; color:#475569; font-size:.76rem; font-weight:500; }
.filter-search { min-width:260px; flex:1; }
.filter-status select { min-width:180px; height:52px; padding:0 38px 0 14px; color:var(--hrm-text); background:#f8fafc; border:1px solid #dbe3ee; border-radius:14px; outline:none; }
.filter-status select:focus { border-color:var(--hrm-blue); box-shadow:0 0 0 4px rgba(59,130,246,.11); }
.filter-submit { min-width:135px; padding:0 18px; }
.secondary-button { display:inline-flex; min-height:42px; justify-content:center; align-items:center; gap:8px; padding:9px 14px; color:#475569; background:#fff; border:1px solid var(--hrm-border); border-radius:12px; text-decoration:none; font-size:.78rem; font-weight:500; }
.secondary-button:hover { color:#2563eb; border-color:#bfdbfe; background:#eff6ff; }
.directory-filters .secondary-button { min-height:52px; }
.status-filter-links { display:flex; align-items:center; gap:7px; }
.status-filter-links .secondary-button.active { color:#fff; background:var(--hrm-gradient); border-color:transparent; }
.responsive-table { width:100%; overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; font-size:.8rem; }
.data-table th { padding:13px 17px; color:#64748b; background:#f8fafc; border-bottom:1px solid var(--hrm-border); text-align:left; font-size:.69rem; font-weight:600; letter-spacing:.03em; white-space:nowrap; }
.data-table td { padding:15px 17px; color:#475569; border-bottom:1px solid rgba(226,232,240,.72); vertical-align:middle; }
.data-table tbody tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:rgba(239,246,255,.55); }
.data-table td strong { display:block; color:#1e293b; font-size:.82rem; }
.data-table td small { display:block; margin-top:3px; color:#94a3b8; font-size:.68rem; }
.table-action { width:82px; text-align:center!important; }
.employee-status { display:inline-flex; padding:5px 9px; border:1px solid; border-radius:999px; font-size:.66rem; font-weight:600; white-space:nowrap; }
.employee-status.is-active { color:#15803d; background:#f0fdf4; border-color:#bbf7d0; }
.employee-status.is-inactive { color:#b91c1c; background:#fef2f2; border-color:#fecaca; }
.icon-link { display:inline-grid; width:34px; height:34px; place-items:center; color:#2563eb; background:#eff6ff; border-radius:10px; text-decoration:none; }
.icon-link:hover { color:#fff; background:var(--hrm-gradient); }
.table-empty, .profile-empty { display:grid; place-items:center; align-content:center; gap:9px; min-height:140px; color:#94a3b8; text-align:center; }
.table-empty p, .profile-empty p { margin:0; }
.directory-pagination { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:15px 20px; color:#64748b; border-top:1px solid var(--hrm-border); font-size:.74rem; }
.directory-pagination > div { display:flex; gap:8px; }
.page-link { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; color:#2563eb; background:#eff6ff; border-radius:9px; text-decoration:none; }
.page-link.disabled { color:#94a3b8; background:#f1f5f9; }
.profile-back-row { margin-bottom:12px; }
.profile-hero { align-items:stretch; }
.profile-identity { display:flex; align-items:center; gap:16px; }
.profile-large-avatar { display:grid; width:64px; height:64px; flex:0 0 auto; place-items:center; color:#2563eb; background:#fff; border-radius:19px; font-family:'Outfit','Prompt',sans-serif; font-size:1.7rem; font-weight:700; box-shadow:0 10px 28px rgba(15,23,42,.1); }
.profile-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:11px; }
.profile-title-row .employee-status { color:#fff; background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.28); }
.profile-quick-facts { display:flex; gap:10px; }
.profile-quick-facts > span { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:10px; min-width:150px; align-content:center; padding:10px 14px; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.2); border-radius:15px; }
.profile-quick-facts i { grid-row:span 2; align-self:center; font-size:1.1rem; }
.profile-quick-facts small { color:rgba(255,255,255,.68); font-size:.62rem; }
.profile-quick-facts strong { font-size:.75rem; }
.profile-shell { overflow:hidden; background:var(--hrm-surface); border:1px solid rgba(255,255,255,.86); border-radius:20px; box-shadow:var(--hrm-shadow); backdrop-filter:blur(16px); }
.profile-tabs { display:flex; gap:5px; padding:12px; overflow-x:auto; background:rgba(248,250,252,.82); border-bottom:1px solid var(--hrm-border); }
.profile-tab { display:flex; min-height:40px; align-items:center; gap:8px; padding:8px 13px; color:#64748b; background:transparent; border:0; border-radius:10px; cursor:pointer; font-size:.75rem; white-space:nowrap; }
.profile-tab:hover { color:#2563eb; background:#eff6ff; }
.profile-tab.active { color:#fff; background:var(--hrm-gradient); box-shadow:0 8px 20px rgba(59,130,246,.17); }
.profile-panel { min-height:310px; padding:24px; }
.panel-heading { margin-bottom:20px; padding-bottom:15px; border-bottom:1px solid var(--hrm-border); }
.panel-heading h3 { margin:0; font-family:'Outfit','Prompt',sans-serif; font-size:1.12rem; }
.detail-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0; }
.detail-grid > div { min-width:0; padding:13px 14px; background:#f8fafc; border:1px solid rgba(226,232,240,.9); border-radius:12px; }
.detail-grid dt { margin-bottom:5px; color:#94a3b8; font-size:.65rem; }
.detail-grid dd { margin:0; overflow-wrap:anywhere; color:#334155; font-size:.79rem; font-weight:500; }
.compact-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:15px; }
.address-card { display:flex; align-items:flex-start; gap:13px; padding:17px; background:#f8fafc; border:1px solid var(--hrm-border); border-radius:14px; }
.address-card strong { display:block; margin:1px 0 6px; font-size:.84rem; }
.address-card p { margin:2px 0; color:#64748b; font-size:.75rem; line-height:1.6; }
.record-list { display:grid; gap:11px; }
.record-card { display:flex; align-items:flex-start; gap:13px; padding:15px; background:#f8fafc; border:1px solid var(--hrm-border); border-radius:14px; }
.record-icon { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; border-radius:12px; }
.record-card h4 { margin:1px 0 5px; color:#1e293b; font-size:.84rem; }
.record-card p { margin:0 0 5px; color:#64748b; font-size:.75rem; line-height:1.55; }
.record-card small { color:#94a3b8; font-size:.66rem; }
.warning-record { background:#fffafa; border-color:#fee2e2; }
.success-empty i { color:#22c55e; }
.profile-table { min-width:760px; }
.profile-scope-note { display:flex; align-items:flex-start; gap:9px; padding:13px 18px; color:#1e40af; background:#eff6ff; border-top:1px solid #bfdbfe; font-size:.74rem; }
.organization-summary { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:18px; padding:25px 28px; background:var(--hrm-surface); border:1px solid rgba(255,255,255,.86); border-radius:20px; box-shadow:var(--hrm-shadow); }
.organization-summary h2 { margin:2px 0 5px; font-family:'Outfit','Prompt',sans-serif; font-size:1.55rem; }
.organization-summary p:last-child { margin:0; color:var(--hrm-muted); font-size:.78rem; }
.organization-metrics { display:flex; gap:10px; }
.organization-metrics span { display:grid; min-width:110px; place-items:center; padding:11px 15px; background:#f8fafc; border:1px solid var(--hrm-border); border-radius:13px; }
.organization-metrics small { color:#94a3b8; font-size:.63rem; }
.organization-metrics strong { font-family:'Outfit',sans-serif; font-size:1.35rem; }
.organization-table { min-width:980px; }
.capacity-diff { display:inline-flex; min-width:34px; justify-content:center; padding:4px 7px; color:#475569; background:#f1f5f9; border-radius:8px; font-weight:600; }
.capacity-diff.negative { color:#b91c1c; background:#fef2f2; }
.capacity-diff.positive { color:#15803d; background:#f0fdf4; }
.employee-chip-list { display:flex; max-width:360px; flex-wrap:wrap; gap:5px; }
.employee-chip-list span { padding:4px 7px; color:#475569; background:#f1f5f9; border-radius:7px; font-size:.65rem; }
.oc-form { display:flex; align-items:center; gap:6px; }
.oc-form input { width:70px; height:36px; padding:0 8px; color:var(--hrm-text); background:#f8fafc; border:1px solid #dbe3ee; border-radius:9px; outline:0; }
.oc-form input:focus { border-color:var(--hrm-blue); box-shadow:0 0 0 3px rgba(59,130,246,.1); }
.oc-form button { display:grid; width:36px; height:36px; place-items:center; color:#fff; background:var(--hrm-gradient); border:0; border-radius:9px; cursor:pointer; }
.oc-form button:disabled { opacity:.55; cursor:wait; }
.inline-feedback { margin:14px 18px 18px; padding:11px 13px; border:1px solid; border-radius:11px; font-size:.76rem; }
.inline-feedback.success { color:#166534; background:#f0fdf4; border-color:#bbf7d0; }
.inline-feedback.warning { color:#92400e; background:#fffbeb; border-color:#fde68a; }
.inline-feedback.error { color:#991b1b; background:#fef2f2; border-color:#fecaca; }
.directory-hero-actions { display:flex; align-items:center; gap:10px; }
.hero-button { display:inline-flex; min-height:48px; align-items:center; gap:8px; padding:10px 15px; color:#2563eb; background:#fff; border-radius:13px; text-decoration:none; font-size:.78rem; font-weight:600; }
.table-action-links { display:flex; justify-content:center; gap:6px; }
.icon-link.edit-link { color:#d97706; background:#fffbeb; }
.profile-back-row { display:flex; gap:8px; }
.employee-form-shell { overflow:hidden; background:var(--hrm-surface); border:1px solid rgba(255,255,255,.86); border-radius:20px; box-shadow:var(--hrm-shadow); }
.employee-form-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:24px; }
.employee-form-heading h2 { margin:2px 0 4px; font-family:'Outfit','Prompt',sans-serif; font-size:1.4rem; }
.employee-form-heading p:last-child { margin:0; color:var(--hrm-muted); font-size:.75rem; }
.employee-save-button { min-width:180px; padding:0 18px; }
.employee-form-tabs { border-top:1px solid var(--hrm-border); }
.employee-form-panel { min-height:360px; padding:24px; }
.employee-form-panel .panel-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.employee-field-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.employee-field-grid.compact-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.employee-field-grid label, .full-width-field { display:grid; align-content:start; gap:7px; color:#475569; font-size:.72rem; font-weight:500; }
.employee-field-grid input, .employee-field-grid select, .full-width-field select { width:100%; height:44px; padding:0 12px; color:var(--hrm-text); background:#f8fafc; border:1px solid #dbe3ee; border-radius:11px; outline:0; }
.employee-field-grid input:focus, .employee-field-grid select:focus, .full-width-field select:focus { border-color:var(--hrm-blue); box-shadow:0 0 0 3px rgba(59,130,246,.1); background:#fff; }
.checkbox-field { display:flex!important; min-height:44px; align-items:center; align-self:end; grid-template-columns:auto 1fr; }
.checkbox-field input { width:18px; height:18px; accent-color:var(--hrm-blue); }
.form-subheading { margin:22px 0 12px; font-size:.86rem; }
.form-record-list { display:grid; gap:12px; }
.form-record { position:relative; padding:16px; background:#f8fafc; border:1px solid var(--hrm-border); border-radius:14px; }
.remove-record { position:absolute; top:8px; right:8px; z-index:1; display:grid; width:28px; height:28px; place-items:center; color:#b91c1c; background:#fef2f2; border:0; border-radius:8px; cursor:pointer; }
.position-search-result { min-height:120px; margin-top:14px; padding:12px; background:#f8fafc; border:1px solid var(--hrm-border); border-radius:14px; }
.position-option-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.position-option { display:grid; gap:3px; padding:11px; color:#334155; background:#fff; border:1px solid #dbe3ee; border-radius:10px; cursor:pointer; text-align:left; }
.position-option:hover { color:#2563eb; border-color:#93c5fd; background:#eff6ff; }
.position-option span { font-size:.76rem; font-weight:600; }
.position-option small { color:#94a3b8; font-size:.62rem; }
.selected-position-list { display:flex; flex-wrap:wrap; gap:7px; }
.selected-position-list > span { display:inline-flex; align-items:center; gap:7px; padding:7px 9px; color:#1e40af; background:#eff6ff; border:1px solid #bfdbfe; border-radius:9px; font-size:.68rem; }
.selected-position-list button { color:#1e40af; background:transparent; border:0; cursor:pointer; }
.employee-form-footer { display:flex; justify-content:flex-end; gap:10px; padding:18px 24px; background:#f8fafc; border-top:1px solid var(--hrm-border); }
.full-width-field { padding:0 2px; }
.employee-admin-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.admin-action-card { background:var(--hrm-surface); border:1px solid rgba(255,255,255,.86); border-radius:16px; box-shadow:0 10px 30px rgba(15,23,42,.045); }
.admin-action-card summary { display:flex; align-items:center; gap:11px; padding:14px; cursor:pointer; list-style:none; }
.admin-action-card summary::-webkit-details-marker { display:none; }
.admin-action-card summary > span:nth-child(2) { display:grid; min-width:0; }
.admin-action-card summary strong { font-size:.8rem; }
.admin-action-card summary small { margin-top:2px; color:var(--hrm-muted); font-size:.65rem; }
.admin-action-card summary > i { margin-left:auto; color:#94a3b8; font-size:.7rem; transition:transform .2s; }
.admin-action-card[open] summary > i { transform:rotate(180deg); }
.admin-action-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px; border-top:1px solid var(--hrm-border); }
.admin-action-form label { display:grid; gap:6px; color:#475569; font-size:.7rem; }
.admin-action-form input, .admin-action-form textarea { width:100%; padding:10px 11px; color:var(--hrm-text); background:#f8fafc; border:1px solid #dbe3ee; border-radius:10px; outline:0; resize:vertical; }
.admin-action-form .input-shell { height:40px; gap:6px; padding:0 4px 0 11px; border-radius:10px; }
.admin-action-form .input-shell input { padding:0; background:transparent; border:0; border-radius:0; }
.admin-action-form .password-toggle { width:32px; height:32px; flex-basis:32px; border-radius:8px; }
.admin-action-form .wide-field, .admin-action-form > p { grid-column:1/-1; }
.admin-action-form > p { margin:0; color:var(--hrm-muted); font-size:.72rem; line-height:1.6; }
.compact-button, .danger-button { min-height:42px; align-self:end; margin:0; padding:8px 13px; }
.danger-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; color:#fff; background:#dc2626; border:0; border-radius:11px; cursor:pointer; font-size:.75rem; font-weight:600; }
.work-time-form { overflow:hidden; background:var(--hrm-surface); border:1px solid rgba(255,255,255,.86); border-radius:20px; box-shadow:var(--hrm-shadow); }
.work-time-settings { display:grid; grid-template-columns:200px 260px minmax(0,1fr); gap:13px; align-items:start; padding:20px 24px; background:#f8fafc; border-top:1px solid var(--hrm-border); border-bottom:1px solid var(--hrm-border); }
.work-time-settings > label { display:grid; gap:7px; color:#475569; font-size:.72rem; }
.work-time-settings input, .work-time-settings select { height:44px; padding:0 11px; color:var(--hrm-text); background:#fff; border:1px solid #dbe3ee; border-radius:11px; outline:0; }
.work-time-preview { min-height:80px; }
.work-time-preview .profile-empty { min-height:80px; }
.work-period-list { display:flex; flex-wrap:wrap; gap:8px; }
.work-period-list > span { display:grid; min-width:130px; padding:10px; background:#fff; border:1px solid var(--hrm-border); border-radius:10px; }
.work-period-list small { color:#94a3b8; font-size:.61rem; }
.work-period-list strong { margin-top:2px; font-size:.74rem; }
.work-time-people-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:20px; }
.work-time-people-card { min-width:0; overflow:hidden; border:1px solid var(--hrm-border); border-radius:15px; }
.work-time-people-card .card-heading { padding:15px; }
.mini-search { width:170px; height:36px; padding:0 10px; color:var(--hrm-text); background:#f8fafc; border:1px solid #dbe3ee; border-radius:9px; outline:0; }
.work-employee-list, .selected-work-employees { display:grid; max-height:520px; overflow-y:auto; }
.work-employee-option, .selected-work-employee { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px 14px; border:0; border-top:1px solid rgba(226,232,240,.72); }
.work-employee-option { color:#334155; background:#fff; cursor:pointer; text-align:left; }
.work-employee-option:hover { background:#eff6ff; }
.work-employee-option:disabled { opacity:.45; cursor:not-allowed; }
.work-employee-option > span:nth-child(2), .selected-work-employee > span { display:grid; }
.work-employee-option strong, .selected-work-employee strong { font-size:.74rem; }
.work-employee-option small, .selected-work-employee small { margin-top:2px; color:#94a3b8; font-size:.63rem; }
.work-employee-option > i { color:#2563eb; }
.selected-work-employee { grid-template-columns:minmax(0,1fr) auto auto; background:#f8fafc; }
.selected-work-employee button { display:grid; width:28px; height:28px; place-items:center; color:#b91c1c; background:#fef2f2; border:0; border-radius:8px; cursor:pointer; }
.salary-adjustment-form { overflow:hidden; background:var(--hrm-surface); border:1px solid rgba(255,255,255,.86); border-radius:20px; box-shadow:var(--hrm-shadow); }
.salary-builder { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr auto; gap:11px; align-items:end; padding:20px 24px; background:#f8fafc; border-top:1px solid var(--hrm-border); border-bottom:1px solid var(--hrm-border); }
.salary-builder label { display:grid; gap:7px; color:#475569; font-size:.7rem; }
.salary-builder input, .salary-builder select { height:44px; padding:0 11px; color:var(--hrm-text); background:#fff; border:1px solid #dbe3ee; border-radius:10px; outline:0; }
.add-salary-row { height:44px; }
.salary-table { min-width:760px; }
.remove-salary-row { display:grid; width:32px; height:32px; place-items:center; color:#b91c1c; background:#fef2f2; border:0; border-radius:8px; cursor:pointer; }

@media (max-width: 1080px) {
    .auth-shell { grid-template-columns: 1fr 420px; gap: 42px; }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid .content-card:first-child { grid-column: span 2; }
    .detail-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .profile-quick-facts > span { min-width:130px; }
    .organization-summary { align-items:flex-start; }
    .employee-field-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .work-time-settings { grid-template-columns:1fr 1fr; }
    .work-time-preview { grid-column:1/-1; }
    .salary-builder { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
    .approval-grid { grid-template-columns:1fr; }
    .auth-page { padding: 22px; }
    .auth-shell { grid-template-columns: 1fr; max-width: 480px; gap: 28px; }
    .auth-intro { text-align: center; }
    .auth-intro .brand-mark { margin-bottom: 18px; }
    .auth-intro h1 { font-size: 2.45rem; }
    .auth-intro > p:last-child { display: none; }
    .app-shell { display: block; }
    .app-stage { min-height: 100vh; }
    .app-sidebar { inset: 12px auto 12px 12px; width: min(300px,calc(100vw - 48px)); transform: translateX(calc(-100% - 30px)); transition: transform .25s ease; }
    .sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-close, .menu-toggle { display: inline-grid; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; width:100%; height:100%; padding:0; background:rgba(15,23,42,.34); border:0; opacity:0; pointer-events:none; transition:opacity .25s ease; }
    .sidebar-open .sidebar-backdrop { display:block; opacity:1; pointer-events:auto; }
    .app-topbar { top: 10px; margin: 10px 12px 0; }
    .app-content { padding: 16px 12px 36px; }
    .today-chip { display: none; }
    .welcome-panel { padding: 26px; }
    .directory-filters { flex-wrap:wrap; }
    .filter-search { min-width:100%; }
    .profile-hero { display:grid; }
    .profile-quick-facts { width:100%; }
    .profile-quick-facts > span { flex:1; }
    .detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .organization-summary { display:grid; }
    .employee-field-grid, .employee-field-grid.compact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .position-option-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .work-time-people-grid { grid-template-columns:1fr; }
}

@media (max-width: 620px) {
    .auth-card { padding: 28px 22px; border-radius: 22px; }
    .auth-intro h1 { font-size: 2rem; }
    .status-pill { display:none; }
    .topbar-actions .logout-button span { display: none; }
    .logout-button { width: 40px; justify-content: center; padding: 0; }
    .topbar-title h1 { font-size: 1.2rem; }
    .welcome-panel { min-height: 175px; }
    .welcome-icon { display: none; }
    .metric-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid .content-card:first-child { grid-column: auto; }
    .metric-card { grid-template-columns: 44px minmax(0,1fr) auto; }
    .directory-hero { align-items:flex-start; padding:22px; }
    .directory-count { min-width:85px; padding:10px; }
    .filter-status { flex:1; }
    .filter-status select { width:100%; min-width:0; }
    .filter-submit { flex:1; }
    .directory-filters .secondary-button { width:100%; }
    .directory-pagination { align-items:flex-start; flex-direction:column; }
    .profile-identity { align-items:flex-start; }
    .profile-title-row { display:grid; }
    .profile-quick-facts { display:grid; grid-template-columns:1fr; }
    .detail-grid, .compact-grid { grid-template-columns:1fr; }
    .profile-panel { padding:18px; }
    .organization-metrics { width:100%; }
    .organization-metrics span { min-width:0; flex:1; }
    .directory-hero-actions { align-items:flex-end; flex-direction:column; }
    .employee-form-heading { align-items:flex-start; flex-direction:column; }
    .employee-form-heading .employee-save-button { width:100%; }
    .employee-field-grid, .employee-field-grid.compact-grid, .position-option-grid { grid-template-columns:1fr; }
    .employee-form-panel { padding:18px; }
    .employee-form-footer { flex-direction:column-reverse; }
    .employee-form-footer > * { width:100%; }
    .employee-admin-actions, .admin-action-form { grid-template-columns:1fr; }
    .work-time-settings { grid-template-columns:1fr; }
    .work-time-preview { grid-column:auto; }
    .mini-search { width:130px; }
    .salary-builder { grid-template-columns:1fr; }
}

.movement-page { display:grid; gap:20px; }
.movement-page > .responsive-table { overflow:hidden; background:rgba(255,255,255,.88); border:1px solid rgba(255,255,255,.9); border-radius:20px; box-shadow:0 12px 38px rgba(15,23,42,.055); }
.movement-page > .responsive-table > .dataTables_wrapper { padding:18px 20px; }
.movement-feedback { margin:0; }
.movement-page .hrm-dialog footer .primary-button,
.movement-page .hrm-dialog footer .secondary-button { display:inline-flex; min-width:96px; min-height:42px; align-items:center; justify-content:center; gap:8px; margin:0; padding:8px 16px; font-size:.78rem; line-height:1.2; white-space:nowrap; border-radius:11px; }
.movement-page .hrm-dialog footer .primary-button i,
.movement-page .hrm-dialog footer .secondary-button i { width:14px; flex:0 0 14px; text-align:center; }
.movement-page .hrm-dialog footer .primary-button:focus-visible,
.movement-page .hrm-dialog footer .secondary-button:focus-visible { outline:3px solid rgba(59,130,246,.2); outline-offset:2px; }
.movement-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding:18px 20px; background:rgba(255,255,255,.78); border:1px solid rgba(148,163,184,.18); border-radius:18px; box-shadow:0 12px 32px rgba(15,23,42,.05); }
.movement-toolbar label { display:grid; gap:7px; width:min(440px,100%); color:#475569; font-size:.82rem; font-weight:600; }
.movement-toolbar input, .movement-basic-grid input, .movement-basic-grid select, .movement-option-content input, .movement-option-content select { min-height:44px; width:100%; padding:9px 12px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:11px; outline:none; }
.movement-toolbar input:focus, .movement-basic-grid input:focus, .movement-basic-grid select:focus, .movement-option-content input:focus, .movement-option-content select:focus { border-color:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.12); }
.movement-table td small { display:block; margin-top:3px; color:#94a3b8; }
.movement-tags { display:flex; flex-wrap:wrap; justify-content:center; gap:5px; }
.movement-tags span { padding:4px 8px; color:#166534; font-size:.72rem; font-weight:600; background:#dcfce7; border-radius:999px; }
.table-actions { display:flex; justify-content:center; gap:7px; }
.table-actions button, .movement-ledger-row button { display:inline-grid; place-items:center; width:34px; height:34px; color:#2563eb; background:#eff6ff; border:0; border-radius:9px; cursor:pointer; }
.table-actions button.danger, .movement-ledger-row button { color:#dc2626; background:#fef2f2; }
.movement-pagination { display:flex; align-items:center; justify-content:flex-end; gap:12px; color:#64748b; font-size:.86rem; }
.movement-pagination button:disabled { opacity:.45; cursor:not-allowed; }
.hrm-dialog { width:min(960px,calc(100vw - 30px)); max-height:calc(100vh - 30px); padding:0; color:#0f172a; background:#f8fafc; border:1px solid rgba(255,255,255,.7); border-radius:24px; box-shadow:0 30px 80px rgba(15,23,42,.28); }
.hrm-dialog::backdrop { background:rgba(15,23,42,.58); backdrop-filter:blur(4px); }
.hrm-dialog > header, .hrm-dialog form > header { display:flex; align-items:center; justify-content:space-between; padding:20px 24px; background:linear-gradient(135deg,rgba(220,252,231,.85),rgba(219,234,254,.85)); border-bottom:1px solid rgba(148,163,184,.18); }
.hrm-dialog header h2 { margin:2px 0 0; font-family:Outfit,Prompt,sans-serif; }
.hrm-dialog header button { display:grid; place-items:center; width:38px; height:38px; color:#64748b; background:rgba(255,255,255,.72); border:0; border-radius:11px; cursor:pointer; }
.hrm-dialog footer { display:flex; justify-content:flex-end; gap:10px; padding:18px 24px; background:#fff; border-top:1px solid #e2e8f0; }
.dashboard-activity-grid { grid-template-columns:1fr; }
.dashboard-activity-grid .content-card:first-child { grid-column:auto; }
.dashboard-detail-dialog { width:min(1120px,calc(100vw - 30px)); }
.dashboard-detail-dialog > header > div { display:grid; gap:3px; }
.dashboard-detail-dialog > header p,
.dashboard-detail-dialog > header h2 { margin:0; }
.dashboard-detail-dialog > header small { color:#64748b; }
.dashboard-detail-body { min-height:220px; }
.dashboard-detail-body .responsive-table { overflow:auto; border:1px solid #e2e8f0; border-radius:15px; }
.dashboard-detail-body .data-table { min-width:760px; }
.hrm-page .dataTables_wrapper { display:grid; grid-template-columns:minmax(180px,auto) minmax(260px,1fr); align-items:center; gap:16px 22px; width:100%; padding:18px 20px 16px; color:#475569; box-sizing:border-box; }
.hrm-page .dataTables_wrapper > * { box-sizing:border-box; }
.hrm-page .dataTables_wrapper .dataTables_length,
.hrm-page .dataTables_wrapper .dataTables_filter { float:none!important; width:auto; margin:0; color:#64748b; font-size:.8rem; }
.hrm-page .dataTables_wrapper .dataTables_length { grid-column:1; justify-self:start; }
.hrm-page .dataTables_wrapper .dataTables_filter { grid-column:2; justify-self:end; }
.hrm-page .dataTables_wrapper .dataTables_length label,
.hrm-page .dataTables_wrapper .dataTables_filter label { display:flex; align-items:center; gap:9px; margin:0; white-space:nowrap; }
.hrm-page .dataTables_wrapper .dataTables_filter input,
.hrm-page .dataTables_wrapper .dataTables_length select { min-height:40px; margin:0; padding:8px 11px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:11px; outline:none; transition:border-color .18s ease,box-shadow .18s ease; }
.hrm-page .dataTables_wrapper .dataTables_filter input { width:clamp(190px,22vw,300px); }
.hrm-page .dataTables_wrapper .dataTables_length select { width:78px; }
.hrm-page .dataTables_wrapper .dataTables_filter input:focus,
.hrm-page .dataTables_wrapper .dataTables_length select:focus { border-color:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.12); }
.hrm-page .dataTables_wrapper table.dataTable { grid-column:1/-1; width:100%!important; margin:0!important; background:#fff; border:1px solid #e2e8f0; border-bottom-color:#e2e8f0!important; border-radius:14px; border-collapse:separate!important; border-spacing:0; overflow:hidden; }
.hrm-page .dataTables_wrapper table.dataTable thead th,
.hrm-page .dataTables_wrapper table.dataTable thead td { padding:13px 34px 13px 16px; color:#64748b; background:#f8fafc; border-bottom:1px solid #e2e8f0; font-size:.7rem; font-weight:700; white-space:nowrap; }
.hrm-page .dataTables_wrapper table.dataTable thead th:first-child { border-top-left-radius:13px; }
.hrm-page .dataTables_wrapper table.dataTable thead th:last-child { border-top-right-radius:13px; }
.hrm-page .dataTables_wrapper table.dataTable tbody td { padding:14px 16px; background:#fff; border-top:0; border-bottom:1px solid #edf2f7; }
.hrm-page .dataTables_wrapper table.dataTable tbody tr:last-child td { border-bottom:0; }
.hrm-page .dataTables_wrapper table.dataTable tbody tr:hover td { background:#f8fbff; }
.hrm-page .dataTables_wrapper .dataTables_info { grid-column:1; float:none!important; align-self:center; padding:0; color:#64748b; font-size:.8rem; }
.hrm-page .dataTables_wrapper .dataTables_paginate { grid-column:2; float:none!important; justify-self:end; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:5px; padding:0; }
.hrm-page .dataTables_wrapper .dataTables_paginate .paginate_button { display:inline-grid; min-width:38px; min-height:38px; place-items:center; margin:0; padding:7px 11px; color:#475569!important; background:#fff!important; border:1px solid #e2e8f0!important; border-radius:10px; line-height:1; }
.hrm-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.hrm-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { color:#fff!important; background:linear-gradient(135deg,#22c55e,#3b82f6)!important; border-color:transparent!important; }
.hrm-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover { color:#2563eb!important; background:#eff6ff!important; border-color:#bfdbfe!important; }
.hrm-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.hrm-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover { color:#94a3b8!important; background:#f8fafc!important; border-color:#e2e8f0!important; opacity:.72; cursor:not-allowed!important; }
.dashboard-detail-body .dataTables_wrapper { padding:14px; }
.fingerprint-management-card > .directory-filters { margin:0; }
.fingerprint-management-card .fingerprint-results-table > .dataTables_wrapper,
#scanner-results > .dataTables_wrapper { padding:16px 20px 18px; }
.fingerprint-actions { min-width:152px; flex-wrap:nowrap; }
.fingerprint-import-table { min-width:780px; }
.scanner-time-form { min-width:330px; }
@media (max-width:700px) {
    .hrm-page .dataTables_wrapper { grid-template-columns:1fr; gap:12px; padding:14px; }
    .hrm-page .dataTables_wrapper .dataTables_length,
    .hrm-page .dataTables_wrapper .dataTables_filter,
    .hrm-page .dataTables_wrapper .dataTables_info,
    .hrm-page .dataTables_wrapper .dataTables_paginate,
    .hrm-page .dataTables_wrapper table.dataTable { grid-column:1; }
    .hrm-page .dataTables_wrapper .dataTables_length,
    .hrm-page .dataTables_wrapper .dataTables_filter { justify-self:stretch; }
    .hrm-page .dataTables_wrapper .dataTables_length label,
    .hrm-page .dataTables_wrapper .dataTables_filter label { justify-content:space-between; }
    .hrm-page .dataTables_wrapper .dataTables_filter input { width:min(72vw,300px); }
    .hrm-page .dataTables_wrapper .dataTables_info { justify-self:center; text-align:center; }
    .hrm-page .dataTables_wrapper .dataTables_paginate { justify-self:center; justify-content:center; }
}
.hrm-page .select2-container { max-width:100%; font-size:.86rem; }
.hrm-page .select2-container .select2-selection--single,
.hrm-page .select2-container .select2-selection--multiple { min-height:44px; background:#fff; border:1px solid #dbe3ed; border-radius:11px; }
.hrm-page .select2-container .select2-selection--single { height:44px; padding:0; background:#fff; border:1px solid #dbe3ed; border-radius:11px; }
.hrm-page .select2-container--default.select2-container--focus .select2-selection--single,
.hrm-page .select2-container--default.select2-container--focus .select2-selection--multiple { border-color:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.12); }
.hrm-page .select2-container--default .select2-selection--single .select2-selection__rendered { padding:0 42px 0 12px; line-height:42px; color:#0f172a; }
.hrm-page .select2-container--default .select2-selection--single .select2-selection__arrow { top:1px; right:7px; height:40px; }
.hrm-page .select2-container--default .select2-selection--multiple { padding:3px 7px; }
.hrm-page .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field { min-height:30px; margin-top:3px; }
.hrm-page .select2-container--default .select2-selection--multiple .select2-selection__choice { color:#1d4ed8; background:#eff6ff; border:0; border-radius:7px; }
.select2-container--open { z-index:2060; }
.select2-dropdown { overflow:hidden; border-color:#dbe3ed; border-radius:11px; box-shadow:0 18px 40px rgba(15,23,42,.14); }
.select2-results__options { max-height:min(320px,50vh)!important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background:#2563eb; }
.movement-dialog-body { display:grid; gap:16px; max-height:calc(100vh - 190px); padding:22px 24px; overflow:auto; }
.movement-basic-grid, .movement-option-content { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.movement-basic-grid label, .movement-option-content label { display:grid; align-content:start; gap:7px; color:#475569; font-size:.82rem; font-weight:600; }
.movement-employee-field { grid-column:1/-1; }
.movement-option { overflow:hidden; background:#fff; border:1px solid #e2e8f0; border-radius:16px; }
.movement-option-title { display:flex; align-items:center; gap:13px; padding:16px 18px; cursor:pointer; }
.movement-option-title input { width:18px; height:18px; accent-color:#22c55e; }
.movement-option-title > span { display:grid; grid-template-columns:32px minmax(0,1fr); flex:1; column-gap:10px; }
.movement-option-title i { grid-row:1/3; display:grid; place-items:center; width:32px; height:32px; color:#16a34a; background:#f0fdf4; border-radius:9px; }
.movement-option-title small { color:#94a3b8; }
.movement-option-content, .movement-ledger-grid { padding:18px; background:#f8fafc; border-top:1px solid #e2e8f0; }
.movement-option-content[hidden], .movement-ledger-grid[hidden] { display:none; }
.movement-ledger-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.movement-ledger-card { overflow:hidden; background:#fff; border:1px solid #dcfce7; border-radius:14px; }
.movement-ledger-card.deduction { border-color:#fee2e2; }
.movement-ledger-heading { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; color:#166534; background:#f0fdf4; }
.movement-ledger-card.deduction .movement-ledger-heading { color:#991b1b; background:#fef2f2; }
.movement-ledger-heading .secondary-button { min-height:34px; padding:6px 10px; font-size:.76rem; }
.movement-empty-ledger { margin:0; padding:24px; color:#94a3b8; text-align:center; }
.movement-ledger-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border-top:1px solid #f1f5f9; }
.movement-ledger-row span { display:grid; gap:3px; }
.movement-ledger-row small { color:#94a3b8; }
.ledger-dialog { width:min(600px,calc(100vw - 30px)); }
.movement-detail-hero { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.movement-detail-hero span, .movement-before-after > div { display:grid; gap:5px; padding:14px; background:#fff; border:1px solid #e2e8f0; border-radius:13px; }
.movement-detail-hero small, .movement-before-after small { color:#94a3b8; }
.movement-detail-section { display:grid; gap:10px; }
.movement-detail-section h3 { margin:4px 0 0; font-size:1rem; }
.movement-before-after { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; }
.movement-before-after > i { color:#3b82f6; }
.movement-before-after span { color:#64748b; font-size:.8rem; }
.employee-finance-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.finance-card { overflow:hidden; border:1px solid #dcfce7; border-radius:16px; }
.finance-card.deduction { border-color:#fee2e2; }
.finance-card-heading { padding:14px 16px; color:#166534; background:#f0fdf4; }
.finance-card.deduction .finance-card-heading { color:#991b1b; background:#fef2f2; }
.finance-card-heading > div { display:flex; align-items:center; gap:9px; }
.finance-card-heading span { display:grid; place-items:center; width:30px; height:30px; background:#fff; border-radius:9px; }
.finance-inline-form, .bank-account-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px; background:#f8fafc; }
.finance-inline-form label, .bank-account-form label { display:grid; gap:6px; color:#64748b; font-size:.78rem; font-weight:600; }
.finance-inline-form input, .finance-inline-form select, .bank-account-form input { min-height:40px; width:100%; padding:8px 10px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:10px; }
.finance-inline-form .primary-button, .bank-account-form .primary-button { align-self:end; }
.finance-list { display:grid; }
.finance-row { border-top:1px solid #e2e8f0; }
.finance-row summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 16px; cursor:pointer; list-style:none; }
.finance-row summary::-webkit-details-marker { display:none; }
.finance-row summary span { display:grid; gap:3px; }
.finance-row summary small { color:#94a3b8; }
.finance-row summary > i { color:#3b82f6; }
.finance-row-actions { padding:0 14px 14px; background:#f8fafc; }
.finance-inline-form.compact { grid-template-columns:repeat(3,minmax(0,1fr)) auto; padding:14px 0; }
.danger-button { min-height:38px; padding:8px 12px; color:#b91c1c; font:inherit; font-weight:600; background:#fef2f2; border:1px solid #fecaca; border-radius:10px; cursor:pointer; }
.bank-account-form { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:18px; border:1px solid #e2e8f0; border-radius:16px; }
.bank-account-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.bank-account-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:13px; padding:16px; background:linear-gradient(135deg,#fff,#f8fafc); border:1px solid #e2e8f0; border-radius:15px; }
.bank-icon { display:grid; place-items:center; width:44px; height:44px; color:#2563eb; background:#eff6ff; border-radius:12px; }
.bank-account-card > div { display:grid; gap:2px; }
.bank-account-card small, .bank-account-card p { margin:0; color:#64748b; }
.bank-account-card strong { font-family:Outfit,Prompt,sans-serif; font-size:1.08rem; letter-spacing:.03em; }
.bank-account-card .danger-button { width:38px; padding:0; }
.reset-device-link { color:#dc2626!important; background:#fef2f2!important; border:0; cursor:pointer; }
.reset-device-link:disabled { opacity:.5; cursor:wait; }
.directory-device-feedback { margin-top:16px; }
.leave-form-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr); align-items:start; gap:18px; }
.leave-form-card, .leave-balance-card { overflow:hidden; background:rgba(255,255,255,.88); border:1px solid rgba(148,163,184,.2); border-radius:20px; box-shadow:0 16px 38px rgba(15,23,42,.06); }
.leave-form-card > header, .leave-balance-card > header { display:flex; align-items:center; gap:11px; padding:17px 19px; background:linear-gradient(135deg,#f0fdf4,#eff6ff); border-bottom:1px solid #e2e8f0; }
.leave-form-card header > span, .leave-balance-card header > span { display:grid; place-items:center; width:38px; height:38px; color:#16a34a; background:#fff; border-radius:11px; }
.leave-form-card header > div, .leave-balance-card header > div { display:grid; gap:2px; }
.leave-form-card header small, .leave-balance-card header small { color:#64748b; }
.leave-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; padding:20px; }
.leave-field-grid label, .leave-evidence label { display:grid; gap:7px; color:#475569; font-size:.82rem; font-weight:600; }
.leave-field-grid .wide-field { grid-column:1/-1; }
.leave-field-grid input, .leave-field-grid select, .leave-field-grid textarea, .leave-time-row select, .leave-evidence input { width:100%; min-height:44px; padding:9px 11px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:11px; }
.leave-field-grid textarea { resize:vertical; }
.leave-periods { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:0 20px 20px; }
.leave-periods[hidden], .leave-evidence[hidden] { display:none; }
.leave-periods fieldset { min-width:0; padding:14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; }
.leave-periods legend { padding:0 6px; color:#334155; font-weight:600; }
.leave-time-row { display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:9px; }
.leave-time-row label { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.leave-time-row label span { grid-column:1/-1; color:#64748b; font-size:.76rem; }
.leave-time-row > i { padding-bottom:13px; color:#3b82f6; }
.leave-evidence { display:grid; gap:10px; margin:0 20px 20px; padding:15px; background:#fffbeb; border:1px solid #fde68a; border-radius:14px; }
.leave-evidence img { width:min(280px,100%); max-height:220px; object-fit:contain; border-radius:11px; }
.leave-evidence small { color:#92400e; }
.leave-balance-card { position:sticky; top:96px; }
.leave-balance-list { display:grid; }
.leave-balance-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 17px; border-top:1px solid #f1f5f9; }
.leave-balance-list span { display:grid; gap:2px; }
.leave-balance-list small { color:#94a3b8; }
.leave-balance-list b { color:#16a34a; font-size:.82rem; text-align:right; }
.leave-table td small { display:block; margin-top:3px; color:#94a3b8; }
.leave-status { display:inline-flex; padding:5px 9px; font-size:.76rem; font-weight:600; border-radius:999px; }
.leave-status.waiting { color:#92400e; background:#fef3c7; }
.leave-status.rejected { color:#991b1b; background:#fee2e2; }
.document-link { color:#2563eb; font-weight:600; text-decoration:none; }
.leave-actions { display:flex; align-items:center; gap:7px; }
.leave-actions .secondary-button, .leave-actions .danger-button { min-height:35px; padding:6px 9px; font-size:.76rem; }
.approval-buttons { display:flex; flex-wrap:wrap; gap:6px; }
.approval-buttons button { min-height:34px; padding:6px 9px; font:inherit; font-size:.76rem; font-weight:600; border:0; border-radius:9px; cursor:pointer; }
.approval-buttons .approve { color:#166534; background:#dcfce7; }
.approval-buttons .reject { color:#991b1b; background:#fee2e2; }
.approval-buttons button:disabled { opacity:.5; cursor:wait; }
.ot-table td small { display:block; margin-top:3px; color:#94a3b8; }
.time-chip-list { display:flex; flex-wrap:wrap; gap:5px; }
.time-chip-list span { padding:4px 8px; color:#1d4ed8; font-size:.76rem; font-weight:600; background:#eff6ff; border-radius:999px; }
.scanner-mode { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; font-size:.76rem; font-weight:600; border-radius:999px; }
.scanner-mode.manual { color:#166534; background:#dcfce7; }
.scanner-mode.automatic { color:#7e22ce; background:#f3e8ff; }
.ot-time-panel { margin:0 20px 20px; padding:16px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:15px; }
.ot-time-panel[hidden] { display:none; }
.ot-time-panel > header { display:grid; gap:2px; margin-bottom:13px; }
.ot-time-panel > header small { color:#64748b; }
.ot-time-picker { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ot-time-picker label { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.ot-time-picker label > span { grid-column:1/-1; color:#64748b; font-size:.78rem; }
.ot-time-picker select { min-height:42px; width:100%; padding:8px 10px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:10px; }
.ot-segment-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ot-segment-options label { cursor:pointer; }
.ot-segment-options input { position:absolute; opacity:0; }
.ot-segment-options label > span { display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:10px; padding:14px; background:#fff; border:1px solid #dbe3ed; border-radius:12px; }
.ot-segment-options i { grid-row:1/3; color:#f59e0b; font-size:1.2rem; }
.ot-segment-options small { color:#94a3b8; }
.ot-segment-options input:checked + span { border-color:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.12); }
.exchange-table td small { display:block; margin-top:3px; color:#94a3b8; }
.missing-data { color:#dc2626; font-size:.8rem; font-weight:600; }
.exchange-form-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr); align-items:start; gap:18px; }
.exchange-balance { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:9px 12px; color:#64748b; background:linear-gradient(135deg,#f0fdf4,#eff6ff); border:1px solid #dcfce7; border-radius:11px; }
.exchange-balance strong { color:#15803d; font-family:Outfit,Prompt,sans-serif; }
.exchange-mode-field { transition:opacity .18s ease; }
.exchange-mode-field.is-disabled { opacity:.68; }
.exchange-form-layout input:disabled,.exchange-form-layout select:disabled { color:#94a3b8; background:#e2e8f0; border-color:#cbd5e1; box-shadow:inset 0 0 0 1px rgba(148,163,184,.12); cursor:not-allowed; }
.exchange-mode-field.is-disabled > span { color:#94a3b8; }
.exchange-form-actions { display:flex; justify-content:flex-end; gap:9px; padding:0 20px 20px; }
.exchange-guide-list { display:grid; }
.exchange-guide-list > div { display:grid; grid-template-columns:38px minmax(0,1fr); gap:11px; padding:15px 17px; border-top:1px solid #f1f5f9; }
.exchange-guide-list > div > i { display:grid; place-items:center; width:36px; height:36px; color:#2563eb; background:#eff6ff; border-radius:10px; }
.exchange-guide-list span { display:grid; gap:3px; }
.exchange-guide-list small { color:#64748b; line-height:1.6; }
.exchange-saved-day { display:inline-flex; padding:5px 8px; color:#166534; font-size:.76rem; font-weight:600; background:#dcfce7; border-radius:999px; }
.except-table td small { display:block; margin-top:3px; color:#94a3b8; }
.except-pattern { display:inline-flex; padding:5px 9px; color:#6d28d9; font-size:.76rem; font-weight:600; background:#ede9fe; border-radius:999px; }
.except-period-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.except-period-grid fieldset { min-width:0; padding:14px; background:#fff; border:1px solid #e2e8f0; border-radius:13px; }
.except-period-grid legend { padding:0 6px; color:#334155; font-weight:600; }
.outdoor-table td small { display:block; margin-top:3px; color:#94a3b8; }
.outdoor-payment { display:inline-flex; padding:5px 9px; font-size:.76rem; font-weight:600; border-radius:999px; }
.outdoor-payment.paid { color:#166534; background:#dcfce7; }
.outdoor-payment.unpaid { color:#64748b; background:#f1f5f9; }
.fingerprint-table td small { display:block; margin-top:4px; color:#94a3b8; }
.new-fingerprint { display:inline-flex; padding:5px 9px; color:#1d4ed8; font-size:.76rem; font-weight:600; background:#dbeafe; border-radius:999px; }
.fingerprint-status { display:inline-flex; padding:5px 9px; font-size:.76rem; font-weight:600; border-radius:999px; }
.fingerprint-status.status-0 { color:#92400e; background:#fef3c7; }
.fingerprint-status.status-1 { color:#166534; background:#dcfce7; }
.fingerprint-status.status-2 { color:#991b1b; background:#fee2e2; }
.fingerprint-status-link { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:0 20px 16px; }
.fingerprint-search-card { overflow:hidden; }
.fingerprint-search-toolbar { display:grid; grid-template-columns:1.5fr 1fr 1fr auto; align-items:end; gap:12px; padding:18px; background:linear-gradient(135deg,#f8fafc,#f0fdf4); border-bottom:1px solid #e2e8f0; }
.fingerprint-search-toolbar label { display:grid; gap:6px; color:#64748b; font-size:.78rem; font-weight:600; }
.fingerprint-search-toolbar select,.fingerprint-search-toolbar input { min-height:42px; width:100%; padding:8px 10px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:10px; }
.fingerprint-result-list > header { padding:16px 18px; background:#fff; border-bottom:1px solid #e2e8f0; }
.fingerprint-result-list > header div { display:grid; gap:3px; }
.fingerprint-result-list > header small { color:#64748b; }
.fingerprint-day { padding:16px 18px; border-bottom:1px solid #e2e8f0; }
.fingerprint-day h3 { margin:0 0 12px; color:#334155; font-size:.95rem; }
.fingerprint-day-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.fingerprint-record { overflow:hidden; padding:14px; background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 8px 20px rgba(15,23,42,.04); }
.fingerprint-record-time { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; }
.fingerprint-record-time span { display:grid; gap:2px; }
.fingerprint-record-time small,.fingerprint-record > small { color:#94a3b8; }
.fingerprint-record-time i { color:#3b82f6; }
.fingerprint-record-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.fingerprint-record-tags span { padding:4px 7px; color:#6d28d9; font-size:.7rem; font-weight:600; background:#ede9fe; border-radius:999px; }
.fingerprint-record details { margin:13px -14px -14px; border-top:1px solid #e2e8f0; }
.fingerprint-record summary { padding:11px 14px; color:#2563eb; font-size:.8rem; font-weight:600; cursor:pointer; list-style:none; }
.fingerprint-record summary::-webkit-details-marker { display:none; }
.fingerprint-record form { padding:14px; background:#f8fafc; }
.fingerprint-correction-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px; }
.fingerprint-correction-grid label { display:grid; gap:5px; color:#64748b; font-size:.76rem; }
.fingerprint-correction-grid .wide-field { grid-column:1/-1; }
.fingerprint-correction-grid select,.fingerprint-correction-grid textarea,.fingerprint-correction-grid input { width:100%; min-height:38px; padding:7px 9px; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:9px; }
.report-history-card { overflow:hidden; }
.report-filter-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) auto; align-items:end; gap:11px; padding:17px; background:linear-gradient(135deg,#f8fafc,#eff6ff); border-bottom:1px solid #e2e8f0; }
.report-filter-grid label { display:grid; gap:6px; color:#64748b; font-size:.76rem; font-weight:600; }
.report-filter-grid input,.report-filter-grid select { min-height:40px; width:100%; padding:7px 9px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:9px; }
.report-filter-grid form { align-self:end; }
.personnel-requisition-filter { grid-template-columns:repeat(4,minmax(0,1fr)) auto; }
.personnel-requisition-report-filter { grid-template-columns:repeat(5,minmax(0,1fr)) auto; }
.personnel-requisition-filter > .primary-button,.personnel-requisition-report-filter > .primary-button { min-height:40px; margin:0; padding:7px 15px; white-space:nowrap; }
.hrm-page .personnel-report-status { width:auto; min-width:126px; min-height:36px; height:36px; margin:0; padding:5px 30px 5px 10px; color:#334155; background-color:#fff; border-color:#cbd5e1; border-radius:9px; font-size:.72rem; line-height:1.3; cursor:pointer; }
.hrm-page .personnel-report-status:focus { border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.12); }
.personnel-detail-page { display:grid; min-width:0; gap:18px; }
.personnel-detail-page>.directory-hero { margin:0; }
.personnel-detail-card { overflow:hidden; }
.personnel-detail-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:20px 22px 22px; }
.personnel-detail-summary>div { min-width:0; padding:14px 16px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; }
.personnel-detail-summary span { display:block; margin-bottom:5px; color:#64748b; font-size:.72rem; }
.personnel-detail-summary strong { display:block; overflow-wrap:anywhere; color:#1e293b; font-size:.82rem; line-height:1.6; }
@media (max-width:1200px) {
    .personnel-requisition-filter,.personnel-requisition-report-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .personnel-requisition-filter > .primary-button,.personnel-requisition-report-filter > .primary-button { grid-column:1/-1; }
    .personnel-detail-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) { .personnel-detail-summary { grid-template-columns:1fr; padding:16px; } }
.hero-stat { display:grid; place-items:center; min-width:92px; padding:13px 18px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); border-radius:16px; }
.hero-stat strong { font:700 1.75rem/1 'Outfit','Prompt',sans-serif; }
.hero-stat span { margin-top:5px; color:rgba(255,255,255,.75); font-size:.72rem; }
.light-button { color:#0f172a; background:rgba(255,255,255,.9); border-color:rgba(255,255,255,.7); }
.scoring-summary { display:flex; justify-content:space-between; gap:14px; margin-bottom:14px; padding:12px 14px; color:#475569; background:#fff; border:1px solid #e2e8f0; border-radius:12px; }
.scoring-dialog .movement-dialog-body { padding:20px 24px; }
.scoring-dialog input { width:100%; min-height:39px; padding:7px 9px; font:inherit; border:1px solid #dbe3ed; border-radius:9px; }
.scoring-dialog [data-add-item] { margin-top:12px; }
.text-danger { color:#dc2626 !important; }
.assessment-filter { grid-template-columns:repeat(3,minmax(150px,1fr)) auto; }
.compact-report-filter { grid-template-columns:minmax(180px,300px) auto; justify-content:start; }
.assessment-table td:not(:nth-child(2)),.assessment-table th:not(:nth-child(2)) { text-align:center; }
.rating-person { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:280px; padding:7px 0; border-bottom:1px dashed #e2e8f0; }
.rating-person:last-child { border-bottom:0; }
.toggle-control { display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.toggle-control input { position:absolute; opacity:0; pointer-events:none; }
.toggle-control span { position:relative; width:38px; height:22px; background:#cbd5e1; border-radius:999px; transition:.2s; }
.toggle-control span::after { content:''; position:absolute; top:3px; left:3px; width:16px; height:16px; background:#fff; border-radius:50%; box-shadow:0 1px 3px rgba(15,23,42,.22); transition:.2s; }
.toggle-control input:checked + span { background:#22c55e; }
.toggle-control input:checked + span::after { transform:translateX(16px); }
.toggle-control em { color:#64748b; font-size:.72rem; font-style:normal; }
.report-history-table td small,.fingerprint-report-table td small { display:block; margin-top:3px; color:#94a3b8; }
.report-history-table .danger-button { width:36px; padding:0; }
.ot-hour-table td small,.ot-summary-table td small { display:block; margin-top:3px; color:#94a3b8; }
.report-number-link { min-width:64px; padding:6px 10px; color:#1d4ed8; font:inherit; font-weight:700; background:#dbeafe; border:0; border-radius:9px; cursor:pointer; }
.report-number-link.total { color:#166534; background:#dcfce7; }
.report-number-link:hover,.report-number-link:focus-visible { box-shadow:0 0 0 3px rgba(59,130,246,.18); }
.ot-summary-dialog { width:min(1040px,calc(100vw - 28px)); }
.ot-detail-heading { display:grid; gap:3px; margin-bottom:14px; }
.ot-detail-heading strong { color:#0f172a; font-family:Outfit,Prompt,sans-serif; font-size:1.05rem; }
.ot-detail-heading small { color:#64748b; }
.leave-summary-filter { grid-template-columns:repeat(5,minmax(0,1fr)) auto auto auto; }
.report-check { display:flex!important; align-items:center; gap:7px; min-height:40px; padding:8px 10px; color:#334155!important; background:#fff; border:1px solid #dbe3ed; border-radius:9px; }
.report-check input { width:16px!important; min-height:16px!important; }
.leave-summary-table { min-width:1280px; }
.leave-summary-table td small { display:block; margin-top:3px; color:#94a3b8; }
.report-employee-link { display:grid; gap:2px; padding:0; color:#1d4ed8; text-align:left; font:inherit; background:none; border:0; cursor:pointer; }
.report-employee-link small { color:#64748b!important; }
.leave-summary-dialog { width:min(900px,calc(100vw - 28px)); }
.leave-report-filter { grid-template-columns:repeat(5,minmax(0,1fr)) auto auto auto; }
.leave-report-table { min-width:1900px; }
.leave-report-table td small { display:block; margin-top:3px; color:#94a3b8; }
.fingerprint-correction-report { min-width:1120px; }
.fingerprint-correction-report td small { display:block; margin-top:4px; color:#94a3b8; }
.incentive-filter { grid-template-columns:1fr 1fr 1.5fr auto auto auto; }
.incentive-filter select[multiple] { min-height:74px; }
.incentive-table { min-width:1050px; }
.incentive-table td small { display:block; margin-top:3px; color:#94a3b8; }
.incentive-dialog { width:min(560px,calc(100vw - 28px)); }
.dialog-field { display:grid; gap:7px; color:#64748b; font-size:.8rem; font-weight:600; }
.dialog-field input { min-height:42px; padding:8px 10px; color:#0f172a; font:inherit; border:1px solid #dbe3ed; border-radius:10px; }
.incentive-setting-dialog { width:min(680px,calc(100vw - 28px)); }
.setting-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.setting-form-grid label { display:grid; gap:6px; color:#64748b; font-size:.78rem; font-weight:600; }
.setting-form-grid input,.setting-form-grid select { width:100%; min-height:42px; padding:8px 10px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:10px; }
.setting-form-grid textarea { width:100%; padding:10px; color:#0f172a; font:inherit; resize:vertical; background:#fff; border:1px solid #dbe3ed; border-radius:10px; }
.setting-form-grid .full-field { grid-column:1/-1; }
.standalone-form { padding:22px; }
[data-guarantee-form] > form { padding:22px; }
[data-guarantee-form] .responsive-table { margin-top:18px; border:1px solid #e2e8f0; border-radius:14px; }
[data-guarantee-form] .form-actions { padding-top:18px; }
.work-guarantee-table-card { min-width:0; overflow:hidden; }
.work-guarantee-table-card>.responsive-table,.work-guarantee-table-card .dataTables_wrapper,.work-guarantee-table-card table.dataTable { width:100%!important; max-width:100%; }
.work-guarantee-table-card>.responsive-table { border:0; border-radius:0; }
.work-guarantee-table td small { display:block; margin-top:3px; color:#94a3b8; }
.work-guarantee-edit-page { display:grid; min-width:0; gap:18px; }
.work-guarantee-edit-page>.directory-hero { margin:0; }
.work-guarantee-edit-card { overflow:hidden; }
.work-guarantee-edit-card>.section-heading { align-items:flex-start; }
.work-guarantee-summary { display:flex; flex:0 0 auto; gap:10px; }
.work-guarantee-summary>span { min-width:112px; padding:10px 13px; text-align:right; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; }
.work-guarantee-summary small,.work-guarantee-summary strong { display:block; }
.work-guarantee-summary small { margin-bottom:3px; color:#64748b; font-size:.68rem; font-weight:600; }
.work-guarantee-summary strong { color:#0f766e; font-size:.88rem; }
.work-guarantee-edit-form { display:grid; gap:18px; padding:20px; }
.work-guarantee-detail-field { display:grid; gap:7px; color:#475569; font-size:.78rem; font-weight:600; }
.work-guarantee-detail-field textarea { width:100%; min-height:88px; padding:11px 13px; color:#0f172a; font:inherit; line-height:1.6; resize:vertical; background:#fff; border:1px solid #dbe3ed; border-radius:11px; }
.work-guarantee-detail-field textarea:focus,.work-guarantee-edit-table input:focus { border-color:#60a5fa; outline:0; box-shadow:0 0 0 3px rgba(59,130,246,.12); }
.work-guarantee-edit-table-wrap { border:1px solid #e2e8f0; border-radius:14px; }
.work-guarantee-edit-table { min-width:660px; }
.work-guarantee-edit-table th:first-child,.work-guarantee-edit-table td:first-child { width:80px; text-align:center; }
.work-guarantee-edit-table .action-column,.work-guarantee-edit-table td:last-child { width:92px; text-align:center; }
.work-guarantee-edit-table input { width:100%; min-width:170px; min-height:40px; padding:8px 10px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:9px; }
.work-guarantee-edit-table input[type="number"] { text-align:right; font-variant-numeric:tabular-nums; }
.table-icon-button { display:inline-grid; width:36px; height:36px; place-items:center; padding:0; border:0; border-radius:9px; cursor:pointer; }
.table-icon-button.danger { color:#dc2626; background:#fee2e2; }
.table-icon-button.danger:hover { background:#fecaca; }
.work-guarantee-edit-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:2px; }
.work-guarantee-edit-actions .primary-button,.work-guarantee-edit-actions .secondary-button { min-height:42px; margin:0; padding:8px 16px; }
@media(max-width:720px){.work-guarantee-edit-card>.section-heading{flex-direction:column}.work-guarantee-summary{width:100%}.work-guarantee-summary>span{flex:1;text-align:left}.work-guarantee-edit-form{padding:16px}.work-guarantee-edit-actions{flex-direction:column-reverse}.work-guarantee-edit-actions .primary-button,.work-guarantee-edit-actions .secondary-button{width:100%}}
.top-gap { margin-top:18px; }
.approval-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.approval-chip-list { display:flex; flex-wrap:wrap; gap:7px; padding:0 18px 18px; }
.approval-chip-list span { padding:7px 10px; color:#334155; font-size:.72rem; background:#f1f5f9; border-radius:999px; }
.card-footer-actions { display:flex; justify-content:flex-end; padding:14px 18px; border-top:1px solid #e2e8f0; }
.permission-chip-list,.permission-check-grid { display:flex; flex-wrap:wrap; gap:6px; }
.permission-chip-list span { padding:5px 8px; color:#1e40af; font-size:.68rem; background:#eff6ff; border-radius:999px; }
.permission-check-grid label { display:flex; align-items:center; gap:5px; padding:5px 7px; font-size:.7rem; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; }
.decision-actions { display:flex; gap:7px; }
.decision-actions form { margin:0; }
.permission-selector-list { display:grid; gap:8px; padding:18px; border-bottom:1px solid #e2e8f0; }
.permission-selector-list article { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; }
.permission-selector-list article > div:first-child { display:grid; gap:3px; }
.permission-selector-list small { color:#64748b; }
.setting-form-grid select[multiple] { min-height:120px; }
.setting-form-card { overflow:hidden; }
.social-setting-grid { padding:20px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.setting-form-grid .wide-field { grid-column:1/-1; }
.setting-form-actions { display:flex; justify-content:flex-end; gap:9px; padding:0 20px 20px; }
.punishment-page { display:grid; gap:18px; min-width:0; }
.punishment-page .directory-hero { margin-bottom:0; }
.punishment-form-card,.punishment-table-card { overflow:hidden; }
.punishment-page .section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; background:linear-gradient(135deg,#f8fafc,#eff6ff); border-bottom:1px solid var(--hrm-border); }
.punishment-page .section-heading h3 { margin:0; color:#0f172a; font-family:'Outfit','Prompt',sans-serif; font-size:1rem; }
.punishment-page .section-heading p { margin:4px 0 0; color:#64748b; font-size:.74rem; }
.punishment-page .standalone-form { padding:20px 22px 22px; }
.punishment-page .form-actions { padding-top:3px; }
.punishment-page .form-actions .primary-button { min-height:42px; margin:0; padding:8px 16px; }
.punishment-page .decision-actions,.punishment-page .table-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.punishment-page .decision-actions .primary-button,.punishment-page .decision-actions .secondary-button { min-height:34px; margin:0; padding:6px 10px; white-space:nowrap; }
@media (max-width:720px) {
    .punishment-page .section-heading { padding:16px; }
    .punishment-page .standalone-form { padding:16px; }
    .punishment-page .form-actions .primary-button { width:100%; }
}
.payroll-setting-table { min-width:1080px; }
.payroll-setting-table td small { display:block; margin-top:3px; color:#94a3b8; }
.payroll-setting-table tr.current-setting td { background:#f0fdf4; }
.setting-form-section { padding:20px; }
.ledger-setting-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:18px; }
.account-mapping-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; padding:18px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:15px; }
.account-mapping-grid label { display:grid; gap:6px; color:#64748b; font-size:.78rem; font-weight:600; }
.account-mapping-grid select { width:100%; min-height:42px; padding:8px 10px; color:#0f172a; font:inherit; background:#fff; border:1px solid #dbe3ed; border-radius:10px; }
.allowance-setting-table { min-width:920px; }
.allowance-setting-table td small { display:block; margin-top:3px; color:#94a3b8; }
.money-input { display:flex; align-items:center; min-width:160px; overflow:hidden; background:#fff; border:1px solid #dbe3ed; border-radius:10px; }
.money-input input { min-width:0; width:100%; padding:8px 10px; font:inherit; border:0; }
.money-input span { padding:8px 10px; color:#64748b; background:#f8fafc; border-left:1px solid #e2e8f0; }
.payroll-current-card { overflow:hidden; margin-bottom:18px; }
.tax-tier-builder { overflow:hidden; }
.tax-payment-page { display:grid; min-width:0; gap:18px; }
.tax-payment-page>.directory-hero { margin:0; }
.tax-payment-card>.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0; padding:18px 20px; background:linear-gradient(135deg,#f8fafc,#eff6ff); border-bottom:1px solid #e2e8f0; }
.tax-payment-card>.panel-heading p { margin:0 0 4px; }
.tax-payment-card>.responsive-table { width:calc(100% - 40px); margin:20px; border:1px solid #e2e8f0; border-radius:14px; }
.tax-payment-card>.setting-form-actions { padding:0 20px 20px; }
.tax-tier-table { min-width:1050px; }
.tax-tier-table input { width:130px; min-height:39px; padding:7px 9px; font:inherit; border:1px solid #dbe3ed; border-radius:9px; }
.tax-tier-table input[readonly] { color:#64748b; background:#f8fafc; }
@media(max-width:680px){.tax-payment-card>.panel-heading{align-items:stretch;flex-direction:column;padding:16px}.tax-payment-card>.panel-heading .secondary-button{width:100%}.tax-payment-card>.responsive-table{width:calc(100% - 32px);margin:16px}.tax-payment-card>.setting-form-actions{padding:0 16px 16px}.tax-payment-card>.setting-form-actions .primary-button{width:100%}}

.extra-pay-create-panel,.extra-pay-entry-card { margin-bottom:18px; overflow:hidden; }
.extra-pay-period-form { display:grid; grid-template-columns:180px 220px minmax(260px,1fr) auto; gap:14px; align-items:end; padding:20px; }
.extra-pay-period-form label,.extra-pay-form-grid label,.extra-pay-line label { display:grid; gap:7px; color:#475569; font-size:.8rem; font-weight:700; }
.extra-pay-period-form input,.extra-pay-period-form select,.extra-pay-form-grid select,.extra-pay-line input,.extra-pay-line select { width:100%; min-height:42px; padding:8px 11px; color:#0f172a; font:inherit; background:#fff; border:1px solid #cbd5e1; border-radius:11px; }
.extra-pay-entry-body { padding:20px; }
.extra-pay-employee-form { display:grid; gap:16px; }
.extra-pay-form-grid { display:grid; grid-template-columns:1fr; }
.extra-pay-line { display:grid; grid-template-columns:minmax(260px,2fr) minmax(150px,1fr) auto; gap:12px; align-items:end; margin-top:10px; padding:14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; }
.danger-button { color:#b91c1c; border-color:#fecaca; background:#fef2f2; }
.extra-pay-period-table { min-width:900px; }
.extra-pay-detail-table { min-width:1100px; }
.extra-pay-items { display:grid; min-width:180px; gap:6px; }
.extra-pay-items span { display:flex; justify-content:space-between; gap:12px; padding:6px 8px; background:#f8fafc; border-radius:8px; }
.extra-pay-items strong.positive { color:#15803d; }
.extra-pay-items strong.negative { color:#dc2626; }
.rate-permission-card,.monthly-rate-card { margin-bottom:18px; overflow:hidden; }
.rate-permission-form { display:grid; grid-template-columns:1fr 1fr auto; gap:16px; align-items:end; padding:20px; }
.rate-permission-form .wide-field { grid-column:1/-1; }
.rate-permission-form label { display:grid; gap:7px; color:#475569; font-size:.8rem; font-weight:700; }
.rate-permission-form select { width:100%; min-height:44px; padding:8px 10px; color:#0f172a; background:#fff; border:1px solid #cbd5e1; border-radius:11px; }
.rate-permission-form select[multiple] { min-height:120px; }
.rate-permission-form fieldset { display:flex; min-height:44px; align-items:center; gap:18px; padding:9px 13px; border:1px solid #cbd5e1; border-radius:11px; }
.rate-permission-form fieldset label { display:flex; align-items:center; gap:7px; }
.rate-permission-table { min-width:760px; }
.monthly-rate-filter { display:flex; align-items:end; gap:12px; padding:20px; border-bottom:1px solid #e2e8f0; }
.monthly-rate-filter label { display:grid; gap:7px; color:#475569; font-size:.8rem; font-weight:700; }
.monthly-rate-filter input,.monthly-rate-dialog select,.routine-rate-dialog select { min-height:42px; padding:8px 10px; color:#0f172a; background:#fff; border:1px solid #cbd5e1; border-radius:10px; }
.monthly-rate-table { min-width:800px; }
.monthly-rate-dialog,.routine-rate-dialog { width:min(820px,calc(100vw - 30px)); }
.routine-position-grid { display:grid; gap:18px; }
.routine-position-card { overflow:hidden; }
.routine-position-card table { min-width:780px; }
.routine-progress { position:relative; width:180px; height:28px; overflow:hidden; background:#e2e8f0; border-radius:999px; }
.routine-progress span { position:absolute; inset:0 auto 0 0; background:linear-gradient(90deg,#22c55e,#3b82f6); }
.routine-progress strong { position:relative; z-index:1; display:grid; height:100%; place-items:center; color:#0f172a; font-size:.72rem; }
.tax-reference-card { overflow:hidden; }
.tax-reference-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; padding:20px; }
.tax-reference-form label { display:grid; gap:7px; color:#475569; font-size:.8rem; font-weight:700; }
.tax-reference-form .wide-field { grid-column:1/-1; }
.tax-reference-form input,.tax-reference-form select { width:100%; min-height:42px; padding:8px 10px; color:#0f172a; font:inherit; background:#fff; border:1px solid #cbd5e1; border-radius:10px; }
.tax-reference-table { min-width:980px; }
.status-toggle { display:inline-flex; align-items:center; gap:7px; cursor:pointer; }
.status-toggle input { width:17px; height:17px; }
.tax-report-filter { grid-template-columns:repeat(2,minmax(220px,1fr)) auto; }
.tax-report-dialog { width:min(760px,calc(100vw - 30px)); }
.tax-detail-grid,.tax-declaration-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.tax-detail-grid div,.tax-declaration-summary div { display:grid; gap:4px; padding:12px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:11px; }
.tax-detail-grid span,.tax-declaration-summary span { color:#64748b; font-size:.72rem; }
.tax-month-table { min-width:1650px; }
.tax-month-table td { white-space:nowrap; }
.tax-form-legacy { display:grid; gap:18px; color:#334155; }
.tax-form-legacy > .row,.tax-form-legacy .wrapper { margin:0; }
.tax-form-legacy .card,.tax-form-legacy .ibox { width:100%; margin:0 0 16px; padding:0; overflow:visible; background:rgba(255,255,255,.92); border:1px solid rgba(255,255,255,.86); border-radius:20px; box-shadow:0 12px 38px rgba(15,23,42,.055); }
.tax-form-legacy .tax-user-fragment { display:grid; gap:18px; background:transparent; }
.tax-form-legacy .tax-user-fragment>.panel { margin:0; overflow:visible; background:rgba(255,255,255,.94); border:1px solid #e2e8f0; border-radius:18px; box-shadow:0 10px 30px rgba(15,23,42,.05); }
.tax-form-legacy .tax-user-fragment>.panel>.panel-body { padding:24px!important; }
.tax-form-legacy .tax-user-fragment .form-section-title { margin:0; font-size:1.05rem; }
.tax-form-legacy .tax-user-fragment .form-section-subtitle { margin:0 0 12px; font-size:.9rem; }
.tax-form-legacy .tax-user-fragment .form-group { margin-bottom:18px; }
.tax-form-legacy .tax-user-fragment .form-group:last-child { margin-bottom:0; }
.tax-form-legacy .tax-birth-grid>[class*="col-"] { flex:0 0 33.333%; max-width:33.333%; }
.tax-form-legacy .tax-spouse-id-grid { align-items:flex-end; }
.tax-form-legacy .tax-spouse-id-value { padding-top:25px; }
.tax-form-legacy .tax-spouse-id-value .form-group { margin:0; }
.tax-form-legacy .tax-prefix-grid>.col-sm-8 { display:flex; max-width:100%; flex:0 0 100%; align-items:center; flex-wrap:wrap; gap:8px 14px; }
.tax-form-legacy .tax-prefix-grid .radio-inline { display:inline-flex; width:auto!important; min-height:40px; align-items:center; gap:5px; margin:0; }
.tax-form-legacy .tax-prefix-grid .tax-prefix-other { flex:1 1 190px; max-width:260px; }
.tax-form-legacy .tax-prefix-grid .inp-other { width:100%; }
.tax-form-legacy .tax-calculation-panel { background:linear-gradient(135deg,rgba(240,253,244,.92),rgba(239,246,255,.92))!important; }
.tax-form-legacy .tax-calculation-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0; }
.tax-form-legacy .tax-calculation-grid>[class*="col-"] { width:auto; max-width:none; padding:0; }
.tax-form-legacy .tax-calculation-grid label { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tax-form-legacy .tax-calculation-grid label small { color:#64748b; font-size:.72rem; font-weight:500; }
.tax-form-legacy .card-body,.tax-form-legacy .ibox-content { padding:20px!important; }
.tax-form-legacy .ibox-title { padding:16px 20px; background:linear-gradient(135deg,rgba(220,252,231,.78),rgba(219,234,254,.78)); border:0; border-radius:20px 20px 0 0; }
.tax-form-legacy h2,.tax-form-legacy h3,.tax-form-legacy h4,.tax-form-legacy h5 { color:#0f172a; font-family:Outfit,Prompt,sans-serif; }
.tax-form-legacy label { color:#475569; font-size:.82rem; font-weight:600; }
.tax-form-legacy .form-control,.tax-form-legacy input,.tax-form-legacy select,.tax-form-legacy textarea { min-height:40px; color:#0f172a; background:#fff; border:1px solid #cbd5e1; border-radius:10px; box-shadow:none; }
.tax-form-legacy input[type="checkbox"],.tax-form-legacy input[type="radio"] { min-height:auto; }
.tax-form-legacy .btn { display:inline-flex; min-height:38px; align-items:center; justify-content:center; gap:7px; padding:7px 13px; border:0; border-radius:10px; font-family:Prompt,Inter,sans-serif; }
.tax-form-legacy .btn-primary,.tax-form-legacy .btn-info,.tax-form-legacy .btn-success { color:#fff; background:linear-gradient(135deg,#22c55e,#3b82f6); }
.tax-form-legacy .btn-danger { color:#fff; background:#dc2626; }
.tax-form-legacy .table-responsive { border:1px solid #e2e8f0; border-radius:14px; }
.tax-form-legacy table { width:100%; color:#475569; font-size:.78rem; }
.tax-form-legacy table th { color:#64748b; background:#f8fafc; border-color:#e2e8f0; }
.tax-form-legacy table td { border-color:#e2e8f0; }
.tax-form-legacy .modal-content { overflow:hidden; border:0; border-radius:20px; box-shadow:0 30px 80px rgba(15,23,42,.25); }
.tax-form-legacy .modal-header { background:linear-gradient(135deg,#dcfce7,#dbeafe); }
.tax-form-legacy .bootstrap-select>.dropdown-toggle { min-height:40px; color:#334155; background:#fff; border:1px solid #cbd5e1; }
.tax-form-legacy .dt-buttons { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 12px; }
.tax-form-legacy .dataTables_filter input { min-height:36px; }
.tax-create-page .tax-create-shell { margin:0; }
.tax-create-page .tax-filter-card { padding:22px 24px!important; }
.tax-create-page .tax-create-filter-grid { display:grid; grid-template-columns:minmax(280px,1.6fr) minmax(210px,1fr) minmax(120px,auto); align-items:end; gap:14px; margin:0; }
.tax-create-page .tax-create-filter-grid>[class*="col-"] { width:auto; max-width:none; margin:0!important; padding:0; }
.tax-create-page .tax-create-filter-grid h3 { margin:0 0 8px; font-size:.92rem; }
.tax-create-page .tax-create-filter-grid .btn-search { width:100%; min-height:42px; margin:0!important; }
.tax-create-page .tax-create-filter-grid>.personal { grid-column:1/-1; }
.tax-report-page .tax-report-shell { padding:0!important; overflow:hidden; }
.tax-report-page .tax-report-card { margin:0!important; border:0!important; border-radius:20px!important; box-shadow:none!important; }
.tax-report-page .tax-report-tabs { padding:16px 20px!important; background:linear-gradient(135deg,#f8fafc,#eff6ff); border-bottom:1px solid #e2e8f0; }
.tax-report-page .nav-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0; border:0; }
.tax-report-page .nav-tabs>li { float:none; margin:0; }
.tax-report-page .nav-tabs>li>a { display:inline-flex; min-height:40px; align-items:center; gap:7px; margin:0; padding:8px 13px; color:#64748b; background:#fff; border:1px solid #e2e8f0; border-radius:10px; }
.tax-report-page .nav-tabs>li.active>a,.tax-report-page .nav-tabs>li.active>a:hover,.tax-report-page .nav-tabs>li.active>a:focus { color:#1d4ed8; background:#eff6ff; border-color:#bfdbfe; }
.tax-report-page .tab-content { padding:20px 22px 22px; }
.tax-report-page .tab-pane>.card { float:none; margin:0!important; padding:20px!important; }
.tax-report-page .tax-report-employee-grid { margin:0; }
.tax-report-page .tax-report-employee-grid>[class*="col-"] { padding:0; }
.tax-report-page .tax-report-employee-grid>.mt-10 { margin:0 0 16px!important; }
.tax-report-page .tax-report-employee-picker { display:grid; grid-template-columns:minmax(260px,1fr) auto; align-items:end; gap:10px; max-width:760px; margin:0 auto; }
.tax-report-page .tax-report-employee-picker>.bootstrap-select,.tax-report-page .tax-report-employee-picker>.select2 { width:100%!important; }
.tax-report-page .tax-report-employee-picker>.btn-search { min-height:40px; }
.tax-report-page .tax-report-employee-grid>.personal { padding:0; }
.tax-report-page .tax-export-card { float:none; margin:0!important; padding:22px!important; }
.tax-report-page .tax-export-form>.row { margin-right:-7px; margin-left:-7px; }
.tax-report-page .tax-export-form>.row>[class*="col-"] { padding-right:7px; padding-left:7px; }
@media(max-width:767px){
    .tax-form-legacy .tax-user-fragment>.panel>.panel-body{padding:18px!important}
    .tax-form-legacy .tax-birth-grid>[class*="col-"]{max-width:100%;flex-basis:100%;margin-bottom:12px}
    .tax-form-legacy .tax-birth-grid>[class*="col-"]:last-child{margin-bottom:0}
    .tax-form-legacy .tax-spouse-id-value{padding-top:12px}
    .tax-form-legacy .tax-calculation-grid{grid-template-columns:1fr}
    .tax-create-page .tax-filter-card{padding:16px!important}
    .tax-create-page .tax-create-filter-grid{grid-template-columns:1fr}
    .tax-report-page .tax-report-tabs,.tax-report-page .tab-content{padding:14px!important}
    .tax-report-page .nav-tabs{display:grid;grid-template-columns:1fr}
    .tax-report-page .nav-tabs>li>a{width:100%}
    .tax-report-page .tab-pane>.card,.tax-report-page .tax-export-card{padding:16px!important}
    .tax-report-page .tax-report-employee-picker{grid-template-columns:1fr}
    .tax-report-page .tax-report-employee-picker>.btn-search{width:100%}
}

@media (max-width: 720px) {
    .filter-grid { grid-template-columns:1fr; padding:16px; }
    .filter-grid > .primary-button,.filter-grid > .secondary-button { width:100%; }
    [data-guarantee-form] > form { padding:16px; }
    .movement-toolbar { align-items:stretch; flex-direction:column; }
    .movement-basic-grid, .movement-option-content, .movement-ledger-grid, .movement-detail-hero { grid-template-columns:1fr; }
    .movement-before-after { grid-template-columns:1fr; }
    .movement-before-after > i { transform:rotate(90deg); justify-self:center; }
    .hrm-dialog > header, .hrm-dialog form > header, .movement-dialog-body, .hrm-dialog footer { padding-left:16px; padding-right:16px; }
    .employee-finance-grid, .bank-account-grid { grid-template-columns:1fr; }
    .finance-inline-form, .finance-inline-form.compact, .bank-account-form { grid-template-columns:1fr; }
    .leave-form-layout, .exchange-form-layout, .leave-field-grid, .leave-periods { grid-template-columns:1fr; }
    .leave-balance-card { position:static; }
    .leave-field-grid .wide-field { grid-column:auto; }
    .ot-time-picker, .ot-segment-options { grid-template-columns:1fr; }
    .except-period-grid { grid-template-columns:1fr; }
    .fingerprint-search-toolbar,.fingerprint-day-grid { grid-template-columns:1fr; }
    .fingerprint-status-link { align-items:stretch; flex-direction:column; padding:0 16px 16px; }
    .fingerprint-status-link .secondary-button { width:100%; }
    .report-filter-grid { grid-template-columns:1fr; }
    .leave-summary-filter { grid-template-columns:1fr; }
    .leave-report-filter { grid-template-columns:1fr; }
    .incentive-filter { grid-template-columns:1fr; }
    .setting-form-grid,.social-setting-grid { grid-template-columns:1fr; }
    .ledger-setting-grid,.account-mapping-grid { grid-template-columns:1fr; }
    .setting-form-grid .wide-field { grid-column:auto; }
    .extra-pay-period-form,.extra-pay-line,.rate-permission-form { grid-template-columns:1fr; }
    .rate-permission-form .wide-field { grid-column:auto; }
    .monthly-rate-filter { align-items:stretch; flex-direction:column; }
    .tax-reference-form { grid-template-columns:1fr; }
    .tax-reference-form .wide-field { grid-column:auto; }
    .tax-report-filter,.tax-detail-grid,.tax-declaration-summary { grid-template-columns:1fr; }
}

.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.payroll-processing-hero { align-items:stretch; }
.processing-hero-stats,.month-salary-stats { display:grid; grid-template-columns:repeat(3,minmax(92px,1fr)); gap:10px; align-self:center; }
.processing-hero-stats span,.month-salary-stats span { display:grid; min-width:96px; padding:12px 14px; border:1px solid rgba(255,255,255,.42); border-radius:14px; background:rgba(255,255,255,.2); text-align:center; backdrop-filter:blur(8px); }
.processing-hero-stats strong,.month-salary-stats strong { color:#fff; font-size:1.3rem; line-height:1; font-variant-numeric:tabular-nums; }
.processing-hero-stats small,.month-salary-stats small { margin-top:6px; color:rgba(255,255,255,.82); font-size:.68rem; }
.payroll-processing-filter { margin-bottom:20px; padding:20px 22px; overflow:hidden; }
.payroll-results { padding:0 20px 20px; overflow:hidden; }
.processing-section-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid #e2e8f0; }
.processing-section-heading>div { display:flex; min-width:0; align-items:center; gap:12px; }
.processing-section-heading>div>div { min-width:0; }
.processing-section-heading h3 { margin:0; color:#0f172a; font-size:1rem; }
.processing-section-heading p { margin:4px 0 0; color:#94a3b8; font-size:.76rem; line-height:1.45; }
.step-number { display:grid; width:32px; height:32px; place-items:center; flex:0 0 32px; border-radius:10px; background:linear-gradient(135deg,#22c55e,#3b82f6); color:#fff; font-size:.8rem; font-weight:800; line-height:1; box-shadow:0 5px 14px rgba(59,130,246,.2); }
.period-preview { padding:8px 12px; border:1px solid #bfdbfe; border-radius:10px; background:#eff6ff; color:#1d4ed8; font-size:.76rem; font-weight:700; white-space:nowrap; }
.processing-filter-grid { grid-template-columns:110px 1fr 1.25fr 1.25fr 1.2fr auto; align-items:end; border:1px solid #e2e8f0; border-radius:14px; }
.toggle-field { display:flex!important; flex-direction:row!important; align-items:center; gap:9px!important; min-height:42px; }
.toggle-field input { width:18px; height:18px; }
.processing-resigned { padding:7px 10px; border:1px solid #dbe4ee; border-radius:11px; background:#f8fafc; }
.processing-resigned span { display:grid; gap:1px; }
.processing-resigned b { color:#334155; font-size:.76rem; }
.processing-resigned small { color:#94a3b8; font-size:.64rem; font-weight:500; }
.processing-run-button { min-height:44px; white-space:nowrap; }
.processing-progress-panel { display:grid; grid-template-columns:minmax(220px,1fr) minmax(220px,2fr) auto; align-items:center; gap:16px; margin-top:18px; padding:14px; border:1px solid #bfdbfe; border-radius:14px; background:linear-gradient(135deg,#f0fdf4,#eff6ff); }
.processing-progress-panel[hidden],.processing-result-tools[hidden] { display:none!important; }
.processing-progress-copy { display:grid; gap:3px; }
.processing-progress-copy>span { display:flex; align-items:center; gap:8px; color:#0f172a; }
.processing-progress-copy i { color:#2563eb; }
.processing-progress-copy small { color:#64748b; font-size:.7rem; }
.processing-progress-track { height:10px; overflow:hidden; border-radius:999px; background:#dbeafe; }
.processing-progress-track span { display:block; width:0; height:100%; border-radius:inherit; transition:width .25s; background:linear-gradient(90deg,#22c55e,#3b82f6); }
.processing-results-heading { position:sticky; z-index:5; top:0; margin:0 -20px; padding:18px 20px; border-radius:18px 18px 0 0; background:rgba(255,255,255,.96); backdrop-filter:blur(12px); }
.processing-result-tools { display:grid; grid-template-columns:minmax(220px,1fr) 170px auto auto; gap:10px; align-items:center; margin:16px 0; padding:12px; border-radius:14px; background:#f8fafc; }
.processing-result-tools select,.processing-result-tools input { width:100%; min-height:40px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; color:#334155; }
.processing-search { position:relative; }
.processing-search i { position:absolute; z-index:1; top:50%; left:13px; color:#94a3b8; transform:translateY(-50%); }
.processing-search input { padding:8px 12px 8px 36px; }
.processing-table-wrap { overflow:visible; border:1px solid #e2e8f0; border-radius:14px; }
.processing-table-wrap .dataTables_scrollBody { max-height:55vh!important; }
.processing-table { min-width:1180px; }
.processing-table thead { position:sticky; z-index:3; top:0; }
.processing-table td { vertical-align:top; }
.processing-table .processing-select-cell { width:42px; text-align:center; }
.processing-table input[type="checkbox"] { width:17px; height:17px; accent-color:#16a34a; }
.processing-employee-cell { min-width:180px; }
.processing-employee-cell strong,.processing-salary-cell strong { display:block; color:#0f172a; }
.processing-employee-cell small,.processing-salary-cell small { display:block; margin-top:3px; color:#64748b; }
.processing-status-cell { min-width:155px; }
.processing-status-search { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.processing-review-status { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border-radius:999px; font-size:.69rem; font-weight:800; white-space:nowrap; }
.processing-review-status.ready { background:#dcfce7; color:#15803d; }
.processing-review-status.warning { background:#fef3c7; color:#b45309; }
.processing-issue-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:7px; }
.processing-issue-tags span { padding:3px 6px; border-radius:6px; background:#fff7ed; color:#c2410c; font-size:.62rem; }
.processing-detail { min-width:250px; }
.processing-detail summary,.processing-money-detail summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid #dbe4ee; border-radius:9px; background:#f8fafc; color:#334155; font-size:.72rem; font-weight:700; cursor:pointer; list-style:none; }
.processing-detail summary::-webkit-details-marker,.processing-money-detail summary::-webkit-details-marker { display:none; }
.processing-detail[open] summary,.processing-money-detail[open] summary { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
.processing-detail[open] summary>i { transform:rotate(180deg); }
.processing-time-grid { display:grid; grid-template-columns:repeat(2,minmax(105px,1fr)); gap:5px; margin-top:7px; }
.processing-time-grid span { display:flex; justify-content:space-between; gap:8px; padding:6px 7px; border-radius:7px; background:#f8fafc; color:#64748b; font-size:.67rem; }
.processing-time-grid strong { color:#0f172a; white-space:nowrap; }
.processing-toggles { min-width:210px; display:grid; gap:7px; }
.processing-toggles>span { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; font-size:.7rem; }
.processing-toggle-options { display:flex; overflow:hidden; border:1px solid #cbd5e1; border-radius:7px; }
.processing-toggle-options label { cursor:pointer; }
.processing-toggle-options input { position:absolute; opacity:0; pointer-events:none; }
.processing-toggle-options i { display:block; padding:4px 7px; color:#64748b; font-style:normal; }
.processing-toggle-options input:checked+i { background:#dcfce7; color:#15803d; font-weight:800; }
.processing-net-cell { min-width:145px; text-align:right; }
.processing-net-cell>strong { display:block; color:#047857; font-size:.92rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.processing-money-detail { margin-top:7px; text-align:left; }
.processing-money { min-width:190px; display:grid; gap:5px; padding:8px 4px 2px; font-size:.67rem; }
.processing-money span { display:flex; justify-content:space-between; gap:10px; color:#64748b; }

.month-salary-hero { align-items:center; }
.month-salary-hero-actions { display:flex; align-items:center; gap:14px; }
.month-salary-hero-actions>.primary-button { white-space:nowrap; }
.month-salary-stats { grid-template-columns:repeat(2,minmax(88px,1fr)); }
.month-salary-workspace { padding:0; overflow:hidden; }
.month-salary-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding:20px 22px; border-bottom:1px solid #e2e8f0; background:linear-gradient(135deg,#f8fafc,#f0fdf4); }
.month-salary-toolbar>p { max-width:390px; margin:0; color:#64748b; font-size:.73rem; text-align:right; }
.month-salary-toolbar>p i { margin-right:5px; color:#3b82f6; }
.month-salary-filter { display:flex; flex-wrap:wrap; align-items:end; gap:9px; margin:0; }
.month-salary-filter label { display:grid; gap:6px; color:#475569; font-size:.76rem; font-weight:700; }
.month-salary-filter input { min-height:40px; border:1px solid #cbd5e1; border-radius:10px; padding:7px 10px; background:#fff; }
.month-salary-table-wrap { padding:6px 20px 20px; }
.month-salary-table-wrap .dataTables_wrapper,.month-salary-table-wrap .dataTables_scroll,.month-salary-table-wrap .dataTables_scrollHead,.month-salary-table-wrap .dataTables_scrollBody { width:100%!important; }
.month-salary-table { width:100%!important; }
.month-salary-table td { vertical-align:middle; }
.batch-period { display:flex; align-items:center; gap:8px; }
.batch-period span { color:#0f172a; font-weight:800; }
.batch-period strong { padding:4px 7px; border-radius:7px; background:#eff6ff; color:#2563eb; font-size:.7rem; }
.batch-date-range { display:flex; align-items:center; gap:8px; color:#475569; white-space:nowrap; }
.batch-date-range i { color:#94a3b8; font-size:.65rem; }
.batch-owner { display:flex; align-items:center; gap:8px; }
.batch-owner i { display:grid; place-items:center; width:27px; height:27px; border-radius:8px; background:#ecfdf5; color:#059669; }
.batch-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; min-width:340px; }
.batch-action { display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:6px 9px; border:1px solid #dbe4ee; border-radius:9px; background:#fff; color:#475569; font:inherit; font-size:.68rem; font-weight:700; text-decoration:none; cursor:pointer; }
.batch-action:hover { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
.batch-action.primary { border-color:#bbf7d0; background:#f0fdf4; color:#15803d; }
.batch-action.danger { min-width:34px; justify-content:center; border-color:#fecaca; color:#dc2626; }
@media(max-width:1100px){.processing-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.processing-progress-panel{grid-template-columns:1fr 1fr}.processing-progress-panel>button{grid-column:2}.processing-result-tools{grid-template-columns:1fr 170px}.month-salary-hero-actions{align-items:flex-end;flex-direction:column}.month-salary-toolbar{align-items:stretch;flex-direction:column}.month-salary-toolbar>p{text-align:left}}
@media(max-width:680px){.payroll-processing-filter{padding:16px}.payroll-results{padding:0 14px 14px}.processing-hero-stats{width:100%;grid-template-columns:repeat(3,1fr)}.processing-filter-grid,.processing-result-tools,.processing-progress-panel{grid-template-columns:1fr}.processing-progress-panel>button{grid-column:auto}.processing-section-heading,.processing-results-heading{align-items:flex-start;flex-direction:column}.processing-results-heading{position:static;margin:0 -14px;padding:16px 14px}.processing-results-heading>.primary-button{width:100%}.period-preview{white-space:normal}.processing-table-wrap{max-height:none}.processing-time-grid{grid-template-columns:1fr}.month-salary-hero-actions{width:100%;align-items:stretch}.month-salary-stats{width:100%}.month-salary-filter{align-items:stretch;flex-direction:column}.month-salary-toolbar>p{display:none}.batch-actions{min-width:290px}.batch-action span{display:none}.batch-action.primary span{display:inline}}

.ledger-create-panel { margin-bottom:20px; }
.ledger-entry-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; gap:14px; align-items:end; padding:20px; }
.ledger-entry-form label { display:grid; gap:7px; color:#475569; font-size:.82rem; font-weight:700; }
.ledger-entry-form input,.ledger-entry-form select,.ledger-inline-amount { min-height:42px; border:1px solid #cbd5e1; border-radius:11px; padding:8px 11px; background:#fff; }
.integration-note { margin:15px 0 0; padding:11px 14px; border-radius:11px; background:#fffbeb; color:#92400e; font-size:.82rem; }
.money-cell { font-weight:800; font-variant-numeric:tabular-nums; }
.money-cell.positive { color:#15803d; }.money-cell.negative { color:#dc2626; }
.ledger-inline-amount { width:130px; min-height:36px; }
.ledger-list-card { min-width:0; overflow:hidden; }
.ledger-list-card>.responsive-table,.ledger-list-card .dataTables_wrapper,.ledger-list-card table.dataTable { width:100%!important; max-width:100%; }
.ledger-list-card>.responsive-table { border:0; border-radius:0; }
@media(max-width:1100px){.ledger-entry-form{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:680px){.ledger-entry-form{grid-template-columns:1fr;}}

.provident-form { display:grid; gap:22px; padding:22px; }
.provident-add-button { display:inline-flex; min-width:210px; min-height:64px; align-items:center; gap:11px; padding:10px 13px; color:#0f172a; background:rgba(255,255,255,.94); border:1px solid rgba(255,255,255,.8); border-radius:16px; box-shadow:0 12px 30px rgba(15,23,42,.14); text-decoration:none; transition:transform .18s ease,box-shadow .18s ease,background .18s ease; }
.provident-add-button:hover { color:#0f172a; background:#fff; box-shadow:0 16px 34px rgba(15,23,42,.2); text-decoration:none; transform:translateY(-2px); }
.provident-add-button:focus-visible { outline:3px solid rgba(255,255,255,.5); outline-offset:3px; }
.provident-add-button>span:not(.provident-add-icon) { display:grid; flex:1; gap:2px; }
.provident-add-button strong { font-size:.84rem; line-height:1.35; }
.provident-add-button small { color:#64748b; font-size:.67rem; }
.provident-add-icon { display:grid; width:40px; height:40px; flex:0 0 40px; place-items:center; color:#fff; background:linear-gradient(135deg,#16a34a,#3b82f6); border-radius:12px; box-shadow:0 7px 16px rgba(37,99,235,.2); }
.provident-add-arrow { color:#94a3b8; font-size:.72rem; transition:transform .18s ease; }
.provident-add-button:hover .provident-add-arrow { color:#2563eb; transform:translateX(3px); }
.provident-percent-dialog { width:min(620px,calc(100vw - 30px)); }
.provident-percent-dialog .movement-dialog-body { padding:20px 24px; }
.provident-percent-dialog .provident-percent-feedback { margin:0; }
.provident-percent-dialog footer .primary-button { min-height:42px; margin:0; padding:8px 16px; }
.provident-section { border:1px solid #e2e8f0; border-radius:20px; padding:22px; background:rgba(248,250,252,.72); }
.provident-section .section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.provident-section .section-heading > div { display:flex; align-items:center; gap:11px; }
.provident-section .section-heading span { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; color:#fff; font-weight:800; background:linear-gradient(135deg,#22c55e,#3b82f6); }
.provident-section .section-heading h3 { margin:0; color:#0f172a; font-size:1rem; }
.provident-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.provident-grid label { display:grid; gap:7px; color:#475569; font-size:.82rem; font-weight:700; }
.provident-grid input,.provident-grid select { width:100%; min-height:42px; border:1px solid #cbd5e1; border-radius:11px; padding:9px 11px; background:#fff; color:#0f172a; font:inherit; }
.provident-grid input:focus,.provident-grid select:focus { outline:3px solid rgba(59,130,246,.14); border-color:#3b82f6; }
.employee-inline-card { margin-top:16px; padding:14px 16px; border-radius:14px; background:linear-gradient(135deg,rgba(34,197,94,.1),rgba(59,130,246,.08)); display:flex; align-items:center; gap:13px; color:#166534; }
.employee-inline-card i { font-size:1.25rem; }
.employee-inline-card div { display:grid; gap:3px; }
.employee-inline-card span { color:#64748b; font-size:.8rem; }
.beneficiary-card { border:1px solid #dbeafe; border-radius:16px; background:#fff; padding:16px; margin-top:12px; }
.beneficiary-card header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; color:#1e3a8a; }
.beneficiary-card header button { border:0; border-radius:9px; width:32px; height:32px; color:#dc2626; background:#fee2e2; cursor:pointer; }
.provident-table td { vertical-align:top; }
.provident-table td small { display:block; color:#64748b; margin-top:3px; max-width:280px; }
.provident-list-card { min-width:0; overflow:hidden; }
.provident-list-card>.responsive-table,.provident-list-card .dataTables_wrapper,.provident-list-card table.dataTable { width:100%!important; max-width:100%; }
.provident-list-card>.responsive-table { border:0; border-radius:0; }
.hero-stat { display:grid; text-align:right; }
.hero-stat strong { font:700 2rem Outfit,sans-serif; color:#0f766e; }
.hero-stat small { color:#64748b; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; }
.table-actions form { display:inline-flex; margin:0; }
.table-actions a { display:inline-grid; place-items:center; }

@media (max-width:1100px) { .provident-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:680px) { .provident-index-hero { flex-direction:column; } .provident-add-button { width:100%; min-width:0; } .provident-form { padding:14px; } .provident-grid { grid-template-columns:1fr; } .provident-section { padding:16px; } .provident-section .section-heading { align-items:flex-start; flex-direction:column; } .form-actions { flex-direction:column-reverse; } }

@media print {
    .payslip-print { display:none!important; }
    .payslip-page { background:#fff!important; padding:0!important; }
    .salary-slip { box-shadow:none!important; border:0!important; }
    body > * { visibility:hidden; }
    .salary-slip,.salary-slip * { visibility:visible; }
    .salary-slip { position:absolute; inset:0; max-width:none; }
    .movement-detail-dialog, .movement-detail-dialog * { visibility:visible; }
    .movement-detail-dialog { position:absolute; inset:0; width:100%; max-height:none; border:0; box-shadow:none; }
    .movement-detail-dialog footer { display:none; }
}

.payslip-page { margin:0; padding:28px; background:#eef2f7; font-family:Prompt,Inter,sans-serif; color:#0f172a; }
.payslip-print { display:block; margin:0 auto 18px; }
.salary-slip { max-width:980px; margin:auto; padding:26px; border:1px solid #cbd5e1; border-radius:18px; background:#fff; box-shadow:0 20px 55px rgba(15,23,42,.12); }
.salary-slip-content { display:grid; gap:18px; }
.salary-slip .content-header-right,.salary-slip .content-header { display:grid; gap:8px; padding:16px; border-radius:12px; background:#f8fafc; }
.salary-slip .full-name-bank-number,.salary-slip .position-warehouse,.salary-slip .emp-id-full-name-monthnet-salaries,.salary-slip .absent-leave-late { display:flex; flex-wrap:wrap; gap:10px 28px; }
.salary-slip .content-detail { display:flex; gap:18px; align-items:start; }
.salary-slip table { width:100%; border-collapse:collapse; }
.salary-slip th,.salary-slip td { padding:8px 10px; border-bottom:1px solid #e2e8f0; }
.salary-slip th { color:#334155; background:#f8fafc; }
.salary-slip .content-payment { padding:14px; border-radius:12px; background:linear-gradient(135deg,rgba(34,197,94,.08),rgba(59,130,246,.08)); }
@media(max-width:700px){.payslip-page{padding:10px}.salary-slip{padding:14px}.salary-slip .content-detail{flex-direction:column}.salary-slip .content-detail table{width:100%!important}}

/* Self-service request and annual-calendar tables */
.request-list-page,.calendar-page { display:grid; min-width:0; gap:18px; }
.request-list-page>.directory-hero,.calendar-page>.directory-hero { margin:0; }
.request-list-card,.calendar-card { min-width:0; overflow:hidden; }
.request-list-card>.responsive-table,.request-list-card .dataTables_wrapper,.request-list-card table.dataTable { width:100%!important; max-width:100%; }
.request-list-card>.responsive-table,.calendar-card>.responsive-table { border:0; border-radius:0; }
.request-list-card .card-heading,.calendar-list-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid #e2e8f0; }
.request-list-card .card-heading h3,.calendar-list-header h3 { margin:0; color:#0f172a; font-size:1rem; }
.request-list-card .card-heading p,.calendar-list-header p { margin:4px 0 0; color:#64748b; font-size:.76rem; }
.request-list-card .count-badge,.calendar-card .count-badge { display:inline-grid; min-width:34px; height:34px; padding:0 9px; place-items:center; color:#15803d; font-size:.75rem; font-weight:800; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:999px; }
.calendar-result-count { display:inline-flex; height:34px; align-items:center; gap:5px; padding:0 11px; color:#64748b; font-size:.7rem; white-space:nowrap; background:#f8fafc; border:1px solid #e2e8f0; border-radius:999px; }
.calendar-result-count strong { color:#15803d; font-size:.78rem; }
.request-list-card .report-filter-grid,.calendar-card .report-filter-grid { margin:0; border-bottom:1px solid #e2e8f0; border-radius:0; box-shadow:none; }
.calendar-filter { grid-template-columns:minmax(180px,240px) auto; align-items:end; justify-content:start; padding:16px 20px; }
.calendar-filter label { gap:6px; }
.calendar-filter input { min-height:42px; padding:8px 12px; font-variant-numeric:tabular-nums; background:#fff; border-radius:11px; }
.calendar-search-button { display:inline-flex; min-height:42px; align-items:center; justify-content:center; gap:8px; margin:0; padding:8px 16px; color:#fff; font:600 .76rem Prompt,Inter,sans-serif; white-space:nowrap; background:linear-gradient(135deg,#16a34a,#3b82f6); border:0; border-radius:11px; box-shadow:0 7px 18px rgba(59,130,246,.16); cursor:pointer; transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease; }
.calendar-search-button i { width:14px; font-size:.76rem; text-align:center; }
.calendar-search-button:hover { transform:translateY(-1px); box-shadow:0 10px 22px rgba(59,130,246,.22); }
.calendar-search-button:focus-visible { outline:3px solid rgba(59,130,246,.22); outline-offset:2px; }
.calendar-search-button:disabled { opacity:.68; cursor:wait; transform:none; }
.calendar-card table { min-width:840px; }
.calendar-status-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.calendar-status-actions form { display:inline-flex; margin:0; }
.calendar-decision-button { display:inline-flex; min-height:34px; align-items:center; justify-content:center; gap:6px; padding:6px 10px; font:600 .7rem Prompt,Inter,sans-serif; white-space:nowrap; border-radius:9px; cursor:pointer; }
.calendar-decision-button.approve { color:#166534; background:#f0fdf4; border:1px solid #bbf7d0; }
.calendar-decision-button.reject { color:#b91c1c; background:#fef2f2; border:1px solid #fecaca; }
.calendar-decision-button:hover { filter:brightness(.98); transform:translateY(-1px); }
.calendar-card .status-pill { display:inline-flex; align-items:center; gap:5px; }
.compact-button { min-height:34px!important; padding:6px 10px!important; font-size:.72rem!important; }
.calendar-card .dataTables_wrapper,.request-list-card .dataTables_wrapper { padding:16px 20px 18px; }
.calendar-card .dataTables_wrapper table,.request-list-card .dataTables_wrapper table { margin-top:12px!important; margin-bottom:12px!important; }

@media(max-width:720px){
    .request-list-card .card-heading,.calendar-list-header{align-items:flex-start;padding:16px}
    .calendar-filter{grid-template-columns:1fr;padding:14px}
    .calendar-search-button{width:100%}
    .calendar-card .dataTables_wrapper,.request-list-card .dataTables_wrapper{padding:14px}
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}
