@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@media print {
    body:has(.help-page) .mud-main-content { padding: 0 !important; margin: 0 !important; }
    body:has(.help-page) .office-content { min-height: 0; }
    body:has(.help-page) :is(.mud-popover-provider, .mud-dialog-provider, .mud-snackbar-location, #blazor-error-ui) { display: none !important; }
}

html, body { font-family: Inter, 'Segoe UI', sans-serif; }
.office-loading { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 36px 20px; color: var(--mud-palette-text-secondary); font-size: .85rem; }
.office-loading-compact { justify-content: flex-start; padding: 12px 16px; font-size: .75rem; }
.office-loading-mark { display: inline-flex; align-items: center; gap: 4px; height: 24px; flex-shrink: 0; }
.office-loading-mark i { width: 6px; height: 16px; border-radius: 5px; background: linear-gradient(180deg, #6589ea, #36a796); animation: office-loading-wave 1s ease-in-out infinite; }
.office-loading-mark i:nth-child(2) { animation-delay: .15s; }
.office-loading-mark i:nth-child(3) { animation-delay: .3s; }
.office-page-loading { position: sticky; top: 76px; z-index: 5; border: 1px solid var(--office-line); border-radius: 12px; background: var(--mud-palette-surface); box-shadow: 0 4px 16px #20365a0a; margin-bottom: 12px; }
.office-page-loading[hidden], .office-nav-loading, .office-nav-pending { display: none; }
.workspace-navigation:has(.office-nav-pending) .office-nav-loading { display: block; margin: 10px; border-radius: 12px; background: var(--office-active); }
@keyframes office-loading-wave { 0%, 100% { transform: scaleY(.45); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .office-loading-mark i { animation: none; } }
@media print { .office-loading, .office-page-loading, .office-nav-loading { display: none !important; } }
.office-appbar { min-height:72px; padding:0 22px; color:#fff !important; border:0; background:#102a56 !important; box-shadow:0 2px 10px rgba(15,35,70,.18); }
.office-appbar .mud-button,.office-appbar .mud-icon-button { color:#f8fbff !important; }
.office-drawer { background:#102a56 !important; border-right:0; box-shadow:5px 0 18px rgba(15,35,70,.14); }
.office-drawer .mud-typography { color:#a9c5ed !important; font-weight:700; letter-spacing:.11em; }.office-drawer .mud-nav-link { color:#eef5ff !important; margin:4px 12px; padding:12px 15px; border-radius:9px; font-size:.94rem; }.office-drawer .mud-nav-link * { color:inherit !important; }.office-drawer .mud-nav-link .mud-icon-root { color:#b8d1f4 !important; font-size:1.35rem; }.office-drawer .mud-nav-link:hover { background:#1e427c; color:#fff !important; }.office-drawer .mud-nav-link.active { background:#fff; color:#123467 !important; font-weight:800; box-shadow:0 5px 15px rgba(0,0,0,.16); }.office-drawer .mud-nav-link.active * { color:#123467 !important; }.office-drawer .mud-nav-link.active .mud-icon-root { color:#1769e0 !important; }.office-drawer .mud-divider { border-color:#315482; }.office-content { min-height:100vh; background:#f6f8fc; }
.module-hero { border: 1px solid rgba(148,163,184,.18); border-radius: 18px; background: linear-gradient(120deg, rgba(21,94,239,.08), transparent 55%); animation: rise .35s ease both; }
.dashboard-hero { border-radius: 22px; color: #fff; background: radial-gradient(circle at 82% 18%, rgba(79,209,197,.35), transparent 22%), linear-gradient(115deg,#0b1f4f,#155eef 62%,#0e9384); box-shadow: 0 18px 42px rgba(21,94,239,.24); }
.hero-eyebrow { color: #9debe0; letter-spacing: .13em; font-weight: 800; }.hero-title { font-weight: 800; margin: 6px 0; }.hero-copy { color: rgba(255,255,255,.82); }.dashboard-panel,.workflow-card { border: 1px solid rgba(148,163,184,.18); border-radius: 18px; }.workflow-card { text-align:center; background: linear-gradient(155deg, rgba(14,147,132,.11), transparent 60%); }
.drawer-footer { position: absolute; bottom: 22px; left: 22px; }
.kpi-card { border: 1px solid rgba(148,163,184,.18); border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease; animation: rise .45s ease both; }
.kpi-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,23,42,.11) !important; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; background: #f7f9fc; }
.login-hero { position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#0b2b69,#155eef 55%,#0e9384); }
.hero-content { z-index: 1; width: min(460px,78%); animation: rise .7s ease both; }.hero-content .mud-typography-h2 { font-weight: 800; margin: 20px 0 12px; }
.hero-points { display: grid; gap: 12px; margin-top: 48px; font-weight: 600; }.orb { position:absolute; border-radius:50%; background: rgba(255,255,255,.1); filter: blur(1px); }.orb-one { width:420px;height:420px;right:-90px;top:-100px; }.orb-two { width:310px;height:310px;left:-120px;bottom:-80px; }
.login-panel { display:grid; place-items:center; padding:30px; }.login-card { width:min(440px,100%); border:1px solid rgba(148,163,184,.22); border-radius:24px; box-shadow:0 20px 60px rgba(15,23,42,.12); animation: rise .65s .12s ease both; }
@keyframes rise { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@media (max-width: 800px) { .login-shell { grid-template-columns:1fr; }.login-hero { min-height:280px; }.hero-points { display:none; }.login-panel { margin-top:-34px; z-index:2; }.office-content { padding-top:30px; } }

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0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Q5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Theme-aware workspace surfaces and subtle paper texture. */
.theme-light { --office-bg:#f4f7fa; --office-nav:#fcfdfd; --office-text:#243c52; --office-muted:#61778b; --office-line:#dce5ec; --office-active:#dcefe9; --office-accent:#106b58; --office-dot:rgba(48,86,111,.055); }
.theme-dark { --office-bg:#0c1520; --office-nav:#132333; --office-text:#e0ebf5; --office-muted:#a0b6cb; --office-line:#2a3d50; --office-active:#21483f; --office-accent:#86e2c2; --office-dot:rgba(161,192,219,.055); }
.office-content { background-color:var(--office-bg); background-image:radial-gradient(var(--office-dot) 1px,transparent 1px); background-size:9px 9px; color:var(--office-text); transition:background-color .2s; }
.office-appbar { background:var(--office-nav) !important; color:var(--office-text) !important; border-bottom:1px solid var(--office-line); box-shadow:none; }
.office-appbar .mud-button,.office-appbar .mud-icon-button { color:var(--office-text) !important; }
.office-drawer { background:linear-gradient(145deg,var(--office-nav),var(--office-bg)) !important; border-right:1px solid var(--office-line); box-shadow:none; }
.office-drawer .mud-typography { color:var(--office-muted) !important; }
.office-drawer .mud-nav-link { color:var(--office-text) !important; width:calc(100% - 24px); border:1px solid transparent; }
.office-drawer .mud-nav-link .mud-icon-root { color:var(--office-muted) !important; }
.office-drawer .mud-nav-link:hover { background:var(--office-active); color:var(--office-accent) !important; }
.office-drawer .mud-nav-link.active { background:var(--office-active) !important; color:var(--office-accent) !important; border-color:var(--office-line); border-left:4px solid var(--office-accent); box-shadow:none; font-weight:700; opacity:1; }
.office-drawer .mud-nav-link.active *,.office-drawer .mud-nav-link.active .mud-icon-root { color:var(--office-accent) !important; }
.office-drawer .mud-divider { border-color:var(--office-line); }
.office-drawer .mud-navmenu { padding-bottom:85px; }
.drawer-footer { position:static; margin:24px 18px; }
.kpi-link { display:block; color:inherit; text-decoration:none; border-radius:16px; }
.kpi-link:hover { color:inherit; }
.kpi-link:focus-visible,.office-drawer a:focus-visible { outline:3px solid var(--office-accent); outline-offset:3px; }
.audit-details { max-width:440px; white-space:pre-wrap; overflow-wrap:anywhere; color:inherit; }
.theme-dark .dashboard-hero { background:radial-gradient(circle at 82% 18%,#24594d,transparent 35%),linear-gradient(115deg,#14243f,#1c3d65); }
@media (max-width:600px) { .hero-title { font-size:1.8rem; } .dashboard-hero>.mud-stack { flex-wrap:wrap; gap:18px; } .office-appbar { padding:0 8px; } .office-appbar .mud-chip { display:none; } }
@media (prefers-reduced-motion:reduce) { * { animation:none !important; transition:none !important; } }
.login-input { display:block; width:100%; padding:14px; margin:8px 0 20px; border:1px solid #bac9d5; border-radius:8px; background:#fff; color:#182c40; }
.login-submit { width:100%; border:0; border-radius:8px; padding:14px; background:#155eef; color:white; font-weight:600; }
.profile-password { max-width:640px; }
.profile-password label { display:block; font-weight:600; }
.profile-password input { display:block; width:100%; margin:8px 0 20px; padding:14px; border:1px solid var(--office-line); border-radius:8px; background:var(--mud-palette-surface); color:var(--mud-palette-text-primary); }
.profile-password input:focus-visible { outline:2px solid var(--mud-palette-primary); outline-offset:2px; }
@media print { @page { size:A4; margin:15mm; } .office-appbar,.office-drawer,.report-controls,.mud-button-root { display:none!important; } .mud-main-content { margin:0!important; padding:0!important; } .office-content { background:white!important; color:black!important; padding:0!important; } .mud-paper { box-shadow:none!important; } }

/* Salary statements print as a document without the workspace's viewport height. */
@media print {
    body:has(.salary-statement) .mud-layout,
    body:has(.salary-statement) .mud-main-content,
    body:has(.salary-statement) .office-content { min-height:0!important; height:auto!important; }
    body:has(.salary-statement) .profile-reminder,
    body:has(.salary-statement) #blazor-error-ui,
    body:has(.salary-statement) .mud-snackbar-provider { display:none!important; }
}
