/* Salary management premium workspace */
.dph-page {
    --dph-ink: #10213d;
    --dph-muted: #687a92;
    --dph-line: #dce6f2;
    --dph-blue: #2563eb;
    --dph-navy: #0c2c58;
    --dph-teal: #0f9a8d;
    --dph-green: #12a56f;
    width: min(100%, 1500px);
    margin: 0 auto;
    color: var(--dph-ink);
}

.dph-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.dph-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #7d8fa6; font-size: .72rem; }
.dph-breadcrumb i { font-size: .5rem; }
.dph-breadcrumb strong { color: #344861; font-weight: 750; }
.dph-kicker { display: block; color: var(--dph-blue); font-size: .67rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.dph-page-header h1 { margin: 4px 0 5px; color: #0b1830; font-size: clamp(1.9rem, 2.5vw, 2.65rem); font-weight: 850; letter-spacing: -.045em; line-height: 1.05; }
.dph-page-header p { max-width: 720px; margin: 0; color: #61738c; font-size: .95rem; }
.dph-header-actions { flex: 0 0 auto; display: flex; gap: 9px; }
.dph-header-actions .btn { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; border-radius: 11px; font-size: .8rem; font-weight: 750; padding: 9px 14px; }

.dph-hero {
    position: relative;
    min-height: 222px;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
    align-items: center;
    gap: 32px;
    overflow: hidden;
    border: 1px solid rgba(32, 126, 157, .36);
    border-radius: 22px;
    background: linear-gradient(118deg, #0b2a55 0%, #11466f 53%, #0d7476 100%);
    box-shadow: 0 18px 42px rgba(20, 54, 94, .15);
    padding: 30px 34px;
}

.dph-hero::before,
.dph-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.dph-hero::before { width: 310px; height: 310px; top: -230px; left: 34%; box-shadow: 0 0 0 38px rgba(255,255,255,.018); }
.dph-hero::after { width: 260px; height: 260px; right: -160px; bottom: -185px; box-shadow: 0 0 0 32px rgba(69,236,210,.025); }
.dph-hero-copy { position: relative; z-index: 1; }
.dph-hero-label { display: inline-flex; align-items: center; gap: 7px; color: #6ee7d2; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.dph-hero-copy h2 { max-width: 680px; margin: 8px 0 8px; color: #fff !important; font-size: clamp(1.55rem, 2.35vw, 2.25rem); font-weight: 820; letter-spacing: -.04em; line-height: 1.08; }
.dph-hero-copy > p { max-width: 700px; margin: 0; color: rgba(232, 245, 255, .76) !important; font-size: .87rem; line-height: 1.65; }
.dph-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.dph-hero-pills span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(8,33,61,.25); color: rgba(246,251,255,.88); font-size: .67rem; font-weight: 700; padding: 7px 10px; }
.dph-hero-pills i { color: #64e7cf; }

.dph-hero-map { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; }
.dph-map-node { flex: 0 0 74px; min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(6,30,56,.54); box-shadow: inset 0 1px rgba(255,255,255,.06); color: #dcecff; }
.dph-map-node i { font-size: 1rem; color: #98b8e8; }
.dph-map-node span { font-size: .55rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.dph-map-node.main { border-color: rgba(93,157,255,.5); background: rgba(25,73,128,.64); }
.dph-map-node.main i { color: #6fa6ff; }
.dph-map-node.success { border-color: rgba(77,232,199,.44); background: rgba(15,111,104,.58); box-shadow: 0 0 0 6px rgba(73,224,195,.06); }
.dph-map-node.success i { color: #6df0d2; }
.dph-map-line { flex: 1 1 24px; max-width: 34px; height: 1px; background: linear-gradient(90deg, #477cad, #51d9c4); }

.dph-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.dph-metric { min-height: 112px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--dph-line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 9px 24px rgba(24,53,88,.06); padding: 17px; }
.dph-metric-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #edf4ff; color: #2869dc; }
.dph-metric.green .dph-metric-icon { background: #eaf9f3; color: #159669; }
.dph-metric.violet .dph-metric-icon { background: #f3edff; color: #7c4ce0; }
.dph-metric.amber .dph-metric-icon { background: #fff5df; color: #d78a10; }
.dph-metric > div > span { display: block; color: #6c7e95; font-size: .62rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dph-metric strong { display: block; margin: 2px 0 1px; color: #101d34; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.035em; }
.dph-metric small { color: #8090a4; font-size: .66rem; }

.dph-builder,
.dph-registry { margin-top: 14px; border: 1px solid var(--dph-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(24,53,88,.065); }
.dph-builder { padding: 20px; }
.dph-builder.is-editing { border-color: #b9cff5; box-shadow: 0 12px 28px rgba(37,99,235,.09); }
.dph-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.dph-section-heading > div:first-child { display: flex; align-items: center; gap: 11px; }
.dph-section-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #edf4ff; color: var(--dph-blue); }
.dph-section-heading h2 { margin: 2px 0 1px; color: var(--dph-ink); font-size: 1.05rem; font-weight: 800; }
.dph-section-heading p { margin: 0; color: #74869d; font-size: .72rem; }
.dph-cancel-edit { display: inline-flex; align-items: center; gap: 6px; color: #687b93; font-size: .74rem; font-weight: 700; text-decoration: none; }

.dph-form { display: grid; grid-template-columns: 1fr 1fr 1.35fr 210px auto; align-items: end; gap: 11px; border: 1px solid #dfe8f3; border-radius: 14px; background: #f8fafd; padding: 14px; }
.dph-validation { grid-column: 1 / -1; margin: 0; }
.dph-validation:empty { display: none; }
.dph-field { min-width: 0; }
.dph-field > span:first-child { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px 2px; color: #43566f; font-size: .68rem; font-weight: 780; }
.dph-field > span em { color: var(--dph-blue); font-size: .55rem; font-style: normal; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.dph-field > span small { color: #94a2b4; font-size: .6rem; font-weight: 650; }
.dph-input-wrap { position: relative; }
.dph-input-wrap > i { position: absolute; z-index: 2; top: 50%; left: 12px; transform: translateY(-50%); color: #91a4bc; font-size: .72rem; pointer-events: none; }
.dph-input-wrap .form-control { min-height: 42px; border-color: #d9e4f0; border-radius: 10px; background: #fff; color: #263a54; font-size: .78rem; padding-left: 35px; box-shadow: none; }
.dph-input-wrap .form-control:focus { border-color: #82aaf5; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.dph-field .text-danger { display: block; margin: 4px 0 0 2px; font-size: .62rem; }
.dph-status-toggle { min-height: 42px; display: flex; align-items: center; gap: 9px; border: 1px solid #d9e4f0; border-radius: 10px; background: #fff; cursor: pointer; padding: 7px 10px; }
.dph-status-toggle > input { position: absolute; opacity: 0; pointer-events: none; }
.dph-toggle-track { flex: 0 0 auto; width: 33px; height: 19px; position: relative; border-radius: 999px; background: #ccd7e5; transition: background .18s ease; }
.dph-toggle-track i { position: absolute; width: 13px; height: 13px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(30,50,75,.2); transition: transform .18s ease; }
.dph-status-toggle > input:checked + .dph-toggle-track { background: var(--dph-blue); }
.dph-status-toggle > input:checked + .dph-toggle-track i { transform: translateX(14px); }
.dph-status-toggle > span:last-child { min-width: 0; }
.dph-status-toggle strong { display: block; color: #344861; font-size: .68rem; }
.dph-status-toggle small { display: block; overflow: hidden; color: #8392a6; font-size: .57rem; white-space: nowrap; text-overflow: ellipsis; }
.dph-save { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; font-size: .73rem; font-weight: 800; white-space: nowrap; padding-inline: 15px; }

.dph-registry { overflow: hidden; }
.dph-registry .registry-heading { margin: 0; padding: 20px; }
.dph-registry-summary { display: flex; gap: 8px; }
.dph-registry-summary span { border: 1px solid #dce6f2; border-radius: 999px; background: #f8fafc; color: #667990; font-size: .64rem; padding: 6px 9px; }
.dph-registry-summary strong { color: var(--dph-blue); }
.dph-table-wrap { border-top: 1px solid #e1e9f2; }
.dph-table { min-width: 1120px; }
.dph-table thead th { border: 0; border-bottom: 1px solid #dce5f0; background: #f5f8fc; color: #52657d; font-size: .59rem; font-weight: 850; letter-spacing: .07em; padding: 11px 13px; text-transform: uppercase; }
.dph-table tbody td { border-color: #e8eef5; color: #43556c; font-size: .71rem; padding: 12px 13px; }
.dph-table tbody tr:last-child td { border-bottom: 0; }
.dph-table tbody tr:hover { background: #fbfdff; }
.dph-department-cell { min-width: 220px; display: flex; align-items: center; gap: 10px; }
.dph-department-cell > span { flex: 0 0 auto; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #dfebff, #eff5ff); color: var(--dph-blue); font-weight: 850; }
.dph-department-cell strong { display: block; color: #1c304a; font-size: .76rem; }
.dph-department-cell small { display: block; max-width: 240px; margin-top: 2px; overflow: hidden; color: #7d8ea3; font-size: .62rem; white-space: nowrap; text-overflow: ellipsis; }
.dph-manager, .dph-gap { display: inline-flex; align-items: center; gap: 6px; color: #40536b; font-weight: 700; }
.dph-manager i { color: #6985a6; }
.dph-gap { border-radius: 999px; background: #fff6e8; color: #b76e0e; font-size: .62rem; padding: 5px 8px; }
.dph-staff-count strong { display: block; color: #1d3350; font-size: .88rem; }
.dph-staff-count small { display: block; color: #8291a5; font-size: .58rem; }
.dph-schedule { min-width: 205px; }
.dph-schedule > span { display: block; color: #23415e; font-size: .67rem; font-weight: 750; }
.dph-schedule > span i { margin-right: 6px; color: var(--dph-green); }
.dph-schedule > strong { display: block; margin-top: 2px; color: #435870; font-size: .68rem; }
.dph-schedule > small { display: block; margin-top: 1px; color: #8493a7; font-size: .58rem; }
.dph-schedule.fallback > span i { color: #7187a0; }
.dph-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: .61rem; font-weight: 800; padding: 5px 8px; }
.dph-status i { width: 5px; height: 5px; border-radius: 50%; }
.dph-status.active { border: 1px solid #b9e8d6; background: #effaf6; color: #12825c; }
.dph-status.active i { background: #13a66f; box-shadow: 0 0 0 3px rgba(19,166,111,.1); }
.dph-status.inactive { border: 1px solid #d7dfe8; background: #f3f5f7; color: #69788a; }
.dph-status.inactive i { background: #8a98a8; }
.dph-date { color: #6f8095; font-size: .66rem; white-space: nowrap; }
.dph-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.dph-actions form { margin: 0; }
.dph-icon-action { width: 31px; height: 31px; display: inline-grid; place-items: center; border: 1px solid #d9e3ee; border-radius: 8px; background: #fff; color: #637890; font-size: .65rem; text-decoration: none; transition: .15s ease; }
.dph-icon-action:hover { border-color: #8aaceb; background: #eef4ff; color: var(--dph-blue); transform: translateY(-1px); }
.dph-icon-action.primary { border-color: #c4d6f8; background: #f1f6ff; color: var(--dph-blue); }
.dph-icon-action.danger { color: #d74c58; }
.dph-icon-action.success { color: #168a63; }

.dph-empty { min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-top: 1px solid #e1e9f2; background: radial-gradient(circle at 50% 50%, rgba(37,99,235,.055), transparent 31%); text-align: center; padding: 35px 20px; }
.dph-empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid #cdddf5; border-radius: 16px; background: #edf4ff; color: var(--dph-blue); font-size: 1.15rem; box-shadow: 0 10px 25px rgba(37,99,235,.1); }
.dph-empty h3 { margin: 4px 0 5px; color: #152b47; font-size: 1.13rem; font-weight: 800; }
.dph-empty > p { max-width: 520px; margin: 0; color: #74869c; font-size: .74rem; }
.dph-empty-steps { display: flex; align-items: center; gap: 0; margin-top: 20px; }
.dph-empty-steps span { position: relative; display: flex; align-items: center; gap: 7px; color: #51667f; font-size: .66rem; font-weight: 750; }
.dph-empty-steps span + span { margin-left: 38px; }
.dph-empty-steps span + span::before { content: ""; position: absolute; right: calc(100% + 8px); width: 22px; height: 1px; background: #bfcde0; }
.dph-empty-steps i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #e8f0ff; color: var(--dph-blue); font-size: .59rem; font-style: normal; }

@media (max-width: 1280px) {
    .dph-hero { grid-template-columns: minmax(0, 1fr) 410px; }
    .dph-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dph-field.wide { grid-column: 1 / -1; }
    .dph-status-toggle { grid-column: 1; }
    .dph-save { grid-column: 2; }
}

@media (max-width: 991.98px) {
    .dph-page-header { align-items: flex-start; flex-direction: column; }
    .dph-hero { grid-template-columns: 1fr; }
    .dph-hero-map { justify-content: flex-start; }
    .dph-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .dph-page-header h1 { font-size: 2rem; }
    .dph-header-actions { width: 100%; flex-wrap: wrap; }
    .dph-header-actions .btn { flex: 1 1 180px; }
    .dph-hero { min-height: auto; border-radius: 18px; padding: 24px 20px; }
    .dph-hero-map { overflow-x: auto; padding-bottom: 4px; }
    .dph-map-node { flex-basis: 68px; }
    .dph-section-heading { align-items: flex-start; flex-direction: column; }
    .dph-registry-summary { flex-wrap: wrap; }
}

@media (max-width: 575.98px) {
    .dph-metrics, .dph-form { grid-template-columns: 1fr; }
    .dph-field.wide, .dph-status-toggle, .dph-save { grid-column: 1; }
    .dph-metric { min-height: 98px; }
    .dph-builder { padding: 15px; }
    .dph-empty-steps { align-items: flex-start; flex-direction: column; gap: 10px; }
    .dph-empty-steps span + span { margin-left: 0; }
    .dph-empty-steps span + span::before { display: none; }
}

/* Department schedule rules — Shift Policy Studio */
.dsr-page { --dsr-blue: #2563eb; --dsr-navy: #0b2848; --dsr-teal: #0f9f8f; --dsr-border: #dbe5f0; color: #20354f; padding-bottom: 28px; }
.dsr-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.dsr-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #73859b; font-size: .66rem; font-weight: 700; }
.dsr-breadcrumb a { color: var(--dsr-blue); text-decoration: none; }
.dsr-breadcrumb i { font-size: .48rem; }
.dsr-eyebrow, .dsr-section-kicker { display: block; margin: 0 0 5px; color: var(--dsr-blue); font-size: .59rem; font-weight: 850; letter-spacing: .11em; }
.dsr-page-header h1 { margin: 0; color: #0d203a; font-size: 2.25rem; font-weight: 850; letter-spacing: -.045em; }
.dsr-page-header > div > p:last-child { margin: 6px 0 0; color: #6f8197; font-size: .8rem; }
.dsr-header-actions { display: flex; gap: 8px; }
.dsr-header-actions .btn { border-radius: 10px; font-size: .7rem; font-weight: 750; padding: 9px 13px; }
.dsr-header-actions i { margin-right: 5px; }

.dsr-hero { position: relative; isolation: isolate; min-height: 218px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(430px, .75fr); align-items: center; gap: 38px; overflow: hidden; border: 1px solid rgba(47, 208, 185, .2); border-radius: 22px; background: linear-gradient(118deg, #0b2748 0%, #103c5a 60%, #0b6d72 115%); box-shadow: 0 20px 45px rgba(10, 39, 72, .15); padding: 32px 36px; }
.dsr-hero::before, .dsr-hero::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(94, 234, 212, .12); border-radius: 50%; }
.dsr-hero::before { width: 280px; height: 280px; right: 6%; top: -150px; }
.dsr-hero::after { width: 190px; height: 190px; right: 11%; top: -105px; }
.dsr-hero-label { color: #6ee7d8; font-size: .59rem; font-weight: 850; letter-spacing: .1em; }
.dsr-hero-label i { margin-right: 7px; }
.dsr-hero-copy h2 { max-width: 720px; margin: 10px 0 8px; color: #fff; font-size: 1.64rem; font-weight: 830; letter-spacing: -.035em; }
.dsr-hero-copy > p { max-width: 700px; margin: 0; color: #bdd0e1; font-size: .76rem; line-height: 1.65; }
.dsr-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.dsr-hero-tags span { border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.07); color: #dbe9f4; font-size: .61rem; font-weight: 700; padding: 7px 9px; }
.dsr-hero-tags i { margin-right: 5px; color: #75e7d6; }
.dsr-shift-map { display: grid; grid-template-columns: auto minmax(100px, 1fr) auto; align-items: center; gap: 12px; }
.dsr-time-node { min-width: 92px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(5,28,54,.45); text-align: center; padding: 15px 12px; }
.dsr-time-node span { display: block; color: #91a9be; font-size: .49rem; font-weight: 850; letter-spacing: .08em; }
.dsr-time-node strong { display: block; margin-top: 5px; color: #fff; font-size: 1.05rem; }
.dsr-time-node.accent { border-color: rgba(64,224,199,.35); box-shadow: 0 0 0 5px rgba(37,201,177,.06); }
.dsr-time-node.accent strong { color: #6ee7d8; }
.dsr-shift-line { text-align: center; }
.dsr-shift-line > span { position: relative; display: block; height: 2px; background: rgba(255,255,255,.14); }
.dsr-shift-line > span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--dsr-progress); background: linear-gradient(90deg, #60a5fa, #5eead4); }
.dsr-shift-line > span::after { content: ""; position: absolute; right: -2px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 5px rgba(94,234,212,.12); }
.dsr-shift-line small { display: block; margin-top: 9px; color: #95adbf; font-size: .53rem; }
.dsr-productivity { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 5px; color: #c7d8e6; }
.dsr-productivity > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(94,234,212,.1); color: #5eead4; font-size: .7rem; }
.dsr-productivity strong, .dsr-productivity span { display: block; }
.dsr-productivity strong { color: #fff; font-size: .75rem; }.dsr-productivity span { font-size: .53rem; }

.dsr-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 14px 0; }
.dsr-metric { min-height: 94px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--dsr-border); border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(40, 61, 85, .055); padding: 15px; }
.dsr-metric > i { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: .82rem; }
.dsr-metric.blue > i { background: #eaf1ff; color: #2563eb; }.dsr-metric.green > i { background: #e8f8f1; color: #15966b; }.dsr-metric.teal > i { background: #e6f8f7; color: #0f948b; }.dsr-metric.violet > i { background: #f1ebff; color: #7c4fe0; }
.dsr-metric span, .dsr-metric small, .dsr-metric strong { display: block; }
.dsr-metric span { color: #71839a; font-size: .54rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.dsr-metric strong { margin-top: 2px; color: #142942; font-size: 1.13rem; line-height: 1.05; }
.dsr-metric small { margin-top: 4px; color: #8a99aa; font-size: .54rem; }

.dsr-filter { display: grid; grid-template-columns: minmax(205px, .55fr) minmax(280px, 1fr) auto auto; align-items: end; gap: 12px; margin-bottom: 14px; border: 1px solid var(--dsr-border); border-radius: 15px; background: #fff; padding: 14px 16px; }
.dsr-filter > div > strong { display: block; color: #1a304c; font-size: .78rem; }.dsr-filter label > span { display: block; margin-bottom: 5px; color: #60738b; font-size: .6rem; font-weight: 750; }
.dsr-filter .form-select { min-height: 38px; border-radius: 9px; font-size: .68rem; }.dsr-filter .btn { min-height: 38px; border-radius: 9px; font-size: .68rem; font-weight: 750; padding-inline: 18px; }
.dsr-reset { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d7e1ec; border-radius: 9px; color: #6c7f95; text-decoration: none; }

.dsr-builder, .dsr-registry { overflow: hidden; margin-bottom: 14px; border: 1px solid var(--dsr-border); border-radius: 17px; background: #fff; box-shadow: 0 10px 27px rgba(29,52,80,.05); }
.dsr-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e5ecf4; padding: 20px 22px; }
.dsr-section-heading.compact { align-items: center; }.dsr-section-heading h2 { margin: 0; color: #122943; font-size: 1.08rem; font-weight: 820; }.dsr-section-heading p { margin: 4px 0 0; color: #7c8da1; font-size: .66rem; }
.dsr-builder-state, .dsr-registry-count { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d6e3f1; border-radius: 9px; background: #f8fbff; color: #5b718b; font-size: .61rem; font-weight: 750; padding: 8px 10px; }
.dsr-builder-state i { width: 7px; height: 7px; border-radius: 50%; background: #f0a51c; box-shadow: 0 0 0 4px rgba(240,165,28,.1); }.dsr-registry-count i { color: var(--dsr-blue); }
.dsr-form-section { padding: 21px 22px; }.dsr-form-section + .dsr-form-section { border-top: 1px solid #e7edf4; }
.dsr-form-intro { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }.dsr-form-intro > span { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #edf3ff; color: var(--dsr-blue); font-size: .57rem; font-weight: 850; }.dsr-form-intro h3 { margin: 0; color: #172d48; font-size: .86rem; font-weight: 820; }.dsr-form-intro p { margin: 3px 0 0; color: #8594a7; font-size: .61rem; }.dsr-working-count { margin-left: auto; border-radius: 999px; background: #eaf8f3; color: #14815f; font-size: .59rem; padding: 6px 9px; }
.dsr-fields { display: grid; gap: 12px; }.dsr-fields.identity { grid-template-columns: 1.2fr 1.2fr .8fr .8fr; }.dsr-fields.shift { grid-template-columns: repeat(5, minmax(0, 1fr)); }.dsr-fields.governance { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dsr-field > span { display: block; margin-bottom: 6px; color: #4f6279; font-size: .61rem; font-weight: 760; }.dsr-field > span em { float: right; color: #9aa7b7; font-size: .51rem; font-style: normal; font-weight: 650; }.dsr-field .form-control, .dsr-field .form-select { min-height: 40px; border-color: #d9e3ee; border-radius: 9px; color: #203750; font-size: .69rem; }.dsr-field .form-control:focus, .dsr-field .form-select:focus { border-color: #7da4ef; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }.dsr-field > small { display: block; margin-top: 3px; font-size: .53rem; }
.dsr-switch-row { display: flex; align-items: stretch; gap: 10px; margin-top: 13px; }.dsr-switch { min-width: 225px; display: flex; align-items: center; gap: 9px; border: 1px solid #e0e8f1; border-radius: 10px; background: #f9fbfd; padding: 10px 12px; }.dsr-switch input { margin: 0; }.dsr-switch strong, .dsr-switch small { display: block; }.dsr-switch strong { color: #334b67; font-size: .65rem; }.dsr-switch small { margin-top: 2px; color: #8595a8; font-size: .53rem; }.dsr-window-summary { display: flex; align-items: center; gap: 9px; margin-left: auto; border: 1px solid #cdece4; border-radius: 10px; background: #f1fbf8; padding: 9px 12px; }.dsr-window-summary i { color: var(--dsr-teal); }.dsr-window-summary span, .dsr-window-summary strong { display: block; }.dsr-window-summary span { color: #71887f; font-size: .51rem; }.dsr-window-summary strong { color: #18775f; font-size: .69rem; }
.dsr-week-grid { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 3px; }.dsr-day { min-width: 130px; border: 1px solid #dde6ef; border-radius: 12px; background: #f8fafc; padding: 11px; }.dsr-day.working { border-color: #c5d8f8; background: linear-gradient(180deg, #f8fbff, #fff); box-shadow: inset 0 3px 0 #4d7fe5; }.dsr-day-head { display: flex; align-items: center; justify-content: space-between; }.dsr-day-head > span { color: #8292a6; font-size: .5rem; font-weight: 850; letter-spacing: .08em; }.dsr-day-head label { display: flex; align-items: center; gap: 3px; margin: 0; }.dsr-day-head label em { display: none; }.dsr-day > strong { display: block; margin: 9px 0 8px; color: #233a55; font-size: .68rem; }.dsr-half { display: flex; align-items: center; gap: 5px; color: #6f8196; font-size: .56rem; }.dsr-overrides { display: grid; gap: 6px; margin-top: 10px; }.dsr-overrides span { display: block; margin-bottom: 3px; color: #8b9aac; font-size: .47rem; font-weight: 700; text-transform: uppercase; }.dsr-overrides .form-control { min-height: 31px; border-radius: 7px; font-size: .58rem; padding: 4px 6px; }
.dsr-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #dfe8f2; background: #f8fafc; padding: 15px 22px; }.dsr-form-actions > div:first-child { display: flex; align-items: center; gap: 9px; }.dsr-form-actions > div:first-child i { color: var(--dsr-teal); }.dsr-form-actions strong, .dsr-form-actions small { display: block; }.dsr-form-actions strong { color: #314963; font-size: .62rem; }.dsr-form-actions small { color: #8997a8; font-size: .51rem; }.dsr-form-actions > div:last-child { display: flex; gap: 7px; }.dsr-form-actions .btn { border-radius: 9px; font-size: .67rem; font-weight: 760; padding: 9px 14px; }

.dsr-empty { min-height: 235px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(37,99,235,.055), transparent 35%); text-align: center; padding: 30px 20px; }.dsr-empty > span { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid #cbdcf5; border-radius: 15px; background: #eef4ff; color: var(--dsr-blue); font-size: 1rem; }.dsr-empty h3 { margin: 12px 0 4px; color: #17304e; font-size: 1rem; }.dsr-empty p { max-width: 520px; margin: 0; color: #7b8ca1; font-size: .68rem; }.dsr-empty > div { display: flex; align-items: center; gap: 8px; margin-top: 17px; color: #5d7189; font-size: .59rem; font-weight: 720; }.dsr-empty em { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: #e7effe; color: var(--dsr-blue); font-size: .52rem; font-style: normal; }.dsr-empty > div > i { width: 22px; height: 1px; background: #c3d0df; }
.dsr-table { min-width: 1220px; }.dsr-table thead th { border: 0; border-bottom: 1px solid #dae4ef; background: #f5f8fc; color: #53667d; font-size: .55rem; font-weight: 850; letter-spacing: .06em; padding: 11px 12px; text-transform: uppercase; }.dsr-table tbody td { border-color: #e8eef5; color: #41566f; font-size: .66rem; padding: 12px; }.dsr-department { display: flex; align-items: center; gap: 8px; }.dsr-department > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #eaf1ff; color: var(--dsr-blue); font-weight: 850; }.dsr-policy-name, .dsr-policy-type, .dsr-date { display: block; }.dsr-policy-name { color: #1c334f; }.dsr-policy-type, .dsr-date { margin-top: 3px; color: #7f8fa2; font-size: .55rem; }.dsr-policy-type i { margin-right: 4px; color: #6d8db5; }.dsr-shift-value { color: #204060; font-size: .68rem; white-space: nowrap; }.dsr-rule-chips { display: flex; flex-wrap: wrap; gap: 4px; }.dsr-rule-chips span { border-radius: 6px; background: #f0f4f8; color: #5e7188; font-size: .5rem; font-weight: 720; padding: 4px 5px; }.dsr-days { display: block; max-width: 165px; color: #5f7289; font-size: .56rem; }.dsr-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: .54rem; font-weight: 800; padding: 5px 7px; }.dsr-status i { width: 5px; height: 5px; border-radius: 50%; }.dsr-status.active { background: #eaf9f3; color: #11815c; }.dsr-status.active i { background: #16a673; }.dsr-status.inactive { background: #f0f2f5; color: #6f7d8d; }.dsr-status.inactive i { background: #8492a2; }.dsr-actions { display: flex; justify-content: flex-end; gap: 5px; }.dsr-actions form { margin: 0; }.dsr-actions a, .dsr-actions button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d5e0eb; border-radius: 8px; background: #fff; color: #59718d; font-size: .58rem; text-decoration: none; }.dsr-actions button.danger { color: #d8505d; }.dsr-actions button.success { color: #14835e; }

@media (max-width: 1280px) { .dsr-hero { grid-template-columns: minmax(0, 1fr) 390px; }.dsr-fields.identity { grid-template-columns: repeat(2, 1fr); }.dsr-fields.shift { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px) { .dsr-page-header, .dsr-section-heading { align-items: flex-start; flex-direction: column; }.dsr-hero { grid-template-columns: 1fr; }.dsr-metrics { grid-template-columns: repeat(2, 1fr); }.dsr-filter { grid-template-columns: 1fr 1fr auto; }.dsr-filter > div { grid-column: 1 / -1; }.dsr-fields.shift, .dsr-fields.governance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) { .dsr-page-header h1 { font-size: 1.9rem; }.dsr-hero { min-height: auto; padding: 25px 20px; }.dsr-shift-map { max-width: 480px; }.dsr-filter { grid-template-columns: 1fr auto; }.dsr-filter > div, .dsr-filter label { grid-column: 1 / -1; }.dsr-fields.identity { grid-template-columns: 1fr; }.dsr-switch-row, .dsr-form-actions { align-items: stretch; flex-direction: column; }.dsr-window-summary { margin-left: 0; }.dsr-form-actions > div:last-child { justify-content: flex-end; } }
@media (max-width: 575.98px) { .dsr-header-actions { width: 100%; flex-wrap: wrap; }.dsr-header-actions .btn { flex: 1 1 150px; }.dsr-hero-copy h2 { font-size: 1.35rem; }.dsr-shift-map { grid-template-columns: 1fr; }.dsr-shift-line { display: none; }.dsr-productivity { grid-column: 1; }.dsr-metrics, .dsr-fields.shift, .dsr-fields.governance { grid-template-columns: 1fr; }.dsr-form-section, .dsr-section-heading { padding: 17px 15px; }.dsr-switch { min-width: 0; }.dsr-form-actions { padding: 14px 15px; }.dsr-form-actions > div:last-child { flex-direction: column; }.dsr-empty > div { align-items: flex-start; flex-direction: column; }.dsr-empty > div > i { display: none; } }

/* Staff — People Operations Hub */
.stf-page { --stf-blue: #2563eb; --stf-green: #119b72; --stf-border: #dbe5ef; color: #20364f; padding-bottom: 28px; }
.stf-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.stf-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #73859b; font-size: .66rem; font-weight: 700; }.stf-breadcrumb a { color: var(--stf-blue); text-decoration: none; }.stf-breadcrumb i { font-size: .48rem; }
.stf-eyebrow, .stf-section-kicker { display: block; margin: 0 0 5px; color: var(--stf-blue); font-size: .59rem; font-weight: 850; letter-spacing: .11em; }.stf-page-header h1 { margin: 0; color: #0d203a; font-size: 2.25rem; font-weight: 850; letter-spacing: -.045em; }.stf-page-header > div > p:last-child { margin: 6px 0 0; color: #6f8197; font-size: .8rem; }.stf-header-actions { display: flex; gap: 8px; }.stf-header-actions .btn { border-radius: 10px; font-size: .7rem; font-weight: 750; padding: 9px 13px; }.stf-header-actions i { margin-right: 5px; }
.stf-hero { position: relative; isolation: isolate; min-height: 220px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(440px, .8fr); align-items: center; gap: 42px; overflow: hidden; border: 1px solid rgba(48,200,180,.18); border-radius: 22px; background: linear-gradient(117deg, #0b2848, #143e5d 61%, #0c6b70 120%); box-shadow: 0 20px 45px rgba(10,39,72,.15); padding: 32px 36px; }.stf-hero::before { content: ""; position: absolute; z-index: -1; width: 350px; height: 350px; right: -85px; top: -200px; border: 1px solid rgba(94,234,212,.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(94,234,212,.025), 0 0 0 90px rgba(94,234,212,.018); }.stf-hero-label { color: #6ee7d8; font-size: .59rem; font-weight: 850; letter-spacing: .1em; }.stf-hero-label i { margin-right: 7px; }.stf-hero-copy h2 { max-width: 700px; margin: 10px 0 8px; color: #fff; font-size: 1.65rem; font-weight: 830; letter-spacing: -.035em; }.stf-hero-copy > p { max-width: 690px; margin: 0; color: #bdd0e1; font-size: .76rem; line-height: 1.65; }.stf-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }.stf-hero-tags span { border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.07); color: #dbe9f4; font-size: .61rem; font-weight: 700; padding: 7px 9px; }.stf-hero-tags i { margin-right: 5px; color: #75e7d6; }
.stf-identity-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; }.stf-flow-node { min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(5,28,54,.43); color: #c6d6e4; padding: 13px 9px; }.stf-flow-node i { font-size: .87rem; }.stf-flow-node span { font-size: .48rem; font-weight: 850; letter-spacing: .06em; }.stf-flow-node.active { border-color: rgba(94,234,212,.35); color: #68e5d2; box-shadow: 0 0 0 5px rgba(94,234,212,.06); }.stf-flow-line { height: 1px; background: linear-gradient(90deg, #4c87bd, #5eead4); }.stf-flow-caption { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 7px; color: #a9bed0; }.stf-flow-caption i { color: #5eead4; font-size: .6rem; }.stf-flow-caption strong { color: #fff; font-size: .72rem; }.stf-flow-caption span { font-size: .53rem; }
.stf-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 14px 0; }.stf-metric { min-height: 94px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--stf-border); border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(40,61,85,.055); padding: 15px; }.stf-metric > i { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: .82rem; }.stf-metric.blue > i { background: #eaf1ff; color: #2563eb; }.stf-metric.green > i { background: #e8f8f1; color: #15966b; }.stf-metric.teal > i { background: #e6f8f7; color: #0f948b; }.stf-metric.violet > i { background: #f1ebff; color: #7c4fe0; }.stf-metric span, .stf-metric small, .stf-metric strong { display: block; }.stf-metric span { color: #71839a; font-size: .54rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.stf-metric strong { margin-top: 2px; color: #142942; font-size: 1.13rem; line-height: 1.05; }.stf-metric small { margin-top: 4px; color: #8a99aa; font-size: .54rem; }
.stf-builder, .stf-directory { overflow: hidden; margin-bottom: 14px; border: 1px solid var(--stf-border); border-radius: 17px; background: #fff; box-shadow: 0 10px 27px rgba(29,52,80,.05); }.stf-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e5ecf4; padding: 20px 22px; }.stf-section-heading.compact { align-items: center; }.stf-section-heading h2 { margin: 0; color: #122943; font-size: 1.08rem; font-weight: 820; }.stf-section-heading p { margin: 4px 0 0; color: #7c8da1; font-size: .66rem; }.stf-builder-state, .stf-directory-count { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d6e3f1; border-radius: 9px; background: #f8fbff; color: #5b718b; font-size: .61rem; font-weight: 750; padding: 8px 10px; }.stf-builder-state i { width: 7px; height: 7px; border-radius: 50%; background: #19a977; box-shadow: 0 0 0 4px rgba(25,169,119,.1); }.stf-directory-count i { color: var(--stf-blue); }
.stf-validation:empty { display: none; }.stf-validation { margin: 14px 22px 0; font-size: .65rem; }.stf-form-section { padding: 21px 22px; }.stf-form-section + .stf-form-section { border-top: 1px solid #e7edf4; }.stf-form-intro { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }.stf-form-intro > span { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #edf3ff; color: var(--stf-blue); font-size: .57rem; font-weight: 850; }.stf-form-intro h3 { margin: 0; color: #172d48; font-size: .86rem; font-weight: 820; }.stf-form-intro p { margin: 3px 0 0; color: #8594a7; font-size: .61rem; }
.stf-fields { display: grid; gap: 12px; }.stf-fields.identity { grid-template-columns: 1.2fr 1fr .8fr; }.stf-fields.placement { grid-template-columns: 1fr 1fr .75fr 1fr; }.stf-field > span { display: block; margin-bottom: 6px; color: #4f6279; font-size: .61rem; font-weight: 760; }.stf-field > span em { float: right; color: #9aa7b7; font-size: .5rem; font-style: normal; font-weight: 650; }.stf-field .form-control, .stf-field .form-select { min-height: 40px; border-color: #d9e3ee; border-radius: 9px; color: #203750; font-size: .69rem; }.stf-field .form-control:focus, .stf-field .form-select:focus { border-color: #7da4ef; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }.stf-field > small { display: block; margin-top: 4px; color: #8a99aa; font-size: .51rem; }.stf-input-icon { position: relative; }.stf-input-icon > i { position: absolute; z-index: 1; left: 12px; top: 50%; color: #8195ab; font-size: .65rem; transform: translateY(-50%); }.stf-input-icon .form-control { padding-left: 34px; }.stf-field.hikvision .stf-input-icon > i { color: #1d8e81; }.stf-field.hikvision .form-control { border-color: #cbe5e1; background: #f9fdfc; }
.stf-compensation-grid { display: grid; grid-template-columns: .8fr 1fr 1fr 1.25fr; align-items: stretch; gap: 12px; }.stf-money-input { position: relative; }.stf-money-input b { position: absolute; z-index: 1; left: 11px; top: 50%; color: #43617f; font-size: .62rem; transform: translateY(-50%); }.stf-money-input .form-control { padding-left: 35px; }.stf-active-toggle, .stf-payroll-note { display: flex; align-items: center; gap: 9px; border: 1px solid #dde6ef; border-radius: 10px; background: #f9fbfd; padding: 10px 12px; }.stf-active-toggle input { margin: 0; }.stf-active-toggle strong, .stf-active-toggle small, .stf-payroll-note strong, .stf-payroll-note small { display: block; }.stf-active-toggle strong, .stf-payroll-note strong { color: #334b67; font-size: .65rem; }.stf-active-toggle small, .stf-payroll-note small { margin-top: 2px; color: #8595a8; font-size: .51rem; }.stf-payroll-note { border-color: #cce9e2; background: #f2fbf8; }.stf-payroll-note > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #ddf4ec; color: var(--stf-green); font-size: .7rem; }
.stf-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #dfe8f2; background: #f8fafc; padding: 15px 22px; }.stf-form-actions > div:first-child { display: flex; align-items: center; gap: 9px; }.stf-form-actions > div:first-child i { color: var(--stf-blue); }.stf-form-actions strong, .stf-form-actions small { display: block; }.stf-form-actions strong { color: #314963; font-size: .62rem; }.stf-form-actions small { color: #8997a8; font-size: .51rem; }.stf-form-actions > div:last-child { display: flex; gap: 7px; }.stf-form-actions .btn { border-radius: 9px; font-size: .67rem; font-weight: 760; padding: 9px 14px; }
.stf-empty { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(37,99,235,.055), transparent 35%); text-align: center; padding: 30px 20px; }.stf-empty > span { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #cbdcf5; border-radius: 16px; background: #eef4ff; color: var(--stf-blue); font-size: 1.05rem; }.stf-empty h3 { margin: 12px 0 4px; color: #17304e; font-size: 1rem; }.stf-empty p { max-width: 540px; margin: 0; color: #7b8ca1; font-size: .68rem; }.stf-empty > div { display: flex; align-items: center; gap: 8px; margin-top: 17px; color: #5d7189; font-size: .59rem; font-weight: 720; }.stf-empty em { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: #e7effe; color: var(--stf-blue); font-size: .52rem; font-style: normal; }.stf-empty > div > i { width: 22px; height: 1px; background: #c3d0df; }
.stf-table { min-width: 1080px; }.stf-table thead th { border: 0; border-bottom: 1px solid #dae4ef; background: #f5f8fc; color: #53667d; font-size: .55rem; font-weight: 850; letter-spacing: .06em; padding: 11px 13px; text-transform: uppercase; }.stf-table tbody td { border-color: #e8eef5; color: #41566f; font-size: .66rem; padding: 12px 13px; }.stf-table tbody tr:hover { background: #fbfdff; }.stf-person { min-width: 235px; display: flex; align-items: center; gap: 10px; }.stf-person > span { flex: 0 0 37px; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #dceaff, #eef4ff); color: var(--stf-blue); font-size: .65rem; font-weight: 850; }.stf-person strong, .stf-person small, .stf-person em { display: block; }.stf-person strong { color: #1b334f; font-size: .72rem; }.stf-person small { margin-top: 2px; color: #6f8299; font-size: .56rem; }.stf-person em { margin-top: 2px; color: #93a0b0; font-size: .52rem; font-style: normal; }.stf-department, .stf-unassigned { display: inline-flex; align-items: center; gap: 6px; color: #496078; font-weight: 700; }.stf-department i { color: #6688b1; }.stf-unassigned { border-radius: 999px; background: #fff6e8; color: #ae6a14; font-size: .55rem; padding: 5px 7px; }.stf-link-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: .55rem; font-weight: 760; padding: 5px 7px; }.stf-link-status.linked { background: #e9f8f4; color: #137d63; }.stf-link-status.missing { background: #f1f3f6; color: #718093; }.stf-salary, .stf-salary-type { display: block; }.stf-salary { color: #183651; font-size: .7rem; }.stf-salary-type { margin-top: 2px; color: #8998aa; font-size: .53rem; }.stf-date { color: #6b7f96; white-space: nowrap; }.stf-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: .54rem; font-weight: 800; padding: 5px 7px; }.stf-status i { width: 5px; height: 5px; border-radius: 50%; }.stf-status.active { background: #eaf9f3; color: #11815c; }.stf-status.active i { background: #16a673; box-shadow: 0 0 0 3px rgba(22,166,115,.1); }.stf-status.inactive { background: #f0f2f5; color: #6f7d8d; }.stf-status.inactive i { background: #8492a2; }.stf-actions { display: flex; justify-content: flex-end; gap: 5px; }.stf-actions form { margin: 0; }.stf-actions a, .stf-actions button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d5e0eb; border-radius: 8px; background: #fff; color: #59718d; font-size: .58rem; text-decoration: none; }.stf-actions a:hover { border-color: #a7c0eb; background: #eef4ff; color: var(--stf-blue); }.stf-actions button.danger { color: #d8505d; }.stf-actions button.success { color: #14835e; }
@media (max-width: 1280px) { .stf-hero { grid-template-columns: minmax(0,1fr) 410px; }.stf-fields.placement { grid-template-columns: repeat(2, 1fr); }.stf-compensation-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991.98px) { .stf-page-header, .stf-section-heading { align-items: flex-start; flex-direction: column; }.stf-hero { grid-template-columns: 1fr; }.stf-identity-flow { max-width: 500px; }.stf-metrics { grid-template-columns: repeat(2, 1fr); }.stf-fields.identity { grid-template-columns: repeat(2, 1fr); }.stf-field.wide { grid-column: 1 / -1; } }
@media (max-width: 767.98px) { .stf-page-header h1 { font-size: 1.9rem; }.stf-hero { min-height: auto; padding: 25px 20px; }.stf-fields.placement, .stf-compensation-grid { grid-template-columns: 1fr; }.stf-form-actions { align-items: stretch; flex-direction: column; }.stf-form-actions > div:last-child { justify-content: flex-end; } }
@media (max-width: 575.98px) { .stf-header-actions { width: 100%; flex-wrap: wrap; }.stf-header-actions .btn { flex: 1 1 150px; }.stf-hero-copy h2 { font-size: 1.35rem; }.stf-identity-flow { grid-template-columns: 1fr; }.stf-flow-line { display: none; }.stf-metrics, .stf-fields.identity { grid-template-columns: 1fr; }.stf-field.wide { grid-column: auto; }.stf-form-section, .stf-section-heading { padding: 17px 15px; }.stf-form-actions { padding: 14px 15px; }.stf-form-actions > div:last-child { flex-direction: column; }.stf-empty > div { align-items: flex-start; flex-direction: column; }.stf-empty > div > i { display: none; } }

/* Attendance Sync — Attendance Control Center */
.ats-page { --ats-blue: #2563eb; --ats-teal: #0f9c91; --ats-green: #14976c; --ats-amber: #dc8c18; --ats-red: #d9515e; --ats-border: #dbe5ef; color: #20364f; padding-bottom: 30px; }
.ats-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.ats-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #73859b; font-size: .66rem; font-weight: 700; }.ats-breadcrumb a { color: var(--ats-blue); text-decoration: none; }.ats-breadcrumb i { font-size: .48rem; }
.ats-eyebrow, .ats-section-kicker { display: block; margin: 0 0 5px; color: var(--ats-blue); font-size: .59rem; font-weight: 850; letter-spacing: .11em; }.ats-page-header h1 { margin: 0; color: #0d203a; font-size: 2.25rem; font-weight: 850; letter-spacing: -.045em; }.ats-page-header > div > p:last-child { margin: 6px 0 0; color: #6f8197; font-size: .8rem; }
.ats-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.ats-header-actions form { margin: 0; }.ats-header-actions .btn { min-height: 38px; border-radius: 10px; font-size: .67rem; font-weight: 760; padding: 8px 12px; }.ats-header-actions .btn i { margin-right: 5px; }.ats-header-actions .btn span { min-width: 18px; display: inline-grid; place-items: center; margin-left: 4px; border-radius: 999px; background: rgba(220,140,24,.12); padding: 2px 5px; }

.ats-hero { position: relative; isolation: isolate; min-height: 230px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(455px, .85fr); align-items: center; gap: 44px; overflow: hidden; border: 1px solid rgba(48,200,180,.18); border-radius: 22px; background: linear-gradient(117deg, #092847, #123c5d 60%, #0b696d 118%); box-shadow: 0 20px 45px rgba(10,39,72,.15); padding: 34px 36px; }.ats-hero::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -90px; top: -205px; border: 1px solid rgba(94,234,212,.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(94,234,212,.025), 0 0 0 90px rgba(94,234,212,.018); }
.ats-hero-label { color: #6ee7d8; font-size: .59rem; font-weight: 850; letter-spacing: .1em; }.ats-hero-label i { margin-right: 7px; }.ats-hero-copy h2 { max-width: 700px; margin: 10px 0 8px; color: #fff; font-size: 1.7rem; font-weight: 830; letter-spacing: -.035em; }.ats-hero-copy > p { max-width: 690px; margin: 0; color: #bdd0e1; font-size: .76rem; line-height: 1.65; }.ats-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }.ats-hero-tags span { border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.07); color: #dbe9f4; font-size: .61rem; font-weight: 700; padding: 7px 9px; }.ats-hero-tags i { margin-right: 5px; color: #75e7d6; }
.ats-pipeline { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 7px; }.ats-pipeline-node { min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(5,28,54,.46); color: #c5d6e4; text-align: center; padding: 13px 9px; }.ats-pipeline-node i { color: #8eb3d1; font-size: .86rem; }.ats-pipeline-node span { color: #8fa7bb; font-size: .46rem; font-weight: 850; letter-spacing: .08em; }.ats-pipeline-node strong { max-width: 110px; overflow: hidden; color: #fff; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }.ats-pipeline-node.active { border-color: rgba(94,234,212,.35); box-shadow: 0 0 0 5px rgba(94,234,212,.06); }.ats-pipeline-node.active i, .ats-pipeline-node.active span { color: #63e2d0; }.ats-pipeline-line { height: 1px; background: linear-gradient(90deg, #4c87bd, #5eead4); }.ats-mode-chip { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 9px; color: #a8bed0; }.ats-mode-chip > i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(94,234,212,.1); color: #5eead4; font-size: .63rem; }.ats-mode-chip span, .ats-mode-chip strong { display: block; }.ats-mode-chip span { font-size: .49rem; }.ats-mode-chip strong { color: #fff; font-size: .68rem; }

.ats-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 14px 0; }.ats-metric { min-height: 96px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--ats-border); border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(40,61,85,.055); padding: 15px; }.ats-metric > i { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; font-size: .82rem; }.ats-metric.blue > i { background: #eaf1ff; color: var(--ats-blue); }.ats-metric.green > i { background: #e8f8f1; color: var(--ats-green); }.ats-metric.amber > i { background: #fff5df; color: var(--ats-amber); }.ats-metric.red > i { background: #fff0f1; color: var(--ats-red); }.ats-metric span, .ats-metric small, .ats-metric strong { display: block; }.ats-metric span { color: #71839a; font-size: .54rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.ats-metric strong { margin-top: 2px; overflow: hidden; color: #142942; font-size: 1.04rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }.ats-metric small { margin-top: 4px; color: #8a99aa; font-size: .54rem; }
.ats-advisory { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; margin-bottom: 14px; border: 1px solid #bfe7df; border-radius: 14px; background: linear-gradient(90deg, #effbf8, #f7fcfc); padding: 13px 16px; }.ats-advisory > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #d9f4ed; color: #11866b; }.ats-advisory strong, .ats-advisory p { display: block; }.ats-advisory strong { color: #1f554d; font-size: .69rem; }.ats-advisory p { margin: 3px 0 0; color: #66837f; font-size: .59rem; }.ats-advisory em { border-radius: 999px; background: #fff; color: #278879; font-size: .57rem; font-style: normal; font-weight: 760; padding: 7px 9px; }.ats-advisory em i { margin-right: 5px; }

.ats-control-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 14px; margin-bottom: 14px; }.ats-settings, .ats-status-panel, .ats-import, .ats-logs { overflow: hidden; border: 1px solid var(--ats-border); border-radius: 17px; background: #fff; box-shadow: 0 10px 27px rgba(29,52,80,.05); }.ats-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e5ecf4; padding: 20px 22px; }.ats-section-heading.compact { align-items: center; }.ats-section-heading h2, .ats-status-head h2 { margin: 0; color: #122943; font-size: 1.08rem; font-weight: 820; }.ats-section-heading p, .ats-status-head p { margin: 4px 0 0; color: #7c8da1; font-size: .66rem; }.ats-state, .ats-log-count, .ats-file-types { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d6e3f1; border-radius: 9px; background: #f8fbff; color: #5b718b; font-size: .58rem; font-weight: 750; padding: 8px 10px; white-space: nowrap; }.ats-state i { width: 7px; height: 7px; border-radius: 50%; }.ats-state.active { border-color: #cce9e0; background: #f1fbf8; color: #14805f; }.ats-state.active i { background: #19a977; box-shadow: 0 0 0 4px rgba(25,169,119,.1); }.ats-state.inactive i { background: #8c99a8; }.ats-log-count i, .ats-file-types i { color: var(--ats-blue); }
.ats-validation:empty { display: none; }.ats-validation { margin: 14px 22px 0; font-size: .65rem; }.ats-form-section { padding: 21px 22px; }.ats-form-section + .ats-form-section { border-top: 1px solid #e7edf4; }.ats-form-intro { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }.ats-form-intro > span { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #edf3ff; color: var(--ats-blue); font-size: .57rem; font-weight: 850; }.ats-form-intro h3 { margin: 0; color: #172d48; font-size: .86rem; font-weight: 820; }.ats-form-intro p { margin: 3px 0 0; color: #8594a7; font-size: .61rem; }.ats-form-intro em { margin-left: auto; border-radius: 999px; background: #eef8f6; color: #167d68; font-size: .53rem; font-style: normal; font-weight: 720; padding: 6px 8px; }.ats-form-intro em i { margin-right: 4px; }
.ats-route-grid, .ats-switch-grid, .ats-device-grid, .ats-folder-grid { display: grid; gap: 12px; }.ats-route-grid { grid-template-columns: 1fr 1fr; }.ats-switch-grid { grid-template-columns: 1.1fr .9fr; align-items: stretch; margin-top: 12px; }.ats-device-grid { grid-template-columns: 1.15fr .55fr 1fr 1fr; }.ats-folder-grid { grid-template-columns: minmax(250px, 1.5fr) .55fr .75fr; }.ats-field > span { display: block; margin-bottom: 6px; color: #4f6279; font-size: .61rem; font-weight: 760; }.ats-field .form-control, .ats-field .form-select { min-height: 40px; border-color: #d9e3ee; border-radius: 9px; color: #203750; font-size: .68rem; }.ats-field .form-control:focus, .ats-field .form-select:focus { border-color: #7da4ef; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }.ats-field > small { display: block; margin-top: 4px; color: #8797aa; font-size: .51rem; }.ats-input-icon { position: relative; }.ats-input-icon > i { position: absolute; z-index: 1; left: 12px; top: 20px; color: #8195ab; font-size: .63rem; transform: translateY(-50%); }.ats-input-icon .form-control { padding-left: 34px; }.ats-unit-input { position: relative; }.ats-unit-input b { position: absolute; right: 10px; top: 50%; color: #7d8da0; font-size: .51rem; transform: translateY(-50%); }.ats-unit-input .form-control { padding-right: 53px; }
.ats-switch { display: flex; align-items: center; gap: 10px; margin: 0; border: 1px solid #dfe8f1; border-radius: 10px; background: #f9fbfd; padding: 11px 12px; }.ats-switch input { flex: 0 0 auto; margin: 0; }.ats-switch strong, .ats-switch small { display: block; }.ats-switch strong { color: #334b67; font-size: .64rem; }.ats-switch small { margin-top: 3px; color: #8495a8; font-size: .51rem; line-height: 1.45; }.ats-switch.active-switch { border-color: #c9e8df; background: #f3fbf9; }.ats-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #dfe8f2; background: #f8fafc; padding: 15px 22px; }.ats-form-actions .ats-switch { min-width: 295px; padding: 7px 10px; }.ats-form-actions .btn { min-height: 39px; border-radius: 9px; font-size: .67rem; font-weight: 760; padding-inline: 15px; }.ats-form-actions .btn i { margin-right: 5px; }

.ats-status-panel { position: sticky; top: 82px; padding: 22px; }.ats-status-head { padding-bottom: 16px; border-bottom: 1px solid #e5ecf3; }.ats-health-orb { display: flex; flex-direction: column; align-items: center; margin: 21px 0 18px; text-align: center; }.ats-health-orb > span { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; font-size: 1.12rem; }.ats-health-orb.idle > span { border: 1px solid #d5e1ee; background: #f0f4f8; color: #71869b; box-shadow: 0 0 0 8px #f8fafc; }.ats-health-orb.ready > span { border: 1px solid #bfe8dc; background: #e7f8f2; color: var(--ats-green); box-shadow: 0 0 0 8px #f2fbf8; }.ats-health-orb strong { margin-top: 15px; color: #1e3753; font-size: .81rem; }.ats-health-orb small { margin-top: 3px; color: #8b99a9; font-size: .54rem; }.ats-status-list { border-top: 1px solid #e7edf4; }.ats-status-list > div { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8eef5; color: #5c7189; font-size: .63rem; padding: 10px 2px; }.ats-status-list span i { width: 18px; color: #7890aa; }.ats-status-list strong { color: #223b57; }.ats-status-list .danger strong, .ats-status-list .danger i { color: var(--ats-red); }.ats-status-message { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; border-radius: 10px; background: #eef5ff; color: #416384; padding: 10px; }.ats-status-message i { margin-top: 2px; color: var(--ats-blue); }.ats-status-message p { margin: 0; font-size: .56rem; line-height: 1.5; }.ats-status-actions { margin-top: 15px; }.ats-status-actions form { margin: 0; }.ats-status-actions .btn { width: 100%; border-radius: 9px; font-size: .62rem; font-weight: 750; }.ats-status-actions i { margin-right: 5px; }

.ats-import { margin-bottom: 14px; }.ats-import-form { display: grid; grid-template-columns: minmax(0, 1fr) 260px auto; align-items: center; gap: 14px; padding: 18px 22px; }.ats-upload-zone { display: grid; grid-template-columns: auto minmax(150px, .65fr) minmax(220px, 1fr); align-items: center; gap: 12px; margin: 0; border: 1px dashed #bfd1e4; border-radius: 12px; background: #f8fbff; padding: 12px; }.ats-upload-zone > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: #e8f0ff; color: var(--ats-blue); }.ats-upload-zone strong, .ats-upload-zone small { display: block; }.ats-upload-zone strong { color: #243d59; font-size: .66rem; }.ats-upload-zone small { margin-top: 2px; color: #8797aa; font-size: .51rem; }.ats-upload-zone .form-control { min-height: 38px; border-color: #d7e2ed; border-radius: 8px; font-size: .6rem; }.ats-upload-zone > small { grid-column: 3; }.ats-import-safety { display: flex; align-items: center; gap: 9px; border-radius: 10px; background: #f0faf7; padding: 10px; }.ats-import-safety > i { color: var(--ats-green); }.ats-import-safety strong, .ats-import-safety small { display: block; }.ats-import-safety strong { color: #2d5a50; font-size: .58rem; }.ats-import-safety small { margin-top: 2px; color: #789089; font-size: .49rem; }.ats-import-form > .btn { min-height: 42px; border-radius: 10px; font-size: .64rem; font-weight: 760; white-space: nowrap; }.ats-import-form > .btn i { margin-right: 5px; }

.ats-logs { margin-bottom: 14px; }.ats-empty { min-height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(37,99,235,.055), transparent 35%); text-align: center; padding: 30px 20px; }.ats-empty > span { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #cbdcf5; border-radius: 16px; background: #eef4ff; color: var(--ats-blue); font-size: 1.05rem; }.ats-empty h3 { margin: 12px 0 4px; color: #17304e; font-size: 1rem; }.ats-empty p { max-width: 560px; margin: 0; color: #7b8ca1; font-size: .68rem; }.ats-empty > div { display: flex; align-items: center; gap: 8px; margin-top: 17px; color: #5d7189; font-size: .59rem; font-weight: 720; }.ats-empty em { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: #e7effe; color: var(--ats-blue); font-size: .52rem; font-style: normal; }.ats-empty > div > i { width: 22px; height: 1px; background: #c3d0df; }
.ats-table { min-width: 1420px; }.ats-table thead th { border: 0; border-bottom: 1px solid #dae4ef; background: #f5f8fc; color: #53667d; font-size: .53rem; font-weight: 850; letter-spacing: .055em; padding: 11px 12px; text-transform: uppercase; }.ats-table tbody td { border-color: #e8eef5; color: #41566f; font-size: .64rem; padding: 12px; }.ats-date, .ats-route { display: block; white-space: nowrap; }.ats-date + .ats-date, .ats-route + .ats-route { margin-top: 3px; color: #8494a7; font-size: .53rem; }.ats-positive { color: var(--ats-green); }.ats-negative { color: var(--ats-red); }.ats-log-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: .52rem; font-weight: 800; padding: 5px 7px; }.ats-log-status i { width: 5px; height: 5px; border-radius: 50%; }.ats-log-status.success { background: #eaf9f3; color: #11815c; }.ats-log-status.success i { background: #16a673; }.ats-log-status.warning { background: #fff5df; color: #ac6b12; }.ats-log-status.warning i { background: #e89b22; }.ats-log-status.danger { background: #fff0f1; color: #c84855; }.ats-log-status.danger i { background: #df5a65; }.ats-message { display: block; max-width: 260px; overflow: hidden; color: #64778d; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1350px) { .ats-hero { grid-template-columns: minmax(0, 1fr) 435px; }.ats-control-grid { grid-template-columns: minmax(0, 1fr) 305px; }.ats-device-grid { grid-template-columns: 1fr .5fr 1fr; }.ats-device-grid .ats-field:last-child { grid-column: span 2; }.ats-import-form { grid-template-columns: 1fr auto; }.ats-import-safety { grid-row: 2; }.ats-import-form > .btn { grid-row: 2; } }
@media (max-width: 1100px) { .ats-page-header, .ats-section-heading { align-items: flex-start; flex-direction: column; }.ats-header-actions { justify-content: flex-start; }.ats-hero { grid-template-columns: 1fr; }.ats-pipeline { max-width: 540px; }.ats-control-grid { grid-template-columns: 1fr; }.ats-status-panel { position: static; }.ats-status-list { display: grid; grid-template-columns: repeat(5, 1fr); }.ats-status-list > div { flex-direction: column; align-items: flex-start; gap: 5px; border-right: 1px solid #e8eef5; padding: 11px; }.ats-status-list > div:last-child { border-right: 0; } }
@media (max-width: 767.98px) { .ats-page-header h1 { font-size: 1.9rem; }.ats-hero { min-height: auto; padding: 25px 20px; }.ats-metrics { grid-template-columns: repeat(2, 1fr); }.ats-advisory { grid-template-columns: auto 1fr; }.ats-advisory em { grid-column: 2; justify-self: start; }.ats-route-grid, .ats-switch-grid, .ats-folder-grid { grid-template-columns: 1fr; }.ats-device-grid { grid-template-columns: 1fr 1fr; }.ats-device-grid .ats-field:last-child { grid-column: auto; }.ats-form-actions { align-items: stretch; flex-direction: column; }.ats-form-actions .ats-switch { min-width: 0; }.ats-form-actions .btn { align-self: flex-end; }.ats-status-list { grid-template-columns: repeat(2, 1fr); }.ats-status-list > div { border-bottom: 1px solid #e8eef5; }.ats-upload-zone { grid-template-columns: auto 1fr; }.ats-upload-zone .form-control, .ats-upload-zone > small { grid-column: 1 / -1; }.ats-import-form { grid-template-columns: 1fr; }.ats-import-safety, .ats-import-form > .btn { grid-row: auto; } }
@media (max-width: 575.98px) { .ats-header-actions { width: 100%; flex-direction: column; }.ats-header-actions form, .ats-header-actions .btn { width: 100%; }.ats-hero-copy h2 { font-size: 1.35rem; }.ats-pipeline { grid-template-columns: 1fr; }.ats-pipeline-line { display: none; }.ats-mode-chip { grid-column: 1; }.ats-metrics { grid-template-columns: 1fr; }.ats-advisory { grid-template-columns: 1fr; }.ats-advisory em { grid-column: 1; }.ats-section-heading, .ats-form-section { padding: 17px 15px; }.ats-section-heading.compact { align-items: flex-start; }.ats-device-grid { grid-template-columns: 1fr; }.ats-form-actions { padding: 14px 15px; }.ats-form-actions .btn { width: 100%; }.ats-status-panel { padding: 18px 15px; }.ats-status-list { grid-template-columns: 1fr; }.ats-status-list > div { flex-direction: row; }.ats-import-form { padding: 15px; }.ats-upload-zone { grid-template-columns: 1fr; text-align: center; }.ats-upload-zone > span { margin: auto; }.ats-empty > div { align-items: flex-start; flex-direction: column; }.ats-empty > div > i { display: none; } }

/* Salary operations — shared premium treatment for Missing Staff through Settings.
   The route-aware selector keeps the generic Bootstrap classes unchanged elsewhere. */
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading){
    --sop-blue:#2563eb;
    --sop-navy:#0b2848;
    --sop-teal:#0f9f8f;
    --sop-green:#15966b;
    --sop-amber:#d98b18;
    --sop-red:#d84d5a;
    --sop-border:#dbe5ef;
    color:#243b55;
    padding-bottom:32px;
}

body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading{
    position:relative;
    isolation:isolate;
    min-height:158px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:26px;
    overflow:hidden;
    margin:0 0 16px;
    padding:28px 32px;
    border:1px solid rgba(72,207,188,.2);
    border-radius:21px;
    background:linear-gradient(118deg,#092847 0%,#123d5d 62%,#0b6b70 120%);
    box-shadow:0 20px 42px rgba(10,39,72,.14);
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading::before{
    content:"SALARY OPERATIONS";
    position:absolute;
    left:33px;
    top:20px;
    color:#6ee7d8;
    font-size:.62rem;
    font-weight:850;
    letter-spacing:.12em;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading::after{
    content:"";
    position:absolute;
    z-index:-1;
    width:260px;
    height:260px;
    right:5%;
    top:-168px;
    border:1px solid rgba(94,234,212,.14);
    border-radius:50%;
    box-shadow:0 0 0 42px rgba(94,234,212,.025),0 0 0 84px rgba(94,234,212,.018);
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading h1{
    margin:17px 0 5px;
    color:#fff;
    font-size:clamp(1.8rem,2.4vw,2.35rem);
    font-weight:850;
    letter-spacing:-.045em;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading p{
    max-width:790px;
    margin:0!important;
    color:#bfd0df!important;
    font-size:.82rem;
    line-height:1.6;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading > .btn{
    position:relative;
    z-index:1;
    min-height:42px;
    display:inline-flex;
    align-items:center;
    border-color:rgba(255,255,255,.3);
    border-radius:10px;
    color:#fff;
    background:rgba(255,255,255,.08);
    font-size:.78rem;
    font-weight:760;
    padding:9px 14px;
    backdrop-filter:blur(8px);
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading > .btn:hover{
    border-color:rgba(255,255,255,.55);
    color:#fff;
    background:rgba(255,255,255,.15);
}

body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) > :is(.surface,.kpi-grid){margin-bottom:14px!important}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .surface{
    position:relative;
    overflow:hidden;
    border:1px solid var(--sop-border)!important;
    border-radius:17px!important;
    background:#fff!important;
    box-shadow:0 10px 27px rgba(29,52,80,.055)!important;
    padding:20px 22px!important;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .surface::before{
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:3px;
    background:linear-gradient(90deg,var(--sop-blue),#4e7fe7 42%,var(--sop-teal));
    opacity:.92;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:-2px 0 17px;
    padding-bottom:14px;
    border-bottom:1px solid #e5ecf4;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .section-title h2{
    position:relative;
    margin:0;
    padding-left:15px;
    color:#122943;
    font-size:1.08rem;
    font-weight:820;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .section-title h2::before{
    content:"";
    position:absolute;
    left:0;
    top:2px;
    bottom:2px;
    width:4px;
    border-radius:99px;
    background:linear-gradient(var(--sop-blue),var(--sop-teal));
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .section-title :is(.small,small){color:#7e8ea2!important;font-size:.72rem!important}

body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) :is(.form-label,.form-check-label){
    margin-bottom:6px;
    color:#52667e;
    font-size:.74rem;
    font-weight:740;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) :is(.form-control,.form-select){
    min-height:42px;
    border-color:#d8e3ee;
    border-radius:10px;
    color:#263d57;
    background-color:#fff;
    font-size:.8rem;
    box-shadow:none;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) :is(.form-control,.form-select):focus{
    border-color:#7da4ef;
    box-shadow:0 0 0 3px rgba(37,99,235,.09);
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .form-check{
    min-height:42px;
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    padding:9px 11px 9px 34px;
    border:1px solid #dfe7f0;
    border-radius:10px;
    background:#f8fafc;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .form-check-input{margin-top:0}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .form-check-label{margin:0}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .btn{
    min-height:39px;
    border-radius:9px;
    font-size:.76rem;
    font-weight:750;
    padding:8px 13px;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .btn-primary{
    border-color:#2563eb;
    background:linear-gradient(135deg,#2f6bf0,#2558d8);
    box-shadow:0 7px 16px rgba(37,99,235,.16);
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .btn-success{
    border-color:#15966b;
    background:linear-gradient(135deg,#20aa7c,#168a63);
    box-shadow:0 7px 16px rgba(21,150,107,.15);
}

body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .table-responsive{
    overflow:auto;
    margin:0 -22px -20px;
    padding-top:3px;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .table{
    min-width:820px;
    margin:0;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .table thead th{
    border:0;
    border-bottom:1px solid #dce6f0;
    color:#586b81;
    background:#f5f8fc;
    font-size:.68rem;
    font-weight:850;
    letter-spacing:.045em;
    padding:12px 14px;
    text-transform:uppercase;
    white-space:nowrap;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .table tbody td{
    border-color:#e8eef5;
    color:#41566f;
    font-size:.79rem;
    line-height:1.5;
    padding:13px 14px;
    vertical-align:middle;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .table tbody tr:hover{background:#f8fbff}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .table tbody td.text-muted.py-4{
    height:120px;
    color:#7d8da1!important;
    font-size:.83rem;
    text-align:center;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .table .small{font-size:.68rem!important;line-height:1.45}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .badge{
    border-radius:999px;
    font-size:.68rem;
    font-weight:780;
    padding:6px 9px;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .inline-action-form{
    display:grid;
    grid-template-columns:minmax(125px,1fr) minmax(150px,1.15fr) auto;
    gap:7px;
    align-items:center;
    min-width:405px;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .inline-action-form-wide{grid-template-columns:minmax(180px,1fr) auto;min-width:270px}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .inline-action-form :is(.form-control,.form-select,.btn){min-height:34px;font-size:.7rem;padding:6px 9px}

body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:11px;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-card{
    position:relative;
    min-height:112px;
    overflow:hidden;
    border:1px solid var(--sop-border);
    border-radius:15px;
    background:#fff;
    box-shadow:0 8px 22px rgba(40,61,85,.055);
    padding:18px 16px;
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-card::before{
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:3px;
    background:var(--sop-blue);
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-card:nth-child(2)::before{background:var(--sop-red)}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-card:nth-child(3)::before{background:var(--sop-green)}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-card:nth-child(4)::before{background:#7c4fe0}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-card:nth-child(5)::before{background:var(--sop-amber)}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-card:nth-child(6)::before{background:var(--sop-teal)}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-label{color:#708197;font-size:.65rem;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-value{margin-top:9px;color:#142942;font-size:1.35rem;font-weight:840;letter-spacing:-.035em}

body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .alert{
    border-width:1px;
    border-radius:12px;
    font-size:.78rem;
    box-shadow:0 6px 18px rgba(31,51,79,.05);
}
body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .text-danger.small{font-size:.68rem!important}

@media(max-width:1399.98px){
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:991.98px){
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading{align-items:flex-start;flex-direction:column;padding:28px 25px 24px}
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading::before{left:26px}
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:575.98px){
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading{min-height:0;border-radius:17px;padding:27px 19px 21px}
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading::before{left:20px;top:16px}
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading h1{font-size:1.72rem}
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page > .page-heading > .btn{width:100%;justify-content:center}
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .surface{padding:17px 15px!important}
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .table-responsive{margin:0 -15px -17px}
    body.admin-shell:has(.sidebar-child.active[href*="/admin/salary-management/"]) .app-page:has(> .page-heading) .kpi-grid{grid-template-columns:1fr}
}
