:root {
    --hrmis-green: #0f6b4f;
    --hrmis-green-dark: #0a3f31;
    --hrmis-green-soft: #e7f5ee;
    --hrmis-mint: #27a36f;
    --hrmis-ink: #152238;
    --hrmis-muted: #65758b;
    --bs-success-rgb: 15, 107, 79;
    --lte-sidebar-width: 264px;
}

body {
    background: #f4f7f5;
    color: var(--hrmis-ink);
}

a {
    color: var(--hrmis-green);
}

.corporate-sidebar {
    background: linear-gradient(180deg, var(--hrmis-green-dark), #082f26);
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1038;
}

.corporate-sidebar .sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.corporate-sidebar .brand-link {
    min-height: 58px;
}

.corporate-mark {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #c8f7df;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin-right: 10px;
    width: 34px;
}

.corporate-logo-mark {
    background: transparent;
    overflow: hidden;
}

.corporate-logo-mark img {
    display: block;
    height: 34px;
    width: 34px;
}

.corporate-sidebar .nav-link.active {
    background: var(--hrmis-mint);
    color: #fff;
}

.corporate-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.corporate-sidebar .nav-link {
    border-radius: 8px;
    margin: 2px 10px;
    min-height: 42px;
}

.corporate-sidebar .nav-icon {
    font-size: 1.05rem;
}

.app-header {
    backdrop-filter: saturate(160%) blur(10px);
    min-height: 58px;
    position: sticky;
    top: 0;
    z-index: 1037;
}

.app-content-header {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f5 100%);
    border-bottom: 1px solid #e3ebe6;
    margin-bottom: 14px;
    padding: 18px 0 16px;
    position: relative;
    z-index: 1;
}

.app-content-header h1 {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 800;
}

.app-content {
    padding-top: 8px;
    padding-bottom: 28px;
}

.corporate-badge {
    background: var(--hrmis-green-soft);
    color: var(--hrmis-green-dark);
    border: 1px solid rgba(15, 107, 79, .14);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-success,
.btn-primary,
button:not(.nav-link):not(.btn-link) {
    --bs-btn-bg: var(--hrmis-green);
    --bs-btn-border-color: var(--hrmis-green);
    --bs-btn-hover-bg: #0b5a43;
    --bs-btn-hover-border-color: #0b5a43;
}

.btn-outline-success {
    --bs-btn-color: var(--hrmis-green);
    --bs-btn-border-color: var(--hrmis-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hrmis-green);
    --bs-btn-hover-border-color: var(--hrmis-green);
    --bs-btn-active-color: #fff;
}

.app-header .btn-outline-success:hover,
.app-header .btn-outline-success:focus {
    color: #fff;
}

.header-logout-btn {
    min-width: 92px;
    color: #fff;
    font-weight: 700;
}

.header-logout-btn:hover,
.header-logout-btn:focus {
    color: #fff;
    background: #084d3b;
    border-color: #084d3b;
}

.card {
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 107, 79, 0.06);
    overflow: hidden;
}

.card-header {
    background: #fff;
    border-bottom-color: #e2ebe6;
    min-height: 58px;
    padding: 14px 18px;
}

.card-title {
    align-items: center;
    display: flex;
    font-weight: 800;
    gap: 8px;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: anywhere;
}

.card-title .bi,
.card-header .card-title > i {
    align-items: center;
    background: var(--hrmis-green-soft);
    border-radius: 8px;
    color: var(--hrmis-green-dark);
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
    margin-right: 4px !important;
    width: 36px;
}

.card-body {
    padding: 18px;
}

.table-responsive {
    border-radius: 8px;
}

.table {
    --bs-table-hover-bg: #f2faf6;
}

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

.attendance-thumb-link {
    align-items: center;
    color: var(--hrmis-green-dark);
    display: inline-flex;
    gap: 8px;
    min-width: 92px;
    text-decoration: none;
}

.attendance-thumb-link:hover {
    color: var(--hrmis-green);
}

.attendance-thumb {
    background: #f4f8f6;
    border: 1px solid #cfe0d8;
    border-radius: 8px;
    height: 46px;
    object-fit: cover;
    width: 46px;
}

.attendance-proof-tile {
    align-items: center;
    border: 1px solid #cfe0d8;
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 96px;
    overflow: hidden;
    padding: 8px;
    text-decoration: none;
}

.attendance-proof-tile:hover {
    border-color: var(--hrmis-green);
    box-shadow: 0 10px 24px rgba(15, 107, 79, 0.1);
    color: inherit;
}

.attendance-proof-tile img {
    background: #f4f8f6;
    border-radius: 8px;
    height: 80px;
    object-fit: cover;
    width: 86px;
}

.attendance-proof-tile strong,
.attendance-proof-tile small {
    display: block;
}

.attendance-proof-tile small {
    color: var(--hrmis-green);
    font-weight: 750;
    margin-top: 3px;
}

.attendance-proof-tile.is-empty {
    color: var(--hrmis-muted);
    display: flex;
    justify-content: center;
    min-height: 58px;
}

.form-label {
    color: var(--hrmis-ink);
    font-size: 0.82rem;
    font-weight: 750;
}

.small-box {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(21, 34, 56, 0.08);
    overflow: hidden;
    position: relative;
}

.small-box.hrmis-green {
    background: var(--hrmis-green);
    color: #fff;
}

.small-box.hrmis-mint {
    background: var(--hrmis-mint);
    color: #fff;
}

.small-box.hrmis-amber {
    background: #b7791f;
    color: #fff;
}

.small-box.hrmis-blue {
    background: #2563eb;
    color: #fff;
}

.small-box.hrmis-slate {
    background: #334155;
    color: #fff;
}

.small-box.hrmis-purple {
    background: #5b4b8a;
    color: #fff;
}

.dashboard-count-link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.dashboard-count-link:hover {
    color: inherit;
    transform: translateY(-1px);
}

.dashboard-count-link .small-box {
    min-height: 172px;
}

.dashboard-count-link .small-box .inner {
    padding: 22px 20px 48px;
    position: relative;
    z-index: 2;
}

.dashboard-count-link .small-box h3 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.dashboard-count-link .small-box p {
    font-size: 1rem;
    font-weight: 750;
    margin: 0;
}

.dashboard-count-link .small-box small {
    color: rgba(255, 255, 255, 0.82);
    display: block;
    font-weight: 650;
    margin-top: 8px;
}

.dashboard-count-link .small-box .icon {
    bottom: 26px;
    font-size: 5.4rem;
    line-height: 1;
    opacity: 0.22;
    position: absolute;
    right: 18px;
    top: auto;
    transition: transform 0.18s ease, opacity 0.18s ease;
    z-index: 1;
}

.dashboard-count-link:hover .small-box .icon {
    opacity: 0.3;
    transform: scale(1.08) rotate(-3deg);
}

.small-box-footer {
    background: rgba(0, 0, 0, 0.14) !important;
    bottom: 0;
    font-weight: 750;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 3;
}

.dtr-summary-card {
    min-height: 136px;
}

.dtr-summary-card .inner {
    padding: 18px 20px;
    position: relative;
    z-index: 2;
}

.dtr-summary-card h3 {
    font-size: clamp(1.9rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
}

.dtr-summary-card p {
    font-size: 0.98rem;
    font-weight: 750;
    margin: 0;
}

.dtr-summary-card .icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    bottom: 14px;
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    font-size: 1.2rem;
    height: 34px;
    justify-content: center;
    left: 14px;
    opacity: 1;
    position: absolute;
    right: auto;
    top: auto;
    width: 34px;
    z-index: 2;
}

.dtr-summary-card .icon > i {
    line-height: 1;
}

.hrmis-footer {
    background: #fff;
    border-top: 1px solid #dfe7e2;
    color: var(--hrmis-muted);
    font-size: 0.86rem;
    font-weight: 650;
    margin-top: 18px;
    padding: 14px 0;
    text-align: right;
}

.hrmis-footer a {
    color: var(--hrmis-green);
    font-weight: 800;
    text-decoration: none;
}

.hrmis-footer a:hover,
.hrmis-footer a:focus {
    color: var(--hrmis-green-dark);
    text-decoration: underline;
}

.chart-panel {
    height: 320px;
    position: relative;
}

.chart-panel-lg {
    height: 360px;
}

.chart-panel-empty::after {
    align-items: center;
    color: var(--hrmis-muted);
    content: "No data yet";
    display: flex;
    font-weight: 700;
    inset: 0;
    justify-content: center;
    position: absolute;
}

.dashboard-hero {
    align-items: center;
    background: linear-gradient(135deg, #0a3f31, #0f6b4f);
    border-radius: 8px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    min-height: 140px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.dashboard-hero h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0;
    margin: 4px 0 6px;
}

.dashboard-hero p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 760px;
}

.dashboard-kicker {
    color: #bdebd5;
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dashboard-hero-icon {
    color: rgba(255, 255, 255, 0.18);
    font-size: 7rem;
    line-height: 1;
}

.dashboard-list {
    display: grid;
    gap: 10px;
}

.dashboard-list-item {
    align-items: center;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    color: inherit;
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-list-item:hover {
    border-color: #a8d5c2;
    box-shadow: 0 10px 22px rgba(15, 107, 79, 0.1);
    color: inherit;
    transform: translateY(-1px);
}

.dashboard-list-icon {
    align-items: center;
    background: var(--hrmis-green-soft);
    border-radius: 8px;
    color: var(--hrmis-green);
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.dashboard-list-item strong,
.dashboard-list-item small {
    display: block;
}

.dashboard-list-item small {
    color: var(--hrmis-muted);
    margin-top: 2px;
}

.dashboard-alert-grid {
    display: grid;
    gap: 10px;
}

.dashboard-alert-grid a {
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    color: inherit;
    padding: 14px;
    text-decoration: none;
}

.dashboard-alert-grid a:hover {
    border-color: #a8d5c2;
    color: inherit;
}

.dashboard-alert-grid strong,
.dashboard-alert-grid span {
    display: block;
}

.dashboard-alert-grid strong {
    color: var(--hrmis-green);
    font-size: 1.8rem;
    line-height: 1;
}

.dashboard-alert-grid span {
    color: var(--hrmis-muted);
    font-weight: 700;
    margin-top: 6px;
}
}

.dt-container .dt-search input,
.dt-container .dt-length select {
    border-color: #d6e3dc;
    border-radius: 6px;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover {
    background: var(--hrmis-green);
    border-color: var(--hrmis-green);
    color: #fff !important;
}

.dt-container .dt-paging .dt-paging-button:hover {
    background: var(--hrmis-green-soft);
    border-color: #b7d8c9;
    color: var(--hrmis-green-dark) !important;
}

.table thead th {
    color: var(--hrmis-muted);
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hrmis-mint);
    box-shadow: 0 0 0 0.2rem rgba(39, 163, 111, 0.14);
}

.login-page {
    background:
        linear-gradient(135deg, rgba(10, 63, 49, 0.92), rgba(15, 107, 79, 0.86)),
        url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.login-box {
    width: min(420px, calc(100vw - 32px));
}

.login-logo a {
    color: #fff;
    font-weight: 800;
}

.login-brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    text-decoration: none;
}

.login-brand img {
    border-radius: 8px;
    height: 54px;
    width: 54px;
}

.login-card-body {
    border-radius: 8px;
}

.login-card-body .login-box-msg {
    color: var(--hrmis-muted);
}

.content-empty-note {
    color: var(--hrmis-muted);
}

.module-link,
.workflow-item {
    color: inherit;
    display: block;
    text-decoration: none;
}

.module-card {
    background: #fff;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(21, 34, 56, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 224px;
    overflow: visible;
    padding: 20px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.module-card:hover,
.workflow-item:hover {
    border-color: #a8d5c2;
    box-shadow: 0 14px 30px rgba(15, 107, 79, 0.12);
    color: inherit;
    transform: translateY(-2px);
}

.module-card-icon {
    align-items: center;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 1.85rem;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.module-card-green .module-card-icon {
    background: var(--hrmis-green);
}

.module-card-mint .module-card-icon {
    background: var(--hrmis-mint);
}

.module-card-blue .module-card-icon {
    background: #2563eb;
}

.module-card-amber .module-card-icon {
    background: #b7791f;
}

.module-card-slate .module-card-icon {
    background: #334155;
}

.module-card-title {
    color: var(--hrmis-ink);
    display: block;
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.25;
}

.module-card-text {
    color: var(--hrmis-muted);
    display: block;
    flex: 1;
    font-size: 0.94rem;
}

.module-card-action {
    align-items: center;
    color: var(--hrmis-green);
    display: inline-flex;
    font-weight: 700;
    gap: 4px;
}

.workflow-list {
    display: grid;
    gap: 12px;
}

.workflow-item {
    align-items: center;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    padding: 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.payroll-input-menu,
.dashboard-counts {
    align-items: stretch;
}

.payroll-input-menu {
    padding-top: 4px;
}

.reports-menu .card,
.payroll-input-menu .module-card {
    height: 100%;
}

.page-help-band {
    background: #fff;
    border: 1px solid #dfe7e2;
    border-left: 4px solid var(--hrmis-green);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 107, 79, 0.06);
    margin-bottom: 16px;
    padding: 16px 18px;
}

.page-help-band strong,
.page-help-band small {
    display: block;
}

.page-help-band strong {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.page-help-band small {
    color: var(--hrmis-muted);
    margin-top: 3px;
}

.guide-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.guide-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-height: 128px;
    padding: 16px;
    border: 1px solid rgba(15, 118, 88, .14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.guide-step-number {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #064e3b;
    background: #dcfce7;
    font-weight: 800;
}

.guide-step h2,
.guide-card h2 {
    margin: 0;
    color: var(--hrmis-heading);
    font-size: 1rem;
    font-weight: 800;
}

.guide-step p,
.guide-card p {
    margin: 6px 0 0;
    color: var(--hrmis-muted);
    line-height: 1.55;
}

.guide-card .content-card-header {
    align-items: flex-start;
}

.guide-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--hrmis-body);
}

.guide-list li {
    margin-bottom: 10px;
    line-height: 1.55;
}

.guide-list li:last-child {
    margin-bottom: 0;
}

.guide-list-columns {
    columns: 2;
    column-gap: 36px;
}

.guide-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.guide-command-grid h3 {
    margin: 0 0 8px;
    color: var(--hrmis-heading);
    font-size: .95rem;
    font-weight: 800;
}

.guide-command-grid pre {
    min-height: 150px;
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    color: #d1fae5;
    background: #052e25;
    white-space: pre-wrap;
}

@media (max-width: 767.98px) {
    .guide-list-columns {
        columns: 1;
    }
}

.workflow-number {
    align-items: center;
    background: var(--hrmis-green-soft);
    border-radius: 8px;
    color: var(--hrmis-green-dark);
    display: inline-flex;
    flex: 0 0 40px;
    font-weight: 800;
    height: 40px;
    justify-content: center;
}

.workflow-item strong,
.workflow-item small {
    display: block;
}

.workflow-item small {
    color: var(--hrmis-muted);
    margin-top: 2px;
}

.master-data-section {
    margin-top: 18px;
    scroll-margin-top: 86px;
}

.master-data-section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.master-data-section-heading strong,
.master-data-section-heading small {
    display: block;
}

.master-data-section-heading strong {
    color: var(--hrmis-ink);
    font-size: 1rem;
    font-weight: 800;
}

.master-data-section-heading small {
    color: var(--hrmis-muted);
    margin-top: 2px;
}

.employee-profile-form {
    display: grid;
    gap: 18px;
}

.employee-form-section {
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    padding: 16px;
}

.employee-form-heading {
    align-items: center;
    border-bottom: 1px solid #e5eee8;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.employee-form-heading strong,
.employee-form-heading small {
    display: block;
}

.employee-form-heading small {
    color: var(--hrmis-muted);
    margin-top: 2px;
}

.employee-form-icon {
    align-items: center;
    background: var(--hrmis-green-soft);
    border-radius: 8px;
    color: var(--hrmis-green-dark);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
}

.employee-subheading {
    background: #f4f8f6;
    border-radius: 6px;
    color: var(--hrmis-green-dark);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 10px;
    text-transform: uppercase;
}

.employee-media-card {
    align-items: center;
    background: #f8fbf9;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 164px;
    padding: 14px;
}

.employee-media-frame {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e5df;
    border-radius: 8px;
    display: flex;
    height: 132px;
    justify-content: center;
    overflow: hidden;
    width: 132px;
}

.employee-media-frame img {
    display: block;
    height: 100%;
    width: 100%;
}

.employee-photo-frame img {
    object-fit: cover;
}

.employee-qr-frame {
    padding: 8px;
}

.employee-qr-frame img {
    image-rendering: pixelated;
    object-fit: contain;
}

.employee-media-placeholder {
    align-items: center;
    background: var(--hrmis-green-soft);
    color: var(--hrmis-green-dark);
    display: flex;
    font-size: 2rem;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.employee-media-details {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.employee-media-details strong,
.employee-media-details small {
    display: block;
}

.employee-media-details small {
    color: var(--hrmis-muted);
}

.employee-media-action {
    justify-self: start;
}

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

.print-label {
    color: var(--hrmis-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.payroll-total {
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    padding: 12px;
}

.payroll-total span,
.payroll-total strong {
    display: block;
}

.payroll-total.net {
    background: var(--hrmis-green-soft);
    border-color: #b7d8c9;
}

.payroll-calendar {
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: hidden;
}

.payroll-calendar-weekday {
    background: #f4f8f6;
    border-bottom: 1px solid #dfe7e2;
    color: var(--hrmis-muted);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
}

.payroll-calendar-day {
    background: #fff;
    border-bottom: 1px solid #e5eee8;
    border-right: 1px solid #e5eee8;
    min-height: 138px;
    min-width: 0;
    padding: 8px;
}

.payroll-calendar-day:nth-child(7n + 7) {
    border-right: 0;
}

.payroll-calendar-day.is-muted {
    background: #f8faf9;
    color: #9aa8b5;
}

.payroll-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(15, 107, 79, 0.35);
}

.payroll-calendar-date {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.payroll-calendar-date span {
    color: var(--hrmis-ink);
    font-weight: 800;
}

.payroll-calendar-date strong {
    color: var(--hrmis-green);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.payroll-calendar-events {
    display: grid;
    gap: 5px;
}

.payroll-calendar-event,
.payroll-calendar-legend {
    border-left: 3px solid currentColor;
    border-radius: 6px;
    display: block;
    font-size: 0.74rem;
    line-height: 1.25;
    padding: 5px 7px;
}

.payroll-calendar-event span,
.payroll-calendar-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payroll-calendar-event span {
    color: #1f2937;
    font-weight: 800;
}

.payroll-calendar-event small {
    color: #64748b;
}

.event-holiday {
    background: #fef3c7;
    color: #b7791f;
}

.event-day-off {
    background: var(--hrmis-green-soft);
    color: var(--hrmis-green);
}

.event-leave {
    background: #e0f2fe;
    color: #0369a1;
}

.event-overtime {
    background: #ede9fe;
    color: #7c3aed;
}

.event-adjustment {
    background: #dbeafe;
    color: #2563eb;
}

.event-deduction {
    background: #fee2e2;
    color: #dc2626;
}

.payroll-calendar-more {
    color: var(--hrmis-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 4px;
}

@media (max-width: 767.98px) {
    .payroll-calendar {
        display: block;
    }

    .payroll-calendar-weekday {
        display: none;
    }

    .payroll-calendar-day {
        border-right: 0;
        min-height: 96px;
    }
}

.signature-line {
    border-top: 1px solid #1f2937;
    margin: 48px auto 8px;
    width: 72%;
}

.system-log-view {
    background: #0f172a;
    border-radius: 8px;
    color: #d1fae5;
    font-size: 0.82rem;
    max-height: 520px;
    overflow: auto;
    padding: 16px;
    white-space: pre-wrap;
}

@media print {
    @page {
        margin: 12mm;
        size: auto;
    }

    body {
        background: #fff !important;
        color: #000;
        font-size: 11px;
    }

    .no-print,
    .app-header,
    .app-sidebar,
    .app-content-header,
    .dt-container .dt-layout-row,
    .breadcrumb,
    .card-header .btn {
        display: none !important;
    }

    .app-wrapper,
    .app-main,
    .app-content,
    .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .card,
    .printable-document {
        border: 0 !important;
        box-shadow: none !important;
    }

    .print-page-break {
        break-after: page;
        page-break-after: always;
    }

    .print-page-break:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .card-body {
        padding: 0 !important;
    }

    .printable-table {
        border-collapse: collapse !important;
        width: 100% !important;
    }

    .printable-table th,
    .printable-table td {
        border: 1px solid #000 !important;
        color: #000 !important;
        padding: 4px !important;
    }

    .signature-row {
        break-inside: avoid;
    }
}
