:root {
    color-scheme: light;
    --hrms-primary: #1769e8;
    --hrms-primary-dark: #0e4fbd;
    --hrms-navy: #102b50;
    --hrms-text: #172b48;
    --hrms-muted: #64748b;
    --hrms-border: #e6edf6;
    --hrms-soft: #f4f8ff;
}
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { min-height: 100vh; margin: 0; color: var(--hrms-text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
main { flex: 1; }
.card { border: 1px solid #e8ebef; border-radius: .8rem; }
.navbar-brand { letter-spacing: .2px; }
.app-shell { background: #f7f8fa; display: flex; flex-direction: column; }
.app-header { background: #142d50; }
.app-main { flex: 1; }
.app-footer { padding: 1rem 0; color: #7b8797; border-top: 1px solid #e7ebf0; }

/* Public website */
.public-shell { background: #fff; }
.public-header { z-index: 1030; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(226,235,247,.85); backdrop-filter: blur(14px); }
.public-header .navbar { min-height: 78px; }
.public-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hrms-navy); font-size: 1.55rem; font-weight: 800; line-height: 1; letter-spacing: -.7px; }
.public-brand:hover { color: var(--hrms-primary); }
.public-brand small { display: block; margin-top: 5px; color: #718096; font-size: .56rem; font-weight: 700; letter-spacing: 1.1px; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg,#3993ff,#145bd4); font-size: 1.45rem; box-shadow: 0 8px 18px rgba(23,105,232,.2); }
.public-header .nav-link { padding: .65rem .75rem !important; color: #43536a; font-size: .92rem; font-weight: 600; }
.public-header .nav-link:hover { color: var(--hrms-primary); }
.btn-login { padding: .62rem 1rem; border: 1px solid #dbe5f2; border-radius: 10px; color: #27415f; font-weight: 650; }
.btn-login:hover { color: var(--hrms-primary); border-color: #9fc2f7; background: #f6f9ff; }
.btn-primary-gradient { border: 0; border-radius: 10px; padding: .72rem 1.2rem; color: #fff; background: linear-gradient(110deg,#1769e8,#398ef4); box-shadow: 0 8px 18px rgba(23,105,232,.2); font-weight: 700; }
.btn-primary-gradient:hover { color: #fff; background: linear-gradient(110deg,#1056c8,#287de5); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(23,105,232,.25); }
.hero-section { position: relative; overflow: hidden; padding: 76px 0 72px; background: radial-gradient(circle at 84% 22%,rgba(125,183,255,.22),transparent 29%),linear-gradient(115deg,#f3f8ff 0%,#fff 54%,#edf5ff 100%); }
.hero-section:before { position: absolute; top: -220px; right: -130px; width: 650px; height: 650px; border: 1px solid rgba(66,145,245,.13); border-radius: 50%; content: ""; }
.hero-container { position: relative; z-index: 1; }
.eyebrow,.section-kicker { display: inline-flex; align-items: center; color: var(--hrms-primary); font-size: .75rem; font-weight: 800; letter-spacing: 1.5px; }
.eyebrow { padding: 9px 13px; border: 1px solid #dceaff; border-radius: 30px; background: #fff; letter-spacing: .7px; }
.hero-copy h1 { margin: 22px 0 20px; color: var(--hrms-navy); font-size: clamp(2.55rem,5vw,4.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -2.4px; }
.hero-copy h1 span { color: var(--hrms-primary); }
.hero-lead { max-width: 570px; color: #586b84; font-size: 1.12rem; line-height: 1.8; }
.hero-actions { margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; color: #536780; font-size: .82rem; font-weight: 600; }
.hero-points i { margin-right: 5px; color: #22b879; }
.hero-visual { position: relative; display: grid; min-height: 430px; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid rgba(53,132,235,.17); border-radius: 50%; }
.orbit-one { width: 420px; height: 420px; }
.orbit-two { width: 510px; height: 510px; border-style: dashed; }
.dashboard-window { position: relative; z-index: 2; width: min(100%,480px); overflow: hidden; border: 1px solid #e2eaf5; border-radius: 19px; background: #fff; box-shadow: 0 28px 75px rgba(36,79,133,.18); transform: rotate(-2deg); }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #edf1f7; color: #8090a5; font-size: .62rem; font-weight: 800; letter-spacing: 1.1px; }
.window-dots { display: flex; gap: 5px; }.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d5e1f0; }
.dashboard-content { padding: 23px; }.dashboard-content h5 { color: var(--hrms-navy); font-size: 1.1rem; font-weight: 800; }
.dashboard-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--hrms-primary); background: #eaf2ff; }
.mini-stat { display: flex; min-height: 100px; flex-direction: column; gap: 4px; padding: 12px 10px; border-radius: 11px; color: #1769e8; background: #eef5ff; }.mini-stat i { font-size: 1.1rem; }.mini-stat strong { color: #29415f; font-size: .72rem; }.mini-stat small { color: #8391a4; font-size: .58rem; }.stat-green { color: #19a66e; background: #eaf9f2; }.stat-purple { color: #8660dc; background: #f2edff; }
.dashboard-list { padding: 16px; border: 1px solid #edf1f7; border-radius: 12px; }.dashboard-list strong { color: #263c59; font-size: .82rem; }.dashboard-list small { display: block; color: #8794a6; font-size: .63rem; }.activity-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f0f3f8; color: #9aa8ba; }.activity-row b { color: #344a66; font-size: .7rem; }.activity-row small { margin-top: 2px; }.activity-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; color: #1769e8; background: #edf4ff; }.activity-icon.green { color: #18a66d; background: #eaf9f2; }.activity-icon.purple { color: #8964dc; background: #f2edff; }
.floating-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid #e6edf7; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(42,77,120,.13); }.floating-chip > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #1769e8; background: #edf4ff; }.floating-chip b { display: block; color: #29415f; font-size: .7rem; }.floating-chip small { display: block; color: #8a98aa; font-size: .6rem; }.chip-left { left: -5px; bottom: 36px; }.chip-right { right: -5px; top: 50px; }
.trust-strip { padding: 22px 0; border-top: 1px solid #edf2f8; border-bottom: 1px solid #edf2f8; background: #fff; }.trust-strip .col-md-4 { color: #536780; font-size: .88rem; font-weight: 700; }.trust-strip i { margin-right: 9px; color: var(--hrms-primary); font-size: 1.1rem; }
.section-pad { padding: 88px 0; }.section-heading { max-width: 680px; margin: 0 auto 42px; text-align: center; }.section-heading h2,.about-title { margin: 12px 0; color: var(--hrms-navy); font-size: clamp(1.8rem,3vw,2.55rem); font-weight: 800; letter-spacing: -1px; }.section-heading p { margin: 0; color: var(--hrms-muted); line-height: 1.7; }
.feature-card { height: 100%; padding: 27px 25px; border: 1px solid #e8eef6; border-radius: 16px; background: #fff; transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }.feature-card:hover { transform: translateY(-5px); border-color: #cfe0f8; box-shadow: 0 18px 35px rgba(32,76,131,.09); }.feature-icon { display: grid; width: 52px; height: 52px; margin-bottom: 20px; place-items: center; border-radius: 15px; font-size: 1.35rem; }.feature-icon.blue { color: #1769e8; background: #eaf2ff; }.feature-icon.green { color: #16a36b; background: #e8f8f0; }.feature-icon.purple { color: #805bd5; background: #f1edff; }.feature-icon.orange { color: #e38b20; background: #fff4e5; }.feature-icon.cyan { color: #0796a9; background: #e5f8fa; }.feature-icon.pink { color: #d35d91; background: #fff0f6; }.feature-card h3 { margin-bottom: 10px; color: #1d3555; font-size: 1.08rem; font-weight: 800; }.feature-card p { margin: 0; color: #718096; font-size: .91rem; line-height: 1.7; }
.about-section { background: #f6f9fe; }.about-visual { position: relative; display: grid; min-height: 360px; place-items: center; }.about-card-main { position: relative; width: min(100%,410px); min-height: 300px; padding: 35px; overflow: hidden; border: 1px solid #e2eaf6; border-radius: 22px; background: linear-gradient(145deg,#fff,#eaf3ff); box-shadow: 0 25px 55px rgba(35,80,135,.12); }.about-icon { display: grid; width: 48px; height: 48px; margin-bottom: 24px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#3993ff,#145bd4); font-size: 1.35rem; }.about-label { color: #4e86d1; font-size: .65rem; font-weight: 800; letter-spacing: 1.4px; }.about-card-main h3 { margin: 9px 0; color: var(--hrms-navy); font-size: 1.8rem; font-weight: 800; }.about-card-main p { max-width: 250px; color: #72839a; font-size: .9rem; }.about-bars { display: flex; height: 55px; align-items: end; gap: 8px; margin-top: 20px; }.about-bars i { width: 18px; border-radius: 5px 5px 0 0; background: #a7cdfd; }.about-bars i:nth-child(3n+1) { height: 38%; }.about-bars i:nth-child(3n+2) { height: 70%; }.about-bars i:nth-child(3n) { height: 100%; }.about-decoration { position: absolute; display: grid; width: 55px; height: 55px; place-items: center; border: 5px solid #f6f9fe; border-radius: 16px; color: #1769e8; background: #fff; box-shadow: 0 10px 25px rgba(35,80,135,.12); font-size: 1.3rem; }.decoration-one { top: 25px; right: 5%; }.decoration-two { bottom: 20px; left: 3%; color: #19a66e; }.about-title { max-width: 560px; }.about-lead { color: #687b93; line-height: 1.85; }.benefit-list { display: grid; gap: 13px; margin: 24px 0; padding: 0; list-style: none; color: #435973; font-size: .92rem; }.benefit-list i { margin-right: 9px; color: #20b879; }.text-link { color: var(--hrms-primary); font-weight: 750; text-decoration: none; }.text-link i { margin-left: 5px; }.text-link:hover { color: var(--hrms-primary-dark); }
.pricing-section { background: #fff; }.plan-card { position: relative; height: 100%; padding: 30px; border: 1px solid #e3ebf5; border-radius: 17px; background: #fff; }.plan-featured { border: 2px solid #4b91f0; box-shadow: 0 16px 38px rgba(31,105,208,.1); }.plan-label { color: #4d82c5; font-size: .7rem; font-weight: 850; letter-spacing: 1.5px; }.plan-card h3 { margin: 12px 0 9px; color: var(--hrms-navy); font-size: 1.35rem; font-weight: 800; }.plan-card p { min-height: 48px; color: #718096; font-size: .88rem; line-height: 1.6; }.plan-card ul { display: grid; gap: 12px; min-height: 160px; margin: 23px 0; padding: 0; list-style: none; color: #536780; font-size: .87rem; }.plan-card li:before { margin-right: 9px; color: #20b879; content: "✓"; font-weight: 900; }.popular-label { position: absolute; top: -13px; right: 20px; padding: 6px 11px; border-radius: 20px; color: #fff; background: #1769e8; font-size: .62rem; font-weight: 800; letter-spacing: .7px; }.pricing-note { margin: 25px 0 0; color: #8794a6; text-align: center; font-size: .78rem; }
.faq-section { background: #f7faff; }.faq-accordion { max-width: 850px; margin: 0 auto; }.faq-accordion .accordion-item { margin-bottom: 12px; overflow: hidden; border: 1px solid #e4ebf5; border-radius: 12px; background: #fff; }.faq-accordion .accordion-button { padding: 20px 22px; color: #233d5e; background: #fff; box-shadow: none; font-weight: 750; }.faq-accordion .accordion-button:not(.collapsed) { color: var(--hrms-primary); }.faq-accordion .accordion-body { padding: 0 22px 21px; color: #687b93; line-height: 1.75; }
.contact-section { padding-top: 70px; padding-bottom: 85px; }.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 45px 50px; border-radius: 22px; color: #fff; background: linear-gradient(115deg,#123b72,#1769e8); box-shadow: 0 20px 45px rgba(23,105,232,.18); }.contact-panel .section-kicker { color: #b8d6ff; }.contact-panel h2 { max-width: 650px; margin: 10px 0; font-size: clamp(1.7rem,3vw,2.3rem); font-weight: 800; letter-spacing: -.8px; }.contact-panel p { max-width: 620px; margin: 0; color: #d5e5fb; line-height: 1.7; }.contact-actions { display: flex; min-width: 210px; flex-direction: column; align-items: flex-start; gap: 12px; }.contact-email { color: #d9e9ff; font-size: .75rem; text-decoration: none; }.contact-email:hover { color: #fff; text-decoration: underline; }
.public-footer { padding: 55px 0 20px; color: #dce8f8; background: #102b50; }.footer-brand { color: #fff; font-size: 1.8rem; font-weight: 850; text-decoration: none; }.footer-brand i { color: #64a9ff; }.footer-description { max-width: 330px; margin-top: 13px; color: #a9bdd7; font-size: .87rem; line-height: 1.75; }.public-footer h6 { margin: 5px 0 17px; color: #fff; font-size: .9rem; font-weight: 800; }.public-footer .col-6 a { display: block; margin: 10px 0; color: #a9bdd7; font-size: .84rem; text-decoration: none; }.public-footer .col-6 a:hover { color: #fff; }.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 35px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); color: #9db2cd; font-size: .75rem; }
@media (max-width: 991.98px) { .public-header .navbar-collapse { padding: 12px 0 18px; }.public-header .nav-link { padding: .5rem 0 !important; }.hero-section { padding: 60px 0; }.hero-visual { min-height: 390px; margin-top: 12px; }.chip-left { left: 0; }.chip-right { right: 0; }.contact-panel { align-items: flex-start; flex-direction: column; } }
@media (max-width: 575.98px) { .public-header .navbar { min-height: 68px; }.hero-section { padding: 48px 0; }.hero-copy h1 { letter-spacing: -1.5px; }.hero-lead { font-size: 1rem; }.hero-visual { min-height: 340px; }.orbit-one { width: 300px; height: 300px; }.orbit-two { width: 350px; height: 350px; }.dashboard-window { transform: none; }.dashboard-content { padding: 15px; }.floating-chip { padding: 8px; }.floating-chip > i { width: 29px; height: 29px; }.chip-left { bottom: 0; }.chip-right { top: 0; }.section-pad { padding: 65px 0; }.about-visual { min-height: 320px; }.about-card-main { padding: 25px; }.contact-panel { padding: 30px 24px; }.footer-bottom { flex-direction: column; }.trust-strip .col-md-4 { font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.feature-card,.btn-primary-gradient { transition: none; } }
/* Refined public landing page: elegant typography, depth and restrained motion */
:root { --hrms-font-body:"DM Sans","Segoe UI",sans-serif; --hrms-font-display:"Manrope","Segoe UI",sans-serif; }
html { scroll-behavior:smooth; }
body { font-family:var(--hrms-font-body); font-weight:400; letter-spacing:-.01em; }
h1,h2,h3,h4,h5,h6,.public-brand,.footer-brand { font-family:var(--hrms-font-display); font-weight:600 !important; letter-spacing:-.035em; }
.public-header { background:rgba(255,255,255,.88); border-bottom:1px solid rgba(219,231,247,.78); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.public-header .navbar { min-height:82px; }
.public-brand { gap:12px; font-size:1.55rem; font-weight:700 !important; letter-spacing:-.055em; }
.public-brand small { font-family:var(--hrms-font-body); font-weight:600; letter-spacing:.13em; }
.public-header .nav-link { color:#536782; font-weight:600; transition:color .2s ease; }
.public-header .nav-link:hover { color:var(--hrms-primary); }
.btn { font-family:var(--hrms-font-body); font-weight:600; letter-spacing:-.015em; }
.btn-primary-gradient { border:0; background:linear-gradient(115deg,#1769e8 0%,#348bfa 100%); box-shadow:0 12px 26px rgba(32,112,226,.22); transition:transform .22s ease,box-shadow .22s ease,filter .22s ease; }
.btn-primary-gradient:hover { transform:translateY(-2px); filter:saturate(1.08); box-shadow:0 17px 32px rgba(32,112,226,.29); }
.hero-section { position:relative; isolation:isolate; overflow:hidden; padding:clamp(76px,8vw,118px) 0 76px; background:radial-gradient(ellipse at 87% 16%,rgba(88,157,255,.19),transparent 35%),radial-gradient(ellipse at 58% 90%,rgba(120,184,255,.13),transparent 32%),linear-gradient(130deg,#f8fbff 0%,#f0f6ff 54%,#e8f2ff 100%); }
.hero-section::before,.hero-section::after { position:absolute; z-index:-1; content:""; pointer-events:none; border:1px solid rgba(92,153,236,.16); border-radius:50%; }
.hero-section::before { width:720px; height:720px; right:-245px; top:-330px; }
.hero-section::after { width:540px; height:540px; right:-150px; top:-240px; }
.hero-container,.hero-copy { position:relative; }
.hero-copy { z-index:2; }
.eyebrow { display:inline-flex; align-items:center; padding:10px 16px; border:1px solid rgba(79,139,221,.2); border-radius:999px; color:#246bc8; background:rgba(255,255,255,.76); box-shadow:0 8px 24px rgba(45,91,151,.06); font-size:.72rem; font-weight:700; letter-spacing:.09em; }
.hero-copy h1 { max-width:680px; margin:27px 0 20px; color:#102e55; font-family:var(--hrms-font-display); font-size:clamp(2.8rem,5.4vw,5.05rem); font-weight:600 !important; line-height:1.09; letter-spacing:-.075em; }
.hero-copy h1 span { color:#1769e8; background:linear-gradient(100deg,#1769e8 0%,#348cf8 58%,#59a8fa 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero-lead { max-width:590px; color:#617590; font-size:clamp(1.02rem,1.35vw,1.18rem); line-height:1.85; }
.hero-actions { margin-top:30px; }
.hero-actions .btn { padding:14px 22px; border-radius:13px; font-size:.96rem; }
.hero-points { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:25px; }
.hero-points span { color:#657a95; font-size:.78rem; font-weight:500; }
.hero-points i { margin-right:5px; color:#20a979; }
.hero-proof-row { display:flex; flex-wrap:wrap; gap:18px; margin-top:33px; padding-top:23px; border-top:1px solid rgba(167,190,220,.38); }
.hero-proof-row>div { display:flex; align-items:center; gap:10px; }
.proof-icon { display:grid; width:38px; height:38px; place-items:center; border-radius:12px; color:#1769e8; background:#e2efff; font-size:1rem; }
.proof-icon-mint { color:#15986a; background:#e2f7ee; }
.proof-icon-violet { color:#805bd5; background:#eee9ff; }
.hero-proof-row strong { display:block; color:#294565; font-size:.76rem; font-weight:700; }
.hero-proof-row small { display:block; margin-top:2px; color:#8798ad; font-size:.66rem; }
.hero-visual { min-height:560px; }
.dashboard-window { border:1px solid rgba(255,255,255,.9); border-radius:23px; background:rgba(255,255,255,.94); box-shadow:0 35px 90px rgba(31,83,148,.18),0 8px 24px rgba(31,83,148,.08); transform:perspective(1500px) rotateY(-5deg) rotateX(2deg); transition:transform .45s ease,box-shadow .45s ease; }
.hero-visual:hover .dashboard-window { transform:perspective(1500px) rotateY(-1deg) rotateX(0); box-shadow:0 42px 100px rgba(31,83,148,.22); }
.dashboard-top { min-height:48px; border-bottom-color:#edf2f8; color:#7f91a8; font-size:.65rem; font-weight:700; letter-spacing:.13em; }
.dashboard-content { padding:25px; }
.dashboard-content h5 { font-family:var(--hrms-font-display); font-size:1.2rem; font-weight:600 !important; letter-spacing:-.04em; }
.mini-stat { min-height:112px; padding:15px 13px; border:1px solid rgba(221,233,248,.8); border-radius:15px; box-shadow:0 8px 20px rgba(42,84,135,.045); }
.mini-stat strong { font-family:var(--hrms-font-display); font-size:.78rem; font-weight:700; }
.mini-stat small { font-size:.63rem; }
.dashboard-list { padding:18px; border-color:#eaf0f7; border-radius:15px; }
.dashboard-list strong { font-family:var(--hrms-font-display); font-weight:700; }
.activity-row { padding:12px 0; }
.activity-row b { font-weight:600; }
.floating-chip { border-color:rgba(226,236,249,.9); border-radius:15px; box-shadow:0 16px 38px rgba(37,78,128,.13); }
.floating-chip b { font-weight:700; }
.trust-strip { padding:25px 0; background:rgba(255,255,255,.92); }
.trust-strip .col-md-4 { font-weight:600; }
.section-pad { padding:clamp(68px,8vw,105px) 0; }
.section-heading h2,.about-title { font-family:var(--hrms-font-display); font-weight:600 !important; letter-spacing:-.055em; line-height:1.2; }
.section-kicker { font-weight:700; letter-spacing:.13em; }
.feature-card { padding:30px; border-radius:20px; box-shadow:0 7px 26px rgba(34,75,125,.035); }
.feature-card h3 { font-family:var(--hrms-font-display); font-weight:600 !important; letter-spacing:-.035em; }
.feature-card p { line-height:1.8; }
.about-card-main { border-radius:27px; box-shadow:0 30px 70px rgba(35,80,135,.14); }
.about-card-main h3 { font-family:var(--hrms-font-display); font-weight:600 !important; letter-spacing:-.05em; }
.plan-card { border-radius:20px; }
.plan-card h3 { font-family:var(--hrms-font-display); font-weight:600 !important; }
.faq-accordion .accordion-button { font-weight:600; }
.contact-panel { border-radius:25px; box-shadow:0 26px 60px rgba(23,105,232,.2); }
.contact-panel h2 { font-family:var(--hrms-font-display); font-weight:600 !important; letter-spacing:-.045em; }
.public-footer h6 { font-weight:600; }
.footer-brand { font-weight:700 !important; }
@media(max-width:991.98px) { .hero-section { padding:70px 0 55px; } .hero-visual { min-height:450px; } .dashboard-window { transform:none; } }
@media(max-width:575.98px) { .hero-section { padding:52px 0 42px; } .hero-copy h1 { font-size:clamp(2.55rem,12vw,3.45rem); line-height:1.12; letter-spacing:-.07em; } .hero-proof-row { gap:13px; } .hero-proof-row>div { min-width:calc(50% - 8px); } .hero-visual { min-height:360px; } .dashboard-content { padding:14px; } .mini-stat { min-height:91px; padding:10px 8px; } }
@media(prefers-reduced-motion:reduce) { .dashboard-window,.hero-visual:hover .dashboard-window { transform:none; transition:none; } }

/* Authenticated workspace: executive dashboard shell */
.app-shell { min-height:100vh; color:#172d4e; background:#f3f6fc; font-family:var(--hrms-font-body,"DM Sans",sans-serif); }
.app-frame { min-height:100vh; }
.app-sidebar { position:fixed; inset:0 auto 0 0; z-index:1040; display:flex; width:248px; flex-direction:column; padding:24px 15px 18px; color:#fff; background:linear-gradient(180deg,#102d59 0%,#10264b 68%,#0d2142 100%); box-shadow:8px 0 30px rgba(17,43,83,.08); transition:transform .25s ease; }
.app-brand { display:flex; align-items:center; gap:11px; padding:0 10px 28px; color:#fff; font-family:var(--hrms-font-display); font-size:1.45rem; font-weight:700; letter-spacing:-.055em; text-decoration:none; }
.app-brand:hover { color:#fff; }
.app-brand-mark { display:grid; width:42px; height:42px; place-items:center; border-radius:14px; color:#fff; background:linear-gradient(145deg,#21b9f2,#1769e8); font-size:1.35rem; box-shadow:0 8px 20px rgba(20,128,235,.25); }
.app-brand small { display:block; margin-top:1px; color:#a9c2e4; font-family:var(--hrms-font-body); font-size:.55rem; font-weight:600; letter-spacing:.12em; }
.sidebar-section-label { padding:0 13px 10px; color:#7795bd; font-size:.64rem; font-weight:700; letter-spacing:.14em; }
.sidebar-nav { display:flex; flex-direction:column; gap:5px; }
.sidebar-link { display:flex; min-height:46px; align-items:center; gap:13px; padding:0 13px; border-radius:11px; color:#d1def0; font-size:.86rem; font-weight:500; text-decoration:none; transition:background .18s ease,color .18s ease,transform .18s ease; }
.sidebar-link>i:first-child { width:20px; color:#a9c3e5; font-size:1.05rem; text-align:center; }
.sidebar-link:hover { color:#fff; background:rgba(255,255,255,.09); transform:translateX(2px); }
.sidebar-link.active { color:#fff; background:linear-gradient(105deg,#1769e8,#2584f4); box-shadow:0 8px 18px rgba(13,103,226,.23); }
.sidebar-link.active>i:first-child { color:#fff; }
.sidebar-plan-card { margin: auto 3px 18px; padding:17px 14px; border:1px solid rgba(255,255,255,.09); border-radius:16px; background:linear-gradient(145deg,rgba(45,91,163,.42),rgba(35,63,112,.4)); }
.sidebar-plan-icon { margin-bottom:8px; color:#ffc44f; font-size:1.55rem; }
.sidebar-plan-card strong,.sidebar-plan-card span { display:block; }
.sidebar-plan-card strong { font-size:.87rem; }
.sidebar-plan-card span { margin:4px 0 12px; color:#b5c9e3; font-size:.7rem; line-height:1.5; }
.sidebar-plan-card a { display:flex; justify-content:space-between; gap:8px; padding:9px 10px; border-radius:9px; color:#fff; background:#1769e8; font-size:.7rem; font-weight:600; text-decoration:none; }
.sidebar-footer { display:flex; justify-content:space-between; gap:6px; padding:14px 7px 0; border-top:1px solid rgba(255,255,255,.1); color:#819abd; font-size:.64rem; }
.app-main-shell { min-height:100vh; margin-left:248px; display:flex; flex-direction:column; }
.app-topbar { position:sticky; top:0; z-index:1020; display:flex; min-height:76px; align-items:center; gap:18px; padding:0 clamp(20px,3vw,42px); border-bottom:1px solid #e8eef7; background:rgba(255,255,255,.92); backdrop-filter:blur(16px); }
.sidebar-toggle { display:none; width:38px; height:38px; border:0; border-radius:10px; color:#23466f; background:#f1f5fb; font-size:1.35rem; }
.topbar-context { display:flex; align-items:center; gap:10px; color:#254264; font-size:.86rem; font-weight:650; }
.topbar-context-icon { display:grid; width:34px; height:34px; place-items:center; border-radius:10px; color:#1769e8; background:#eaf2ff; }
.topbar-context>i:last-child { color:#91a2b8; font-size:.68rem; }
.topbar-spacer { flex:1; }
.topbar-notifications { display:grid; width:38px; height:38px; place-items:center; border-radius:50%; color:#29486b; background:#f5f7fb; font-size:1.05rem; text-decoration:none; }
.topbar-notifications:hover { color:#1769e8; background:#eaf2ff; }
.topbar-user { display:flex; align-items:center; gap:10px; }
.topbar-avatar { display:grid; width:39px; height:39px; place-items:center; border:2px solid #e5effd; border-radius:50%; color:#1769e8; background:#eaf2ff; font-size:1.15rem; }
.topbar-user-copy strong,.topbar-user-copy small { display:block; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar-user-copy strong { color:#1c3556; font-size:.78rem; font-weight:700; }
.topbar-user-copy small { margin-top:2px; color:#8292a8; font-size:.67rem; }
.topbar-logout button { width:35px; height:35px; border:0; border-radius:9px; color:#778ba6; background:transparent; font-size:1.05rem; }
.topbar-logout button:hover { color:#d34b55; background:#fff0f1; }
.app-main-content { width:100%; max-width:1700px; flex:1; margin:0 auto; padding:28px clamp(20px,3vw,42px) 24px; }
.app-footer { display:flex; justify-content:space-between; gap:15px; padding:14px clamp(20px,3vw,42px); border-top:1px solid #e7edf6; color:#8a9ab0; background:#fff; font-size:.68rem; }
.dashboard-welcome { position:relative; display:flex; min-height:164px; align-items:center; justify-content:space-between; overflow:hidden; padding:28px 34px; border-radius:18px; color:#fff; background:linear-gradient(108deg,#1249b7 0%,#1769e8 53%,#5ba8fa 100%); box-shadow:0 13px 30px rgba(34,105,210,.16); }
.dashboard-welcome::before,.dashboard-welcome::after { position:absolute; content:""; border:1px solid rgba(255,255,255,.13); border-radius:50%; }
.dashboard-welcome::before { width:360px; height:360px; top:-220px; right:6%; }
.dashboard-welcome::after { width:470px; height:470px; top:-300px; right:-5%; }
.welcome-copy { position:relative; z-index:2; }
.dashboard-eyebrow { color:#c9e1ff; font-size:.64rem; font-weight:700; letter-spacing:.14em; }
.dashboard-welcome h1 { margin:9px 0 5px; color:#fff; font-family:var(--hrms-font-display); font-size:clamp(1.5rem,2.5vw,2rem); font-weight:650; letter-spacing:-.045em; }
.dashboard-welcome p { margin:0; color:#d9eaff; font-size:.87rem; }
.welcome-meta { display:flex; flex-wrap:wrap; gap:18px; margin-top:16px; color:#d4e7ff; font-size:.72rem; }
.welcome-illustration { position:absolute; top:0; right:3%; width:310px; height:100%; color:rgba(255,255,255,.82); }
.illustration-orbit { position:absolute; display:block; border:1px solid rgba(255,255,255,.17); border-radius:50%; }
.orbit-a { width:210px; height:210px; top:-23px; right:28px; }
.orbit-b { width:280px; height:280px; top:-58px; right:-7px; }
.illustration-people { position:absolute; right:104px; bottom:20px; font-size:5rem; opacity:.85; }
.illustration-chart { position:absolute; right:27px; top:32px; font-size:2.6rem; opacity:.72; }
.illustration-calendar { position:absolute; right:225px; top:35px; font-size:2.2rem; opacity:.7; }
.dashboard-kpis .kpi-card { position:relative; min-height:158px; overflow:hidden; padding:18px 18px 31px; border:1px solid #e7edf7; border-radius:15px; background:#fff; box-shadow:0 5px 18px rgba(26,63,113,.045); }
.kpi-icon { display:grid; width:45px; height:45px; place-items:center; border-radius:50%; color:#fff; background:#2479ef; box-shadow:0 7px 16px rgba(36,121,239,.18); font-size:1.15rem; }
.kpi-menu { position:absolute; top:15px; right:14px; color:#8393a9; }
.kpi-value { margin-top:9px; color:#17365e; font-family:var(--hrms-font-display); font-size:1.8rem; font-weight:750; letter-spacing:-.055em; line-height:1.1; }
.kpi-value small { margin-left:2px; font-size:1rem; }
.kpi-label { margin-top:3px; color:#4b607d; font-size:.76rem; font-weight:650; }
.kpi-foot { position:relative; z-index:2; margin-top:7px; color:#17966a; font-size:.66rem; font-weight:600; }
.kpi-foot i { margin-right:3px; }
.kpi-sparkline { position:absolute; right:12px; bottom:0; left:12px; display:flex; height:29px; align-items:flex-end; gap:5px; opacity:.4; }
.kpi-sparkline span { flex:1; border-radius:5px 5px 0 0; background:linear-gradient(180deg,#2b83f4,#d8eaff); }
.kpi-green .kpi-icon { background:#25b879; box-shadow:0 7px 16px rgba(37,184,121,.18); }.kpi-green .kpi-sparkline span { background:linear-gradient(180deg,#29bd80,#d9f7e9); }
.kpi-orange .kpi-icon { background:#f5a31b; box-shadow:0 7px 16px rgba(245,163,27,.18); }.kpi-orange .kpi-sparkline span { background:linear-gradient(180deg,#f7b43d,#fff0d2); }
.kpi-purple .kpi-icon { background:#8254e8; box-shadow:0 7px 16px rgba(130,84,232,.18); }.kpi-purple .kpi-sparkline span { background:linear-gradient(180deg,#9b76f1,#eee6ff); }
.kpi-currency { font-size:1.35rem; letter-spacing:-.04em; }
.dashboard-panel { overflow:hidden; border:1px solid #e7edf7; border-radius:15px; background:#fff; box-shadow:0 5px 18px rgba(26,63,113,.045); }
.panel-heading { display:flex; min-height:58px; align-items:center; justify-content:space-between; gap:12px; padding:0 19px; border-bottom:1px solid #edf1f7; }
.panel-heading>div { display:flex; align-items:center; gap:10px; }
.panel-heading h2 { margin:0; color:#1c385e; font-family:var(--hrms-font-display); font-size:.94rem; font-weight:700; letter-spacing:-.025em; }
.panel-heading-icon { font-size:1.1rem; }
.panel-link { color:#286fe0; font-size:.7rem; font-weight:650; text-decoration:none; white-space:nowrap; }
.panel-link:hover { color:#124cae; }
.panel-period { padding:7px 10px; border-radius:8px; color:#506784; background:#f5f7fb; font-size:.68rem; font-weight:600; white-space:nowrap; }
.attendance-chart-wrap { padding:15px 18px 17px; }
.chart-legend { display:flex; justify-content:center; gap:22px; margin-bottom:7px; color:#526883; font-size:.67rem; font-weight:600; }
.chart-legend span { display:flex; align-items:center; gap:7px; }
.legend-dot { display:inline-block; width:10px; height:10px; flex:0 0 10px; border-radius:50%; }
.legend-blue { background:#2678ef; }.legend-green { background:#25b879; }.legend-orange { background:#f5a31b; }.legend-red { background:#ef4e54; }
.attendance-chart { position:relative; padding-left:40px; }
.chart-y-labels { position:absolute; top:0; bottom:25px; left:0; display:flex; flex-direction:column; justify-content:space-between; color:#71839c; font-size:.62rem; }
.attendance-chart svg { display:block; width:100%; height:190px; overflow:visible; }
.chart-gridline { stroke:#e8edf5; stroke-width:1; }.chart-target { stroke:#38be89; stroke-width:1.5; stroke-dasharray:5 5; opacity:.8; }.chart-line { fill:none; stroke:#2678ef; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }.chart-point { fill:#fff; stroke:#2678ef; stroke-width:3; }.chart-value { fill:#18385f; font-size:12px; font-weight:700; text-anchor:middle; }
.chart-x-labels { display:flex; justify-content:space-between; margin:1px 2px 0; color:#536a87; font-size:.65rem; font-weight:600; }
.leave-chart-content { display:flex; min-height:245px; align-items:center; justify-content:center; gap:clamp(18px,3vw,38px); padding:20px; }
.leave-donut { display:grid; width:158px; height:158px; flex:0 0 158px; place-items:center; border-radius:50%; }
.leave-donut>div { display:flex; width:94px; height:94px; flex-direction:column; align-items:center; justify-content:center; border-radius:50%; background:#fff; }
.leave-donut strong { color:#19395f; font-family:var(--hrms-font-display); font-size:1.55rem; line-height:1.1; }.leave-donut span { margin-top:3px; color:#7c8da4; font-size:.68rem; }
.leave-legend { display:flex; flex-direction:column; gap:17px; min-width:110px; }
.leave-legend>div { display:flex; align-items:center; gap:9px; }.leave-legend span { color:#526984; font-size:.73rem; }.leave-legend small { display:block; margin-top:2px; color:#1b385d; font-size:.77rem; font-weight:700; }.leave-legend .legend-green { background:#25b879; }.leave-legend .legend-orange { background:#f5a31b; }.leave-legend .legend-red { background:#ef4e54; }
.activity-list { padding:7px 17px; }.activity-item { display:flex; min-height:61px; align-items:center; gap:11px; border-bottom:1px solid #f0f3f8; }.activity-item:last-child { border-bottom:0; }.activity-badge { display:grid; width:33px; height:33px; flex:0 0 33px; place-items:center; border-radius:50%; color:#fff; background:#2879ed; font-size:.86rem; }.activity-badge.green { background:#27b879; }.activity-badge.purple { background:#8254e8; }.activity-badge.orange { background:#f3a31d; }.activity-copy { min-width:0; flex:1; }.activity-copy strong,.activity-copy small { display:block; }.activity-copy strong { overflow:hidden; color:#2a4363; font-size:.7rem; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }.activity-copy small { margin-top:3px; color:#91a0b3; font-size:.62rem; }.activity-item time { color:#8293aa; font-size:.61rem; white-space:nowrap; }.empty-activity { display:flex; min-height:180px; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#8b9bb0; font-size:.76rem; }.empty-activity i { font-size:1.7rem; }
.quick-actions-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; padding:16px; }.quick-action { display:flex; min-height:91px; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:9px 5px; border:1px solid transparent; border-radius:12px; color:#2c4566; text-align:center; text-decoration:none; transition:transform .18s ease,box-shadow .18s ease; }.quick-action:hover { transform:translateY(-3px); box-shadow:0 9px 18px rgba(30,65,112,.09); color:#1b3e6b; }.quick-action i { font-size:1.35rem; }.quick-action span { font-size:.65rem; font-weight:650; line-height:1.25; }.action-blue { color:#1769e8; background:#eef5ff; border-color:#e2edff; }.action-green { color:#1eaa73; background:#effaf5; border-color:#e0f5eb; }.action-orange { color:#ed9a13; background:#fff8eb; border-color:#f9eed9; }.action-purple { color:#8052df; background:#f5f1ff; border-color:#ece5ff; }.action-cyan { color:#168db7; background:#edf9fc; border-color:#def1f7; }.action-slate { color:#58718f; background:#f3f6fa; border-color:#e8edf4; }
.subscription-preview { position:relative; overflow:hidden; padding:20px; border:1px solid #e8e8fa; border-radius:15px; background:linear-gradient(145deg,#fff 0%,#f6f3ff 100%); box-shadow:0 5px 18px rgba(26,63,113,.045); }.subscription-preview::after { position:absolute; right:-35px; bottom:-40px; width:150px; height:150px; border:1px solid rgba(128,82,223,.12); border-radius:50%; content:""; box-shadow:0 0 0 17px rgba(128,82,223,.035),0 0 0 35px rgba(128,82,223,.025); }.subscription-crown { color:#edae27; font-size:1.8rem; }.subscription-kicker { display:block; margin-top:9px; color:#8a76c0; font-size:.61rem; font-weight:700; letter-spacing:.13em; }.subscription-preview h2 { margin:7px 0; color:#253e61; font-family:var(--hrms-font-display); font-size:1.02rem; font-weight:750; }.subscription-preview p { max-width:210px; margin:0; color:#7788a1; font-size:.72rem; line-height:1.6; }.subscription-divider { height:1px; margin:16px 0 11px; background:#e9e3f8; }.subscription-link { position:relative; z-index:1; display:flex; justify-content:space-between; gap:8px; padding:8px 0; color:#52678a; font-size:.68rem; font-weight:650; text-decoration:none; }.subscription-link:hover { color:#6f4ac9; }
.dashboard-security-note { display:flex; align-items:center; gap:9px; padding:14px 17px; border:1px solid #e7edf6; border-radius:12px; color:#617691; background:#fff; font-size:.68rem; }.dashboard-security-note>i { color:#25ad79; font-size:1.05rem; }.dashboard-security-note>div { display:flex; gap:18px; }.dashboard-security-note a { color:#56708f; text-decoration:none; }.dashboard-security-note a:hover { color:#1769e8; }.notification-count { display:inline-grid; min-width:17px; height:17px; place-items:center; margin-left:3px; border-radius:99px; color:#fff; background:#e64e58; font-size:.58rem; }
@media(max-width:1199.98px) { .welcome-illustration { right:0; opacity:.65; }.subscription-preview { min-height:220px; } }
@media(max-width:991.98px) { .app-sidebar { transform:translateX(-100%); }.app-sidebar.sidebar-open { transform:translateX(0); }.app-main-shell { margin-left:0; }.sidebar-toggle { display:grid; place-items:center; }.app-topbar { min-height:66px; }.app-main-content { padding-top:22px; }.welcome-illustration { opacity:.35; }.dashboard-security-note { flex-wrap:wrap; }.dashboard-security-note>div { width:100%; margin-left:0 !important; } }
@media(max-width:575.98px) { .app-topbar { gap:10px; padding:0 14px; }.topbar-context { font-size:.72rem; }.topbar-context-icon { width:30px; height:30px; }.topbar-user-copy { display:none; }.topbar-logout button { width:30px; }.app-main-content { padding:16px 13px 20px; }.dashboard-welcome { min-height:150px; padding:22px 20px; }.dashboard-welcome h1 { max-width:260px; font-size:1.5rem; }.dashboard-welcome p { max-width:245px; font-size:.75rem; }.welcome-meta { gap:8px 13px; font-size:.64rem; }.welcome-illustration { right:-95px; opacity:.2; }.dashboard-kpis .kpi-card { min-height:150px; padding:14px 12px 28px; }.kpi-icon { width:38px; height:38px; font-size:1rem; }.kpi-value { font-size:1.55rem; }.kpi-currency { font-size:1.12rem; }.kpi-label { font-size:.68rem; }.kpi-foot { font-size:.59rem; }.panel-heading { padding:0 13px; }.panel-heading h2 { font-size:.82rem; }.leave-chart-content { min-height:210px; gap:15px; padding:14px; }.leave-donut { width:130px; height:130px; flex-basis:130px; }.leave-donut>div { width:78px; height:78px; }.leave-donut strong { font-size:1.3rem; }.leave-legend { min-width:88px; gap:13px; }.leave-legend span { font-size:.66rem; }.quick-actions-grid { gap:7px; padding:12px; }.quick-action { min-height:78px; }.quick-action span { font-size:.59rem; }.dashboard-security-note { font-size:.62rem; }.dashboard-security-note>div { gap:12px; }.app-footer { flex-direction:column; padding:12px 14px; } }

/* Platform Super Admin dashboard */
.platform-sidebar-nav {
    margin-top: 1.5rem;
}

.platform-sidebar-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin: auto 1rem 1rem;
    padding: 1rem 0.25rem 0.5rem;
    color: #fff;
}

.platform-admin-crown {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    margin-bottom: 0.45rem;
    border-radius: 0.8rem;
    background: rgba(255, 196, 71, 0.14);
    color: #ffc247;
    font-size: 1.25rem;
}

.platform-sidebar-identity strong {
    color: #ffd15c;
    font-size: 0.95rem;
}

.platform-sidebar-identity small {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.68);
    overflow-wrap: anywhere;
}

.platform-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.platform-sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.platform-dashboard {
    color: #17243b;
}

.platform-page-heading,
.platform-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.platform-page-heading {
    margin-bottom: 1.5rem;
}

.platform-page-heading h1 {
    margin: 0.15rem 0 0.35rem;
    font-family: Manrope, sans-serif;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.platform-page-heading p,
.platform-panel-heading p {
    margin: 0;
    color: #78849a;
    font-size: 0.9rem;
}

.platform-eyebrow {
    color: #3979d8;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.platform-role-label,
.platform-chart-period,
.platform-result-count {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #dce8f8;
    border-radius: 0.7rem;
    background: #f3f7fd;
    color: #2868bd;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.platform-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.platform-stat-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 94px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    overflow: hidden;
    border: 1px solid rgba(26, 52, 91, 0.05);
    border-radius: 0.8rem;
    box-shadow: 0 3px 12px rgba(27, 52, 91, 0.045);
}

.platform-stat-card.stat-blue { background: linear-gradient(135deg, #eaf3ff, #f7faff); }
.platform-stat-card.stat-green { background: linear-gradient(135deg, #e8fbf1, #f6fdf9); }
.platform-stat-card.stat-orange { background: linear-gradient(135deg, #fff1e5, #fffaf5); }
.platform-stat-card.stat-purple { background: linear-gradient(135deg, #f0edff, #faf9ff); }

.platform-stat-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.45rem;
    border-radius: 0.7rem;
    background: #2879e7;
    color: #fff;
    font-size: 1.1rem;
}

.stat-green .platform-stat-icon { background: #19b96b; }
.stat-orange .platform-stat-icon { background: #f49a32; }
.stat-purple .platform-stat-icon { background: #8060df; }

.platform-stat-value {
    font-family: Manrope, sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
}

.platform-stat-label {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
}

.platform-stat-note {
    margin-top: 0.2rem;
    color: #78849a;
    font-size: 0.69rem;
    line-height: 1.25;
}

.platform-stat-content {
    min-width: 0;
}

.platform-panel {
    min-width: 0;
    border: 1px solid #e8edf4;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 5px 18px rgba(27, 52, 91, 0.045);
}

.platform-panel-heading {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #edf1f6;
}

.platform-panel-heading h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.25rem;
    font-family: Manrope, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.platform-panel-heading h2 i {
    color: #2879e7;
}

.platform-panel-heading p {
    font-size: 0.8rem;
}

.platform-table {
    margin: 0;
    font-size: 0.84rem;
}

.platform-table thead th {
    padding: 0.62rem 0.7rem;
    border-bottom: 1px solid #e9eef5;
    background: #f8fafd;
    color: #536078;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.platform-table tbody td {
    padding: 0.62rem 0.7rem;
    border-color: #eff2f6;
    color: #29364d;
    vertical-align: middle;
}

.platform-organization-name {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 175px;
}

.organization-row-icon {
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    background: #edf5ff;
    color: #2879e7;
}

.platform-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-active { background: #e5f8ed; color: #16884c; }
.status-suspended { background: #fff0e4; color: #c96a13; }
.status-trial { background: #f0ebff; color: #7654c8; }
.status-neutral { background: #eef1f5; color: #657187; }

.platform-action-button {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #e5eaf1;
    border-radius: 0.55rem;
    color: #59677e;
}

.platform-action-button:hover {
    border-color: #c8daf4;
    background: #f3f7fd;
    color: #2868bd;
}

.platform-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1rem;
    margin-top: 1rem;
}

.platform-chart-period {
    padding: 0.45rem 0.65rem;
    color: #69778e;
    background: #f8fafd;
    border-color: #e8edf4;
}

.platform-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.75rem;
    min-height: 195px;
    padding: 0.9rem 1rem 0.75rem;
}

.platform-bar-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 165px;
    min-width: 0;
}

.platform-bar-value {
    margin-bottom: 0.35rem;
    color: #2868bd;
    font-size: 0.8rem;
}

.platform-bar-track {
    display: flex;
    align-items: flex-end;
    width: min(100%, 3rem);
    height: 125px;
    overflow: hidden;
    border-radius: 0.45rem 0.45rem 0 0;
    background: #f1f5fb;
}

.platform-bar {
    width: 100%;
    min-height: 4px;
    border-radius: 0.45rem 0.45rem 0 0;
    background: linear-gradient(180deg, #4b96f3, #216bd0);
}

.platform-bar-label {
    margin-top: 0.55rem;
    color: #68758b;
    font-size: 0.78rem;
}

.platform-payment-table thead th,
.platform-payment-table tbody td {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
}

.platform-text-link {
    color: #2868bd;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.platform-text-link:hover { color: #174d94; }

.platform-empty-state {
    padding: 2rem 1rem !important;
    color: #7b879a !important;
    text-align: center;
}

.platform-dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0.25rem;
    color: #7b879a;
    font-size: 0.78rem;
}

.platform-dashboard-footer i {
    margin-right: 0.35rem;
    color: #16a05b;
}

@media (max-width: 1199.98px) {
    .platform-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .platform-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .platform-page-heading,
    .platform-panel-heading,
    .platform-dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .platform-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
    .platform-stat-card { min-height: 82px; gap: 0.65rem; padding: 0.7rem; }
    .platform-stat-icon { width: 2.1rem; height: 2.1rem; flex-basis: 2.1rem; font-size: 0.95rem; }
    .platform-stat-value { font-size: 1.35rem; }
    .platform-stat-label { font-size: 0.73rem; }
    .platform-stat-note { font-size: 0.63rem; }
    .platform-panel-heading { padding: 0.85rem; }
    .platform-bar-chart { padding-right: 0.75rem; padding-left: 0.75rem; }
}

@media (max-width: 420px) {
    .platform-stat-grid { grid-template-columns: 1fr; }
    .platform-stat-card { min-height: 76px; }
    .platform-page-heading h1 { font-size: 1.35rem; }
}

/* Super Admin multi-series organization trend chart */
.platform-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.95fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.platform-multiline-chart-panel,
.platform-payments-panel {
    min-width: 0;
}

.platform-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    padding: 0.2rem 1.1rem 0.35rem;
}

.platform-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #52627a;
    font: inherit;
    font-size: 0.76rem;
    cursor: pointer;
    opacity: 0.48;
}

.platform-legend-item.is-active {
    opacity: 1;
}

.platform-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.legend-total { background: #1677f2; }
.legend-active { background: #16b86a; }
.legend-suspended { background: #f28a2e; }

.platform-line-chart {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.25rem;
    padding: 0.4rem 1.1rem 0;
}

.platform-chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.05rem 0 0.1rem;
    color: #8793a7;
    font-size: 0.68rem;
    text-align: right;
}

.platform-chart-plot {
    min-width: 0;
    height: 205px;
}

.platform-chart-plot svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.platform-chart-gridline {
    stroke: #e8edf5;
    stroke-width: 1;
}

.platform-chart-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.chart-series-total { stroke: #1677f2; }
.chart-series-active { stroke: #16b86a; }
.chart-series-suspended { stroke: #f28a2e; }

.platform-chart-point {
    stroke: #ffffff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.platform-chart-point.chart-series-total { fill: #1677f2; }
.platform-chart-point.chart-series-active { fill: #16b86a; }
.platform-chart-point.chart-series-suspended { fill: #f28a2e; }

.platform-chart-line.is-hidden,
.platform-chart-point.is-hidden {
    display: none;
}

.platform-chart-months {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.25rem;
    margin: 0.35rem 1.1rem 1rem 3.35rem;
    color: #68778e;
    font-size: 0.72rem;
    text-align: center;
}

/* Super Admin profile card and profile editor */
.platform-sidebar-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 1.25rem 0.85rem 0.8rem;
    padding: 1rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    text-align: center;
}

.platform-admin-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 0.25rem;
    border-radius: 50%;
    background: #e7f0ff;
    color: #1769d2;
    font-size: 1.65rem;
}

.platform-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: #1677f2;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.platform-profile-link:hover {
    background: #0865d8;
    color: #ffffff;
}

.profile-page {
    max-width: 1050px;
    margin: 0 auto;
}

.profile-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-eyebrow {
    color: #1677f2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.profile-page-heading h1 {
    margin: 0.2rem 0;
    color: #172b4d;
    font-size: 1.65rem;
    font-weight: 750;
}

.profile-page-heading p,
.profile-card-header p,
.profile-section-heading p {
    margin: 0;
    color: #78869b;
    font-size: 0.88rem;
}

.profile-card {
    overflow: hidden;
    border: 1px solid #e7edf5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(24, 48, 82, 0.045);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #edf1f6;
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eaf3ff;
    color: #1677f2;
    font-size: 1.5rem;
}

.profile-card-header h2,
.profile-section-heading h3 {
    margin: 0 0 0.2rem;
    color: #172b4d;
    font-size: 1.05rem;
    font-weight: 700;
}

.profile-form {
    padding: 1.5rem;
}

.profile-section-heading {
    margin-bottom: 1rem;
}

.profile-section-heading h3 {
    font-size: 0.98rem;
}

.profile-form .form-label {
    color: #34445d;
    font-size: 0.82rem;
    font-weight: 650;
}

.profile-form .form-control {
    min-height: 42px;
    border-color: #dfe6ef;
    border-radius: 8px;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

@media (max-width: 1199.98px) {
    .platform-analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .platform-chart-months {
        margin-left: 3rem;
        font-size: 0.65rem;
    }

    .platform-chart-legend {
        gap: 0.55rem 0.8rem;
    }

    .platform-legend-item {
        font-size: 0.69rem;
    }

    .profile-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-form {
        padding: 1rem;
    }
}


/* Elegant Super Admin profile page */
.profile-page-elegant {
    max-width: 1180px;
}

.profile-page-elegant .profile-page-heading {
    margin-bottom: 1.35rem;
}

.profile-back-button {
    border: 1px solid #e3eaf4;
    border-radius: 10px;
    color: #40516b;
    font-weight: 600;
    padding: 0.65rem 0.9rem;
}

.profile-hero-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
    padding: 1.55rem 1.75rem;
    border: 1px solid #dce9fb;
    border-radius: 18px;
    background: linear-gradient(112deg, #102d56 0%, #174b86 58%, #2378d7 100%);
    box-shadow: 0 10px 26px rgba(20, 67, 122, 0.12);
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.profile-hero-decoration {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.profile-hero-decoration-one {
    top: -105px;
    right: 8%;
    width: 260px;
    height: 260px;
}

.profile-hero-decoration-two {
    top: -65px;
    right: -20px;
    width: 210px;
    height: 210px;
}

.profile-hero-avatar {
    display: flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #dceaff);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
    color: #14549a;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.profile-role-label {
    color: #b9d9ff;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.profile-hero-details h2 {
    margin: 0.25rem 0 0.2rem;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 750;
}

.profile-hero-details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
}

.profile-account-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    padding: 0.48rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 650;
    white-space: nowrap;
}

.profile-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4be09b;
    box-shadow: 0 0 0 3px rgba(75, 224, 155, 0.16);
}

.profile-form-elegant {
    padding: 0;
}

.profile-validation-summary:empty {
    display: none;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.1rem;
}

.profile-detail-card {
    min-width: 0;
    padding: 1.35rem 1.45rem;
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(24, 48, 82, 0.04);
}

.profile-detail-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.35rem;
}

.profile-detail-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.15rem;
}

.profile-detail-icon-blue {
    background: #eaf3ff;
    color: #1677f2;
}

.profile-detail-icon-purple {
    background: #f1edff;
    color: #7956d8;
}

.profile-detail-card-heading h2 {
    margin: 0.05rem 0 0.25rem;
    color: #1b2d49;
    font-size: 1rem;
    font-weight: 750;
}

.profile-detail-card-heading p {
    margin: 0;
    color: #78869b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.profile-fields {
    display: grid;
    gap: 1rem;
}

.profile-field .form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #34445d;
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-field .form-control {
    min-height: 43px;
    border: 1px solid #dfe6ef;
    border-radius: 9px;
    background-color: #ffffff;
    color: #263750;
    font-size: 0.84rem;
    box-shadow: none;
}

.profile-field .form-control:focus {
    border-color: #78aef2;
    box-shadow: 0 0 0 3px rgba(22, 119, 242, 0.1);
}

.profile-field .form-control[readonly] {
    background: #f6f8fb;
    color: #64748b;
}

.profile-field .form-text {
    color: #8793a5;
    font-size: 0.7rem;
}

.profile-field .text-danger {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
}

.profile-input-with-icon {
    position: relative;
}

.profile-input-with-icon > i {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    z-index: 1;
    color: #8795a9;
    transform: translateY(-50%);
}

.profile-input-with-icon .form-control {
    padding-left: 2.25rem;
}

.profile-readonly-label {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    color: #16845a;
    font-size: 0.65rem;
    font-weight: 700;
    transform: translateY(-50%);
}

.profile-security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: -0.15rem 0 1.1rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #e9e4ff;
    border-radius: 9px;
    background: #f8f6ff;
    color: #6856a5;
    font-size: 0.72rem;
    line-height: 1.45;
}

.profile-security-note i {
    margin-top: 0.05rem;
}

.profile-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
    padding: 1rem 1.2rem;
    border: 1px solid #e5ebf3;
    border-radius: 14px;
    background: #ffffff;
}

.profile-save-hint {
    color: #7a8799;
    font-size: 0.75rem;
}

.profile-save-hint i {
    margin-right: 0.3rem;
    color: #16845a;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0;
}

.profile-form-actions .btn {
    min-height: 40px;
    padding: 0.55rem 0.95rem;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 650;
}

.profile-save-button {
    box-shadow: 0 4px 10px rgba(22, 119, 242, 0.18);
}

@media (max-width: 991.98px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .profile-hero-card {
        padding: 1.2rem;
    }

    .profile-hero-content {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-hero-avatar {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        font-size: 1.15rem;
    }

    .profile-account-status {
        margin-left: 0;
    }

    .profile-detail-card {
        padding: 1.1rem;
    }

    .profile-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-form-actions {
        width: 100%;
    }

    .profile-form-actions .btn {
        flex: 1;
    }

    .profile-readonly-label {
        display: none;
    }
}

/* Platform administrator account menu */
.topbar-account-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.topbar-account-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #1c3556;
    text-align: left;
    transition: background-color .18s ease, border-color .18s ease;
}

.topbar-account-trigger:hover,
.topbar-account-trigger[aria-expanded="true"] {
    border-color: #e2eaf5;
    background: #f7faff;
}

.topbar-account-trigger .topbar-avatar {
    flex: 0 0 36px;
}

.topbar-account-trigger .topbar-user-copy {
    display: block;
}

.topbar-account-trigger .topbar-user-copy strong,
.topbar-account-trigger .topbar-user-copy small {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-account-trigger .topbar-user-copy strong {
    color: #1c3556;
    font-size: .78rem;
    font-weight: 700;
}

.topbar-account-trigger .topbar-user-copy small {
    margin-top: 2px;
    color: #8292a8;
    font-size: .67rem;
}

.account-chevron {
    margin-left: 2px;
    color: #8292a8;
    font-size: .72rem;
}

.topbar-account-menu {
    min-width: 230px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid #e7edf5;
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(24, 48, 83, .16);
}

.account-menu-heading {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 11px 7px;
}

.account-menu-heading strong {
    overflow: hidden;
    color: #203b60;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-heading small {
    color: #8292a8;
    font-size: .68rem;
}

.topbar-account-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 9px;
    color: #38516f;
    font-size: .78rem;
    font-weight: 600;
}

.topbar-account-menu .dropdown-item i {
    width: 17px;
    color: #6483aa;
    font-size: .95rem;
}

.topbar-account-menu .dropdown-item:hover {
    background: #f1f6fd;
    color: #1769d2;
}

.topbar-account-menu li form {
    margin: 0;
}

.topbar-account-menu .account-logout-item,
.topbar-account-menu .account-logout-item i {
    color: #c44852;
}

.topbar-account-menu .account-logout-item:hover {
    background: #fff1f2;
    color: #b52e3a;
}

@media (max-width: 575.98px) {
    .topbar-account-trigger {
        gap: 6px;
        padding-right: 4px;
    }

    .topbar-account-trigger .topbar-user-copy {
        display: none;
    }

    .topbar-account-trigger .topbar-avatar {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .account-chevron {
        font-size: .65rem;
    }
}
/* Organization dashboard KPI cards: compact layout shared with the platform dashboard. */
.dashboard-kpis .kpi-card {
    min-height: 112px;
    padding: 12px 14px 22px;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(26, 63, 113, 0.04);
}

.dashboard-kpis .kpi-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    box-shadow: 0 5px 12px rgba(36, 121, 239, 0.14);
}

.dashboard-kpis .kpi-menu {
    top: 12px;
    right: 12px;
    font-size: 0.82rem;
}

.dashboard-kpis .kpi-value {
    margin-top: 7px;
    font-size: 1.55rem;
    line-height: 1.05;
}

.dashboard-kpis .kpi-value small {
    font-size: 0.85rem;
}

.dashboard-kpis .kpi-label {
    margin-top: 3px;
    font-size: 0.72rem;
}

.dashboard-kpis .kpi-foot {
    margin-top: 5px;
    font-size: 0.61rem;
    line-height: 1.25;
}

.dashboard-kpis .kpi-sparkline {
    right: 10px;
    left: 10px;
    height: 18px;
    gap: 4px;
}

.dashboard-kpis .kpi-currency {
    font-size: 1.18rem;
    letter-spacing: -0.035em;
}

@media (max-width: 575.98px) {
    .dashboard-kpis {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.65rem;
    }

    .dashboard-kpis .kpi-card {
        min-height: 106px;
        padding: 10px 11px 20px;
        border-radius: 11px;
    }

    .dashboard-kpis .kpi-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .dashboard-kpis .kpi-value {
        margin-top: 6px;
        font-size: 1.38rem;
    }

    .dashboard-kpis .kpi-label {
        font-size: 0.66rem;
    }

    .dashboard-kpis .kpi-foot {
        font-size: 0.56rem;
    }

    .dashboard-kpis .kpi-currency {
        font-size: 1.02rem;
    }
}
/* Organization dashboard visual refresh.
   Every selector is scoped to the authenticated organization dashboard so
   public pages and the separate Super Admin dashboard retain their styling. */
.organization-dashboard {
    --org-dashboard-ink: #142b50;
    --org-dashboard-muted: #72839c;
    --org-dashboard-border: #e8eef7;
    color: var(--org-dashboard-ink);
}

.organization-dashboard .dashboard-welcome {
    min-height: 142px;
    margin-bottom: 1.15rem !important;
    border: 1px solid rgba(224, 234, 248, .9);
    box-shadow: 0 8px 24px rgba(35, 72, 122, .045);
}

.organization-dashboard .dashboard-welcome h1 {
    letter-spacing: -.035em;
}

.organization-dashboard .dashboard-kpis {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.organization-dashboard .kpi-card {
    min-height: 112px;
    border: 1px solid rgba(226, 235, 247, .9);
    box-shadow: 0 4px 15px rgba(31, 68, 119, .045);
    transition: transform .18s ease, box-shadow .18s ease;
}

.organization-dashboard .kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(31, 68, 119, .08);
}

.organization-dashboard .dashboard-panel {
    overflow: hidden;
    border: 1px solid var(--org-dashboard-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 68, 119, .045);
}

.organization-dashboard .panel-heading {
    min-height: 62px;
    padding: 0 19px;
    border-bottom: 1px solid #eff3f8;
}

.organization-dashboard .panel-heading h2 {
    color: var(--org-dashboard-ink);
    font-size: .96rem;
    letter-spacing: -.02em;
}

.organization-dashboard .panel-period {
    padding: 7px 10px;
    border: 1px solid #e9eff8;
    border-radius: 8px;
    background: #f8faff;
}

.organization-dashboard .dashboard-analytics > [class*="col-"],
.organization-dashboard .dashboard-lower > [class*="col-"] {
    display: flex;
}

.organization-dashboard .dashboard-analytics .dashboard-panel,
.organization-dashboard .dashboard-lower .dashboard-panel,
.organization-dashboard .dashboard-lower .subscription-preview {
    width: 100%;
}

.organization-dashboard .attendance-chart-wrap {
    padding: 15px 17px 12px;
}

.organization-dashboard .chart-legend {
    margin-bottom: 10px;
}

.organization-dashboard .leave-chart-content {
    min-height: 250px;
}

.organization-dashboard .activity-list {
    padding: 8px 18px;
}

.organization-dashboard .activity-item {
    min-height: 66px;
}

.organization-dashboard .activity-copy strong {
    color: #243d61;
    font-size: .75rem;
}

.organization-dashboard .activity-copy small,
.organization-dashboard .activity-item time {
    font-size: .65rem;
}

.organization-dashboard .quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 15px;
}

.organization-dashboard .quick-action {
    min-height: 83px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    padding: 12px;
    text-align: left;
}

.organization-dashboard .quick-action i {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    font-size: 1rem;
}

.organization-dashboard .quick-action span {
    font-size: .7rem;
}

.organization-dashboard .subscription-preview {
    min-height: 100%;
    border-radius: 15px;
}

.organization-dashboard .dashboard-security-note {
    margin-top: 2px;
    border-color: var(--org-dashboard-border);
    border-radius: 12px;
}

@media (max-width: 575.98px) {
    .organization-dashboard .dashboard-welcome {
        min-height: 138px;
    }

    .organization-dashboard .dashboard-kpis {
        --bs-gutter-x: .65rem;
        --bs-gutter-y: .65rem;
    }

    .organization-dashboard .dashboard-panel {
        border-radius: 12px;
    }

    .organization-dashboard .panel-heading {
        min-height: 54px;
        padding: 0 13px;
    }

    .organization-dashboard .quick-actions-grid {
        gap: 7px;
        padding: 11px;
    }

    .organization-dashboard .quick-action {
        min-height: 72px;
        gap: 8px;
        padding: 8px;
    }

    .organization-dashboard .quick-action i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: .85rem;
    }
}

/* ==========================================================================
   SPA shell, shared page structure and states (added in the 2026 audit).
   Written in expanded form; earlier rules above are unchanged.
   ========================================================================== */

/* Thin progress bar shown while the SPA router loads a page. */
.spa-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hrms-primary), #48a0ff);
    opacity: 0;
    transition: width 0.4s ease, opacity 0.2s ease;
    pointer-events: none;
}

body.spa-loading .spa-progress {
    width: 75%;
    opacity: 1;
}

.app-main-content[aria-busy="true"] {
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.app-main-content:focus,
.app-main-content h1:focus {
    outline: none;
}

/* Page heading block used by module pages. */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-eyebrow {
    color: var(--hrms-primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-title {
    margin-bottom: 0.25rem;
    font-size: 1.6rem;
}

.page-subtitle {
    margin-bottom: 0;
    color: var(--hrms-muted);
}

.back-link {
    font-size: 0.85rem;
    text-decoration: none;
}

.setup-tabs .nav-link {
    font-weight: 600;
}

/* Empty, error, access-denied and not-found states. */
.empty-state,
.spa-state {
    padding: 2.5rem 1rem;
    color: var(--hrms-muted);
    text-align: center;
}

.empty-state > i,
.spa-state > i {
    display: block;
    margin-bottom: 0.75rem;
    color: #9db4d3;
    font-size: 2.25rem;
}

.empty-state p {
    margin-bottom: 0;
}

.spa-state {
    max-width: 520px;
    margin: 3rem auto;
}

/* ASP.NET renders an empty validation summary when there are no errors. */
.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

/* Select2 inside Bootstrap forms and modals. */
.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 0.75rem + 2px);
}

.modal .select2-container {
    z-index: auto;
}

/* The open list sits above the rest of the modal content. */
.modal .select2-container--open .select2-dropdown {
    z-index: 1060;
}

/* Buttons disabled while a form is being submitted. */
form[data-submitting="true"] button[type="submit"] {
    cursor: progress;
}

@media print {
    .app-sidebar,
    .app-topbar,
    .app-footer,
    .spa-progress,
    [data-print] {
        display: none !important;
    }

    .app-main-shell {
        margin-left: 0 !important;
    }
}
