/* --- Global Variables & Reset --- */
:root {
    --primary: #2563eb;         /* Royal Blue */
    --accent: #7c3aed;          /* Purple Accent */
    --dark-slate: #0f172a;      /* Sidebar Navy */
    --light-bg: #f1f5f9;        /* Page Background */
    --text-main: #334155;       /* Slate Text */
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-slate);
    margin: 10px;
}
/* --- Login Page Styles (Centered & Colorful) --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-slate) 0%, var(--primary) 50%, var(--accent) 100%);
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 26px;
    color: var(--dark-slate);
    margin-bottom: 8px;
}

/* --- Dashboard Layout (Sidebar & Main Content) --- */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--dark-slate);
    color: var(--white);
    position: fixed;
    height: 100vh;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0f172a;
    color: #e2e8f0;
    font-size: 22px;
    line-height: 1;
    z-index: 1001;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    z-index: 1000;
}

.sidebar-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

/* --- Navigation Items --- */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    background: var(--primary);
    color: var(--white);
}

.nav-item.logout {
    margin-top: auto;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.nav-item.logout:hover {
    background: var(--danger);
    color: var(--white);
}

/* --- Sidebar Dropdown --- */
.dropdown-btn {
    padding: 12px 15px;
    text-decoration: none;
    font-size: 14px;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    border-radius: 6px;
    transition: 0.3s;
}

.dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-container {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding-left: 10px;
    border-radius: 6px;
    margin-bottom: 5px;
}

.dropdown-container .nav-item {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 2px 0;
}

.arrow {
    border: solid #cbd5e1;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: 0.3s;
}

.dropdown-btn.active .arrow { transform: rotate(-135deg); }

.dropdown-btn.active {
    font-size: 14px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-weight: bold;
}

.show { display: block; }

/* --- Reusable Components (Cards, Forms, Inputs) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.card h3 {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
}

.card .stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-slate);
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-style {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-style:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-login, .payslip-btn-action {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    background: #fee2e2;
    color: #b91c1c;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--danger);
    font-size: 0.9rem;
}

.manage-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    font-size: 14px;
}

.manage-table thead {
    background: #f8fafc;
}

.manage-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #e5e7eb;
}

.manage-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1f2937;
}

.manage-table tbody tr:hover {
    background: #f9fafb;
}

.manage-table small {
    font-size: 12px;
    color: #64748b;
}

/* --- Login View Helpers --- */
#forgot-form {
    display: none;
}

.toggle-link {
    color: #3b82f6;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.login-alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 0;
}

.login-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.login-alert-success {
    background: #dcfce7;
    color: #166534;
}

.login-toggle-row {
    text-align: center;
    margin-top: 15px;
}

.login-reset-title {
    margin-top: 0;
}

.login-reset-subtext {
    font-size: 13px;
    color: #666;
}

.btn-login-warning {
    background: #f59e0b;
}

/* --- Sidebar Text/Tag Helpers --- */
.sidebar-display-name {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

.sidebar-role-badge {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.nav-item-highlight-purple {
    color: #a78bfa;
}

.nav-item-highlight-yellow {
    color: #fbbf24;
}

.nav-item-highlight-green {
    color: #34d399;
}

/* --- Dashboard View Helpers --- */
.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-role-badge {
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #64748b;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 5px solid #ddd;
}

.stat-title {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 10px 0;
}

.stat-value-green {
    color: #15803d;
}

.stat-value-amber {
    color: #a16207;
}

.stat-value-red {
    color: #b91c1c;
}

.stat-value-purple {
    color: #7e22ce;
}

.stat-value-compact {
    font-size: 24px;
}

.stat-meta-text {
    font-size: 14px;
    color: #64748b;
}

.border-blue {
    border-left-color: #3b82f6;
}

.border-green {
    border-left-color: #22c55e;
}

.border-red {
    border-left-color: #ef4444;
}

.border-yellow {
    border-left-color: #eab308;
}

.border-purple {
    border-left-color: #a855f7;
}

.card-mt-30 {
    margin-top: 30px;
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.quick-actions .btn-login {
    width: auto;
}

.quick-action-link {
    width: auto;
    text-decoration: none;
}

.quick-action-link-outline {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

@media (max-width: 640px) {
    .quick-actions .btn-login {
        width: 100%;
        text-align: center;
    }
}

/* --- Leaves Page --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
    margin-bottom: 40px;
}

.balance-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: white;
}

.bal-positive {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bal-negative {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.bal-count {
    font-size: 36px;
    font-weight: 800;
}

.bal-label {
    font-size: 14px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.bal-days {
    font-size: 12px;
    margin-top: 5px;
}

.leave-submit-btn {
    margin-top: 10px;
}

.card-mt-20 {
    margin-top: 20px;
}

.compact-table {
    font-size: 13px;
}

.full-height-card {
    height: 100%;
}

.pending-requests-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.pending-requests-title {
    color: var(--primary);
}

.pending-empty-text {
    color: #94a3b8;
    padding: 20px;
    text-align: center;
}

.request-card {
    background: white;
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.reason-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #78350f;
    margin: 10px 0;
    font-style: italic;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.st-pending {
    background: #fef9c3;
    color: #854d0e;
}

.st-approved {
    background: #dcfce7;
    color: #166534;
}

.st-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.approved-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.approved-header h3 {
    margin: 0;
}

.approved-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.approved-filters .input-style {
    width: auto;
    min-width: 130px;
    padding: 5px;
}

.approved-filters .action-link {
    width: auto;
    padding: 5px 14px;
}

.approved-load-more-wrap {
    margin-top: 14px;
}

.full-width-btn {
    width: 100%;
}

.leave-balance-tag {
    font-weight: bold;
}

.leave-balance-negative {
    color: red;
}

.leave-balance-positive {
    color: green;
}

.request-date-line {
    font-size: 13px;
    margin-bottom: 5px;
}

.request-applied-line {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.request-action-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.request-approve-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #059669;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.request-reject-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #dc2626;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.request-approve-link:hover,
.request-reject-link:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.request-approve-link:active,
.request-reject-link:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.request-approve-link:focus-visible,
.request-reject-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 1px;
}

.approved-reset-link {
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
}

.center-text {
    text-align: center;
}

.leave-msg-error {
    background: #fee2e2;
    color: #991b1b;
}

.leave-msg-success {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Attendance Page --- */
.attendance-box {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    padding: 30px;
}

.attendance-live-clock {
    font-size: 3rem;
    color: var(--primary);
    margin: 10px 0;
}

.attendance-message-success {
    color: green;
}

.attendance-wifi-alert {
    color: red;
    background: #fee2e2;
}

.holiday-banner {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.attendance-action-btn-fixed {
    width: 160px;
}

.attendance-action-btn-danger {
    background: var(--danger);
}

.attendance-action-btn-disabled {
    background: #ccc;
}

.attendance-action-btn-submitting {
    opacity: 0.7;
    cursor: not-allowed;
}

.attendance-summary {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

@media (max-width: 640px) {
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons form {
        width: 100%;
    }

    .action-buttons .btn-login {
        width: 100% !important;
    }
}

/* --- Attendance Logs Page --- */
.filter-bar {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.compact-form-group {
    margin: 0;
}

.min-width-220 {
    min-width: 220px;
}

.logs-search-btn {
    width: auto;
    padding: 10px 25px;
}

.logs-reset-link {
    padding: 10px;
    text-decoration: none;
    color: #64748b;
}

.card-no-pad-overflow-hidden {
    padding: 0;
    overflow: hidden;
}

.logs-empty-cell {
    text-align: center;
    padding: 50px;
    color: #94a3b8;
}

.fw-600 {
    font-weight: 600;
}

.text-primary {
    color: var(--primary);
}

.status-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-present {
    background: #dcfce7;
    color: #166534;
}

.status-work-from-home {
    background: #fef9c3;
    color: #854d0e;
}

.status-leave {
    background: #fee2e2;
    color: #991b1b;
}

.status-half-day-leave {
    background: #ffedd5;
    color: #9a3412;
}

.auto-checkout-note {
    color: red;
    font-weight: bold;
    font-size: 9px;
}

.muted-italic {
    color: #94a3b8;
    font-style: italic;
}

/* --- Manual Attendance Page --- */
.manual-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
}

.manual-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.manual-alert-success {
    background: #dcfce7;
    color: #166534;
}

.manual-alert-warning {
    background: #fffbeb;
    color: #92400e;
}

.card-mb-20 {
    margin-bottom: 20px;
}

.manual-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.manual-date-label {
    font-weight: bold;
    font-size: 12px;
    color: #64748b;
}

.manual-load-btn {
    width: auto;
    padding: 10px 20px;
}

.manual-all-good-msg {
    text-align: center;
    padding: 20px;
    color: #166534;
    background: #f0fdf4;
    border-radius: 6px;
    margin-top: 10px;
}

.action-row {
    display: flex;
    gap: 10px;
}

.btn-absent {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.btn-absent:hover {
    background: #fecaca;
}

.btn-present {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.btn-present:hover {
    background: #bbf7d0;
}

/* --- Reset Password Page --- */
.reset-body {
    background: #f1f5f9;
    font-family: sans-serif;
}

.reset-container {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reset-title {
    text-align: center;
    color: #333;
    margin-top: 0;
}

.reset-alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.reset-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.reset-alert-success {
    background: #dcfce7;
    color: #166534;
}

.reset-field-15 {
    margin-bottom: 15px;
}

.reset-field-20 {
    margin-bottom: 20px;
}

.reset-label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.reset-input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.btn-reset {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.reset-back-row {
    text-align: center;
    margin-top: 20px;
}

.reset-back-link {
    color: #2563eb;
    text-decoration: none;
}

/* --- Employee Profile Page --- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-group {
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    display: block;
}

.info-value {
    font-size: 15px;
    color: var(--dark-slate);
    font-weight: 600;
}

.section-title {
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin: 20px 0;
}

.profile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-card {
    margin-top: 20px;
}

.profile-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.profile-name {
    margin: 0;
}

.profile-subtitle {
    margin: 0;
    color: #64748b;
}

.profile-status-pill {
    background: #fef9c3;
    color: #854d0e;
    margin-top: 5px;
}

.profile-earning-box {
    background: #f0fdf4;
    padding: 10px;
    border-radius: 8px;
}

.profile-earning-value {
    color: #15803d;
    font-size: 20px;
}

.profile-action-wrap {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: center;
}

.profile-action-note {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 15px;
}

.profile-action-btn {
    display: inline-block;
    width: 200px;
    text-decoration: none;
}

.profile-action-approve {
    background: var(--success);
}

.profile-action-reject {
    background: var(--danger);
    margin-left: 10px;
}

/* --- Manage IPs Page --- */
.ip-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.type-ipv4 {
    border-left-color: #10b981;
}

.type-ipv6_prefix {
    border-left-color: #8b5cf6;
}

.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.morning-box {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.ips-morning-title {
    margin-top: 0;
    color: #1e3a8a;
}

.ips-morning-subtitle {
    color: #475569;
}

.btn-morning {
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 15px;
}

.btn-morning:hover {
    background: #1d4ed8;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-top: 5px;
    box-sizing: border-box;
}

label {
    font-weight: bold;
    color: #334155;
    font-size: 14px;
}

.ips-detected-wrap {
    margin-bottom: 15px;
}

.ips-detected-input {
    background: #f1f5f9;
    color: #64748b;
}

.ips-helper-note {
    color: #64748b;
    display: block;
    margin-top: 4px;
}

.ips-card-main {
    font-weight: bold;
    font-size: 16px;
    color: #1e293b;
}

.ips-card-sub {
    font-size: 12px;
    color: #64748b;
}

.ips-delete-link {
    color: red;
    text-decoration: none;
    font-size: 20px;
}

.ips-empty-note {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
}

.ips-advanced-details {
    margin-top: 20px;
    color: #64748b;
    cursor: pointer;
}

.ips-advanced-card {
    margin-top: 10px;
    cursor: default;
}

.ips-add-btn {
    margin-top: 10px;
}

/* --- Holiday Calendar Page --- */
.layout-grid {
    display: grid;
    gap: 25px;
}

.holiday-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.holiday-filter-form {
    display: flex;
    gap: 10px;
}

.holiday-month-input {
    padding: 8px;
}

.holiday-filter-btn {
    width: auto;
    padding: 8px 15px;
}

.holiday-clear-link {
    color: red;
    text-decoration: none;
    align-self: center;
    font-size: 14px;
}

.holiday-admin-card {
    height: fit-content;
    position: sticky;
    top: 20px;
}

.holiday-admin-title {
    color: var(--primary);
}

.holiday-admin-subtext {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 15px;
}

.holiday-add-btn {
    background: var(--primary);
}

.holiday-legend-wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.holiday-legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.holiday-legend-row-mb {
    margin-bottom: 10px;
}

.holiday-legend-box {
    width: 15px;
    height: 15px;
}

.holiday-legend-manual {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #7c3aed;
}

.holiday-legend-sunday {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
}

.holiday-legend-text {
    font-size: 12px;
}

.holiday-upcoming-title {
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.holiday-empty-upcoming {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 8px;
}

.holiday-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.holiday-card:hover {
    transform: translateY(-2px);
}

.holiday-card-left {
    display: flex;
    align-items: center;
}

.style-manual {
    background: #fff;
    border-left: 5px solid #7c3aed;
}

.badge-manual {
    background: #f3e8ff;
    color: #6b21a8;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.style-sunday {
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
}

.badge-sunday {
    background: #fef3c7;
    color: #b45309;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
}

.style-finished {
    background: #f8fafc;
    border-left: 5px solid #94a3b8;
    opacity: 0.6;
}

.date-box {
    text-align: center;
    margin-right: 15px;
    min-width: 60px;
}

.date-day {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    display: block;
    color: #334155;
}

.date-month {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.holiday-event-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
}

.holiday-event-meta {
    margin-top: 4px;
}

.holiday-weekday {
    font-size: 11px;
    color: #64748b;
    margin-left: 5px;
}

.holiday-delete-btn {
    color: #ef4444;
    background: #fee2e2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
}

.holiday-past-title {
    color: #94a3b8;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 40px;
}

.holiday-date-faded {
    opacity: 0.6;
}

.holiday-past-name {
    text-decoration: line-through;
    color: #94a3b8;
}

.holiday-delete-link-inline {
    color: #ef4444;
    font-weight: bold;
    text-decoration: none;
}

.layout-grid-admin {
    grid-template-columns: 300px 1fr;
}

.layout-grid-user {
    grid-template-columns: 1fr;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* --- Employee Details Page --- */
.split-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.section-title {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.role-pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.role-pill-pending {
    background: #fef9c3;
    color: #854d0e;
}

.role-pill-approved {
    background: #dcfce7;
    color: #166534;
}

.emp-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.emp-table th {
    background: #1e293b;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 13px;
}

.emp-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
}

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

.salary-box {
    background: #eff6ff;
    padding: 15px;
    border-radius: 8px;
    grid-column: 1 / -1;
    border: 1px solid #bfdbfe;
    text-align: center;
    margin-bottom: 15px;
}

.bank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    grid-column: 1 / -1;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

option.add-new-option {
    color: #3e7fdc;
    font-weight: bold;
}

.employee-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.emp-header-btn {
    width: auto;
}

.emp-header-btn-add {
    background: #2563eb;
}

.emp-header-btn-manage {
    background: #64748b;
}

.readonly-field {
    background: #f1f5f9;
}

.span-two {
    grid-column: span 2;
}

.salary-auto-label {
    color: #1e3a8a;
    font-weight: bold;
}

.salary-gross-input {
    text-align: center;
    width: 60%;
    margin: 5px auto;
    font-weight: bold;
    font-size: 18px;
}

.form-actions-row {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.card-no-padding {
    padding: 0;
}

.emp-action-edit {
    color: #2563eb;
    text-decoration: none;
    margin-right: 10px;
}

.emp-action-delete {
    color: #dc2626;
    text-decoration: none;
}

/* --- Summary Report Page --- */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.report-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-month-label {
    font-size: 12px;
    font-weight: bold;
    color: #64748b;
}

.report-export-row {
    display: flex;
    gap: 10px;
}

.report-stats-row {
    display: flex;
}

.stat-box {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid #eee;
}

.stat-box:last-child {
    border-right: none;
}

.stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: bold;
}

.progress-bar {
    background: #e2e8f0;
    border-radius: 4px;
    height: 6px;
    width: 100px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
}

.grade-high {
    background: #22c55e;
}

.grade-med {
    background: #eab308;
}

.grade-low {
    background: #ef4444;
}

.btn-export {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-excel {
    background: #10b981;
    color: white;
}

.payslip-btn-pdf {
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
}

.report-table-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.report-empty-cell {
    text-align: center;
    padding: 30px;
}

.report-working-days-cell {
    font-weight: bold;
    color: #475569;
}

.report-joined-note {
    color: blue;
    font-size: 9px;
}

.report-present-cell {
    color: #15803d;
    font-weight: bold;
}

.report-leave-cell {
    color: #b91c1c;
    font-weight: bold;
}

.report-score-text {
    font-size: 12px;
    font-weight: bold;
}

.print-wrap {
    padding: 10px;
}

/* --- Detailed Report Page --- */
.sidebar {
    z-index: 1000 !important;
}

.detailed-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.detailed-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.detailed-month-input {
    padding: 6px;
}

.detailed-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    flex-wrap: wrap;
}

.detailed-legend-item {
    display: flex;
    align-items: center;
}

.legend-dot {
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    margin-right: 5px;
}

.legend-dot-p {
    background: #dcfce7;
}

.legend-dot-a {
    background: #fee2e2;
}

.legend-dot-l {
    background: #fef9c3;
}

.legend-dot-h {
    background: #f3e8ff;
}

.report-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
}

table.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
    min-width: 1500px;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    text-align: center;
    background: #fff;
}

.matrix-table th:first-child,
.matrix-table td:first-child {
    position: sticky;
    left: 0;
    background: white;
    width: 200px;
    min-width: 200px;
    border-right: 2px solid #cbd5e1;
    z-index: 5;
}

.matrix-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    color: #64748b;
    font-weight: bold;
    z-index: 4;
}

.matrix-table thead th:first-child {
    z-index: 6;
    background: #f1f5f9;
}

.detailed-title {
    padding: 10px;
    text-align: center;
    margin: 0;
}

.detailed-th-name {
    text-align: left;
    padding-left: 15px;
}

.detailed-th-pres {
    background: #f0fdf4;
}

.detailed-th-abs {
    background: #fef2f2;
}

.detailed-th-work {
    background: #fffbeb;
}

.detailed-td-name {
    text-align: left;
    padding-left: 15px;
}

.cell-p {
    background-color: #dcfce7 !important;
    color: #15803d;
    font-weight: bold;
}

.cell-a {
    background-color: #fee2e2 !important;
    color: #b91c1c;
    font-weight: bold;
}

.cell-l {
    background-color: #fef9c3 !important;
    color: #a16207;
    font-weight: bold;
}

.cell-h {
    background-color: #f3e8ff !important;
    color: #7e22ce;
    font-weight: bold;
}

.cell-up {
    background-color: #f8fafc !important;
    color: #cbd5e1;
}

.cell-na {
    background-color: #ffffff !important;
    color: #cbd5e1;
    font-size: 10px;
}

.detailed-total-pres {
    font-weight: bold;
    color: #15803d;
    background: #f0fdf4;
}

.detailed-total-abs {
    font-weight: bold;
    color: #b91c1c;
    background: #fef2f2;
}

.detailed-total-work {
    font-weight: bold;
    color: #334155;
    background: #f8fafc;
}

/* --- Salary Process Page --- */
.tab-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-link {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-link:hover {
    background: #f1f5f9;
    color: #334155;
}

.tab-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #eff6ff;
}

.toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.tool-group {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.tool-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 5px;
}

.tool-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tool-row select,
.tool-row input,
.tool-row button {
    height: 38px;
    box-sizing: border-box;
}

.tool-row select,
.tool-row input {
    padding: 5px 8px;
    font-size: 13px;
}

table.s-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.s-table th {
    background: #1e293b;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
}

.s-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #334155;
    font-size: 14px;
}

.s-table tr:last-child td {
    border-bottom: none;
}

.s-table tr:hover td {
    background-color: #f8fafc;
}

.money {
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 15px;
}

.val-positive {
    color: #16a34a;
    font-weight: bold;
}

.val-negative {
    color: #dc2626;
    font-weight: bold;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-pub {
    background: #dcfce7;
    color: #15803d;
}

.audit-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.day-box {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    margin: 1px;
    font-size: 11px;
    font-weight: 600;
}

.d-miss {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.d-ok {
    background: #dcfce7;
    color: #166534;
}

.d-hol {
    background: #fef9c3;
    color: #854d0e;
}

.d-fut {
    background: #f1f5f9;
    color: #cbd5e1;
}

.salary-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.salary-month-card {
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.salary-month-form {
    margin: 0;
}

.salary-month-input {
    margin: 0;
    width: auto;
    cursor: pointer;
}

.salary-month-stats {
    font-size: 13px;
    color: #64748b;
    border-left: 1px solid #cbd5e1;
    padding-left: 15px;
}

.salary-working-days {
    color: #2563eb;
}

.salary-missing-alert {
    max-height: 200px;
    overflow-y: auto;
}

.salary-missing-list {
    margin: 5px 0 0 20px;
    padding: 0;
}

.btn-calc-salary {
    background: #2563eb;
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-input-flex {
    margin: 0;
    flex: 1;
}

.tool-input-amount {
    margin: 0;
    width: 100px;
}

.btn-tool-add {
    background: #059669;
    width: auto;
    margin: 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.btn-tool-update {
    background: #d97706;
    width: auto;
    margin: 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.btn-reset-leaves {
    background: #ef4444;
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.salary-auto-reset-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.45;
}

.salary-table-card {
    padding: 0;
    overflow: hidden;
}

.salary-table-header {
    padding: 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.salary-table-title {
    margin: 0;
}

.salary-publish-form {
    margin: 0;
}

.btn-publish-salary {
    background: #16a34a;
    width: auto;
    margin: 0;
}

.salary-table-scroll {
    overflow-x: auto;
}

.salary-th-note {
    font-weight: normal;
    opacity: 0.7;
}

.salary-net-head {
    background: #1a843a;
    border-left: 2px solid #bbf7d0;
}

.salary-emp-id {
    color: #64748b;
}

.salary-daily-rate {
    color: #64748b;
    font-size: 11px;
}

.salary-bonus-cell {
    color: green;
    font-weight: bold;
}

.salary-lop-note {
    color: #ef4444;
}

.salary-net-pay {
    background: #f0fdf4;
    border-left: 2px solid #bbf7d0;
    font-size: 16px;
}

.salary-row-action {
    min-width: 180px;
}

.salary-row-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.salary-row-btn {
    width: auto;
    height: 34px;
    margin: 0;
    padding: 0 12px;
    font-size: 12px;
}

.salary-row-edit-btn {
    background: #2563eb;
}

.salary-row-save-btn {
    background: #16a34a;
    display: none;
}

.salary-row-cancel-btn {
    background: #64748b;
    display: none;
}

.salary-inline-input {
    display: none;
    margin-top: 6px;
    height: 34px;
    max-width: 140px;
    padding: 6px 8px;
    font-size: 12px;
}

.salary-row-editing .salary-inline-input {
    display: block;
}

.salary-row-editing .salary-row-save-btn,
.salary-row-editing .salary-row-cancel-btn {
    display: inline-flex;
    align-items: center;
}

.salary-row-editing .salary-row-edit-btn {
    display: none;
}

.salary-row-editing .salary-read-val {
    opacity: 0.65;
}

@media (max-width: 768px) {
    .salary-row-form {
        flex-direction: column;
        align-items: stretch;
    }

    .salary-row-btn,
    .salary-inline-input {
        width: 100%;
        max-width: none;
    }
}

.salary-empty-state {
    padding: 50px;
    text-align: center;
    color: #94a3b8;
}

.salary-audit-note {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

.salary-audit-emp-head {
    width: 200px;
    background: #f1f5f9;
    color: #334155;
}

.salary-audit-day-head {
    text-align: center;
    padding: 5px;
    width: 25px;
}

.salary-audit-emp-cell {
    background: #f8fafc;
    font-weight: bold;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid #e2e8f0;
}

.salary-audit-day-cell {
    padding: 2px;
    text-align: center;
}

.salary-email-success {
    color: #15803d;
    font-family: sans-serif;
    margin-top: 8px;
}

.salary-email-error {
    margin-top: 10px;
    border: 1px solid #fca5a5;
    padding: 15px;
    background: #fef2f2;
    color: #991b1b;
    font-family: sans-serif;
    border-radius: 6px;
}

/* --- Manage Applications Page --- */
.applications-emp-code {
    color: var(--primary);
}

.applications-view-link {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
}

.applications-approve-link {
    background: var(--success);
    color: white;
    margin-left: 10px;
}

.applications-reject-link {
    margin-left: 5px;
}

/* --- My Payslips Page --- */
.payslip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.slip-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.slip-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.month-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.net-amount {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 10px 0;
}

.slip-meta {
    font-size: 12px;
    color: #64748b;
}

.slip-lop-days {
    color: #ef4444;
}

.payslip-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.payslip-btn-action {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.payslip-btn-view {
    background: #f1f5f9;
    color: #475569;
}

.payslip-btn-view:hover {
    background: #e2e8f0;
}

.payslip-btn-pdf {
    background: #2563eb;
    color: white;
}

.payslip-btn-pdf:hover {
    background: #1d4ed8;
}

.payslip-template {
    display: none;
}

.paper {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 40px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
}

.paper .payslip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.payslip-logo {
    height: 50px;
}

.paper .payslip-company-info {
    text-align: right;
}

.paper .payslip-company-name {
    font-size: 22px;
    font-weight: 800;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.paper .payslip-company-details {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.payslip-title {
    background: #f8fafc;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    color: #334155;
    letter-spacing: 1px;
}

.paper .payslip-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 12px;
}

.paper .payslip-info-col {
    flex: 1;
    min-width: 200px;
}

.info-col-shift {
    margin-left: 20px;
}

.paper .payslip-info-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding: 6px 0;
}

.paper .payslip-label {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
}

.paper .payslip-value {
    font-weight: 700;
    color: #1e293b;
}

.lop-value {
    color: #ef4444;
}

.paper .salary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 12px;
}

.paper .salary-table th {
    background: #1e3a8a;
    color: white;
    padding: 10px;
    text-align: left;
    text-transform: uppercase;
    font-size: 11px;
}

.paper .salary-table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    vertical-align: top;
}

.slip-th-earnings {
    width: 35%;
}

.slip-th-amount {
    text-align: right;
    width: 15%;
}

.slip-th-deductions {
    width: 35%;
    padding-left: 20px;
}

.slip-deduction-col {
    padding-left: 20px;
}

.slip-empty-sep {
    border: none !important;
}

.slip-empty-sep:first-child {
    height: 20px;
}

.paper .col-right {
    text-align: right;
    font-family: "Courier New", monospace;
    font-weight: 600;
}

.paper .subtotal-row {
    background: #f8fafc;
    font-weight: bold;
}

.paper .net-pay-section {
    border: 2px solid #1e3a8a;
    padding: 15px;
    background: #eff6ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.paper .net-label {
    font-size: 12px;
    font-weight: bold;
    color: #1e3a8a;
    text-transform: uppercase;
}

.paper .net-value {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a8a;
}

.paper .amount-words {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
    margin-top: 5px;
}

.paper .disclaimer {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    width: 95%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    z-index: 10;
}

.print-slip-wrap {
    padding: 20px;
}

.payslip-empty-card {
    padding: 50px;
    text-align: center;
    color: #94a3b8;
}

