* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/************* colors-start *************/
:root {
    --white: #FFFFFF;
    --black: #0f172a;
    --blue: #CBE6FA;
    --naviBlue: #002041;
    --darkBlue: #1E40AF;
    --primary: #1E40AF;
    --primary-hover: #1e3a8a;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    --lightBlue: #f1f5f9;
    --yellow: #F59E0B;
    --textDark: #0f172a;
    --textDark1: #1e293b;
    --textGray: #64748b;
    --textGray1: #475569;
    --gray: #334155;
    --lightGray: #f8fafc;
    --lightGray1: #f1f5f9;
    --pageBG: #F8FAFC;
    --cardBG: #FFFFFF;
    --border-color: #e2e8f0;
    --border-color-input: #cbd5e1;
    --border-radius-sm: 4px;
    --border-radius: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: var(--textDark1);
    overflow-x: hidden;
    background-color: var(--pageBG);
}

/* Sticky Headers & Enhanced Table Density */
.table-sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8fafc !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.table-compact th,
.table-compact td {
    padding: 8px 12px !important;
    vertical-align: middle;
    font-size: 13px !important;
}

.card-dense {
    padding: 16px !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    background-color: var(--cardBG) !important;
}

/* Hover & Micro-animations */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    margin: 0;
    padding: 0;
}

h1,
.h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.5px;
    margin: 0;
}

h2,
.h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
}

h3,
.h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

h4,
.h4 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

h5,
.h5 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

h6,
.h6 {
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

p {
    color: var(--textGray);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

p:last-child {
    margin-bottom: 0
}

.txt32 {
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt30 {
    font-size: 30px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt28 {
    font-size: 28px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt24 {
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt20 {
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt18 {
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt16 {
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt15 {
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt14 {
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt12 {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

.txt10 {
    font-size: 10px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0
}

img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%
}

ol,
ul {
    margin: 0;
    padding: 0;
    list-style: none
}

b {
    font-weight: 700;
}

.lh_1p0 {
    line-height: 1.0 !important;
}

.lh_1p1 {
    line-height: 1.1 !important;
}

.lh_1p2 {
    line-height: 1.2 !important;
}

.lh_1p3 {
    line-height: 1.3 !important;
}

.lh_1p4 {
    line-height: 1.4 !important;
}

.lh_1p5 {
    line-height: 1.5 !important;
}

.lh_1p6 {
    line-height: 1.6 !important;
}

.lh_1p7 {
    line-height: 1.7 !important;
}

.lh_1p8 {
    line-height: 1.8 !important;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.ttCap {
    text-transform: capitalize
}

.ttUpper {
    text-transform: uppercase
}

.ttNone {
    text-transform: none
}

.fwExBold {
    font-weight: 800 !important
}

.fwBold {
    font-weight: 700 !important
}

.fwSemiBold {
    font-weight: 600 !important
}

.fwMedium {
    font-weight: 500 !important
}

.fwNormal {
    font-weight: 400 !important
}

.fsItalic {
    font-style: italic;
}

.displayFlex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.dFlex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
}

.dInFlex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: inline-flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
}

.inv {
    flex-direction: row-reverse
}

.dNone {
    display: none !important;
}

.dBlock {
    display: block !important;
}

.dInBlock {
    display: inline-block !important;
}

.jcCenter {
    justify-content: center
}

.jcRight {
    justify-content: flex-end;
}

.jcSB {
    justify-content: space-between;
}

.aiCenter {
    align-items: center;
}

strong {
    font-weight: 700
}

input:focus,
textarea:focus,
button:focus,
select:focus,
a:focus {
    outline: none;
}

/*Margins-Paddings*/

.m_0 {
    margin: 0 !important;
}

.mt_0 {
    margin-top: 0 !important;
}

.mb_0 {
    margin-bottom: 0 !important;
}

.p_0 {
    padding: 0 !important;
}

.pt_0 {
    padding-top: 0 !important;
}

.pb_0 {
    padding-bottom: 0 !important;
}

.pl_0 {
    padding-left: 0 !important;
}

.pr_0 {
    padding-right: 0 !important;
}

.mt_4 {
    margin-top: 4px;
}

.mb_4 {
    margin-bottom: 4px;
}

.pt_4 {
    padding-top: 4px;
}

.pb_4 {
    padding-bottom: 4px;
}

.mt_6 {
    margin-top: 6px;
}

.mb_6 {
    margin-bottom: 6px;
}

.pt_6 {
    padding-top: 6px;
}

.pb_6 {
    padding-bottom: 6px;
}

.mt_8 {
    margin-top: 8px;
}

.mb_8 {
    margin-bottom: 8px;
}

.pt_8 {
    padding-top: 8px;
}

.pb_8 {
    padding-bottom: 8px;
}

.mt_10 {
    margin-top: 10px;
}

.mb_10 {
    margin-bottom: 10px;
}

.pt_10 {
    padding-top: 10px;
}

.pb_10 {
    padding-bottom: 10px;
}

.mt_12 {
    margin-top: 12px;
}

.mb_12 {
    margin-bottom: 12px;
}

.pt_12 {
    padding-top: 12px;
}

.pb_12 {
    padding-bottom: 12px;
}

.mt_14 {
    margin-top: 14px;
}

.mb_14 {
    margin-bottom: 14px;
}

.pt_14 {
    padding-top: 14px;
}

.pb_14 {
    padding-bottom: 14px;
}

.mt_16 {
    margin-top: 16px;
}

.mb_16 {
    margin-bottom: 16px;
}

.pt_16 {
    padding-top: 16px;
}

.pb_16 {
    padding-bottom: 16px;
}

.mt_18 {
    margin-top: 18px;
}

.mb_18 {
    margin-bottom: 18px;
}

.pt_18 {
    padding-top: 18px;
}

.pb_18 {
    padding-bottom: 18px;
}

.mt_20 {
    margin-top: 20px;
}

.mb_20 {
    margin-bottom: 20px;
}

.pt_20 {
    padding-top: 20px;
}

.pb_20 {
    padding-bottom: 20px;
}

.mt_24 {
    margin-top: 24px;
}

.mb_24 {
    margin-bottom: 24px;
}

.pt_24 {
    padding-top: 24px;
}

.pb_24 {
    padding-bottom: 24px;
}

.mt_28 {
    margin-top: 28px;
}

.mb_28 {
    margin-bottom: 28px;
}

.pt_28 {
    padding-top: 28px;
}

.pb_28 {
    padding-bottom: 28px;
}

.mt_32 {
    margin-top: 32px;
}

.mb_32 {
    margin-bottom: 32px;
}

.pt_32 {
    padding-top: 32px;
}

.pb_32 {
    padding-bottom: 32px;
}

.mt_36 {
    margin-top: 36px;
}

.mb_36 {
    margin-bottom: 36px;
}

.pt_36 {
    padding-top: 36px;
}

.pb_36 {
    padding-bottom: 36px;
}

.mt_40 {
    margin-top: 40px;
}

.mb_40 {
    margin-bottom: 40px;
}

.pt_40 {
    padding-top: 40px;
}

.pb_40 {
    padding-bottom: 40px;
}

.mt_44 {
    margin-top: 44px;
}

.mb_44 {
    margin-bottom: 44px;
}

.pt_44 {
    padding-top: 44px;
}

.pb_44 {
    padding-bottom: 44px;
}

.mt_48 {
    margin-top: 48px;
}

.mb_48 {
    margin-bottom: 48px;
}

.pt_48 {
    padding-top: 48px;
}

.pb_48 {
    padding-bottom: 48px;
}

.mt_52 {
    margin-top: 52px;
}

.mb_52 {
    margin-bottom: 52px;
}

.pt_52 {
    padding-top: 52px;
}

.pb_52 {
    padding-bottom: 52px;
}

.mt_56 {
    margin-top: 56px;
}

.mb_56 {
    margin-bottom: 56px;
}

.pt_56 {
    padding-top: 56px;
}

.pb_56 {
    padding-bottom: 56px;
}

.mt_60 {
    margin-top: 60px;
}

.mb_60 {
    margin-bottom: 60px;
}

.pt_60 {
    padding-top: 60px;
}

.pb_60 {
    padding-bottom: 60px;
}

.mt_64 {
    margin-top: 64px;
}

.mb_64 {
    margin-bottom: 64px;
}

.pt_64 {
    padding-top: 64px;
}

.pb_64 {
    padding-bottom: 64px;
}

.mt_68 {
    margin-top: 68px;
}

.mb_68 {
    margin-bottom: 68px;
}

.pt_68 {
    padding-top: 68px;
}

.pb_68 {
    padding-bottom: 68px;
}

.mt_72 {
    margin-top: 72px;
}

.mb_72 {
    margin-bottom: 72px;
}

.pt_72 {
    padding-top: 72px;
}

.pb_72 {
    padding-bottom: 72px;
}

.mt_76 {
    margin-top: 76px;
}

.mb_76 {
    margin-bottom: 76px;
}

.pt_76 {
    padding-top: 76px;
}

.pb_76 {
    padding-bottom: 76px;
}

.mt_80 {
    margin-top: 80px;
}

.mb_80 {
    margin-bottom: 80px;
}

.pt_80 {
    padding-top: 80px;
}

.pb_80 {
    padding-bottom: 80px;
}

.mt_84 {
    margin-top: 84px;
}

.mb_84 {
    margin-bottom: 84px;
}

.pt_84 {
    padding-top: 84px;
}

.pb_84 {
    padding-bottom: 84px;
}

.mt_88 {
    margin-top: 88px;
}

.mb_88 {
    margin-bottom: 88px;
}

.pt_88 {
    padding-top: 88px;
}

.pb_88 {
    padding-bottom: 88px;
}

.mt_92 {
    margin-top: 92px;
}

.mb_92 {
    margin-bottom: 92px;
}

.pt_92 {
    padding-top: 92px;
}

.pb_92 {
    padding-bottom: 92px;
}

.mt_96 {
    margin-top: 96px;
}

.mb_96 {
    margin-bottom: 96px;
}

.pt_96 {
    padding-top: 96px;
}

.pb_96 {
    padding-bottom: 96px;
}

.mt_100 {
    margin-top: 100px;
}

.mb_100 {
    margin-bottom: 100px;
}

.pt_100 {
    padding-top: 100px;
}

.pb_100 {
    padding-bottom: 100px;
}

.mt_104 {
    margin-top: 104px;
}

.mb_104 {
    margin-bottom: 104px;
}

.pt_104 {
    padding-top: 104px;
}

.pb_104 {
    padding-bottom: 104px;
}

.mt_108 {
    margin-top: 108px;
}

.mb_108 {
    margin-bottom: 108px;
}

.pt_108 {
    padding-top: 108px;
}

.pb_108 {
    padding-bottom: 108px;
}

.mt_112 {
    margin-top: 112px;
}

.mb_112 {
    margin-bottom: 112px;
}

.pt_112 {
    padding-top: 112px;
}

.pb_112 {
    padding-bottom: 112px;
}

.mt_116 {
    margin-top: 116px;
}

.mb_116 {
    margin-bottom: 116px;
}

.pt_116 {
    padding-top: 116px;
}

.pb_116 {
    padding-bottom: 116px;
}

.mt_120 {
    margin-top: 120px;
}

.mb_120 {
    margin-bottom: 120px;
}

.pt_120 {
    padding-top: 120px;
}

.pb_120 {
    padding-bottom: 120px;
}

.mAuto {
    margin-left: auto;
    margin-right: auto;
}

.minW_0 {
    min-width: 0 !important;
}

.maxW_1100 {
    max-width: 1100px !important;
}

.maxW_1150 {
    max-width: 1150px !important;
}

.maxW_1000 {
    max-width: 1000px !important;
}

.maxW_1050 {
    max-width: 1050px !important;
}

.maxW_900 {
    max-width: 900px !important;
}

.maxW_950 {
    max-width: 950px !important;
}

.maxW_800 {
    max-width: 800px !important;
}

.maxW_850 {
    max-width: 850px !important;
}

.maxW_700 {
    max-width: 700px !important;
}

.maxW_750 {
    max-width: 750px !important;
}

.maxW_600 {
    max-width: 600px !important;
}

.maxW_650 {
    max-width: 650px !important;
}

.maxW_500 {
    max-width: 500px !important;
}

.maxW_550 {
    max-width: 550px !important;
}

.maxW_400 {
    max-width: 400px !important;
}

.maxW_450 {
    max-width: 450px !important;
}

.maxW_350 {
    max-width: 350px !important;
}

.maxW_300 {
    max-width: 300px !important;
}

.textCenter {
    text-align: center !important;
}

.textLeft {
    text-align: left !important;
}

.textRight {
    text-align: right !important;
}

.textJustify {
    text-align: justify
}

.fdCol {
    flex-direction: column
}

.imgCenter img {
    display: block;
    margin: auto
}

.posRel {
    position: relative;
}

.posAbs {
    position: absolute;
}

.fullWidth {
    width: 100%;
}

/* colors */
.colorWhite {
    color: var(--white);
}

.bgWhite {
    background-color: var(--white);
}

.colorBlack {
    color: var(--black);
}

.bgBlack {
    background-color: var(--black);
}

.colorBlue {
    color: var(--blue);
}

.bgBlue {
    background-color: var(--blue);
}

.colorNaviBlue {
    color: var(--naviBlue);
}

.bgNaviBlue {
    background-color: var(--naviBlue);
}

.colorDarkBlue {
    color: var(--darkBlue);
}

.bgDarkBlue {
    background-color: var(--darkBlue);
}

.colorLightBlue {
    color: var(--lightBlue);
}

.bgLightBlue {
    background-color: var(--lightBlue);
}

.colorYellow {
    color: var(--yellow);
}

.bgYellow {
    background-color: var(--yellow);
}

.colorTextDark {
    color: var(--textDark);
}

.bgTextDark {
    background-color: var(--textDark);
}

.colorTextDark1 {
    color: var(--textDark1);
}

.bgTextDark1 {
    background-color: var(--textDark1);
}

.colorTextGray {
    color: var(--textGray);
}

.bgTextGray {
    background-color: var(--textGray);
}

.colorTextGray1 {
    color: var(--textGray1);
}

.bgTextGray1 {
    background-color: var(--textGray1);
}

.colorGray {
    color: var(--gray);
}

.bgGray {
    background-color: var(--gray);
}

.colorLightGray {
    color: var(--lightGray);
}

.bgLightGray {
    background-color: var(--lightGray);
}

.colorLightGray1 {
    color: var(--lightGray1);
}

.bgLightGray1 {
    background-color: var(--lightGray1);
}

/*  */
.w_1_3-2 {
    width: calc(33.33% / 2);
}

.w_1_3 {
    width: 33.33%
}

.w_2_3 {
    width: 66.66%
}

.w_1_4 {
    width: 25%
}

.w_2_4,
.w_1_2 {
    width: 50%
}

.w_3_4 {
    width: 75%
}

.w_1_1 {
    width: 100%
}

/* ==========================================================================
   GLOBAL BUTTON SYSTEM — CONTEXT BASED CONSISTENCY
   ========================================================================== */

.btn {
    font-family: "Inter", sans-serif;
    font-size: 13.5px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    min-height: 38px;
    padding: 8px 16px;
    background-color: #1E40AF;
    border: 1.5px solid #1E40AF;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    transition: all ease 0.2s;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover,
.btn:focus {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.2);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Page CTA / Large Add Action */
.btnAdd,
.btnBig {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
    border-radius: 6px;
    height: 38px;
    min-height: 38px;
    background-color: #1E40AF !important;
    border: 1.5px solid #1E40AF !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    position: relative;
    transition: all ease 0.2s;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    text-decoration: none;
}

.btnAdd:hover,
.btnAdd:focus,
.btnBig:hover,
.btnBig:focus {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.2);
}

/* Primary Action Variants */
.btn-primary,
.btnPrimary,
.btn.primary {
    background-color: #1E40AF !important;
    border: 1.5px solid #1E40AF !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover,
.btnPrimary:hover,
.btn.primary:hover,
.btn-primary:focus,
.btnPrimary:focus,
.btn.primary:focus {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Secondary Action Variants (Cancel, Back, Close, Reset) */
.btnSecondary,
.btnSecondaryUI,
.btn-secondary,
.btnBig.btnSecondary,
.btn.secondary,
.btn.inv,
.btnBlack {
    background-color: #ffffff !important;
    border: 1.5px solid var(--darkBlue, #1E40AF) !important;
    color: #2342ae !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btnSecondary:hover,
.btnSecondaryUI:hover,
.btn-secondary:hover,
.btnBig.btnSecondary:hover,
.btn.secondary:hover,
.btn.inv:hover,
.btnBlack:hover,
.btnSecondary:focus,
.btnSecondaryUI:focus,
.btn-secondary:focus,
.btnBig.btnSecondary:focus,
.btn.secondary:focus,
.btn.inv:focus,
.btnBlack:focus {
    background-color: #f0f4ff !important;
    border-color: #1E40AF !important;
    color: #1e3a8a !important;
    transform: translateY(-1px);
}

/* Outline Secondary / Neutral Variants */
.btn-outline-secondary,
.btn-outline-dark,
.btn-neutral {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-neutral:hover,
.btn-outline-secondary:focus,
.btn-outline-dark:focus,
.btn-neutral:focus {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* Outline Primary Variants */
.btn-outline-primary {
    background-color: #ffffff !important;
    border: 1.5px solid #1E40AF !important;
    color: #1E40AF !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #f0f4ff !important;
    border-color: #1E40AF !important;
    color: #1e3a8a !important;
    transform: translateY(-1px);
}

/* Danger Button Variants */
.btn-danger,
.btn-action-danger-solid {
    background-color: #dc2626 !important;
    border: 1.5px solid #dc2626 !important;
    color: #ffffff !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-action-danger-solid:hover,
.btn-action-danger-solid:focus {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-outline-danger {
    background-color: #ffffff !important;
    border: 1.5px solid #ef4444 !important;
    color: #dc2626 !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background-color: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #b91c1c !important;
    transform: translateY(-1px);
}

/* Button Grouping & Spacing */
.btnSet,
.btn-group,
.app-modal-actions,
.payroll-form-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btnSet .btn+.btn,
.app-modal-footer .btn+.btn,
.payroll-form-actions .btn+.btn {
    margin-left: 0;
}

.containerFull {
    padding-left: 15px;
    padding-right: 15px;
}

/**/

.owl-stage {
    display: flex;
}

.owl-carousel .owl-stage-outer {
    margin: -20px;
    padding: 20px
}

.item {
    display: flex;
    flex: 1 0 auto;
    height: 100%;
}

.link {
    color: var(--darkBlue);
    text-decoration: underline;
}

.link:hover {
    text-decoration: none;
}

.form-group {
    position: relative;
}

.bar1,
.bar2,
.bar3 {
    background-color: var(--textGray);
    cursor: pointer;
    height: 2px;
    margin: 6px 0;
    -webkit-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
    width: 30px;
    display: block;
}

.bar2 {
    width: 20px;
}

.overflowHidden {
    overflow: hidden;
}

.menu-toggle.active span.bar1 {
    transform: rotate(45deg);
    position: relative;
    top: 4px;
}

.menu-toggle.active span.bar3 {
    transform: rotate(-45deg);
    bottom: 4px;
    position: relative;
}

.menu-toggle.active span.bar2 {
    display: none;
}



/************* Header-start *************/

.loginPg {
    height: 90vh;
}

.loginBg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

.loginBg>img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.loginBoxMain {
    height: 100%;
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    gap: 24px;
    justify-content: space-between
}

.login_btn {
    background-color: #008787 !important;
    border: none !important;
}

.loginBox {
    position: relative;
    z-index: 1;
    background-color: var(--white);
    width: 100%;
    max-width: 540px;
    border-radius: 35px;
    box-shadow: 2px 2px 14px rgba(56, 56, 36, 0.14);
    padding: 32px 40px;
}

.loginLogo {
    display: block;
    max-width: 194px;
}

.formInpt {
    position: relative;
}

.formInpt label {
    display: block;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--black);
}

.loginBox .formInpt input,
.loginBox .formInpt input[type="text"],
.loginBox .formInpt input[type="email"],
.loginBox .formInpt input[type="date"],
.loginBox .formInpt input[type="password"],
.loginBox .formInpt textarea,
.loginBox .formInpt select {
    display: block;
    width: 100%;
    height: 48px;
    padding: 8px 12px;
    background-color: #F9FAFB;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    line-height: normal;
    color: var(--textGray);
    transition: all ease 0.2s;
}

.loginBox .formInpt.shPW input {
    padding-right: 40px;
}

.shPW button {
    background: none;
    border: 0;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 12px;
    bottom: 12px;
    cursor: pointer;
}

.shPW button.show img.showPW,
.shPW button.hide img.hidePW {
    pointer-events: none;
}

.shPW button.show img.showPW {
    display: block;
}

.shPW button.hide img.hidePW {
    display: block;
}

.shPW button.hide img.showPW,
.shPW button.show img.hidePW {
    display: none;
}

.rmWrap {
    justify-content: space-between;
    align-items: flex-start;
}

.tccL {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tccL input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.tccL .checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #EBEBE9;
    border: 1px solid #EBEBE9;
    border-radius: 2px;
    flex-shrink: 0;
}

.tccL:hover input~.checkmark {
    background-color: var(--white);
    border-color: var(--yellow);
}

.tccL input:checked~.checkmark {
    background-color: var(--yellow);
    border-color: var(--yellow);
}

.tccL .checkmark:after {
    content: "";
    position: absolute;
}

.tccL:hover input~.checkmark:after {
    border-color: var(--yellow);
}

.tccL:hover input:checked~.checkmark:after {
    border-color: var(--white);
}

.tccL input:checked~.checkmark:after {
    display: block;
}

.tccL .checkmark:after {
    left: 6px;
    top: 1px;
    width: 7px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.forgotPass {
    text-decoration: underline;

}

.forgotPass:hover {
    text-decoration: none;
    color: #008787;
}

/* --- */
.mainWrap {
    display: flex;
}

.leftBar {
    flex-shrink: 0;
    width: 290px;
    background-color: var(--white);

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.04);
}

.mainSec {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding-left: 290px;
}

.leftBar .navbar {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 20px 0 0 0;
    margin: 0;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.navbar-brand {
    flex-shrink: 0;
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 20px;
    padding: 0;
    display: block;
}

.leftBar .navbar-expand-md .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.leftBar .navbar-expand-md .navbar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: none;
    padding: 0 10px 42px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.leftBar .navbar-expand-md .navbar-nav::-webkit-scrollbar {
    width: 5px;
}

.leftBar .navbar-expand-md .navbar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.leftBar .navbar-expand-md .navbar-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.leftBar .navbar-expand-md .navbar-nav::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-section-divider {
    list-style: none;
    margin: 16px 12px 10px 12px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    user-select: none;
}

.leftBar .navbar-expand-md .navbar-nav .nav-item {
    margin-bottom: 8px;
    width: 100%;
}

.navbar-expand-md .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--textDark1);
    position: relative;
    transition: color ease 0.3s;
}

.navbar-expand-md .navbar-nav .nav-link.active,
.navbar-expand-md .navbar-nav .nav-link:hover,
.navbar-expand-md .navbar-nav .nav-link.show,
.navbar-expand-md .navbar-nav .nav-item:hover .nav-link {
    color: var(--white);
}

.navbar-expand-md .navbar-nav .nav-link::before {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #1E40AF;
    border-radius: 10px;
    opacity: 0;
    transition: all ease 0.4s;
}

.navbar-expand-md .navbar-nav .nav-link:hover::before,
.navbar-expand-md .navbar-nav .nav-link.active::before,
.navbar-expand-md .navbar-nav .nav-link.show::before,
.navbar-expand-md .navbar-nav .nav-item:hover .nav-link::before {
    width: 100%;
    opacity: 1;
}

.navbar-expand-md .navbar-nav .nav-link svg {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    color: #64748B;
    stroke: currentColor;
    transition: all ease 0.2s;
}

.navbar-expand-md .navbar-nav .nav-link:hover svg,
.navbar-expand-md .navbar-nav .nav-link.active svg,
.navbar-expand-md .navbar-nav .nav-link.show svg,
.navbar-expand-md .navbar-nav .nav-item:hover .nav-link svg {
    filter: none;
    color: #ffffff;
    stroke: #ffffff;
}

.navbar-expand-md .navbar-nav .nav-link img,
.navbar-expand-md .navbar-nav .nav-link span,
.navbar-expand-md .navbar-nav .nav-link div {
    position: relative;
    z-index: 2;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.nav-link-dropdown {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.dropdown-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #64748b;
    position: relative;
    z-index: 2;
}

.dropdown-chevron.open {
    transform: rotate(180deg);
}

.navbar-expand-md .navbar-nav .nav-link:hover .dropdown-chevron,
.navbar-expand-md .navbar-nav .nav-link.active .dropdown-chevron,
.navbar-expand-md .navbar-nav .nav-link.show .dropdown-chevron {
    color: #ffffff;
}

.navbar-expand-md .navbar-nav .dropdown-menu,
.navbar-expand-md .navbar-nav .sidebar-submenu {
    position: static;
    box-shadow: none;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 5px 6px;
    margin: 4px 4px 6px 14px;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    animation: submenuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes submenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leftBar .navbar-expand-md .navbar-nav .dropdown-menu .nav-item,
.leftBar .navbar-expand-md .navbar-nav .sidebar-submenu .nav-item {
    margin-bottom: 0 !important;
    width: 100%;
}

.sidebar-submenu-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 4px 4px;
    list-style: none;
}

.navbar-expand-md .dropdown-menu .dropdown-item {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    transition: all 0.15s ease;
}

.navbar-expand-md .dropdown-menu span.dropdown-item {
    display: block;
    margin-top: 6px;
    font-weight: 600;
}

.navbar-expand-md .dropdown-menu .dropdown-item:focus,
.navbar-expand-md .dropdown-menu .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.navbar-expand-md .dropdown-menu a.dropdown-item:focus,
.navbar-expand-md .dropdown-menu a.dropdown-item:hover {
    color: #1e40af;
}

.leftBar .navbar-expand-md .navbar-nav .nav-item .dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle::after {
    display: none !important;
}

/*  */
.topHdr {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9;
    width: calc(100% - 32px);
    background-color: var(--white);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    padding: 6px 16px;
    align-items: center;
    margin: 0 auto;
    border-radius: 8px;
    justify-content: space-between;
}

/* Header Global Page Navigation Search */
.header-search-container,
.topHdr .searchBox {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.header-search-input,
.topHdr .searchBox input[type="text"] {
    display: block;
    width: 100%;
    height: 42px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 38px 8px 14px;
    color: #0F172A;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.header-search-input::placeholder,
.topHdr .searchBox input[type="text"]::placeholder {
    color: #94A3B8;
    font-size: 13.5px;
    font-weight: 400;
}

.header-search-input:focus,
.topHdr .searchBox input[type="text"]:focus {
    background-color: #FFFFFF;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.header-search-btn,
.header-search-clear-btn,
.topHdr .searchBox button {
    width: 38px;
    height: 100%;
    background: none;
    border: none;
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.header-search-btn:hover,
.topHdr .searchBox button:hover {
    color: #1E40AF;
}

.header-search-clear-btn,
.topHdr .searchBox .searchBoxClearBtn {
    color: #94A3B8;
}

.header-search-clear-btn:hover,
.topHdr .searchBox .searchBoxClearBtn:hover {
    color: #0F172A;
    background: rgba(0, 0, 0, 0.04);
}

/* Page-Level / Table Search Box System (Department, Users, Ranks, Army Type, Location, BioMetric, etc.) */
.searchBox {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
    max-width: 100%;
}

.searchBox input[type="text"] {
    display: block;
    width: 100%;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 36px 8px 12px;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 500;
    line-height: normal;
    transition: all 0.15s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.searchBox input[type="text"]::placeholder {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
}

.searchBox input[type="text"]:focus {
    background-color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.searchBox button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.searchBox button:hover {
    color: #1e40af;
    background-color: #f1f5f9;
}

/* Header Search Results Dropdown */
.header-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 340px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    z-index: 1050;
    overflow: hidden;
    animation: headerSearchFadeIn 0.15s ease-out;
}

@keyframes headerSearchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-search-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.header-search-results-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
}

.header-search-results-count {
    font-size: 11px;
    font-weight: 600;
    color: #1E40AF;
    background: #EFF6FF;
    padding: 2px 7px;
    border-radius: 12px;
}

.header-search-results-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 #F8FAFC;
}

.header-search-results-list::-webkit-scrollbar {
    width: 6px;
}

.header-search-results-list::-webkit-scrollbar-track {
    background: #F8FAFC;
}

.header-search-results-list::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 4px;
}

.header-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
    user-select: none;
}

.header-search-item:hover,
.header-search-item.active {
    background-color: #F1F5F9;
}

.header-search-item-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #EFF6FF;
    color: #1E40AF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.header-search-item:hover .header-search-item-icon-box,
.header-search-item.active .header-search-item-icon-box {
    background-color: #1E40AF;
    color: #FFFFFF;
}

.header-search-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.header-search-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.12s ease;
}

.header-search-item:hover .header-search-item-title,
.header-search-item.active .header-search-item-title {
    color: #1E40AF;
}

.header-search-item-module {
    font-size: 11.5px;
    color: #64748B;
    line-height: 1.2;
    margin-top: 2px;
}

.header-search-item-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.header-search-item:hover .header-search-item-action,
.header-search-item.active .header-search-item-action {
    opacity: 1;
    transform: translateX(0);
    color: #1E40AF;
}

.header-search-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 7px 14px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    font-size: 11px;
    color: #64748B;
}

.header-search-kbd-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-search-kbd-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: 10px;
    font-family: inherit;
    font-weight: 600;
    color: #475569;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-search-empty {
    padding: 28px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-search-empty-icon {
    color: #94A3B8;
    margin-bottom: 8px;
}

.header-search-empty-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}

.header-search-empty-sub {
    font-size: 12px;
    color: #64748B;
    margin-top: 4px;
    max-width: 300px;
}

.topHdrRight {
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.topHdrAnchors {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--lightGray1);
    padding: 8px;
    border-radius: 50%;
    position: relative;
}

.topHdrAnchors:hover {
    background-color: #eee;
}

.notiDot {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid #ffffff;
    border-radius: 10px;
    position: absolute;
    top: -2px;
    right: -2px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.hasNotifications .notiDot {
    display: inline-flex;
}

/* ==========================================================================
   HEADER DROPDOWNS & PROFILE MENU (ENTERPRISE UI)
   ========================================================================== */

@keyframes headerDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header-chevron-icon {
    color: #94a3b8;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
    flex-shrink: 0;
}

.header-chevron-icon.open {
    transform: rotate(180deg);
    color: #1e40af;
}

/* --- Language Selector Dropdown --- */
.header-lang-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.header-lang-trigger:hover,
.header-lang-trigger.active {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.header-lang-trigger:hover .header-chevron-icon,
.header-lang-trigger.active .header-chevron-icon {
    color: #1e40af;
}

.header-lang-label {
    letter-spacing: 0.02em;
}

.header-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    padding: 4px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: headerDropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: left;
}

.header-lang-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.header-lang-item.active {
    background-color: #eff6ff;
    color: #1e40af;
    font-weight: 600;
}

.header-lang-check {
    color: #1e40af;
    flex-shrink: 0;
}

/* --- User Profile Dropdown --- */
.header-user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 3px 8px 3px 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    text-decoration: none;
}

.header-user-trigger:hover,
.header-user-trigger.active {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.header-user-trigger:hover .header-chevron-icon,
.header-user-trigger.active .header-chevron-icon {
    color: #1e40af;
}

.header-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #cbd5e1;
    flex-shrink: 0;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}

.header-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-role {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.header-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    max-width: 300px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    z-index: 1060;
    overflow: hidden;
    animation: headerDropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.header-user-menu__header {
    display: flex;
    gap: 11px;
    padding: 12px 14px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.header-user-menu__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #cbd5e1;
    flex-shrink: 0;
}

.header-user-menu__details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-user-menu__name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-menu__email {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-menu__badge {
    display: inline-flex;
    align-items: center;
    gap: 3.5px;
    font-size: 10.5px;
    font-weight: 600;
    color: #1e40af;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 2px;
    width: fit-content;
}

.header-user-menu__divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 0;
}

.header-user-menu__body,
.header-user-menu__footer {
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-user-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: left;
    box-sizing: border-box;
}

.header-user-menu__item svg {
    color: #64748b;
    transition: color 0.12s ease;
    flex-shrink: 0;
}

.header-user-menu__item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.header-user-menu__item:hover svg {
    color: #1e40af;
}

.header-user-menu__item--danger {
    color: #dc2626;
}

.header-user-menu__item--danger svg {
    color: #dc2626;
}

.header-user-menu__item--danger:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

.header-user-menu__item--danger:hover svg {
    color: #b91c1c;
}

@media (max-width: 576px) {
    .header-user-menu {
        right: 0;
        min-width: 210px;
        max-width: calc(100vw - 24px);
    }

    .header-lang-menu {
        right: 0;
        min-width: 170px;
        max-width: calc(100vw - 24px);
    }

    .header-user-trigger {
        gap: 6px;
        padding: 2px 4px;
    }

    .header-user-avatar {
        width: 30px;
        height: 30px;
    }

    .header-lang-trigger {
        height: 34px;
        padding: 0 8px;
        font-size: 11.5px;
    }
}

/* Legacy fallback overrides */
.topHdrDD .dropdown-toggle {
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.mainContentWrap {
    padding: 16px;
}

/*  */
.upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 248px;
    background-color: var(--lightBlue);
    border: 1px dashed var(--darkBlue);
    border-radius: 6px;
    overflow: hidden;
}

/* Hide the default input */
.upload-wrapper input[type="file"] {
    display: none;
}

/* Custom button style */
.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px 20px;
    color: var(--black);
    cursor: pointer;
    transition: background 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Preview image */
.preview {
    max-width: 100%;
    max-height: 100%;
}

.hasImg .upload-label {
    opacity: 0;
}

.upldSec {
    border-bottom: 1px solid #CCCCCC;
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.upldSec:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.signature-panel {
    position: relative;
    background-color: var(--lightBlue);
    border: 1px dashed var(--darkBlue);
    border-radius: 6px;
    padding: 12px;
    min-height: 180px;
}

.signature-panel:before {
    display: block;
    content: "";
    border-bottom: 1px solid #9BB3EE;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 24px;
}

.signature-panel img {
    width: 100%;
    max-width: 420px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.signature-panel canvas {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: contain;
}

#clear-signature {
    color: #000;
    font-size: 14px;
    display: inline-block;
    position: absolute;
    top: 4px;
    right: 8px;
}

.customFileInpt {
    border: 1px solid var(--darkBlue);
    border-radius: 6px;
    width: 100%;
    height: 45px;
    padding: 5px 8px;
    color: var(--darkBlue);
    text-decoration: underline;
    font-size: 14px;
}

input[type="file"].customFileInpt::file-selector-button {
    background-color: #E9E9E9;
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 4px 16px;
    font-size: 14px;
}

/*  */
.formBlock {
    border-bottom: 1px solid #ccc;
}

.formBlock:last-child {
    border: 0;
    margin-bottom: 0;
}

.formFieldsWrap {
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: -10px;
    margin-right: -10px;
}

.formFieldsWrap li {
    padding: 10px;
}

.formFieldsWrap li .formInpt {
    width: 100%;
}

.twoFormInpts {
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.formFieldsWrap li.twoFormInpts .formInpt {
    width: calc(50% - 10px);
}

.formInpt input,
.formInpt input[type="text"],
.formInpt input[type="email"],
.formInpt input[type="date"],
.formInpt input[type="password"],
.formInpt textarea,
.formInpt select,
.form-control,
.customSelect,
.customDatepicker {
    display: block;
    width: 100%;
    min-height: 38px;
    height: 38px;
    padding: 7px 12px;
    background-color: #ffffff;
    border: 1px solid var(--border-color-input, #cbd5e1);
    border-radius: var(--border-radius, 6px);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: var(--textDark1, #1e293b);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.formInpt textarea,
textarea.form-control {
    height: auto;
    min-height: 90px;
    padding: 9px 12px;
    resize: vertical;
}

.formInpt input:focus,
.formInpt select:focus,
.formInpt textarea:focus,
.form-control:focus,
.customSelect:focus,
.customDatepicker:focus {
    border-color: #1E40AF !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12) !important;
    background-color: #ffffff !important;
}

.formInpt label,
.form-filter-label,
.payroll-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.formInpt .ui-selectmenu-button.ui-button {
    width: 100%;
    height: 50px;
    padding: 8px 16px;
    background-color: var(--lightGray);
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    line-height: normal;
    color: var(--textGray);
    margin: 0;
}

.lsForm .formInpt .ui-selectmenu-button.ui-button {
    background-color: #F9FAFB;
    border: 1px solid #eee;
    border-radius: 8px;
    height: 48px;
    padding: 8px 12px;
}

.baseTable .formInpt .ui-selectmenu-button.ui-button {
    background-color: #F9FAFB;
    border: 1px solid #eee;
    border-radius: 6px;
    height: 35px;
    padding: 8px 10px;
    max-width: 298px;
}

.formInpt .ui-selectmenu-text {
    height: 100%;
    display: flex;
    align-items: center;
}

.formInpt .ui-button .ui-icon,
.formInpt .ui-state-hover .ui-icon,
.formInpt .ui-state-focus .ui-icon,
.formInpt .ui-button:hover .ui-icon,
.formInpt .ui-button:focus .ui-icon {
    background: url("../images/angle-down-small.png") center center no-repeat;
    background-size: 100%;
    width: 10px;
    height: 100%;
}

.formInpt .ui-button.ui-selectmenu-button-open .ui-icon {
    transform: rotate(180deg);
}

.ui-widget.ui-widget-content {
    border: 1px solid #ccc;
    border-radius: 6px;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: 1px solid var(--darkBlue);
    background: var(--darkBlue);
}

.hasDatePicker .ui-datepicker-trigger {
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: url("../images/date.png") center center no-repeat;
    background-size: auto;
    border: 0;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: var(--darkBlue);
}

.topHdr .navbar-toggler {
    display: none;
}

/* Dashboard KPI Cards Grid */
.dashFeaturesList {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Global Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
    background: #F8FAFC;
}

/* Scrollbar Thumb */
::-webkit-scrollbar-thumb {
    background: #94A3B8;
    border-radius: 10px;
}

/* Scrollbar Hover */
::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #94A3B8 #F8FAFC;
}

.dashFeaturesList li {
    width: calc(20% - 11.2px);
    display: flex;
}

@media (max-width: 1280px) {
    .dashFeaturesList li {
        width: calc(33.333% - 9.5px);
    }
}

@media (max-width: 860px) {
    .dashFeaturesList li {
        width: calc(50% - 7px);
    }
}

@media (max-width: 520px) {
    .dashFeaturesList li {
        width: 100%;
    }
}

.dashFeaturesList.col4 li {
    width: calc(25% - 10.5px);
}

.dashFeaturesBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 104px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashFeaturesBox.isClickable {
    cursor: pointer;
}

.dashFeaturesBox.isClickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

/* 10 Dashboard Feature Cards (Clean uniform border) */
.dashFeaturesBox:hover {
    border-color: #cbd5e1;
}

.dashFeaturesTxt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.dashFeaturesLabel {
    display: block;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
    word-break: break-word;
}

.dashFeaturesVal {
    display: block;
    color: #0f172a;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.dashFeaturesIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dashFeaturesBox:hover .dashFeaturesIcon {
    transform: scale(1.08);
}

.dashFeaturesIcon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
}

.dashFeaturesIcon.iconDarawiish {
    background-color: #FEF3C7;
    border: 1px solid #FDE68A;
}

.dashFeaturesIcon.iconPolice {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.dashFeaturesIcon.iconCustodial {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.dashFeaturesIcon.iconUsers {
    background-color: #F5F3FF;
    border: 1px solid #DDD6FE;
    color: #7C3AED;
}

.dashFeaturesIcon.iconAllowance {
    background-color: #F0FDFA;
    border: 1px solid #99F6E4;
    color: #0D9488;
}

.dashFeaturesIcon.iconDarawiishPr {
    background-color: #FFF7ED;
    border: 1px solid #FED7AA;
}

.dashFeaturesIcon.iconPolicePr {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.dashFeaturesIcon.iconCustodialPr {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.dashFeaturesIcon.iconBiometric {
    background-color: #EEF2FF;
    border: 1px solid #C7D2FE;
    color: #4F46E5;
}

.dashFeaturesIcon.iconAllowanceArmy {
    background-color: #FFF1F2;
    border: 1px solid #FECDD3;
    color: #E11D48;
}

.dashFeaturesIcon.iconAllowancePolice {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #2563EB;
}

.dashFeaturesIcon.iconAllowanceCustodial {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #059669;
}

.dashFeaturesLucide {
    stroke-width: 2.2px;
}

.type1 .dashFeaturesTxt {
    width: calc(100% - 60px);
}

.type1 .dashFeaturesIcon {
    width: 60px;
    height: 60px;
}

.dashGraphsSec {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .dashGraphsSec {
        grid-template-columns: 1fr;
    }
}

.dashGraphs {
    background-color: var(--white);
    border-radius: 8px;
    padding: 16px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    /* border: 1px solid #ededed; */
}

.dashGraphsLeaveReq,
.dashGraphsLeaveReq.leave-status-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    flex: unset;
    flex-shrink: 1;
}

.dashGraphsPayroll {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    flex: unset;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashGraphsPayroll:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.dashGraphsHd {
    align-items: center;
    justify-content: space-between;
}

.mOpt {
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.mOpt a,
.mOpt button,
.mOpt .mOptBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    height: 28px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all ease 0.2s;
    user-select: none;
}

.mOpt a:hover,
.mOpt button:hover,
.mOpt .mOptBtn:hover {
    border-color: #e2e8f0;
    background-color: #f8fafc;
    color: #0f172a;
}

.mOpt a.active,
.mOpt button.active,
.mOpt .mOptBtn.active {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* ==========================================================================
   DASHBOARD - LEAVE REQUESTS STATUS CARD (PREMIUM ANALYTICS WIDGET)
   ========================================================================== */

.dashGraphsLeaveReq.leave-status-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.dashGraphsLeaveReq.leave-status-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.leave-status-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.leave-status-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.leave-status-card__subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 3px 0 0 0;
    font-weight: 400;
}

.leave-status-card__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.leave-status-card__action-btn:hover {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

.leave-status-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-direction: row;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    width: 100%;
}

.leave-status-card__chart-wrap {
    flex: 0 0 160px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leave-status-card__canvas-box {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leave-status-card__canvas-box canvas {
    max-width: 160px !important;
    max-height: 160px !important;
    display: block;
}

.leave-status-card__center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.leave-status-card__center-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.leave-status-card__center-lbl {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
    line-height: 1;
}

.leave-status-card__legend-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.leave-status-card__legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.leave-status-card__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.leave-status-card__item:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    transform: translateX(2px);
}

.leave-status-card__item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leave-status-card__item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.leave-status-card__item-dot--approved {
    background-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.leave-status-card__item-dot--process {
    background-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.leave-status-card__item-dot--pending {
    background-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.leave-status-card__item-dot--rejected {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.leave-status-card__item-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.leave-status-card__item-values {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.leave-status-card__item-count {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.leave-status-card__item-percent {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

/* Fallback legacy describeColor rules */
.describeColor li.dcColor1:before {
    background-color: #16a34a;
}

.describeColor li.dcColor2:before {
    background-color: #f59e0b;
}

.describeColor li.dcColor3:before {
    background-color: #1e40af;
}

@media (max-width: 1200px) {
    .dashGraphsLeaveReq.leave-status-card {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .leave-status-card__body {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .leave-status-card__legend-wrap,
    .leave-status-card__legend {
        width: 100%;
    }
}

/* Leave Statistics by Force Styles */
.leave-status-card__item--clickable {
    cursor: pointer !important;
    user-select: none;
    position: relative;
}

.leave-status-card__item--clickable:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: translateX(4px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.leave-item-arrow {
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.leave-status-card__item--clickable:hover .leave-item-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.leave-force-pills-bar {
    padding-bottom: 4px;
}

.leave-forces-summary-sec {
    width: 100%;
}

.leave-forces-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 680px) {
    .leave-forces-grid {
        grid-template-columns: 1fr;
    }
}

.leave-force-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.leave-force-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.leave-force-card--selected {
    background: #ffffff;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}

.leave-force-chips-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 6px;
}

.leave-stat-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid transparent;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    box-sizing: border-box;
    width: 100%;
}

.leave-stat-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chip-label {
    font-size: 10px;
    color: #64748b;
}

.chip-val {
    font-weight: 700;
    font-size: 11px;
}

/* Chip variant tints */
.leave-stat-chip--approved {
    border-color: #dcfce7;
    background-color: #f0fdf4;
}

.leave-stat-chip--approved .chip-dot {
    background-color: #16a34a;
}

.leave-stat-chip--approved .chip-val {
    color: #15803d;
}

.leave-stat-chip--approved:hover {
    background-color: #dcfce7;
    border-color: #86efac;
}

.leave-stat-chip--process {
    border-color: #fef3c7;
    background-color: #fffbeb;
}

.leave-stat-chip--process .chip-dot {
    background-color: #f59e0b;
}

.leave-stat-chip--process .chip-val {
    color: #b45309;
}

.leave-stat-chip--process:hover {
    background-color: #fef3c7;
    border-color: #fde68a;
}

.leave-stat-chip--pending {
    border-color: #dbeafe;
    background-color: #eff6ff;
}

.leave-stat-chip--pending .chip-dot {
    background-color: #1e40af;
}

.leave-stat-chip--pending .chip-val {
    color: #1d4ed8;
}

.leave-stat-chip--pending:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
}

.leave-stat-chip--rejected {
    border-color: #fee2e2;
    background-color: #fef2f2;
}

.leave-stat-chip--rejected .chip-dot {
    background-color: #ef4444;
}

.leave-stat-chip--rejected .chip-val {
    color: #b91c1c;
}

.leave-stat-chip--rejected:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
}

/* KPI Card Active Filter styling in LeaveRequests */
.kpi-card--active-filter {
    border: 2px solid #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}


.baseTableWrap {
    background-color: #ffffff;
    border-radius: var(--border-radius-md, 8px);
    padding: 16px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm);
}

.baseTableHd {
    align-items: center;
    justify-content: space-between;
}

.baseTableTR {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.baseTableTR .searchBox {
    width: 280px;
    max-width: 100%;
    position: relative;
}

.imgCenter.dashGraph {
    padding: 0px 30px 30px;
}

.dropdownSortBy .dropdown-toggle,
.dropdownStatus .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    height: 40px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dropdownSortBy .dropdown-toggle:hover,
.dropdownStatus .dropdown-toggle:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
    color: #0f172a;
}

.dropdownSortBy .dropdown-toggle:focus,
.dropdownStatus .dropdown-toggle:focus,
.dropdownSortBy .dropdown-toggle.active,
.dropdownStatus .dropdown-toggle.active {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
    outline: none;
}

/* Standardized Custom Dropdown Menus (Matching Header Reference) */
.dropdown {
    position: relative;
}

.dropdown .dropdown-menu,
.dropdownSortBy .dropdown-menu,
.dropdownStatus .dropdown-menu,
.app-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    max-width: 280px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    z-index: 1060;
    padding: 4px;
    margin: 0;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
    animation: headerDropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown .dropdown-menu.show,
.dropdownSortBy .dropdown-menu.show,
.dropdownStatus .dropdown-menu.show,
.app-dropdown-menu.show {
    display: flex;
}

.dropdown .dropdown-item,
.dropdownSortBy .dropdown-item,
.dropdownStatus .dropdown-item,
.app-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
}

.dropdown .dropdown-item:hover,
.dropdown .dropdown-item:focus,
.dropdownSortBy .dropdown-item:hover,
.dropdownSortBy .dropdown-item:focus,
.dropdownStatus .dropdown-item:hover,
.dropdownStatus .dropdown-item:focus,
.app-dropdown-item:hover,
.app-dropdown-item:focus {
    background-color: #f1f5f9;
    color: #1e40af;
    text-decoration: none;
}

.dropdown .dropdown-item.active,
.dropdownSortBy .dropdown-item.active,
.dropdownStatus .dropdown-item.active,
.app-dropdown-item.active {
    background-color: #eff6ff;
    color: #1e40af;
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 4px 0;
    border: none;
    padding: 0;
}

.baseTableContainer {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    min-height: 400px;
}

.baseTable,
.app-table,
.leaveEntitlementTable,
.entitlements-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.baseTable tr th,
.baseTable tr td,
.app-table tr th,
.app-table tr td {
    white-space: nowrap;
    word-break: keep-all;
}

.baseTable tr th,
.baseTable th,
.app-table th,
.leaveEntitlementTable th,
.leaveEntitlementTable tr th,
.entitlements-table th,
table.table thead th {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b !important;
    background-color: #ECF0FF !important;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #dce4f9 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 4;
    vertical-align: middle;
}

.baseTable tr td,
.baseTable td,
.app-table td,
.leaveEntitlementTable td,
.leaveEntitlementTable tr td,
.entitlements-table td,
table.table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.4;
    background-color: #ffffff;
    border-top: none;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1e293b;
    vertical-align: middle;
}

.baseTable tbody tr,
.app-table tbody tr,
table.table tbody tr {
    transition: background-color 150ms ease;
}

.baseTable tbody tr:hover,
.baseTable tbody tr:hover td,
.app-table tbody tr:hover,
.app-table tbody tr:hover td,
table.table tbody tr:hover,
table.table tbody tr:hover td {
    background-color: #F8FAFF !important;
}

.td-empty-state {
    text-align: center;
    padding: 48px 24px !important;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    background-color: #ffffff !important;
}

.btn-primary {
    background-color: #1E40AF !important;
    border-color: #1E40AF !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 6px;
    padding: 3px 10px;
    color: var(--textGray);
    white-space: nowrap;
}

.status.green,
.status.active,
.status.approved,
.status.completed,
.status.success,
.status.leaveActive {
    background-color: #D5FFF2;
    color: #15803D;
}

.status.red,
.status.rejected,
.status.inactive,
.status.failed,
.status.cancelled,
.status.danger,
.status.leaveRejected {
    background-color: #FFF6F6;
    color: #DC2626;
}

.status.yellow,
.status.pending,
.status.in-process,
.status.warning {
    background-color: #FEF3C7;
    color: #B45309;
}

.status.blue,
.status.info,
.status.processing {
    background-color: #EFF6FF;
    color: #1D4ED8;
}

.status.purple {
    background-color: #F5F3FF;
    color: #6D28D9;
}

.optBlock {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.optButton {
    width: max-content;
}

.optBtn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    gap: 6px;
    color: var(--darkBlue);
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.optBtn:hover {
    color: #1e3a8a;
    background-color: #eff6ff;
    text-decoration: none;
}

.optBtn.text-danger,
.optBtn.danger {
    color: #dc2626;
}

.optBtn.text-danger:hover,
.optBtn.danger:hover {
    color: #b91c1c;
    background-color: #fef2f2;
}

.optBlock .bar {
    color: #cbd5e1;
    flex-shrink: 0;
}

/* Reports page: catalog and builder side by side */
.twoEqlColTbl {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: nowrap;
}

.twoEqlColTblCh {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
}

/* Leave page: form and entitlements */
.leaveTopRow {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 12px;
    align-items: start;
    margin-bottom: 26px;
}

.leaveRequestSidebar,
.leaveEntitlementPanel {
    width: 100%;
}

.leaveRequestSidebar {
    max-width: none;
}

.leaveEntitlementPanel {
    width: 420px;
    justify-self: end;
}

.leaveRequestMain {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-wrap: nowrap;
}

.twoEqlColTblCh {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
}

.baseTableInpts {
    padding: 16px;
}

.leaveRequestSidebar .formFieldsWrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.leaveRequestSidebar .formFieldsWrap li,
.leaveEntitlementPanel .formFieldsWrap li {
    width: 100% !important;
    padding: 0;
}

.leaveRequestSidebar .formFieldsWrap li.w_1_1 {
    grid-column: span 2;
}

.leaveRequestSidebar .formInpt,
.leaveEntitlementPanel .formInpt {
    width: 100%;
}

.leaveRequestSidebar .btnSet,
.leaveEntitlementPanel .btnSet {
    justify-content: flex-start;
    gap: 12px;
}

.leaveRequestSidebar .formInpt input,
.leaveRequestSidebar .formInpt select,
.leaveRequestSidebar .formInpt textarea {
    min-height: 44px;
}

.leaveRequestSidebar .formInpt textarea {
    min-height: 120px;
}

.leaveRequestMain .baseTableContainer {
    overflow-x: auto;
}

.leaveBalanceSummary,
.leaveEntitlementPanel {
    background-color: var(--white);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.leaveEntitlementPanel {
    margin-top: 0;
}

.leaveBalanceSummary h3,
.leaveEntitlementPanel h2 {
    margin-bottom: 16px;
}

.leaveEntitlementTable th,
.leaveEntitlementTable td {
    padding: 12px 14px;
    font-size: 14px;
}

.leaveEntitlementTable th {
    background-color: #f5f7fb;
}

.leaveEntitlementTable {
    width: 100%;
    border-collapse: collapse;
}

.leaveEntitlementTable tr td,
.leaveEntitlementTable tr th {
    border: 1px solid #e8edf6;
}

.baseTableFormSec {
    padding: 20px 0;
}

.btnSet {
    gap: 12px;
}

.baseTableFormSec .formFieldsWrap {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.baseTableFormSec .formFieldsWrap li {
    padding: 10px;
}

.baseTableFormSec .formFieldsWrap li.w_1_2 {
    width: 50%;
}

.baseTableFormSec .formFieldsWrap li.w_1_4 {
    width: 25%;
}

.baseTableFormSec .formFieldsWrap li.w_1_1 {
    width: 100%;
}

.baseTableFormSec .formInpt label {
    font-weight: 400;
}

/* .baseTableWrap .formInpt input, 
.baseTableWrap .formInpt input[type="text"], 
.baseTableWrap .formInpt input[type="email"], 
.baseTableWrap .formInpt input[type="date"], 
.baseTableWrap .formInpt input[type="password"], 
.baseTableWrap .formInpt textarea, 
.baseTableWrap .formInpt select,
.baseTableWrap .formInpt .ui-selectmenu-button.ui-button,

.baseTableFormSec .formInpt input, 
.baseTableFormSec .formInpt input[type="text"], 
.baseTableFormSec .formInpt input[type="email"], 
.baseTableFormSec .formInpt input[type="date"], 
.baseTableFormSec .formInpt input[type="password"], 
.baseTableFormSec .formInpt textarea, 
.baseTableFormSec .formInpt select,
.baseTableFormSec .formInpt .ui-selectmenu-button.ui-button{
    height: 40px;
    padding: 8px 12px;
}
.baseTableWrap .hasDatePicker .ui-datepicker-trigger,
.baseTableFormSec .hasDatePicker .ui-datepicker-trigger{
    bottom: 10px;
    right: 12px;
} */
.tblTopBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 14px;
    height: 38px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tblTopBtn.h40 {
    height: 40px;
}

.dropdownSortBy .dropdown-toggle:hover,
.tblTopBtn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.tblTopBtnBlue {
    background-color: #1E40AF;
    border: 1px solid #1E40AF;
    color: #ffffff;
}

.tblTopBtnBlack {
    background-color: #0f172a;
    border: 1px solid #0f172a;
    color: #ffffff;
}

.tblTopBtnBlue:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
    opacity: 1;
}

.tblTopBtnBlack:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    opacity: 1;
}

.tblTopBtnBlack:hover {
    background-color: #000000;
}

.baseTableFormSec {
    background-color: var(--white);
    border-radius: 6px;
    padding: 20px;
}

.leaveActive {
    background-color: #D5FFF2;
    border-radius: 8px;
    padding: 3px 11px;
    color: #49A446;
}

.leaveApproved {
    background-color: #d1ffe1;
    border-radius: 8px;
    padding: 3px 11px;
    color: #004b1b;
}

.leaveRejected {
    background-color: #FFF6F6;
    border-radius: 8px;
    padding: 3px 11px;
    color: #F43B3B;
}

.leavePending {
    background-color: #FFF6F6;
    border-radius: 8px;
    padding: 3px 11px;
    color: #FFCC00;
}

.lActive {
    color: #FFCC00;
}

.lApproved {
    color: #49A446;
}

.lRejected {
    color: #DB0000;
}

.baseTableWrapWithSmlGph {
    width: 100%;
    max-width: calc(100% - 400px);
}

/* When a reports container needs to use the full width (no small graph present) */
.baseTableWrap.fullWidth {
    max-width: 100% !important;
    width: 100% !important;
}

.radioSet {
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.customRadio,
.formInpt label.customRadio {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    letter-spacing: normal;
    line-height: 50px;
}

.customRadio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.customRadio .checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #DEDEDE;
    border: 1px solid #DEDEDE;
    border-radius: 50%;
    flex-shrink: 0;
}

.customRadio input:checked~.checkmark {
    background-color: #2260E5;
    border-color: #2260E5;
}

.customRadio .checkmark:after {
    display: block;
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
}

.customRadio:hover input~.checkmark:after {
    background-color: #2260E5;
}

.customRadio:hover input:checked~.checkmark:after {
    background-color: var(--white);
}

/* Tabs */
.tabset>input[type="radio"] {
    position: absolute;
    left: -200vw;
}

.tabset .tab-panel {
    display: none;
}

.tabset>input:first-child:checked~.tab-panels>.tab-panel:first-child,
.tabset>input:nth-child(3):checked~.tab-panels>.tab-panel:nth-child(2),
.tabset>input:nth-child(5):checked~.tab-panels>.tab-panel:nth-child(3),
.tabset>input:nth-child(7):checked~.tab-panels>.tab-panel:nth-child(4),
.tabset>input:nth-child(9):checked~.tab-panels>.tab-panel:nth-child(5),
.tabset>input:nth-child(11):checked~.tab-panels>.tab-panel:nth-child(6) {
    display: block;
}

.tabset>label {
    position: relative;
    display: inline-block;
    padding: 0 0 9px;
    margin-right: 45px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: #777789;
    line-height: 1;
}

input:focus-visible+label {
    border-color: #2260E5;
}

.tabset>label:hover,
.tabset>input:focus+label,
.tabset>input:checked+label {
    color: #2260E5;
}

.tabset>input:checked+label {
    border-color: #2260E5;
}

.baseTableTR .formInpt .ui-selectmenu-button.ui-button {
    height: 45px;
    padding: 8px 11px;
}



.tabsContainer {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.tab:hover {
    background-color: #f5f5f5;
}

.tab.active {
    border-bottom-color: #007bff;
    color: #007bff;
}

.sub_menu_item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-radius: 6px;
    text-decoration: none;
    position: relative;
    transition: all 0.15s ease;
    line-height: 1.35;
    border: 1px solid transparent;
}

a.nav-link.dropdown-toggle.show svg {
    filter: none;
    color: #ffffff;
}

.sub_menu_item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 500;
}

.sub_menu_item.active {
    background-color: #eff6ff;
    color: #1e40af !important;
    font-weight: 600;
    border: 1px solid #dbeafe;
}

.sub_menu_item.active::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background-color: #1e40af;
    border-radius: 2px;
}

.personnel-validation-banner {
    color: #7f1d1d;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid #fca5a5;
    border-left: 5px solid #dc2626;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 0 0 24px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.personnel-validation-banner__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.personnel-validation-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.personnel-validation-banner__title {
    display: block;
    font-size: 15px;
    color: #991b1b;
    margin-bottom: 2px;
}

.personnel-validation-banner__subtitle {
    margin: 0;
    font-size: 13px;
    color: #b91c1c;
    opacity: 0.9;
}

.personnel-validation-banner__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.personnel-validation-banner__chip {
    display: inline-block;
    background: #fff;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.personnel-field-error {
    color: #dc2626 !important;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
    display: block;
}

.personnel-native-select {
    width: 100%;
}



/* systemDashboard.css */

.syska-wrapper {
    font-family: "Segoe UI", sans-serif;
    color: #fff;
    background: #000;
}

/* HERO SECTION */
.syska-hero {
    position: relative;
    height: 450px;
    background: url("https://via.placeholder.com/1500x600") no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.syska-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

.syska-header-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.syska-logo-placeholder {
    width: 80px;
    height: 80px;
    background: #ccc;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

.syska-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

.syska-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.syska-stars {
    margin-top: 10px;
    color: #00e5ff;
}

/* CARDS */
.syska-cards-container {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    background: #111;
}

.syska-card {
    text-align: center;
    width: 30%;
}

.syska-card-img {
    width: 80px;
    height: 80px;
    background: #666;
    margin: 0 auto 10px;
    border-radius: 50%;
}

/* INFO SECTION */
.syska-info-section {
    display: flex;
    justify-content: space-around;
    padding: 30px;
    background: #0a0a0a;
    border-top: 1px solid #222;
}

.syska-info-box {
    width: 30%;
    text-align: center;
}

.syska-info-box h4 {
    color: #00e5ff;
    margin-bottom: 8px;
}

.syska-info-box p {
    font-size: 13px;
    opacity: 0.8;
}

.box_card {
    z-index: 1;
    max-width: 65%;
}

.box_card_inner {

    gap: 16px;
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.firstLogo_card {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

.box_blockCard {

    display: flex;
    justify-content: center;
}

.msg_card {
    margin-top: 50px;
}

.title_msgCard {
    text-align: start;
}

.firstLogo_card img {
    max-width: 460px;
    width: 100%;
}


.msg_innerCard {
    display: flex;
    gap: 16px;
}

.box_blockCard img {
    max-width: 200px;
    width: 100%;
}

.title_msgCard h4 {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 700;
    color: #11BCB0;
    margin-bottom: 8px;
}

.title_msgCard p {
    color: #fff;
}

.box_blockCard_border {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

.footer_loginInner {
    display: flex;
    gap: 16px;
}

.footer_loginBoard {
    z-index: 1;
    position: relative;
    text-align: center;
    border-top: 1px solid #049493b5;
    padding: 16px;
}

.footer_loginInner {
    display: flex;
    gap: 16px;

    justify-content: center;

    p {
        margin-bottom: 0;
        color: #fff;

    }

}

.mAuto.mb_24.loginLogoBox {
    width: 142px;
    background: #008787;
    height: 142px;
    border: 16px solid #DFE8E8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}



.msg_card .box_blockCard {
    padding: 24px 50px 010px;
}

.personnel-validation-banner {
    color: #7f1d1d;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid #fca5a5;
    border-left: 5px solid #dc2626;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 0 0 24px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.personnel-validation-banner__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.personnel-validation-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.personnel-validation-banner__title {
    display: block;
    font-size: 15px;
    color: #991b1b;
    margin-bottom: 2px;
}

.personnel-validation-banner__subtitle {
    margin: 0;
    font-size: 13px;
    color: #b91c1c;
    opacity: 0.9;
}

.personnel-validation-banner__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.personnel-validation-banner__chip {
    display: inline-block;
    background: #fff;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.personnel-field-error {
    color: #dc2626 !important;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
    display: block;
}

.personnel-native-select {
    width: 100%;
}

/* Leave Management Tabs Styling */
.tabsContainer {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.tabsContainer .tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: -2px;
}

.tabsContainer .tab:hover {
    color: #1d4ed8;
    background-color: #f3f4f6;
    border-radius: 4px 4px 0 0;
}

.tabsContainer .tab.active {
    color: #1d4ed8;
    font-weight: 700;
    border-bottom: 3px solid #1d4ed8;
    background-color: #eff6ff;
    border-radius: 4px 4px 0 0;
}

/* ==========================================================================
   Webcam Capture Modal & ID Framing Guide Styles (Enterprise Standard)
   ========================================================================== */

.webcam-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: webcamModalFadeIn 0.2s ease-out;
}

@keyframes webcamModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.webcam-modal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: webcamCardSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes webcamCardSlideUp {
    from {
        transform: translateY(12px) scale(0.985);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.webcam-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.webcam-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.webcam-badge-icon {
    width: 36px;
    height: 36px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.webcam-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.webcam-modal-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.webcam-modal-close-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.webcam-modal-close-btn:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}

.webcam-modal-body {
    padding: 16px 20px;
    background: #f8fafc;
}

.webcam-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.webcam-device-select-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

.webcam-device-icon {
    color: #64748b;
    flex-shrink: 0;
}

.webcam-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    margin: 0;
}

.webcam-select {
    height: 32px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 0 8px;
    width: 100%;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.webcam-select:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.15);
}

.webcam-options-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.webcam-tool-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.webcam-tool-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.webcam-tool-btn.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
    font-weight: 600;
}

/* Viewfinder Area */
.webcam-viewfinder-container {
    position: relative;
    width: 100%;
    height: 390px;
    background: #090d16;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e293b;
}

.webcam-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webcam-video-element.mirrored {
    transform: scaleX(-1);
}

/* Shutter Flash */
.webcam-flash-overlay {
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 20;
    animation: webcamFlash 0.2s ease-out forwards;
    pointer-events: none;
}

@keyframes webcamFlash {
    0% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}

/* ID Framing Guide */
.webcam-overlay-guide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.webcam-guide-portrait-box {
    position: relative;
    width: 240px;
    height: 320px;
    /* Exact 3:4 portrait ratio */
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(9, 13, 22, 0.52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 24px;
}

/* Headroom Guideline */
.webcam-guide-headroom {
    position: absolute;
    top: 14px;
    left: 45px;
    right: 45px;
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.22);
}

/* Head Oval Guide */
.webcam-guide-oval {
    position: relative;
    width: 130px;
    height: 170px;
    border: 1.5px dashed rgba(255, 255, 255, 0.45);
    border-radius: 50% 50% 46% 46%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0) 70%);
}

.webcam-guide-eyeline {
    position: absolute;
    top: 44%;
    left: 14px;
    right: 14px;
    height: 1px;
    border-top: 1px dashed rgba(96, 165, 250, 0.65);
}

/* Shoulder Arc */
.webcam-guide-shoulders {
    position: absolute;
    bottom: 10px;
    width: 210px;
    height: 60px;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.32);
    border-radius: 50% 50% 0 0;
}

/* Center Crosshair */
.webcam-guide-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.webcam-guide-crosshair::before,
.webcam-guide-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.35);
}

.webcam-guide-crosshair::before {
    top: 4px;
    left: 0;
    width: 10px;
    height: 1.5px;
}

.webcam-guide-crosshair::after {
    top: 0;
    left: 4px;
    width: 1.5px;
    height: 10px;
}

/* Corner brackets */
.corner-bracket {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #60a5fa;
    border-style: solid;
}

.corner-bracket.top-left {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
    border-top-left-radius: 6px;
}

.corner-bracket.top-right {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
    border-top-right-radius: 6px;
}

.corner-bracket.bottom-left {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
    border-bottom-left-radius: 6px;
}

.corner-bracket.bottom-right {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
    border-bottom-right-radius: 6px;
}

/* Instructions Panel */
.webcam-instructions-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    margin-top: 10px;
}

.webcam-instructions-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.webcam-instructions-icon {
    color: #1e40af;
    flex-shrink: 0;
}

.webcam-instructions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px 10px;
}

.webcam-instruction-item {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.webcam-bullet {
    color: #1e40af;
    font-weight: 700;
}

/* Countdown Overlay */
.webcam-countdown-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 15;
    pointer-events: none;
}

.webcam-countdown-number {
    font-size: 96px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    animation: countdownPulse 0.95s infinite ease-out;
}

@keyframes countdownPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Preview Box (Review Mode) */
.webcam-preview-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #090d16;
}

.webcam-preview-img {
    height: 320px;
    width: 240px;
    /* Exact 3:4 portrait */
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #3b82f6;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.webcam-preview-badge {
    margin-top: 10px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loading & Error States */
.webcam-loading-box,
.webcam-error-box {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #ffffff;
    z-index: 5;
}

.webcam-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.webcam-error-box {
    background: #0f172a;
}

.webcam-error-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.webcam-error-title {
    font-size: 15px;
    font-weight: 600;
    color: #f87171;
    margin: 0 0 4px 0;
}

.webcam-error-desc {
    font-size: 12px;
    color: #94a3b8;
    max-width: 360px;
    margin: 0;
    line-height: 1.4;
}

/* Modal Footer */
.webcam-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.webcam-capture-action-btn {
    min-width: 155px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
}

.webcam-capture-action-btn:hover:not(:disabled) {
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.25);
}

.webcam-capture-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.webcam-confirm-btn {
    min-width: 155px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.webcam-confirm-btn:hover {
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
}

.webcam-retake-btn {
    height: 38px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
}

.webcam-retake-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

@media (max-width: 640px) {
    .webcam-modal-card {
        max-width: 100%;
        border-radius: 10px;
    }

    .webcam-viewfinder-container {
        height: 310px;
    }

    .webcam-guide-portrait-box {
        width: 195px;
        height: 260px;
        padding-top: 16px;
    }

    .webcam-guide-oval {
        width: 105px;
        height: 135px;
    }

    .webcam-guide-shoulders {
        width: 170px;
        height: 48px;
    }

    .webcam-preview-img {
        width: 195px;
        height: 260px;
    }

    .webcam-instructions-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Army Photo upload wrapper actions */
.army-photo-actions-wrap {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.army-photo-webcam-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    height: 38px;
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.2);
    transition: all 0.15s ease;
}

.army-photo-webcam-btn:hover {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
    transform: translateY(-1px);
}

.army-photo-upload-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    height: 38px;
    border-radius: 6px;
}

.army-photo-clear-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 6px;
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

.army-photo-clear-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.army-photo-corner-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.88);
    color: #ffffff !important;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 5;
    padding: 0;
    transition: all 0.15s ease;
}

.army-photo-corner-remove:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* ==========================================================================
   DESIGN SYSTEM & REUSABLE COMPONENT CLASSES (CSS Refactoring)
   ========================================================================== */

/* 1. Modal & Overlay System */
.app-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: appModalFadeIn 0.2s ease-out;
}

@keyframes appModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.app-modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: appModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appModalSlideUp {
    from {
        transform: translateY(12px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.app-modal-dialog--sm {
    max-width: 460px;
}

.app-modal-dialog--md {
    max-width: 650px;
}

.app-modal-dialog--lg {
    max-width: 850px;
}

.app-modal-dialog--xl {
    max-width: 1100px;
}

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.app-modal-title {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}

.app-modal-body {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
}

.app-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.app-modal-footer .btn,
.app-modal-footer button,
.app-modal-footer .btn-action-base {
    height: 36px;
    min-height: 36px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
}

.app-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 2. Key-Value Info Grid & Detail Rows (View Modals & Profile) */
.info-row {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: baseline;
}

.info-row__label {
    min-width: 180px;
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
    flex-shrink: 0;
}

.info-row__value {
    color: #0f172a;
    font-size: 13px;
    word-break: break-word;
    flex: 1;
}

.personnel-view-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}

.personnel-photo-frame {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: block;
}

.personnel-photo-placeholder {
    width: 180px;
    height: 180px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
}

.personnel-signature-frame {
    max-width: 180px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: block;
}

.personnel-signature-placeholder {
    width: 180px;
    height: 70px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
}

.personnel-fingerprints-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.personnel-fingerprint-card {
    width: 70px;
    height: 90px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #15803d;
    font-weight: 600;
    gap: 4px;
}

.personnel-fingerprint-img {
    width: 70px;
    height: 90px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
}

/* 3. KPI & Metric Statistics Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.kpi-card__content {
    display: flex;
    flex-direction: column;
}

.kpi-card__label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-card__value {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 4px;
    line-height: 1.1;
}

.kpi-card__subtext {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.kpi-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-card--primary {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border-color: #dbeafe;
}

.kpi-card--primary .kpi-card__icon {
    background: #eff6ff;
    color: #1d4ed8;
}

.kpi-card--warning {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-color: #fef3c7;
}

.kpi-card--warning .kpi-card__label {
    color: #d97706;
}

.kpi-card--warning .kpi-card__value {
    color: #b45309;
}

.kpi-card--warning .kpi-card__subtext {
    color: #f59e0b;
}

.kpi-card--warning .kpi-card__icon {
    background: #fef3c7;
    color: #d97706;
}

.kpi-card--success {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-color: #dcfce7;
}

.kpi-card--success .kpi-card__label {
    color: #15803d;
}

.kpi-card--success .kpi-card__value {
    color: #166534;
}

.kpi-card--success .kpi-card__subtext {
    color: #22c55e;
}

.kpi-card--success .kpi-card__icon {
    background: #dcfce7;
    color: #15803d;
}

.kpi-card--danger {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
    border-color: #ffe4e6;
}

.kpi-card--danger .kpi-card__label {
    color: #dc2626;
}

.kpi-card--danger .kpi-card__value {
    color: #b91c1c;
}

.kpi-card--danger .kpi-card__subtext {
    color: #ef4444;
}

.kpi-card--danger .kpi-card__icon {
    background: #fee2e2;
    color: #dc2626;
}

.kpi-card--purple {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border-color: #f3e8ff;
}

.kpi-card--purple .kpi-card__label {
    color: #7e22ce;
}

.kpi-card--purple .kpi-card__value {
    color: #6b21a8;
}

.kpi-card--purple .kpi-card__subtext {
    color: #a855f7;
}

.kpi-card--purple .kpi-card__icon {
    background: #f3e8ff;
    color: #7e22ce;
}

/* 4. Form Grids & Layout Utilities */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {

    .form-grid-2,
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }

    .personnel-view-grid {
        grid-template-columns: 1fr;
    }
}

.form-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
}


.form-inner-pad-x {
    padding-left: 20px;
    padding-right: 20px;
}

.form-group-label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
    display: block;
    font-size: 13px;
}

.required-asterisk {
    color: #dc2626;
    margin-left: 2px;
}

.d-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gap-xs {
    gap: 4px;
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 16px;
}

.gap-lg {
    gap: 24px;
}

/* 5. Table Helpers */
.th-actions {
    min-width: 160px;
}

.th-actions-center {
    min-width: 160px;
    text-align: center;
}

.th-w-num {
    width: 60px;
    text-align: center;
}

.td-empty-state {
    text-align: center;
    padding: 28px 16px;
    color: #64748b;
    font-size: 13px;
}

.td-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.td-mono-bold {
    font-family: monospace;
    font-weight: 600;
    color: #1e40af;
}

/* 6. Status Chips & Pills */
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.status-chip--success {
    background: #dcfce7;
    color: #166534;
}

.status-chip--warning {
    background: #fef3c7;
    color: #92400e;
}

.status-chip--danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-chip--info {
    background: #eff6ff;
    color: #1e40af;
}

.status-chip--neutral {
    background: #f1f5f9;
    color: #475569;
}

.status-chip--purple {
    background: #f5f3ff;
    color: #6d28d9;
}

.status-chip--revoked {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.leave-days-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

/* 7. Feedback Alerts */
.feedback-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-alert--success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.feedback-alert--error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.feedback-alert--warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.feedback-alert--info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

/* 8. Sub-Tabs Navigation */
.tab-nav-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.tab-nav-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    background-color: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab-nav-btn:hover:not(.active) {
    background-color: #f1f5f9;
    color: #0f172a;
}

.tab-nav-btn.active {
    background-color: #1E40AF;
    color: #ffffff;
}

/* 9. Calendar & Schedule Grid */
.calendar-view-card {
    padding: 24px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.calendar-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: #64748b;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8fafc;
    border-radius: 4px;
}

.calendar-day-cell {
    min-height: 90px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    background-color: #ffffff;
    transition: border-color 0.15s ease;
    display: flex;
    flex-direction: column;
}

.calendar-day-cell:hover {
    border-color: #93c5fd;
}

.calendar-day-cell--today {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

.calendar-day-cell--holiday {
    background-color: #fff7ed;
    border-color: #f97316;
}

.calendar-day-cell--leave {
    background-color: #f0fdf4;
    border-color: #22c55e;
}

.calendar-day-cell--clickable {
    cursor: pointer;
}

.calendar-day-cell--weekend {
    background-color: #fafafa;
}

.calendar-day-cell--empty {
    border-color: transparent;
    background-color: transparent;
}

.calendar-legend-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    flex-wrap: wrap;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.calendar-legend-dot--today {
    background-color: #eff6ff;
    border: 2px solid #1e40af;
}

.calendar-legend-dot--leave {
    background-color: #dcfce7;
    border: 1px solid #15803d;
}

.calendar-legend-dot--holiday {
    background-color: #ffedd5;
    border: 1px solid #c2410c;
}

.btn-calendar-nav {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-calendar-nav:hover {
    background-color: #f1f5f9;
}

.btn-calendar-nav--active {
    border-color: #1e40af;
    background-color: #1e40af;
    color: #ffffff;
}

.btn-calendar-nav--active:hover {
    background-color: #1d4ed8;
}

.personnel-profile-banner {
    padding: 12px 16px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.personnel-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e40af;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.formula-card {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.calendar-day-num {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 4px;
}

.calendar-holiday-pill {
    background-color: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-leave-pill {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 10. Timeline & Activity Steps */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 24px;
}

.timeline-list::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-bullet {
    position: absolute;
    left: -24px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #1e40af;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #dbeafe;
}

.timeline-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.timeline-meta {
    font-size: 12px;
    color: #64748b;
}

.timeline-desc {
    font-size: 12px;
    color: #334155;
    background-color: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

/* 11. Personnel Selector List & Entitlement Cards */
.personnel-select-list {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    max-height: 280px;
    overflow-y: auto;
    background-color: #ffffff;
}

.personnel-select-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.personnel-select-item:hover {
    background-color: #f8fafc;
}

.personnel-select-item--active {
    background-color: #eff6ff !important;
    border-left: 3px solid #1e40af;
}

.personnel-select-item__name {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}

.personnel-select-item__badge {
    font-size: 11px;
    font-weight: 600;
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.personnel-select-item__meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 4px;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.personnel-select-item__check {
    background-color: #1e40af;
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.entitlements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.entitlement-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.entitlement-card__title {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.entitlement-card__balance {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.entitlement-card__sub {
    font-size: 11px;
    color: #94a3b8;
}

/* 12. Filter Boxes & Form Selectors */
.form-filter-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.form-filter-title {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.form-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.form-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #475569;
}

.form-filter-select,
.form-filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background-color: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s ease;
}

.form-filter-select:focus,
.form-filter-input:focus {
    border-color: #3b82f6;
    outline: none;
}

.form-filter-count {
    font-size: 12px;
    color: #64748b;
}

.entitlements-table-wrapper {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
}

.entitlements-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.entitlements-table th {
    padding: 12px 14px;
    font-weight: 600;
    font-size: 12px;
    color: #1e293b !important;
    background-color: #ECF0FF !important;
    border-bottom: 1px solid #dce4f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entitlements-table td {
    padding: 12px 14px;
    font-size: 13px;
    color: #1e293b;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.loading-state-card {
    text-align: center;
    padding: 24px;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.loading-spinner,
.loading-spinner-circle {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #1E40AF;
    border-right-color: #1E40AF;
    border-radius: 50%;
    animation: preloaderSpin 0.85s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

.leave-duration-badge {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leave-duration-badge--valid {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.leave-duration-badge--invalid {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.file-input-custom {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 13px;
}

.attached-file-badge {
    margin-top: 6px;
    font-size: 12px;
    color: #1e40af;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 13. Bulk Actions & Table Action Buttons */
.bulk-action-bar {
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bulk-action-count {
    font-size: 14px;
    font-weight: 600;
}

.bulk-action-pill {
    background-color: #2563eb;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
}

.btn-action-approve {
    background-color: #16a34a;
    color: #ffffff;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.15s ease;
}

.btn-action-approve:hover {
    background-color: #15803d;
}

.btn-action-reject {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.15s ease;
}

.btn-action-reject:hover {
    background-color: #ffedd5;
}

.btn-action-delete {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecdd3;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.15s ease;
}

.btn-action-delete:hover {
    background-color: #fee2e2;
}

.btn-action-cancel,
.btn-action-revoke {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.15s ease;
}

.btn-action-cancel:hover,
.btn-action-revoke:hover {
    background-color: #f1f5f9;
}

.btn-action-reopen {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.15s ease;
}

.btn-action-reopen:hover {
    background-color: #dcfce7;
}

.btn-action-edit {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.15s ease;
}

.btn-action-edit:hover {
    background-color: #dbeafe;
}

.btn-action-history {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.15s ease;
}

.btn-action-history:hover {
    background-color: #e2e8f0;
}

.btn-action-dark {
    background-color: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-reset-filters {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-reset-filters:hover {
    text-decoration: underline;
}

.doc-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: #f8fafc;
    color: #2563eb;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.doc-link-btn:hover {
    background-color: #eff6ff;
    border-color: #93c5fd;
}

.json-pre-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 12px;
    font-family: monospace;
    color: #334155;
    overflow-x: auto;
}

/* 14. Action Dropdowns */
.actions-dropdown-container {
    position: relative;
    display: inline-block;
}

.btn-action-dropdown-trigger {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-action-dropdown-trigger:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.actions-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 160px;
    padding: 6px 0;
    margin: 4px 0 0;
    font-size: 13px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    list-style: none;
}

.actions-dropdown-item {
    padding: 8px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    color: #334155;
    transition: background-color 0.15s ease;
}

.actions-dropdown-item:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.actions-dropdown-divider {
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 4px;
}

.actions-dropdown-item--danger {
    color: #dc2626;
}

.actions-dropdown-item--danger:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* 15. Payroll Module Styling */
.payroll-access-restricted {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.payroll-access-card {
    text-align: center;
    padding: 40px;
}

.payroll-page-header {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.payroll-force-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.payroll-force-badge-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #cbd5e1;
}

.payroll-workflow-banner {
    margin-bottom: 24px;
    padding: 18px 20px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow-x: auto;
}

.payroll-workflow-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.payroll-workflow-chain {
    display: flex;
    gap: 8px;
    align-items: stretch;
    min-width: 760px;
}

.payroll-workflow-step {
    flex: 1;
    padding: 12px 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: left;
    transition: all 0.2s ease;
}

.payroll-workflow-step:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
}

.payroll-workflow-step-num {
    font-size: 10.5px;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.payroll-workflow-step-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.payroll-workflow-step-action {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.3;
}

.payroll-workflow-arrow {
    display: flex;
    align-items: center;
    padding: 0 2px;
    color: #94a3b8;
    font-size: 14px;
}

.payroll-workflow-notice {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 12px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payroll-analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .payroll-analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .payroll-analytics-grid {
        grid-template-columns: 1fr;
    }
}

.payroll-workflow-step--1 {
    border-left: 3px solid #64748b;
}

.payroll-workflow-step--2 {
    border-left: 3px solid #0284c7;
}

.payroll-workflow-step--3 {
    border-left: 3px solid #059669;
}

.payroll-workflow-step--4 {
    border-left: 3px solid #7c3aed;
}

.payroll-workflow-step--5 {
    border-left: 3px solid #d97706;
}

.payroll-workflow-step--6 {
    border-left: 3px solid #16a34a;
}

.payroll-analytics-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 104px;
    position: relative;
    overflow: hidden;
}

.payroll-analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -3px rgba(0, 0, 0, 0.09);
}

.payroll-analytics-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.payroll-analytics-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.payroll-analytics-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    color: #475569;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.payroll-analytics-card:hover .payroll-analytics-icon-wrap {
    transform: scale(1.1);
}

.payroll-analytics-val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.payroll-analytics-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748b;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.payroll-analytics-action {
    font-weight: 700;
    color: #1e40af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s ease;
}

.payroll-analytics-card:hover .payroll-analytics-action {
    gap: 6px;
}

/* Card 1: Total Personnel — Vibrant Royal Blue */
.payroll-analytics-card--personnel {
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    border-color: #bfdbfe;
    border-top-color: #2563eb;
}

.payroll-analytics-card--personnel:hover {
    box-shadow: 0 8px 18px -3px rgba(37, 99, 235, 0.18);
    border-color: #93c5fd;
}

.payroll-analytics-card--personnel .payroll-analytics-title {
    color: #1e40af;
}

.payroll-analytics-card--personnel .payroll-analytics-val {
    color: #1e3a8a;
}

.payroll-analytics-card--personnel .payroll-analytics-icon-wrap {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.payroll-analytics-card--personnel .payroll-analytics-action {
    color: #2563eb;
}

/* Card 2: Total Basic Salary — Emerald Green */
.payroll-analytics-card--basic-salary {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
    border-color: #bbf7d0;
    border-top-color: #16a34a;
}

.payroll-analytics-card--basic-salary:hover {
    box-shadow: 0 8px 18px -3px rgba(22, 163, 74, 0.18);
    border-color: #86efac;
}

.payroll-analytics-card--basic-salary .payroll-analytics-title {
    color: #15803d;
}

.payroll-analytics-card--basic-salary .payroll-analytics-val {
    color: #14532d;
}

.payroll-analytics-card--basic-salary .payroll-analytics-icon-wrap {
    background-color: #dcfce7;
    color: #15803d;
}

.payroll-analytics-card--basic-salary .payroll-analytics-action {
    color: #16a34a;
}

/* Card 3: Total Allowances — Amber Gold */
.payroll-analytics-card--allowances {
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
    border-color: #fde68a;
    border-top-color: #d97706;
}

.payroll-analytics-card--allowances:hover {
    box-shadow: 0 8px 18px -3px rgba(217, 119, 6, 0.18);
    border-color: #fcd34d;
}

.payroll-analytics-card--allowances .payroll-analytics-title {
    color: #b45309;
}

.payroll-analytics-card--allowances .payroll-analytics-val {
    color: #78350f;
}

.payroll-analytics-card--allowances .payroll-analytics-icon-wrap {
    background-color: #fef3c7;
    color: #b45309;
}

.payroll-analytics-card--allowances .payroll-analytics-action {
    color: #d97706;
}

/* Card 4: Total Net Salary — Deep Sky / Cyan Blue */
.payroll-analytics-card--net-salary {
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    border-color: #bae6fd;
    border-top-color: #0284c7;
}

.payroll-analytics-card--net-salary:hover {
    box-shadow: 0 8px 18px -3px rgba(2, 132, 199, 0.18);
    border-color: #7dd3fc;
}

.payroll-analytics-card--net-salary .payroll-analytics-title {
    color: #0369a1;
}

.payroll-analytics-card--net-salary .payroll-analytics-val {
    color: #0c4a6e;
}

.payroll-analytics-card--net-salary .payroll-analytics-icon-wrap {
    background-color: #e0f2fe;
    color: #0369a1;
}

.payroll-analytics-card--net-salary .payroll-analytics-action {
    color: #0284c7;
}

/* Card 5: Total Bonuses — Vibrant Purple */
.payroll-analytics-card--bonuses {
    background: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%);
    border-color: #e9d5ff;
    border-top-color: #7c3aed;
}

.payroll-analytics-card--bonuses:hover {
    box-shadow: 0 8px 18px -3px rgba(124, 58, 237, 0.18);
    border-color: #d8b4fe;
}

.payroll-analytics-card--bonuses .payroll-analytics-title {
    color: #6d28d9;
}

.payroll-analytics-card--bonuses .payroll-analytics-val {
    color: #4c1d95;
}

.payroll-analytics-card--bonuses .payroll-analytics-icon-wrap {
    background-color: #f3e8ff;
    color: #6d28d9;
}

.payroll-analytics-card--bonuses .payroll-analytics-action {
    color: #7c3aed;
}

/* Card 6: Total Deductions — Crimson Red */
.payroll-analytics-card--deductions {
    background: linear-gradient(145deg, #ffffff 0%, #fff1f2 100%);
    border-color: #fecdd3;
    border-top-color: #e11d48;
}

.payroll-analytics-card--deductions:hover {
    box-shadow: 0 8px 18px -3px rgba(225, 29, 72, 0.18);
    border-color: #fda4af;
}

.payroll-analytics-card--deductions .payroll-analytics-title {
    color: #be123c;
}

.payroll-analytics-card--deductions .payroll-analytics-val {
    color: #881337;
}

.payroll-analytics-card--deductions .payroll-analytics-icon-wrap {
    background-color: #ffe4e6;
    color: #be123c;
}

.payroll-analytics-card--deductions .payroll-analytics-action {
    color: #e11d48;
}

/* Card 7: Salary Holds — Coral Orange */
.payroll-analytics-card--salary-holds {
    background: linear-gradient(145deg, #ffffff 0%, #fff7ed 100%);
    border-color: #fed7aa;
    border-top-color: #ea580c;
}

.payroll-analytics-card--salary-holds:hover {
    box-shadow: 0 8px 18px -3px rgba(234, 88, 12, 0.18);
    border-color: #fdba74;
}

.payroll-analytics-card--salary-holds .payroll-analytics-title {
    color: #c2410c;
}

.payroll-analytics-card--salary-holds .payroll-analytics-val {
    color: #7c2d12;
}

.payroll-analytics-card--salary-holds .payroll-analytics-icon-wrap {
    background-color: #ffedd5;
    color: #c2410c;
}

.payroll-analytics-card--salary-holds .payroll-analytics-action {
    color: #ea580c;
}

/* Card 8: Payroll Status — Deep Teal */
.payroll-analytics-card--status {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
    border-color: #99f6e4;
    border-top-color: #0d9488;
}

.payroll-analytics-card--status:hover {
    box-shadow: 0 8px 18px -3px rgba(13, 148, 136, 0.18);
    border-color: #5eead4;
}

.payroll-analytics-card--status .payroll-analytics-title {
    color: #0f766e;
}

.payroll-analytics-card--status .payroll-analytics-val {
    color: #134e4a;
}

.payroll-analytics-card--status .payroll-analytics-icon-wrap {
    background-color: #ccfbf1;
    color: #0f766e;
}

.payroll-analytics-card--status .payroll-analytics-action {
    color: #0d9488;
}

/* ==========================================================================
   ENTERPRISE PAYROLL MODULE DESIGN SYSTEM
   ========================================================================== */

.payroll-page-container {
    width: 100%;
    max-width: 100%;
    background-color: #f8fafc;
}

.payroll-header-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.payroll-workflow-banner {
    margin-bottom: 16px;
    padding: 14px 16px;
}

.payroll-analytics-section {
    margin-bottom: 16px;
}

.payroll-tabs-nav,
.leave-tabs-nav {
    display: flex;
    align-items: flex-end;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    padding: 6px 8px 0 8px;
    margin-bottom: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    gap: 4px;
    flex-wrap: wrap;
    overflow: visible;
}

.payroll-tab-button,
.leave-tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    text-decoration: none;
    flex: 1 1 auto;
    margin-bottom: -2px;
}

.payroll-tab-button:hover:not(.active),
.leave-tab-button:hover:not(.active) {
    background-color: #f8fafc;
    color: #0f172a;
}

.payroll-tab-button.active,
.leave-tab-button.active {
    background-color: #ffffff;
    color: #1b4332;
    border-bottom: 3px solid #1b4332;
    font-weight: 700;
}

.payroll-tab-content-panel,
.leave-tab-content-panel {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    min-height: 480px;
}

.payroll-tab-content,
.leave-tab-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Eliminate compound margins inside flex gap container */
.payroll-tab-content>*,
.payroll-tab-content .panel-card,
.payroll-tab-content-panel .panel-card,
.payroll-tab-content .alert-banner,
.payroll-tab-content-panel .alert-banner,
.payroll-tab-content .kpi-grid,
.payroll-tab-content-panel .kpi-grid,
.payroll-tab-content .tab-nav-bar,
.payroll-tab-content-panel .tab-nav-bar,
.leave-tab-content>*,
.leave-tab-content-panel .card-dense,
.leave-tab-content-panel .calendar-view-card,
.leave-tab-content-panel .baseTableWrap,
.leave-tab-content-panel .form-filter-card {
    margin-bottom: 0 !important;
}

.leave-tab-content-panel .baseTableWrap {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Secondary Sub-Tabs (.tab-nav-bar / .tab-nav-btn) */
.tab-nav-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tab-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    height: 34px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.tab-nav-btn:hover:not(.active) {
    background-color: #e2e8f0;
    color: #0f172a;
}

.tab-nav-btn.active {
    background-color: #1b4332;
    color: #ffffff;
    border-color: #1b4332;
    font-weight: 700;
}

/* ==========================================================================
   ENTERPRISE PAYROLL GLOBAL FORM & INPUT SYSTEM
   ========================================================================== */

.payroll-page-container input[type="text"],
.payroll-page-container input[type="number"],
.payroll-page-container input[type="date"],
.payroll-page-container input[type="month"],
.payroll-page-container input[type="email"],
.payroll-page-container input[type="password"],
.payroll-page-container select,
.payroll-page-container .form-control,
.payroll-page-container .form-select,
.payroll-form-control,
.payroll-form-select {
    height: 42px;
    min-height: 42px;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.payroll-page-container input[type="text"]::placeholder,
.payroll-page-container input[type="number"]::placeholder,
.payroll-page-container input[type="date"]::placeholder,
.payroll-page-container input[type="month"]::placeholder,
.payroll-page-container textarea::placeholder,
.payroll-page-container .form-control::placeholder,
.payroll-form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.payroll-page-container select,
.payroll-page-container .form-select,
.payroll-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 10px;
    padding-right: 36px;
    cursor: pointer;
}

.payroll-page-container input:focus,
.payroll-page-container select:focus,
.payroll-page-container textarea:focus,
.payroll-page-container .form-control:focus,
.payroll-page-container .form-select:focus,
.payroll-form-control:focus,
.payroll-form-select:focus {
    border-color: #1e40af !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12) !important;
    background-color: #ffffff;
}

.payroll-page-container input:disabled,
.payroll-page-container select:disabled,
.payroll-page-container textarea:disabled,
.payroll-page-container .form-control:disabled,
.payroll-page-container .form-select:disabled {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.payroll-page-container textarea,
.payroll-form-textarea {
    min-height: 84px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    width: 100%;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

/* Compact form controls for table/filters */
.payroll-page-container .form-control-sm,
.payroll-page-container .form-select-sm,
.payroll-form-control-sm,
.payroll-form-select-sm {
    height: 36px !important;
    min-height: 36px !important;
    padding: 6px 10px !important;
    font-size: 12.5px !important;
    border-radius: 6px !important;
}

/* Form Label Styling */
.payroll-page-container .form-label,
.payroll-page-container label:not(.payroll-checkbox-group):not(.payroll-file-upload-trigger),
.payroll-form-label {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.25;
}

.payroll-form-label-sm {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.payroll-required-mark,
.required-asterisk {
    color: #dc2626;
    margin-left: 2px;
    font-weight: 700;
}

/* Form Grid & Layout */
.payroll-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    align-items: start;
    width: 100%;
}

.payroll-form-grid--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.payroll-form-grid--3col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.payroll-form-grid--4col {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.payroll-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.payroll-form-group--full {
    grid-column: 1 / -1;
}

.payroll-form-group--span-2 {
    grid-column: span 2;
}

.payroll-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.payroll-form-actions--right {
    justify-content: flex-end;
}

.payroll-checkbox-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin-top: 6px;
}

.payroll-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    accent-color: #1e40af;
    margin: 0;
}

.payroll-checkbox-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin: 0;
    cursor: pointer;
}

/* File Upload System */
.payroll-file-upload-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.payroll-file-upload-dropzone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    transition: all 0.15s ease;
    gap: 10px;
    min-height: 42px;
}

.payroll-file-upload-dropzone:hover {
    background-color: #f1f5f9;
    border-color: #1e40af;
}

.payroll-file-upload-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.payroll-file-upload-trigger:hover {
    background-color: #eff6ff;
    border-color: #1e40af;
    color: #1e40af;
}

.payroll-file-upload-hint {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.payroll-file-attached-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 12px;
    color: #1e40af;
    font-weight: 500;
    max-width: 100%;
}

.payroll-file-attached-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.payroll-file-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    background: transparent;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.payroll-file-clear-btn:hover {
    background-color: #fee2e2;
}

.payroll-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.payroll-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payroll-section-desc {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
}

/* ==========================================================================
   PAYROLL & ATTENDANCE COMPONENT DESIGN SYSTEM
   ========================================================================== */

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.badge-status-pending,
.badge-status-draft {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.badge-status-reviewed {
    background-color: #ede9fe;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

.badge-status-active,
.badge-status-approved,
.badge-status-completed {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-status-finalized {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-status-paid {
    background-color: #cffafe;
    color: #155e75;
    border: 1px solid #a5f3fc;
}

.badge-status-inactive,
.badge-status-rejected,
.badge-status-held,
.badge-status-failed {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.badge-status-info,
.badge-status-processing,
.badge-status-submitted {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-status-neutral {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Global Badge System Utilities */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.badge-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.badge-primary {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

.badge-success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.badge-warning {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.badge-danger {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}

.badge-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Panel Card & Sections */
.panel-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.panel-card-inner {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
}

.panel-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-card__subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Alert & Notice Banners */
.alert-banner {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-banner-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-banner-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-banner-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.alert-banner-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.payroll-form-hint,
.payroll-form-grid+.alert-banner,
.payroll-form-grid+.payroll-form-hint {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
}

/* Margin Utility Classes */
.mt-8 {
    margin-top: 8px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-12 {
    margin-top: 12px !important;
}

.mt-14 {
    margin-top: 14px !important;
}

.mt-16 {
    margin-top: 16px !important;
}

.mb-8 {
    margin-bottom: 8px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-12 {
    margin-bottom: 12px !important;
}

.mb-14 {
    margin-bottom: 14px !important;
}

.mb-16 {
    margin-bottom: 16px !important;
}

/* Action Button Variants */
.btn-action-base {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 38px;
    min-height: 38px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1.2;
}

.btn-action-base.btn-sm,
.btn-sm.btn-action-base {
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 6px;
    gap: 5px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0;
}

.app-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.app-modal-close:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.btn-action-base:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-action-primary-solid {
    background-color: #1E40AF !important;
    color: #ffffff !important;
    border-color: #1E40AF !important;
}

.btn-action-primary-solid:hover:not(:disabled) {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
}

.btn-action-success-solid {
    background-color: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

.btn-action-success-solid:hover:not(:disabled) {
    background-color: #15803d;
}

.btn-action-danger-solid {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-action-danger-solid:hover:not(:disabled) {
    background-color: #b91c1c;
}

.btn-action-purple-solid {
    background-color: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

.btn-action-purple-solid:hover:not(:disabled) {
    background-color: #6d28d9;
}

.btn-action-info-solid {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-action-info-solid:hover:not(:disabled) {
    background-color: #0369a1;
}

.btn-action-generate {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
}

.btn-action-secondary-outline {
    background-color: #ffffff !important;
    color: #2342ae !important;
    border: 1.5px solid #1E40AF !important;
}

.btn-action-secondary-outline:hover:not(:disabled) {
    background-color: #f0f4ff !important;
    border-color: #1E40AF !important;
    color: #1e3a8a !important;
}

.btn-action-icon-only {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-action-icon-only:hover {
    background-color: #f1f5f9;
}

.btn-action-icon-danger {
    color: #ef4444;
}

.btn-action-icon-danger:hover {
    background-color: #fee2e2;
}

.btn-action-icon-primary {
    color: #2563eb;
}

.btn-action-icon-primary:hover {
    background-color: #dbeafe;
}

.btn-action-icon-success {
    color: #16a34a;
}

.btn-action-icon-success:hover {
    background-color: #dcfce7;
}

/* Common Table & Flex Utilities */
.table-responsive-wrapper {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-full {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-header-bg,
.payroll-page-container thead th,
.payroll-page-container table th,
.app-modal-dialog thead th,
.app-modal-dialog table th {
    background-color: #ECF0FF !important;
    color: #1e293b !important;
}

.table-th-standard,
.payroll-page-container thead th,
.payroll-page-container table th,
.app-modal-dialog thead th,
.app-modal-dialog table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid #dce4f9;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row-even {
    background-color: #ffffff;
}

.table-row-odd {
    background-color: #f9fafb;
}

.table-td-nowrap {
    padding: 10px 14px;
    white-space: nowrap;
}

.flex-1-min-160 {
    flex: 1 1 160px;
}

.flex-1-min-140 {
    flex: 1 1 140px;
}

.flex-1-min-180 {
    flex: 1 1 180px;
}

.flex-1-min-200 {
    flex: 1 1 200px;
}

.flex-1-min-250 {
    flex: 1 1 250px;
}

.min-w-850 {
    min-width: 850px;
}

.p-16-18 {
    padding: 14px 18px;
}

/* File Upload & Preview */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-upload-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
}

.file-upload-btn-label:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.file-upload-remove-btn {
    padding: 6px 10px;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.file-upload-badge-preview {
    font-size: 11px;
    color: #15803d;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Personnel Select Specifics */
.personnel-select-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.personnel-select-filter-item {
    flex: 1 1 120px;
    min-width: 100px;
}

.personnel-select-filter-item--wide {
    flex: 2 1 180px;
    min-width: 150px;
}

.personnel-select-filter-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.personnel-select-toggle-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.personnel-select-toggle-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
}

.personnel-select-toggle-btn--active {
    background-color: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
    font-weight: 700;
}

.personnel-select-details-card {
    margin-top: 6px;
    padding: 8px 12px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 12px;
    color: #166534;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Document & History Modals */
.doc-modal-frame {
    width: 100%;
    height: 75vh;
    border: none;
    border-radius: 6px;
}

.doc-modal-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
}

.doc-unsupported-preview {
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    border-radius: 8px;
}

/* Reports & Print Previews */
.report-header-section {
    background-color: #0f172a;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-table-section {
    padding: 16px 20px;
    background-color: #ffffff;
}

.report-summary-box {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-size: 13px;
}

/* Attendance Module Styles */
.attendance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.attendance-status-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.attendance-status-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.attendance-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.attendance-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    animation: pulse-dot 1.5s infinite;
}

/* Payroll Groups & Members */
.payroll-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    padding: 20px;
    background-color: #f8fafc;
}

.payroll-group-card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.payroll-group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.member-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.member-card-item {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease;
}

.member-card-item--selected {
    border-color: #93c5fd;
    background-color: #eff6ff;
}

.member-card-item--dept-match {
    border-color: #bae6fd;
    background-color: #f0f9ff;
}

.member-card-item--danger-selected {
    border-color: #fca5a5;
    background-color: #fff5f5;
}

/* ==========================================================================
   GLOBAL STANDARDIZED PAGINATION DESIGN SYSTEM
   ========================================================================== */
.pagination-wrapper,
.app-pagination-container,
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    background-color: #ffffff;
    /* border-top: 1px solid #e2e8f0; */
    border-radius: 0 0 10px 10px;
    width: 100%;
}

.pagination-wrapper--centered {
    justify-content: center;
}

.pagination-info,
.app-pagination-info,
.pagination-bar .text-muted {
    font-size: 13px;
    font-weight: 500;
    color: #64748b !important;
    margin: 0;
}

.pagination-info strong,
.app-pagination-info strong,
.pagination-bar strong {
    color: #1e293b;
    font-weight: 600;
}

.pagination,
.app-pagination-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item,
.app-pagination__item {
    display: inline-block;
    margin: 0;
}

.page-link,
.app-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: #475569 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.page-link:hover,
.app-pagination__link:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.page-item.active .page-link,
.page-link.active,
.app-pagination__link--active {
    background-color: #1E40AF !important;
    border-color: #1E40AF !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.25);
}

.page-item.disabled .page-link,
.page-link.disabled,
.page-link:disabled,
.app-pagination__link--disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

.page-link:focus-visible,
.app-pagination__link:focus-visible {
    outline: none;
    border-color: #1e40af !important;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15) !important;
}

.pagination-btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 34px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pagination-btn-nav:hover:not(:disabled) {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.pagination-btn-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

@media (max-width: 640px) {

    .pagination-wrapper,
    .app-pagination-container,
    .pagination-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 12px 10px;
    }
}

.mw-150 {
    max-width: 150px;
}

.mw-200 {
    max-width: 200px;
}

.mw-250 {
    max-width: 250px;
}

.mw-320 {
    max-width: 320px;
}

.mw-400 {
    max-width: 400px;
}

.mw-500 {
    max-width: 500px;
}

.mw-600 {
    max-width: 600px;
}

.mw-700 {
    max-width: 700px;
}

.mw-800 {
    max-width: 800px;
}

.mw-900 {
    max-width: 900px;
}

.mh-300 {
    max-height: 300px;
}

.mh-400 {
    max-height: 400px;
}

.mh-500 {
    max-height: 500px;
}

.mh-600 {
    max-height: 600px;
}

.mh-700 {
    max-height: 700px;
}

/* Approval Tab Layout */
.approval-layout-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    min-height: 500px;
    width: 100%;
    max-width: 100%;
}

.payroll-sidebar-runs {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.payroll-run-card {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.payroll-run-card:hover {
    background-color: #f8fafc;
}

.payroll-run-card--active {
    background-color: #eff6ff;
    border-left-color: #1e40af;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ==========================================================================
   TOASTIFY NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast-item {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-item--success {
    border-left: 4px solid #16a34a;
    background: linear-gradient(to right, #f0fdf4, #ffffff 30%);
}

.toast-item--error {
    border-left: 4px solid #dc2626;
    background: linear-gradient(to right, #fef2f2, #ffffff 30%);
}

.toast-item--warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(to right, #fffbeb, #ffffff 30%);
}

.toast-item--info {
    border-left: 4px solid #2563eb;
    background: linear-gradient(to right, #eff6ff, #ffffff 30%);
}

.toast-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon--success {
    color: #16a34a;
}

.toast-icon--error {
    color: #dc2626;
}

.toast-icon--warning {
    color: #f59e0b;
}

.toast-icon--info {
    color: #2563eb;
}

.toast-message-wrap {
    flex: 1;
    min-width: 0;
}

.toast-message-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.toast-close-btn:hover {
    color: #334155;
    background-color: #f1f5f9;
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    transform-origin: left;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* ==========================================================================
   BREADCRUMB COMPONENT
   ========================================================================== */
.app-breadcrumb {
    margin-top: 0;
    margin-bottom: 16px;
    padding: 2px 0 6px 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.app-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    gap: 8px;
}

.app-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    line-height: 1;
}

.app-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 4px 8px;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
    text-decoration: none;
    line-height: 1;
}

.app-breadcrumb-link:hover {
    color: #1e40af;
    background-color: #eff6ff;
}

.app-breadcrumb-icon {
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.app-breadcrumb-link:hover .app-breadcrumb-icon {
    color: #1e40af;
}

.app-breadcrumb-current {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    padding: 4px 8px;
    line-height: 1;
}

.app-breadcrumb-separator-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-breadcrumb-separator {
    color: #94a3b8;
    flex-shrink: 0;
}

/* ==========================================================================
   KPI SUMMARY CARDS (HIGH-DENSITY MODULE LEVEL)
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    align-items: start;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.kpi-card--primary,
.kpi-card--success,
.kpi-card--warning,
.kpi-card--danger,
.kpi-card--info,
.kpi-card--purple {
    border-left: 1px solid #e2e8f0;
}

.kpi-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.kpi-card__title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0;
}

.kpi-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.kpi-card__icon--primary {
    background: #eff6ff;
    color: #1e40af;
}

.kpi-card__icon--success {
    background: #f0fdf4;
    color: #16a34a;
}

.kpi-card__icon--warning {
    background: #fffbeb;
    color: #f59e0b;
}

.kpi-card__icon--danger {
    background: #fef2f2;
    color: #dc2626;
}

.kpi-card__icon--info {
    background: #f0f9ff;
    color: #0284c7;
}

.kpi-card__icon--purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.kpi-card__value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

.kpi-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11.5px;
    color: #94a3b8;
}

/* ==========================================================================
   CONSOLIDATED ACTIONS DROPDOWN (TABLES)
   ========================================================================== */
.actions-dropdown-container {
    position: relative;
    display: inline-block;
}

.actions-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 6px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.actions-dropdown-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.actions-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1050;
    min-width: 155px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    margin-top: 4px;
    list-style: none;
    animation: menuFadeIn 0.15s ease-out;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actions-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.actions-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #1e40af;
}

.actions-dropdown-item--danger {
    color: #dc2626;
}

.actions-dropdown-item--danger:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

.actions-dropdown-divider {
    height: 1px;
    margin: 4px 0;
    background-color: #f1f5f9;
}

/* Portal-rendered and Floating Action Dropdown Menu (Escapes table clipping) */
.actions-dropdown-menu--portal {
    position: fixed !important;
    z-index: 9990 !important;
    margin: 0 !important;
    min-width: 175px;
    max-width: 250px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.14), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
    list-style: none !important;
    padding: 6px 0 !important;
}

.actions-dropdown-menu--portal.actions-dropdown-menu--up {
    animation: menuFadeInUp 0.15s ease-out !important;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.14), 0 -8px 10px -6px rgba(0, 0, 0, 0.08) !important;
}

.actions-dropdown-menu--portal.actions-dropdown-menu--down {
    animation: menuFadeIn 0.15s ease-out !important;
}

.actions-dropdown-menu--portal .actions-dropdown-item {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
}

@keyframes menuFadeInUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actions-dropdown-icon {
    flex-shrink: 0;
}

.dropdown-chevron {
    transition: transform 0.2s ease;
}

.dropdown-chevron.rotate-180 {
    transform: rotate(180deg);
}

.btn-action-dropdown-trigger.active,
.actions-dropdown-btn.active {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}

/* ==========================================================================
   NOTIFICATION SYSTEM (PANEL, DROPDOWN & BADGE)
   ========================================================================== */

.notification-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-bell-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--lightGray1, #f1f5f9);
    border-radius: 50%;
    position: relative;
    color: #475569;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.notification-bell-trigger:hover,
.notification-bell-trigger.active {
    background-color: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.35);
    pointer-events: none;
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.notification-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: 520px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    z-index: 1060;
    overflow: hidden;
    animation: notificationPanelIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notificationPanelIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #2342ae;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.notification-panel__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-panel__title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.notification-panel__count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
}

.notification-panel__mark-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}


.notification-panel__list {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 440px;
    margin: 0;
    padding: 0;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.notification-panel__list::-webkit-scrollbar {
    width: 5px;
}

.notification-panel__list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-panel__list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8fafc;
}

.notification-item--unread {
    background-color: #f8faff;
}

.notification-item--unread:hover {
    background-color: #eff6ff;
}

.notification-item__status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2563eb;
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.notification-item__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notification-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.notification-item__title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notification-item--unread .notification-item__title {
    color: #1e3a8a;
    font-weight: 700;
}

.notification-item__message {
    font-size: 14px;
    color: #000;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notification-item__footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

.notification-item__delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    margin-top: -2px;
    transition: all 0.15s ease;
}

.notification-item__delete-btn:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

.notification-panel__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    color: #64748b;
}

.notification-panel__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #94a3b8;
    margin-bottom: 12px;
}

.notification-panel__empty-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 2px;
}

.notification-panel__empty-desc {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

@media (max-width: 576px) {
    .notification-panel {
        width: calc(100vw - 32px);
        right: -80px;
        max-height: 460px;
    }
}

/* ==========================================================================
   ARMY REGISTRATION PAGE - MODERN ENTERPRISE UI
   ========================================================================== */
.registration-container {
    width: 100%;
    margin-bottom: 32px;
}

.registration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.registration-excel-btn {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.registration-excel-btn:hover {
    background-color: #166534 !important;
    border-color: #166534 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.registration-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.registration-sidebar {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.registration-form-area {
    flex: 1;
    min-width: 0;
}

/* Sidebar & Section Cards */
.registration-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.registration-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.registration-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.registration-badge-success {
    font-size: 11px;
    background: #dcfce7;
    color: #15803d;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Upload dropzone styling */
.registration-photo-dropzone {
    width: 100%;
    min-height: 180px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.registration-photo-dropzone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.registration-photo-dropzone.has-img {
    border-style: solid;
    border-color: #e2e8f0;
    padding: 0;
    height: 200px;
}

.registration-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.registration-photo-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.registration-photo-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.registration-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.registration-btn-row .btn {
    flex: 1;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Instruction box */
.registration-instruction-box {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #1e3a8a;
    line-height: 1.5;
}

.registration-instruction-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e40af;
}

.registration-instruction-list {
    margin: 0;
    padding-left: 16px;
}

.registration-instruction-list li {
    margin-bottom: 2px;
}

.registration-preview-box {
    width: 100%;
    height: 160px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.registration-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.registration-form-control {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.registration-form-control:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.registration-input-readonly {
    background-color: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed;
    border-color: #e2e8f0 !important;
}

/* Document Upload Zone */
.registration-doc-upload-zone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.registration-doc-upload-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.registration-file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.registration-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
}

.registration-file-name {
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.registration-file-size {
    color: #64748b;
    font-size: 11px;
    flex-shrink: 0;
}

/* SpeedFace summary table */
.registration-summary-table {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.registration-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}

.registration-summary-row.is-ok {
    background-color: #f0fdf4;
    color: #166534;
}

.registration-summary-row.is-missing {
    background-color: #fef2f2;
    color: #991b1b;
}

.registration-summary-row.is-neutral {
    background-color: #f8fafc;
    color: #64748b;
}

.registration-summary-footer {
    padding: 5px 12px;
    background-color: #f8fafc;
    font-size: 11px;
    color: #64748b;
}

.registration-alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Form Sections */
.registration-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.registration-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.registration-section-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.registration-section-title {
    font-size: 15.5px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.registration-section-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.3;
}

/* Form Grid */
.registration-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px 12px;
}

.form-col-3 {
    grid-column: span 3;
}

.form-col-4 {
    grid-column: span 4;
}

.form-col-6 {
    grid-column: span 6;
}

.form-col-8 {
    grid-column: span 8;
}

.form-col-12 {
    grid-column: span 12;
}

@media (max-width: 1200px) {
    .form-col-3 {
        grid-column: span 6;
    }

    .form-col-4 {
        grid-column: span 6;
    }
}

@media (max-width: 992px) {
    .registration-layout {
        flex-direction: column;
    }

    .registration-sidebar {
        width: 100%;
    }

    .form-col-3,
    .form-col-4,
    .form-col-6,
    .form-col-8 {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .registration-grid {
        grid-template-columns: 1fr;
    }

    .form-col-3,
    .form-col-4,
    .form-col-6,
    .form-col-8,
    .form-col-12 {
        grid-column: span 1;
    }

    .registration-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Actions Footer */
.registration-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-top: 12px;
}

.registration-btn-cancel {
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.registration-btn-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.registration-btn-save {
    padding: 9px 28px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #1e40af;
    background: #1e40af;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
}

.registration-btn-save:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.registration-btn-save:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==========================================================================
   MULTI-STEP REGISTRATION WIZARD STYLING
   ========================================================================== */
.registration-stepper-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.registration-stepper-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.registration-stepper-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    border-radius: 4px;
    transition: width 0.35s ease;
}

.registration-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 10px;
}

.registration-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
}

.registration-step-item:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.registration-step-item:hover:not(:disabled) {
    background: #f8fafc;
}

.registration-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.25s ease;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #cbd5e1;
}

.registration-step-item.is-active .registration-step-circle {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.18);
}

.registration-step-item.is-completed .registration-step-circle {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.registration-step-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.registration-step-number {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    line-height: 1.2;
}

.registration-step-item.is-active .registration-step-number {
    color: #1e40af;
}

.registration-step-item.is-completed .registration-step-number {
    color: #059669;
}

.registration-step-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.registration-step-item.is-active .registration-step-label {
    color: #0f172a;
    font-weight: 700;
}

.registration-step-divider {
    height: 2px;
    flex: 0 0 16px;
    background: #e2e8f0;
}

.registration-step-item.is-completed+.registration-step-divider {
    background: #10b981;
}

/* Step container animation */
.registration-step-content {
    animation: fadeInStep 0.25s ease-out;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Actions Nav Bar */
.registration-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 24px;
    margin-top: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.registration-btn-prev {
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.registration-btn-prev:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.registration-btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.registration-btn-next {
    padding: 10px 26px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #1e40af;
    background: #1e40af;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
}

.registration-btn-next:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

/* Step 4 Layout Grid */
.registration-biometrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .registration-biometrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Step 5 Review Layout */
.registration-review-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.registration-review-photo {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #e2e8f0;
}

.registration-review-photo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.registration-review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .registration-review-grid {
        grid-template-columns: 1fr;
    }
}

.registration-review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.registration-review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.registration-review-edit-btn {
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.registration-review-edit-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.registration-review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.registration-review-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.registration-review-label {
    color: #64748b;
    font-weight: 500;
    flex: 0 0 40%;
}

.registration-review-value {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* Responsive tweaks for Stepper on Tablet & Mobile */
@media (max-width: 992px) {
    .registration-stepper {
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .registration-step-item {
        flex: 0 0 auto;
    }

    .registration-step-label {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .registration-stepper-wrapper {
        padding: 14px 16px;
    }

    .registration-step-info {
        display: none;
    }

    .registration-step-divider {
        flex: 1 1 auto;
    }

    .registration-review-hero {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .registration-step-nav {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   DAILY ATTENDANCE MODULE - DASHBOARD ALIGNED STYLING
   ========================================================================== */
.attendance-page-container {
    width: 100%;
}

.attendance-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.attendance-header-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 4px 0;
}

.attendance-header-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.attendance-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #334155;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.attendance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.attendance-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.attendance-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.attendance-kpi-card--total,
.attendance-kpi-card--present,
.attendance-kpi-card--absent,
.attendance-kpi-card--late,
.attendance-kpi-card--leave {
    border-left: 1px solid #e2e8f0;
}

.attendance-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.attendance-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.attendance-filter-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.attendance-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: flex-end;
}

.attendance-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attendance-filter-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.attendance-filter-input,
.attendance-filter-select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background-color: #f8fafc;
    color: #0f172a;
    transition: all 0.15s ease;
}

.attendance-filter-input:focus,
.attendance-filter-select:focus {
    background-color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.attendance-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.attendance-search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
}

.attendance-search-input {
    width: 100%;
    height: 38px;
    padding-left: 36px;
    padding-right: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background-color: #f8fafc;
    color: #0f172a;
    transition: all 0.15s ease;
}

.attendance-search-input:focus {
    background-color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.attendance-table-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.attendance-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff6ff;
    color: #1e40af;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.attendance-personnel-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attendance-personnel-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 13.5px;
    line-height: 1.3;
}

.attendance-personnel-id {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.attendance-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}

.attendance-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 5px;
}

.attendance-late-badge--on-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 4px;
}

.attendance-late-badge--late {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #d97706;
    background: #fffbeb;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ==========================================================================
   PERSONNEL MANAGEMENT - SEARCH, FILTER & KPI STYLING
   ========================================================================== */
.personnel-filter-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.personnel-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.personnel-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.personnel-filter-badge {
    background-color: #eff6ff;
    color: #1e40af;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
}

.personnel-filter-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.personnel-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) {
    .personnel-filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .personnel-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .personnel-filter-grid {
        grid-template-columns: 1fr;
    }
}

.personnel-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.personnel-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.personnel-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.personnel-input-icon {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    pointer-events: none;
}

.personnel-input-wrap input {
    padding-left: 32px !important;
}

.personnel-filter-input,
.personnel-filter-select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background-color: #f8fafc;
    color: #0f172a;
    transition: all 0.15s ease;
}

.personnel-filter-input:focus,
.personnel-filter-select:focus {
    background-color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

/* ==========================================================================
   REPORT CATEGORIES & TABS ENTERPRISE DESIGN SYSTEM
   ========================================================================== */

.report-categories-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.report-categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.report-categories-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.report-categories-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.report-categories-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Primary Domain Category Tabs */
.report-category-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.report-category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}

.report-category-tab:hover:not(.active) {
    color: #0f172a;
    background-color: #f8fafc;
}

.report-category-tab.active {
    color: #1E40AF;
    font-weight: 600;
    border-bottom-color: #1E40AF;
    background-color: rgba(30, 64, 175, 0.04);
}

.report-category-tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
}

.report-category-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 9999px;
    background-color: #f1f5f9;
    color: #64748b;
    transition: all 0.15s ease;
}

.report-category-tab.active .report-category-badge {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Sub-Category Specific Report Pills */
.report-subcategories-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 14px;
}

.report-subcategory-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}

.report-subcategory-pill:hover:not(.active) {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.report-subcategory-pill.active {
    background-color: #1E40AF;
    border-color: #1E40AF;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(30, 64, 175, 0.2);
}

.report-subcategory-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Filter Card / Form Container */
.report-filter-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 22px 24px;
    margin-bottom: 24px;
}

.report-filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.report-filter-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.report-filter-active-tag {
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
    background-color: #eff6ff;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #dbeafe;
}

@media (max-width: 640px) {

    .report-categories-card,
    .report-filter-card {
        padding: 16px;
    }

    .report-category-tab {
        padding: 9px 12px;
        font-size: 13px;
    }

    .report-subcategory-pill {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ==========================================================================
   GLOBAL ENTERPRISE PRELOADER DESIGN SYSTEM
   ========================================================================== */

.app-preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    background-color: transparent;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-preloader--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: #F8FAFC;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-preloader--card {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 40px 24px;
    min-height: 280px;
}

.app-preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 320px;
    padding: 24px;
    animation: preloaderFadeIn 0.3s ease-out;
}

.app-preloader__logo-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.app-preloader__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    animation: preloaderPulse 2.2s ease-in-out infinite;
}

.app-preloader__spinner-container {
    position: relative;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
}

.app-preloader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #1E40AF;
    border-right-color: #1E40AF;
    border-radius: 50%;
    animation: preloaderSpin 0.85s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

.app-preloader__spinner--sm {
    width: 24px;
    height: 24px;
    border-width: 2.5px;
}

.app-preloader__text {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin: 0;
    letter-spacing: -0.01em;
}

.app-preloader__subtext {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.app-preloader--hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 992px) {
    .app-preloader__content {
        max-width: 380px;
    }

    .app-preloader__logo-wrapper {
        width: 140px;
        height: 90px;
        margin-bottom: 20px;
    }

    .app-preloader__logo {
        width: 130px;
        height: 84px;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

@keyframes preloaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.95;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes preloaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SIGNATURE CAPTURE COMPONENT
   ========================================================================== */

.signature-capture-container {
    width: 100%;
    margin-bottom: 16px;
}

.signature-tab-group {
    display: inline-flex;
    gap: 4px;
    background: #e9ecef;
    padding: 2px;
    border-radius: 6px;
}

.signature-tab-btn {
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 400;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.signature-tab-btn:hover:not(.signature-tab-btn--active) {
    color: #334155;
}

.signature-tab-btn--active {
    background: #ffffff;
    color: #003366;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.signature-pad-box {
    position: relative;
    background-color: #f8fafc;
    border: 1.5px dashed #3b82f6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.signature-baseline {
    position: absolute;
    bottom: 26px;
    left: 20px;
    right: 20px;
    border-bottom: 1px dashed #cbd5e1;
    pointer-events: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.signature-baseline-icon {
    color: #94a3b8;
    margin-right: 5px;
}

.signature-baseline-text {
    font-size: 10px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.signature-preview-wrap {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.signature-preview-img {
    max-width: 92%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.signature-confirmed-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.signature-canvas {
    width: 100%;
    display: block;
    cursor: crosshair;
    touch-action: none;
}

.signature-canvas--disabled {
    cursor: not-allowed;
}

.signature-upload-zone {
    padding: 24px;
    text-align: center;
    width: 100%;
}

.signature-upload-btn {
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.signature-upload-hint {
    font-size: 11px;
    color: #64748b;
}

.signature-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.signature-action-btn {
    font-size: 12px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.signature-action-btn--primary {
    font-size: 12px;
    padding: 4px 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   ID CARD PREVIEW MODAL & CARDS
   ========================================================================== */

.idcard-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.idcard-modal-dialog {
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.idcard-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.idcard-modal-title {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
}

.idcard-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 80vh;
    overflow-y: auto;
}

.idcard-modal-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.idcard-modal-controls .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.idcard-preview-stage {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.idcard-preview-content {
    width: 100%;
    text-align: center;
}

.idcard-rendered-card {
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    text-align: left;
}

.idcard-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   SHARED LAYOUT & SPACING HELPERS
   ========================================================================== */

.d-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.d-flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.d-flex-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-4 {
    gap: 4px;
}

.gap-6 {
    gap: 6px;
}

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-20 {
    gap: 20px;
}

.gap-24 {
    gap: 24px;
}

.min-w-220 {
    min-width: 220px;
}

.w-130 {
    width: 130px;
}

.w-100 {
    width: 100%;
}

.max-h-80vh {
    max-height: 80vh;
}

.overflow-y-auto {
    overflow-y: auto;
}

.table>:not(:first-child) {
    border: none !important;
}

.kpi_payGrid .kpi-card {
    flex-direction: row !important;
}

/* ==========================================================================
   MOBILE-ONLY RESPONSIVE FIXES — HEADER NAVBAR & TOOLBARS
   ========================================================================== */

@media (max-width: 768px) {
    .topHdr {
        width: 100%;
        padding: 8px 10px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .topHdr .navbar-toggler.menu-toggle {
        margin-right: 0;
        flex-shrink: 0;
    }

    .header-search-container,
    .topHdr .searchBox {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
    }

    .header-search-input,
    .topHdr .searchBox input[type="text"] {
        height: 36px;
        font-size: 13px;
        padding: 6px 30px 6px 10px;
        border-radius: 6px;
    }

    .header-search-btn,
    .header-search-clear-btn,
    .topHdr .searchBox button {
        width: 30px;
        right: 0;
    }

    .topHdrRight {
        gap: 6px;
        flex-shrink: 0;
        flex-wrap: nowrap;
        align-items: center;
    }

    .notification-bell-trigger,
    .topHdrAnchors {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .notification-badge,
    .notiDot {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        font-weight: 700;
        padding: 0 3px;
        top: -3px;
        right: -3px;
    }

    .header-lang-trigger {
        height: 34px;
        padding: 4px 6px;
        gap: 3px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .header-user-trigger {
        height: 34px;
        padding: 2px 4px;
        gap: 4px;
        flex-shrink: 0;
    }

    .header-user-avatar {
        width: 30px;
        height: 30px;
    }

    .header-user-info,
    .topHdrDdInfo {
        display: none !important;
    }

    .header-search-dropdown {
        position: fixed !important;
        top: 56px !important;
        left: 8px !important;
        right: 8px !important;
        width: calc(100% - 16px) !important;
        max-height: 75vh !important;
        z-index: 9999 !important;
    }

    .notification-panel {
        position: fixed !important;
        top: 56px !important;
        left: 8px !important;
        right: 8px !important;
        width: calc(100% - 16px) !important;
        max-width: none !important;
        max-height: 75vh !important;
    }

    .header-lang-menu {
        right: 0;
    }

    .header-user-menu {
        right: 0;
    }

    /* Table headers & toolbars on mobile */
    .baseTableHd {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }

    .baseTableTR {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        justify-content: flex-start;
    }

    .baseTableTR .searchBox {
        width: 100% !important;
        flex: 1 1 100%;
        min-width: 0;
    }

    .baseTableTR .btnAdd {
        width: auto;
    }

    .baseTableTR .dropdownSortBy,
    .baseTableTR .dropdownStatus {
        width: auto;
    }
}

@media (max-width: 480px) {
    .topHdr {
        padding: 6px 8px;
        gap: 5px;
    }

    .header-lang-label {
        display: none;
    }

    .header-lang-trigger {
        padding: 4px;
    }
}

/* ==========================================================================
   EDIT PERSONNEL ENHANCEMENTS
   ========================================================================== */
.edit-personnel-wrapper {
    width: 100%;
    margin-bottom: 32px;
}

.edit-personnel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.edit-personnel-header-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-personnel-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.edit-personnel-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.edit-personnel-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.edit-personnel-back-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Photo Section */
.edit-personnel-photo-preview-wrap {
    width: 100%;
    height: 240px;
    background-color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.edit-personnel-photo-img {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.edit-personnel-photo-empty {
    width: 100%;
    height: 220px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 16px;
    text-align: center;
}

.edit-personnel-photo-empty:hover {
    border-color: #1e40af;
    background-color: #eff6ff;
}

.edit-personnel-photo-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-personnel-photo-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.edit-personnel-photo-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.08);
}

.edit-personnel-photo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.edit-personnel-photo-actions .btn {
    min-height: 36px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
}

/* Face Biometric */
.edit-personnel-face-preview-wrap {
    width: 100%;
    height: 180px;
    background-color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.edit-personnel-face-img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.edit-personnel-face-empty {
    width: 100%;
    height: 160px;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #64748b;
}

.edit-personnel-device-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.edit-personnel-device-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    .edit-personnel-device-grid {
        grid-template-columns: 1fr;
    }
}

/* Document Upload */
.edit-personnel-doc-dropzone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.edit-personnel-doc-dropzone:hover {
    border-color: #1e40af;
    background: #eff6ff;
}

.edit-personnel-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 6px;
}

.edit-personnel-doc-name {
    font-size: 12.5px;
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Info note in forms */
.edit-personnel-info-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Fingerprint card */
.edit-personnel-fp-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: all 0.15s ease;
}

.edit-personnel-fp-card:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Role Management Table UI Fixes & Enhancements
   Fix text overflow, cell overlapping, and scope badge visibility
   ========================================================================== */

.roles-table {
    min-width: 1080px;
    width: 100%;
}

.roles-table tr th,
.roles-table tr td {
    vertical-align: middle !important;
}

.roles-table .col-role-name {
    width: 22%;
    min-width: 200px;
    white-space: normal !important;
}

.roles-table .col-role-name .fwSemiBold {
    font-size: 13.5px;
    color: #0f172a;
}

.roles-table .col-role-description {
    width: 32%;
    min-width: 280px;
    max-width: 420px;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.45;
    font-size: 12.5px;
    color: #475569 !important;
}

.roles-table .col-role-scope {
    width: 13%;
    min-width: 135px;
    white-space: nowrap !important;
}

.roles-table .col-role-users {
    width: 11%;
    min-width: 115px;
    white-space: nowrap !important;
}

.roles-table .col-role-permissions {
    width: 12%;
    min-width: 140px;
    white-space: nowrap !important;
}

.roles-table .col-role-status {
    width: 7%;
    min-width: 80px;
    white-space: nowrap !important;
}

.roles-table .col-role-actions {
    width: 8%;
    min-width: 95px;
    white-space: nowrap !important;
    text-align: right;
}

/* Badge Enhancements for Roles & Scopes */
.badge-system {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
}

.badge-scope {
    display: inline-flex !important;
    align-items: center;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
}

.badge-scope-global {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

.badge-scope-force {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.badge-scope-department,
.badge-scope-dept {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.badge-scope-other {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.badge-count {
    display: inline-flex !important;
    align-items: center;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 9px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
}

.badge-users {
    background-color: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}

.badge-permissions {
    background-color: #f0f7ff !important;
    color: #1e40af !important;
    border: 1px solid #dbeafe !important;
}

/* Subtle background fallbacks for Bootstrap 5.1 */
.bg-primary-subtle {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
}

.bg-secondary-subtle {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}

.bg-success-subtle {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}

.bg-info-subtle {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

.bg-warning-subtle {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}

.bg-danger-subtle {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}

/* ==========================================================================
   Department Module: Force-wise Organization & Department Cards
   ========================================================================== */

.departments-page-container {
    padding-bottom: 30px;
}

/* Force Section Container */
.dept-force-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dept-force-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.dept-force-header:hover {
    background: #f1f5f9;
}

.dept-force-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dept-force-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e40af;
    color: #ffffff;
    flex-shrink: 0;
}

.dept-force-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-force-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}

.dept-force-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dept-pill-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.dept-force-toggle-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.dept-force-toggle-btn.expanded {
    transform: rotate(180deg);
}

.dept-force-body {
    padding: 18px 20px;
}

/* Department Cards Grid */
.dept-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .dept-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Department Card */
.dept-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.dept-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.dept-card-header {
    padding: 14px 16px 10px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #f8fafc;
}

.dept-card-title-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.dept-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.dept-card-name-wrap {
    flex: 1;
    min-width: 0;
}

.dept-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
    margin: 0;
}

.dept-card-subname {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

.dept-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.dept-card-body {
    padding: 12px 16px;
    flex: 1;
}

.dept-card-meta-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.dept-card-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    gap: 8px;
}

.dept-card-meta-label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dept-card-meta-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
}

/* Clickable Personnel Count Button */
.dept-personnel-interactive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: #1d4ed8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.dept-personnel-interactive-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.1);
}

.dept-personnel-interactive-btn:active {
    transform: translateY(0);
}

.dept-personnel-zero {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.dept-personnel-zero:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* Nested Sub-Departments Drawer */
.dept-subdepts-section {
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 10px 14px;
}

.dept-subdepts-header-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 2px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.dept-subdepts-header-toggle:hover {
    color: #1e40af;
}

.dept-subdepts-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dept-subdept-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dept-subdept-item:hover {
    border-color: #cbd5e1;
    background: #fafafa;
}

.dept-subdept-name-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.dept-subdept-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dept-subdept-count-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dept-subdept-count-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.dept-subdept-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.dept-empty-subdepts {
    padding: 8px 0;
    text-align: center;
    font-size: 11.5px;
    color: #94a3b8;
}

/* Feature Navigation Tabs */
.dept-nav-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.dept-nav-tab-btn {
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dept-nav-tab-btn:hover {
    color: #1e40af;
}

.dept-nav-tab-btn.active {
    color: #1e40af;
    border-bottom-color: #1e40af;
}

/* ==========================================================================
   Dashboard Restored Executive Sections:
   - Today's Registrations
   - Personnel Distribution
   - Monthly Summary
   - Recent Activity
   ========================================================================== */

/* Today's Registrations Feature Card */
.dashFeaturesBox--todayReg {
    border-left: 3px solid #6366f1;
}

.dashFeaturesBox--todayReg .dashFeaturesVal {
    color: #4338ca;
}

.iconTodayReg {
    background: #eef2ff;
    color: #4f46e5;
}

.dashFeaturesSub {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-top: 3px;
}

/* Executive Sections Grid Row */
.dashExecRow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .dashExecRow {
        grid-template-columns: 1fr;
    }
}

/* Executive Card Base */
.dashExecCard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashExecCardHd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.dashExecCardTitle {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashExecBadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.dashExecBadge--primary {
    background: #eff6ff;
    color: #1d4ed8;
}

.dashExecBadge--pulse {
    background: #ecfdf5;
    color: #047857;
}

.dashLiveDot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: dashPulse 2s infinite;
}

@keyframes dashPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dashDistTotalBox {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashDistTotalLbl {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dashDistTotalVal {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.dashDistTodayPill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dashDistTodayPill:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
}

.dashDistTodayIcon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashDistTodayLbl {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dashDistTodayVal {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 15px;
    font-weight: 800;
    color: #1e40af;
    line-height: 1.1;
}

.dashDistTodaySub {
    font-size: 10.5px;
    font-weight: 600;
    color: #059669;
}

.dashDistItemList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.dashDistItem {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashDistItemTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashDistItemName {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashDistItemCounts {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.dashDistItemPct {
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.dashDistTrack {
    height: 7px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}

.dashDistBar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

.dashDistBar--darawiish { background: #1e40af; }
.dashDistBar--police { background: #0284c7; }
.dashDistBar--custodial { background: #059669; }

.dashDistBioBox {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.dashDistBioHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

/* 2. Monthly Summary Styles */
.dashMonthlyGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.dashMonthlyTile {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.dashMonthlyTile:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.dashMonthlyTileHd {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashMonthlyTileIcon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.dashMonthlyTileIcon--emerald { background: #ecfdf5; color: #059669; }
.dashMonthlyTileIcon--blue { background: #eff6ff; color: #2563eb; }
.dashMonthlyTileIcon--amber { background: #fffbeb; color: #d97706; }
.dashMonthlyTileIcon--indigo { background: #eef2ff; color: #4f46e5; }

.dashMonthlyTileVal {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-top: 2px;
}

.dashMonthlyTileLbl {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}

.dashMonthlyBanner {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #475569;
}

/* 3. Recent Activity Feed Styles */
.dashActivityList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashActivityItem {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8fafc;
}

.dashActivityItem:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashActivityIconBox {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashActivityIcon--created { background: #ecfdf5; color: #059669; }
.dashActivityIcon--updated { background: #eff6ff; color: #2563eb; }
.dashActivityIcon--deleted { background: #fef2f2; color: #dc2626; }
.dashActivityIcon--login { background: #f8fafc; color: #475569; }
.dashActivityIcon--approved { background: #faf5ff; color: #7c3aed; }
.dashActivityIcon--exported { background: #fffbeb; color: #d97706; }
.dashActivityIcon--default { background: #f1f5f9; color: #64748b; }

.dashActivityContent {
    flex: 1;
    min-width: 0;
}

.dashActivityTitle {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashActivitySub {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dashActivityTime {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.dashActivityEmpty {
    text-align: center;
    padding: 24px 12px;
    color: #94a3b8;
    font-size: 13px;
}

/* Department Force Filter Pills and Crest styling */
.dept-force-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dept-force-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dept-force-filter-pill:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.dept-force-filter-pill.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

.dept-force-filter-pill.active .badge-status {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.dept-force-crest-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 2px;
    border: 1px solid #e2e8f0;
}

.dept-force-stat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dept-force-stat-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
}

/* ==========================================================================
   Interactive Personnel Analytics & Quick Photo Preview Styles
   ========================================================================== */

/* Clickable KPI Cards */
.kpi-card--clickable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.kpi-card--clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.kpi-card--clickable:active {
    transform: translateY(-1px);
}

/* Active filter state for each KPI card variant */
.kpi-card--clickable.kpi-card--active-filter {
    transform: translateY(-2px);
}

.kpi-card--primary.kpi-card--active-filter {
    border: 2px solid #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 6px 16px rgba(37, 99, 235, 0.12) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.kpi-card--success.kpi-card--active-filter {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 6px 16px rgba(16, 185, 129, 0.12) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.kpi-card--warning.kpi-card--active-filter {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18), 0 6px 16px rgba(245, 158, 11, 0.12) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.kpi-card--purple.kpi-card--active-filter {
    border: 2px solid #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), 0 6px 16px rgba(139, 92, 246, 0.12) !important;
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.kpi-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.kpi-card--primary .kpi-active-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.kpi-card--success .kpi-active-badge {
    background: #d1fae5;
    color: #047857;
}

.kpi-card--warning .kpi-active-badge {
    background: #fef3c7;
    color: #b45309;
}

.kpi-card--purple .kpi-active-badge {
    background: #ede9fe;
    color: #6d28d9;
}

/* Personnel Table Row & Name Link */
.personnel-table-row {
    transition: background-color 0.15s ease;
}

.personnel-table-row:hover {
    background-color: #f8fafc !important;
}

.personnel-name-clickable-cell {
    cursor: pointer;
    user-select: none;
}

.personnel-name-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.personnel-name-clickable-cell:hover .personnel-name-link,
.personnel-name-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.personnel-avatar-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.personnel-avatar-badge.has-photo {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border-color: #bfdbfe;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
}

.personnel-avatar-badge.no-photo {
    background: #f1f5f9;
    color: #94a3b8;
}

.personnel-name-clickable-cell:hover .personnel-avatar-badge.has-photo {
    transform: scale(1.08);
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

.personnel-name-clickable-cell:hover .personnel-avatar-badge.no-photo {
    transform: scale(1.08);
    background: #e2e8f0;
    color: #475569;
}

/* Quick Personnel Photo Preview Modal */
.quick-photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
    animation: quickPhotoFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes quickPhotoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quick-photo-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: quickPhotoSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes quickPhotoSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-photo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.quick-photo-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-photo-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.quick-photo-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.2;
}

.quick-photo-close-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-photo-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.quick-photo-body {
    display: flex;
    gap: 20px;
    padding: 22px 20px;
}

@media (max-width: 580px) {
    .quick-photo-body {
        flex-direction: column;
        align-items: center;
    }
}

.quick-photo-frame-wrap {
    width: 210px;
    min-height: 250px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quick-photo-img-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-photo-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.quick-photo-badge-verified {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    width: 100%;
    height: 100%;
}

.placeholder-avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.placeholder-tag {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #e2e8f0;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.quick-photo-skeleton {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f1f5f9;
}

.skeleton-camera-icon {
    color: #cbd5e1;
    animation: pulseCamera 1.5s infinite ease-in-out;
}

@keyframes pulseCamera {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.quick-photo-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quick-photo-personnel-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.quick-photo-rank-pill {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 8px;
    border-radius: 6px;
}

.quick-photo-name {
    margin: 4px 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.quick-photo-id-tag {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-photo-id-code {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.status-pill--active {
    background: #d1fae5;
    color: #065f46;
}

.status-pill--pending {
    background: #fef3c7;
    color: #92400e;
}

.status-pill--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.quick-photo-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-photo-info-item {
    display: flex;
    align-items: flex-start;
    font-size: 12.5px;
    gap: 8px;
}

.quick-photo-info-item .info-label {
    min-width: 95px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.quick-photo-info-item .info-val {
    color: #1e293b;
    font-weight: 600;
    flex: 1;
}

.badge-bio-enrolled {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 600;
    color: #6d28d9;
    background: #ede9fe;
    padding: 2px 7px;
    border-radius: 6px;
}

.badge-bio-not-enrolled {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 6px;
}

.quick-photo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   Clean & Intuitive Force Organization Layout
   ========================================================================== */

/* Top Force Navigation Cards / Tabs */
.dept-force-nav-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dept-force-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    user-select: none;
}

.dept-force-nav-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-1px);
}

.dept-force-nav-pill.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.dept-force-nav-pill.active .badge-status {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.dept-force-nav-pill .dept-force-mini-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* Force Hero Overview Banner */
.dept-force-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.dept-force-hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dept-force-hero-crest {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dept-force-hero-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-force-hero-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dept-hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dept-hero-stat-pill.clickable-pill {
    cursor: pointer;
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    transition: all 0.15s ease;
}

.dept-hero-stat-pill.clickable-pill:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.15);
}

/* Master Department Card */
.dept-master-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dept-master-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.dept-master-header {
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.dept-master-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 260px;
}

.dept-master-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dept-master-name-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.dept-master-actions-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Department Head Badge */
.dept-head-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
}

.dept-head-pill.is-assigned {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.dept-head-pill-btn {
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 2px;
    text-decoration: underline;
    margin-left: 4px;
}

.dept-head-pill-btn:hover {
    color: #1d4ed8;
}

/* Personnel Count Button Badge */
.dept-personnel-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 20px;
    color: #1d4ed8;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.dept-personnel-badge-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

.dept-personnel-badge-btn.zero-count {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.dept-personnel-badge-btn.zero-count:hover {
    background: #475569;
    border-color: #475569;
    color: #ffffff;
}

/* Sub-departments Table inside master card */
.dept-subdepts-wrapper {
    padding: 14px 20px 18px 20px;
    background: #fbfcfe;
}

.dept-subdepts-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dept-subdepts-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dept-subdept-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.dept-subdept-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.dept-subdept-table td {
    padding: 10px 14px;
    font-size: 13px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.dept-subdept-table tr:last-child td {
    border-bottom: none;
}

.dept-subdept-table tr:hover td {
    background-color: #f8fafc;
}

.dept-empty-state-box {
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
}

/* Department Hierarchy & Collapsible Sections (Force -> Dept -> Sub-Dept -> Personnel) */
.dept-collapse-toggle-btn {
    border: none;
    background: #f1f5f9;
    color: #475569;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dept-collapse-toggle-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dept-collapse-toggle-btn.is-active {
    background: #eff6ff;
    color: #1d4ed8;
}

.dept-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.dept-hierarchy-path {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #edf2f7;
}

.dept-hierarchy-path .path-step {
    font-weight: 600;
    color: #334155;
}

.dept-hierarchy-path .path-sep {
    color: #94a3b8;
    font-size: 10px;
}

/* Direct Department Personnel Card */
.dept-direct-personnel-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.dept-direct-personnel-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sub-Department Expand Row & Button */
.dept-subdept-expand-btn {
    border: none;
    background: transparent;
    padding: 4px 6px;
    border-radius: 4px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.dept-subdept-expand-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.dept-subdept-expand-btn.is-expanded {
    color: #1d4ed8;
    transform: rotate(90deg);
}

/* Personnel Drawer (Level 4) */
.dept-personnel-expansion-row td {
    padding: 0 !important;
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.dept-personnel-drawer {
    padding: 16px 20px;
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    margin: 8px 12px 14px 12px;
    border-radius: 0 8px 8px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dept-personnel-drawer-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.dept-personnel-drawer-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-personnel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.dept-personnel-table th {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 7px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.dept-personnel-table td {
    padding: 8px 12px;
    font-size: 12.5px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.dept-personnel-table tr:last-child td {
    border-bottom: none;
}

.dept-personnel-table tr:hover td {
    background-color: #f8fafc;
}

.dept-empty-personnel-box {
    padding: 18px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    color: #64748b;
    font-size: 12.5px;
}

/* ==========================================================================
   BIOMETRIC STATUS DEDICATED MODULE STYLES
   ========================================================================== */
.bio-status-page {
    width: 100%;
}

.bio-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.bio-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: bioPulse 2s infinite;
}

@keyframes bioPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* KPI Cards Grid */
.bio-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .bio-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bio-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.bio-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bio-kpi-card.isClickable {
    cursor: pointer;
}

.bio-kpi-card.isClickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bio-kpi-card--enrolled {
    border-left: 4px solid #10b981;
    background: #fcfdfd;
}

.bio-kpi-card--enrolled.is-selected {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.bio-kpi-card--pending {
    border-left: 4px solid #f59e0b;
    background: #fdfdfc;
}

.bio-kpi-card--pending.is-selected {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.bio-kpi-card--total {
    border-left: 4px solid #3b82f6;
}

.bio-kpi-card--modalities {
    border-left: 4px solid #8b5cf6;
}

.bio-kpi-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bio-kpi-card__label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.bio-kpi-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-kpi-card__icon--total {
    background: #eff6ff;
    color: #2563eb;
}

.bio-kpi-card__icon--enrolled {
    background: #dcfce7;
    color: #16a34a;
}

.bio-kpi-card__icon--pending {
    background: #fef3c7;
    color: #d97706;
}

.bio-kpi-card__icon--modalities {
    background: #f3e8ff;
    color: #7c3aed;
}

.bio-kpi-card__main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.bio-kpi-card__value {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.bio-kpi-card__badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.badge-success-subtle {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-warning-subtle {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.bio-kpi-card__progress {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bio-kpi-card__progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.bio-kpi-card__subtext {
    font-size: 11.5px;
    color: #64748b;
}

/* Modality Pills */
.bio-modalities-pills {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bio-modality-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bio-modality-pill:hover,
.bio-modality-pill.active {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #5b21b6;
}

/* Force Breakdown Mini Cards */
.bio-force-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .bio-force-cards-grid {
        grid-template-columns: 1fr;
    }
}

.bio-force-mini-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bio-force-mini-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.bio-force-mini-card.active {
    border-color: #1e293b;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.15);
    background: #f8fafc;
}

.bio-force-mini-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bio-force-indicator {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

.pmf-indicator {
    background: #d8f3dc;
    color: #1b4332;
    border: 1px solid #b7e4c7;
}

.ppf-indicator {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.pcc-indicator {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.bio-force-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.bio-force-rate {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.bio-force-mini-card__counts {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

/* Status Segmented Tabs */
.bio-status-segmented-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.bio-status-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bio-status-tab:hover:not(.active) {
    color: #0f172a;
    background: #e2e8f0;
}

.bio-status-tab.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bio-status-tab--enrolled.active {
    color: #15803d;
}

.bio-status-tab--pending.active {
    color: #b45309;
}

.bio-tab-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
}

.bio-tab-badge--enrolled {
    background: #dcfce7;
    color: #15803d;
}

.bio-tab-badge--pending {
    background: #fef3c7;
    color: #b45309;
}

/* Toolbar Controls */
.bio-search-input {
    min-width: 300px;
    flex-grow: 1;
    max-width: 480px;
}

.bio-compact-select {
    font-size: 12.5px;
    padding: 4px 28px 4px 10px;
    height: 32px;
    border-color: #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    min-width: 130px;
}

/* Biometric Table Enhancements */
.bio-table-container {
    overflow-x: auto;
}

.bio-status-table {
    width: 100%;
}

.bio-status-table tr.row-enrolled td {
    background-color: #ffffff;
}

.bio-status-table tr.row-pending td {
    background-color: #ffffff;
}

.bio-status-table tr:hover td {
    background-color: #f8fafc !important;
}

.bio-avatar-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.bio-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}

.bio-avatar-fallback {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.bio-force-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-darawiish {
    background: #d8f3dc;
    color: #1b4332;
    border: 1px solid #b7e4c7;
}

.badge-police {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.badge-custodial {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Enrollment Status Badges (The Crucial Distinction) */
.bio-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.bio-badge--enrolled {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.bio-badge--pending {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Modality Chips */
.bio-modality-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.bio-modality-chip--fingerprint {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.bio-modality-chip--signature {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

.bio-modality-chip--face {
    background: #fdf4ff;
    color: #a21caf;
    border: 1px solid #f5d0fe;
}

/* Quality Meter */
.bio-quality-box {
    min-width: 90px;
}

.bio-mini-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 3px;
}

.bio-mini-progress-bar {
    height: 100%;
    border-radius: 2px;
}

/* Action Buttons */
.bio-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.bio-action-btn--enroll {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.bio-action-btn--enroll:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

/* Pagination Buttons */
.bio-pagination-btn {
    font-size: 12px;
    padding: 4px 10px;
    min-width: 32px;
}

/* Detail Modal Styles */
.bio-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: bioFadeIn 0.2s ease;
}

@keyframes bioFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bio-modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

.bio-modal-personnel-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.bio-avatar-img-lg {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}

.bio-avatar-fallback-lg {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-inspection-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-inspection-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    background: #ffffff;
}

.bio-face-preview-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}

.bio-sig-preview-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 8px;
    display: inline-block;
}

.bio-signature-img {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.bio-empty-state {
    padding: 24px;
}

.spin-animation {
    animation: bioSpin 1s linear infinite;
}

@keyframes bioSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   REPORTS PAGE MODERN ENTERPRISE DESIGN SYSTEM
   ========================================================================== */

.report-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.report-page-header__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.report-page-header__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-page-header__title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-page-header__subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.report-date-filter-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 6px;
    grid-column: 1 / -1;
}

.report-date-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.report-date-mode-toggle {
    display: inline-flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.report-date-mode-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.report-date-mode-btn.active {
    background: #ffffff;
    color: #1e40af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.report-date-mode-btn:hover:not(.active) {
    color: #0f172a;
}

.report-quick-presets {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.report-quick-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.report-quick-btn:hover {
    background: #eff6ff;
    color: #1e40af;
    border-color: #93c5fd;
}

.report-quick-btn.active {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
}

.report-date-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.report-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-top: 24px;
}

.report-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.report-table-toolbar__title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.report-table-search-wrap {
    position: relative;
    min-width: 240px;
    max-width: 340px;
}

.report-table-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.report-table-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.15s ease;
}

.report-table-search-input:focus {
    background: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.report-badge-force {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.report-cell-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.02em;
}

.report-cell-name {
    font-weight: 600;
    color: #0f172a;
}

.report-cell-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 13px;
}

.report-empty-state {
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.report-empty-state__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.report-empty-state__title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.report-empty-state__desc {
    font-size: 13px;
    color: #64748b;
    max-width: 380px;
}




