:root {
    --primary-color: #2E7D32;
    --primary-dark: #1B5E20;
    --secondary-color: #0D47A1;
    --accent-color: #FF6F00;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --light-bg: #F3F4F6;
    --border-color: #E5E7EB;
}

html, body {
    background: #eef2f6;
    color: var(--text-dark);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a, .btn-link {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.portal-hero {
    align-items: end;
    background:
        linear-gradient(90deg, rgba(13, 71, 161, .88), rgba(46, 125, 50, .72)),
        url("assets/hero_solar.png") center/cover;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
    color: var(--white);
    display: flex;
    min-height: 340px;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.portal-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 750;
    letter-spacing: 0;
    max-width: 760px;
}

.portal-hero p {
    max-width: 740px;
}

.eyebrow {
    color: var(--accent-color);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.2rem;
}

.dashboard-grid,
.module-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 1.1rem;
}

.dashboard-hero {
    margin-bottom: 1rem;
}

.dashboard-panel-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.dashboard-list-card {
    min-height: 260px;
}

.dashboard-list {
    display: grid;
    gap: .55rem;
}

.dashboard-list a {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #172033;
    display: block;
    padding: .85rem;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.dashboard-list a:hover {
    background: #eef6ff;
    border-color: #b8d2f5;
    transform: translateY(-1px);
}

.dashboard-list strong,
.dashboard-list span,
.dashboard-profile-status strong,
.dashboard-profile-status span {
    display: block;
}

.dashboard-list strong,
.dashboard-profile-status strong {
    color: #172033;
    font-weight: 850;
}

.dashboard-list span,
.dashboard-profile-status span {
    color: #64748b;
    font-size: .9rem;
    margin-top: .15rem;
}

.dashboard-profile-status {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}

.metric-card,
.module-grid article,
.work-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    padding: 1.15rem;
}

.metric-card {
    border-top: 4px solid var(--primary-color);
}

.metric-card span {
    color: var(--text-light);
    display: block;
    font-size: .86rem;
    margin-bottom: .3rem;
}

.metric-card strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: .45rem;
}

.metric-card p,
.module-grid p,
.work-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

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

.page-header h1 {
    color: #172033;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 850;
    margin: 0;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.feature-list span {
    background: rgba(46, 125, 50, .08);
    border: 1px solid rgba(46, 125, 50, .18);
    border-radius: 999px;
    color: var(--primary-dark);
    padding: .45rem .7rem;
}

.permission-table {
    overflow-x: auto;
}

.permission-shell {
    padding: 0;
}

.permission-header {
    align-items: end;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.permission-role-select {
    min-width: 260px;
}

.permission-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.permission-summary {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1rem 1rem 0;
}

.permission-summary article {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .85rem;
}

.permission-summary span {
    color: var(--text-light);
    display: block;
    font-size: .78rem;
    font-weight: 750;
}

.permission-summary strong {
    color: #172033;
    display: block;
    font-size: 1.4rem;
    font-weight: 850;
}

.permission-table {
    padding: 1rem;
}

.permission-table table {
    min-width: 980px;
}

.permission-table .form-check-input {
    cursor: pointer;
    height: 1.08rem;
    width: 1.08rem;
}

.permission-module-row td {
    background: #eef4fb !important;
    color: #334155;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
    padding: .65rem 1rem !important;
    text-transform: uppercase;
}

.master-shell {
    padding: 0;
}

.master-tabs {
    border-bottom: 1px solid var(--border-color);
    gap: .5rem;
    padding: 1rem 1rem 0;
}

.master-tabs .nav-link {
    border-radius: 999px;
    color: var(--text-dark);
    font-weight: 700;
    padding: .6rem 1rem;
}

.master-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 8px 18px rgba(13, 71, 161, .16);
}

.master-toolbar {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(240px, 1fr) auto;
    padding: 1rem;
}

.master-table {
    margin-bottom: 0;
}

.master-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.master-table tbody tr {
    transition: background .18s ease;
}

.master-table tbody tr:hover {
    background: #f8fafc;
}

.master-table td,
.master-table th {
    padding: .9rem 1rem;
}

.master-table td span {
    color: var(--text-light);
    display: block;
    font-size: .88rem;
}

.master-empty {
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

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

.employee-stats article {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    padding: 1rem;
}

.employee-stats span {
    color: var(--text-light);
    display: block;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.employee-stats strong {
    color: #172033;
    display: block;
    font-size: 1.65rem;
    font-weight: 850;
}

.employee-toolbar {
    border-bottom: 1px solid #e2e8f0;
}

.employee-cell {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.employee-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: #fff !important;
    display: inline-flex !important;
    flex: 0 0 42px;
    font-size: .8rem !important;
    font-weight: 850;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.employee-photo {
    background: #e2e8f0;
    object-fit: cover;
}

.employee-table td {
    vertical-align: middle;
}

.employee-panel {
    max-width: 980px;
}

.employee-modal-alert {
    margin-bottom: 1rem;
}

.employee-table .text-end {
    white-space: nowrap;
}

.employee-action-buttons {
    display: inline-flex;
    gap: .45rem;
    justify-content: flex-end;
}

.icon-action {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d8e1ec;
    border-radius: 10px;
    color: #334155;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
    width: 38px;
}

.icon-action:hover {
    background: #eaf3ff;
    border-color: #93b7ee;
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.icon-action.danger:hover {
    background: #fff1f2;
    border-color: #fda4af;
    color: #dc2626;
}

.icon-action svg {
    fill: currentColor;
    height: 18px;
    width: 18px;
}

.profile-photo-upload {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    gap: .9rem;
    padding: .8rem;
}

.profile-photo-upload img,
.profile-photo-upload > span {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 58px;
    font-weight: 850;
    height: 58px;
    justify-content: center;
    object-fit: cover;
    width: 58px;
}

.temporary-password-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
}

.temporary-password-box span,
.temporary-password-box small {
    color: #64748b;
    display: block;
}

.temporary-password-box strong {
    color: #14532d;
    display: block;
    font-size: 1.55rem;
    letter-spacing: .04em;
    margin: .2rem 0;
}

.approval-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .9rem;
}

.approval-summary strong,
.approval-summary span,
.approval-summary small {
    display: block;
}

.approval-summary strong {
    color: #172033;
    font-weight: 850;
}

.approval-summary span,
.approval-summary small {
    color: #64748b;
    margin-top: .2rem;
}

.payslip-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.payslip-sheet {
    margin: 0 auto;
    max-width: 980px;
}

.payslip-header {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.payslip-header h1 {
    color: #172033;
    font-size: 2rem;
    font-weight: 850;
    margin: 0;
}

.payslip-header span,
.payslip-meta span,
.payslip-meta small {
    color: #64748b;
}

.payslip-header img {
    border-radius: 12px;
    height: 70px;
    object-fit: contain;
    width: 70px;
}

.payslip-meta {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1rem 0;
}

.payslip-meta div,
.payslip-grid article,
.payslip-total {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}

.payslip-meta span,
.payslip-meta small {
    display: block;
}

.payslip-meta strong {
    color: #172033;
    display: block;
    font-size: 1.1rem;
    font-weight: 850;
    margin: .15rem 0;
}

.payslip-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payslip-grid h2 {
    color: #172033;
    font-size: 1.2rem;
    font-weight: 850;
    margin-bottom: .9rem;
}

.payslip-grid dl {
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0;
}

.payslip-grid dt {
    color: #64748b;
    font-weight: 700;
}

.payslip-grid dd {
    color: #172033;
    margin: 0;
    text-align: right;
}

.payslip-total {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.payslip-total span {
    color: #64748b;
    font-weight: 750;
}

.payslip-total strong {
    color: #14532d;
    font-size: 1.8rem;
    font-weight: 900;
}

.attendance-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.attendance-hero h2,
.attendance-card-title h2 {
    color: #172033;
    font-size: 1.4rem;
    font-weight: 850;
    margin: 0;
}

.attendance-hero p:last-child {
    color: var(--text-light);
    margin: .25rem 0 0;
}

.attendance-selector {
    min-width: min(360px, 100%);
}

.attendance-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.attendance-card-title {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.attendance-card-title span:first-child {
    color: var(--text-light);
    display: block;
    font-size: .82rem;
    font-weight: 750;
    margin-bottom: .2rem;
}

.attendance-times {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.attendance-times div,
.attendance-report-list div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .85rem;
}

.attendance-times span,
.attendance-report-list small {
    color: var(--text-light);
    display: block;
    font-size: .8rem;
    font-weight: 700;
}

.attendance-times strong,
.attendance-report-list strong {
    color: #172033;
    display: block;
    font-size: 1.1rem;
    font-weight: 850;
}

.attendance-times small,
.attendance-report-list span {
    color: var(--text-light);
    display: block;
    margin-top: .2rem;
}

.attendance-actions {
    display: flex;
    gap: .65rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.attendance-camera {
    background: #0f172a;
    border: 1px solid #d8e1ec;
    border-radius: 12px;
    display: grid;
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.attendance-camera video,
.attendance-camera img,
.attendance-camera-empty {
    grid-area: 1 / 1;
}

.attendance-camera video,
.attendance-camera img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.attendance-camera img {
    border: 3px solid #22c55e;
}

.attendance-camera-empty {
    align-items: center;
    color: #cbd5e1;
    display: flex;
    font-weight: 700;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.attendance-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .65rem;
}

.attendance-report-list {
    display: grid;
    gap: .55rem;
    max-height: 355px;
    overflow-y: auto;
}

.attendance-map-card {
    margin-bottom: 1rem;
}

.attendance-map {
    background: #e8eef5;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    min-height: 320px;
    overflow: hidden;
}

.attendance-map .leaflet-control-attribution {
    font-size: .68rem;
}

.master-panel-backdrop {
    align-items: center;
    background: rgba(15, 23, 42, .55);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1050;
}

.master-panel {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    max-height: calc(100vh - 2rem);
    max-width: 860px;
    overflow-y: auto;
    padding: 1.25rem;
    width: min(100%, 860px);
}

.master-panel.compact {
    max-width: 520px;
}

.master-panel-header,
.master-panel-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.master-panel-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
}

.master-panel-header h2 {
    font-size: 1.35rem;
    margin: 0;
}

.master-panel-actions {
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.delete-panel p {
    color: var(--text-light);
    margin: 0;
}

.account-manage-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 280px minmax(0, 1fr);
}

.account-manage-nav,
.account-manage-content {
    align-self: start;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.account-nav-link {
    border-radius: 10px;
    color: #475569;
    font-weight: 750;
    padding: .72rem .85rem;
    text-decoration: none;
}

.account-nav-link:hover {
    background: #f1f5f9;
    color: #0D47A1;
}

.account-nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 71, 161, .16);
}

.account-profile-heading {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
}

.account-profile-heading h2 {
    font-size: 1.6rem;
    font-weight: 850;
    margin: 0;
}

.account-profile-heading p {
    color: var(--text-light);
    margin: .2rem 0 0;
}

.account-profile-photo {
    border: 4px solid #e8f3ea;
    border-radius: 50%;
    flex: 0 0 76px;
    height: 76px;
    object-fit: cover;
    width: 76px;
}

.account-default-avatar {
    align-items: center;
    background: linear-gradient(135deg, #2E7D32, #0D47A1);
    border: 4px solid #e8f3ea;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 76px;
    font-size: 1.25rem;
    font-weight: 850;
    height: 76px;
    justify-content: center;
    width: 76px;
}

.account-profile-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(320px, 1.15fr) minmax(280px, .85fr);
}

.account-photo-card {
    overflow: hidden;
}

.account-photo-hero {
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(255, 111, 0, .16), transparent 34%),
        linear-gradient(135deg, rgba(46, 125, 50, .1), rgba(13, 71, 161, .1));
    border: 1px solid #dbe8f4;
    border-radius: 14px;
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.account-photo-hero img,
.account-photo-hero > span {
    align-items: center;
    background: linear-gradient(135deg, #2E7D32, #0D47A1);
    border: 4px solid #fff;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
    color: #fff;
    display: inline-flex;
    flex: 0 0 96px;
    font-size: 1.25rem;
    font-weight: 900;
    height: 96px;
    justify-content: center;
    object-fit: cover;
    width: 96px;
}

.account-photo-hero h3,
.account-section-title {
    color: #172033;
    font-size: 1.25rem;
    font-weight: 850;
    margin: 0;
}

.account-photo-hero p:last-child {
    color: #64748b;
    margin: .35rem 0 0;
}

.profile-photo-tools {
    display: grid;
    gap: .9rem;
    margin-top: 1rem;
}

.profile-photo-dropzone {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 14px;
    cursor: pointer;
    display: block;
    padding: 1rem;
    text-align: center;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.profile-photo-dropzone:hover {
    background: #eef6ff;
    border-color: #0D47A1;
    transform: translateY(-1px);
}

.profile-photo-dropzone strong,
.profile-photo-dropzone span {
    display: block;
}

.profile-photo-dropzone strong {
    color: #172033;
    font-weight: 850;
}

.profile-photo-dropzone span {
    color: #64748b;
    font-size: .85rem;
    margin-top: .2rem;
}

.profile-camera-panel {
    background: #0f172a;
    border: 1px solid #d8e1ec;
    border-radius: 14px;
    display: grid;
    min-height: 260px;
    overflow: hidden;
}

.profile-camera-panel video,
.profile-camera-panel img {
    grid-area: 1 / 1;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-camera-panel img {
    border: 3px solid #22c55e;
}

.drawer-link,
.drawer-link:visited,
.drawer-link:focus {
    color: #cbd5e1 !important;
    text-decoration: none !important;
}

.drawer-link:hover {
    color: #fff !important;
    text-decoration: none !important;
}

.drawer-link.active,
.drawer-link.active:visited,
.drawer-link.active:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.drawer-link .drawer-icon {
    color: inherit;
}

.drawer-link,
.drawer-link:visited,
.drawer-link:focus {
    align-items: center !important;
    border-radius: 13px !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 12px !important;
    column-gap: .72rem !important;
    min-height: 52px !important;
    padding: .28rem .8rem .28rem 1rem !important;
    width: 100% !important;
}

.drawer-link > span:not(.drawer-icon) {
    grid-column: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.drawer-link .drawer-icon {
    border-radius: 12px !important;
    grid-column: 1 !important;
    height: 44px !important;
    justify-self: start !important;
    width: 44px !important;
}

.drawer-section-label {
    padding-left: calc(1rem + 44px + .72rem) !important;
}

.drawer-logout-button {
    text-align: left !important;
}

.drawer-group > .drawer-link::after {
    border-color: #8fa0b8 !important;
    border-style: solid !important;
    border-width: 0 2px 2px 0 !important;
    color: transparent !important;
    content: "" !important;
    display: inline-block !important;
    font-size: 0 !important;
    grid-column: 3 !important;
    height: .45rem !important;
    line-height: 0 !important;
    margin-left: auto !important;
    transform: rotate(-45deg) !important;
    transition: border-color .18s ease, transform .18s ease !important;
    width: .45rem !important;
}

.drawer-group[open] > .drawer-link::after {
    border-color: #e2e8f0 !important;
    transform: rotate(45deg) !important;
}

.drawer-subnav {
    border-left: 1px solid rgba(148, 163, 184, .2) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: .14rem !important;
    margin: .28rem 0 .55rem 1.45rem !important;
    padding: .12rem 0 .12rem .85rem !important;
}

.drawer-subnav-link,
.drawer-subnav-link:visited,
.drawer-subnav-link:focus {
    align-items: center !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: #aebbd0 !important;
    display: flex !important;
    font-size: .86rem !important;
    font-weight: 760 !important;
    gap: .45rem !important;
    line-height: 1.15 !important;
    min-height: 34px !important;
    padding: .48rem .7rem !important;
    position: relative !important;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
}

.drawer-subnav-link::before {
    background: rgba(148, 163, 184, .45) !important;
    border-radius: 999px !important;
    content: "" !important;
    flex: 0 0 6px !important;
    height: 6px !important;
    width: 6px !important;
}

.drawer-subnav-link:hover {
    background: rgba(255, 255, 255, .055) !important;
    border-color: rgba(148, 163, 184, .12) !important;
    color: #fff !important;
    padding-left: .7rem !important;
    text-decoration: none !important;
    transform: translateX(2px) !important;
}

.drawer-subnav-link.active,
.drawer-subnav-link.active:visited,
.drawer-subnav-link.active:focus {
    background: rgba(13, 71, 161, .24) !important;
    border-color: rgba(96, 165, 250, .22) !important;
    color: #fff !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

.drawer-subnav-link.active::before {
    background: #43bf64 !important;
    box-shadow: 0 0 0 4px rgba(67, 191, 100, .12) !important;
}

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

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

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}

@media (max-width: 720px) {
    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .top-row {
        align-items: flex-start;
        flex-direction: column;
        height: auto;
        padding-bottom: .75rem;
        padding-top: .75rem;
    }

    .master-toolbar {
        grid-template-columns: 1fr;
    }

    .master-panel {
        max-height: calc(100vh - 1rem);
    }

    .account-manage-grid {
        grid-template-columns: 1fr;
    }

    .employee-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .attendance-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .payslip-meta,
    .payslip-grid {
        grid-template-columns: 1fr;
    }

    .account-profile-grid {
        grid-template-columns: 1fr;
    }

    .account-photo-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .payslip-header {
        align-items: flex-start;
    }
}

@media print {
    body {
        background: #fff;
    }

    .app-shell-sidebar,
    .app-topbar,
    .no-print,
    .payslip-actions {
        display: none !important;
    }

    .app-shell-main,
    .app-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .payslip-sheet {
        border: 0;
        box-shadow: none;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .employee-stats {
        grid-template-columns: 1fr;
    }
}
