html, body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    height: 100%;
}

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

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

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

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aW...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

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

.img-login {
    max-height: 39rem;
    max-width: 43rem;
}


@media (max-width: 768px) {
    .img-login {
        max-width: 70%;
    }

    .form-floating {
        max-width: 100%;
    }
}
@media print {

    @page {
        size: A4;
        margin: 10mm;
    }

    .sidebar,
    .top-row,
    nav,
    .navbar,
    .nav-menu {
        display: none !important;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    main,
    .main,
    .content,
    .page {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .payslip-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
        page-break-inside: avoid;
    }

    table {
        page-break-inside: avoid;
    }
}

.sidebar {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    transition: width 0.3s ease;
    overflow: hidden;
}

    .sidebar.collapsed {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }

.sidebar-wrapper {
    display: flex;
    position: relative;
}

.sidebar {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 100vh;
    top: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

    /* COLLAPSED SIDEBAR */
    .sidebar.collapsed {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }

/* TOGGLE BUTTON ATTACHED TO SIDEBAR EDGE */
.toggle-btn {
    position: absolute;
    top: 10px;
    right: -12px; /* 👈 THIS ATTACHES IT OUTSIDE EDGE */
    z-index: 1000;
    background: #0d6efd;
    color: white;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

/* NAV SCROLL */
.nav-scrollable {
    height: calc(100vh - 50px); /* adjusts below header */
    overflow-y: auto !important;
}

    .nav-scrollable::-webkit-scrollbar {
        display: none;
    }

/* NAV ITEM BASE */
.nav-link {
    padding: 6px 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* HIDE TEXT WHEN COLLAPSED */
.sidebar.collapsed .menu-text {
    display: none;
}

/* CENTER ICONS WHEN COLLAPSED */
.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
    font-size: 0 !important;
}

    /* ICON SIZE */
    .sidebar.collapsed .nav-link svg,
    .sidebar.collapsed .nav-link .bi {
        font-size: 18px !important;
    }

/* CENTER NAV ITEMS */
.sidebar.collapsed .nav-item {
    display: flex;
    justify-content: center;
}

/* TOP HEADER CENTER */
.sidebar.collapsed .top-row {
    justify-content: center !important;
}

/* ================= MAIN ================= */

main {
    flex: 1;
    min-height: 100vh;
    overflow-y: auto;
}
/* ================= TOGGLE BUTTON ================= */

.toggle-btn {
    position: absolute;
    top: 10px;
    right: -12px; /* 👈 THIS ATTACHES IT OUTSIDE EDGE */
    z-index: 1000;
    background: #0d6efd;
    color: white;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

/* ================= FINANCE TABLE ================= */

/* .finance-wrapper {
    height: calc(100vh - 180px);
    width: 100%;
    overflow: hidden;
} */


.table-container {
    overflow: hidden;
}

/* .finance-wrapper table {
    width: 100% !important;
    table-layout: auto;
} */
.finance-wrapper {
    width: 100%;
    overflow: visible; /* ✅ no inner scroll */
}

/* ================= PAGINATION ================= */

.pager-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 5px;
    border-top: 1px solid #ddd;
    background: white;
}

table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.card {
    border-radius: 10px;
}

.btn-primary {
    border-radius: 6px;
}

.badge {
    font-size: 10px;
}

.file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

    .file-link:hover {
        text-decoration: underline;
    }

.circular-wrapper {
    margin-top: 20px; /* 🔥 moves card slightly down */
    margin-bottom: 20px; /* 🔥 adds bottom breathing space */
}


/* 🔥 FIX TOGGLE BUTTON CLICK COLOR ISSUE */
.toggle-btn:focus,
.toggle-btn:active,
.toggle-btn:focus-visible {
    background: #0d6efd !important; /* same blue */
    color: white !important;
    outline: none !important;
    box-shadow: none !important;
}

/* OPTIONAL: keep same color even when pressed */
.toggle-btn:hover {
    background: #0d6efd !important;
    color: white !important;
}

th {
    text-align: center;
}


/* soften table borders */
.table {
    border: 1px solid #e5e7eb;
}

    .table th,
    .table td {
        border: 1px solid #e5e7eb;
    }


    /* row hover (like modern UI) */
    .table tbody tr:hover {
        background-color: #f5f7fa;
    }

/* test */
.no-hover-btn {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

    .no-hover-btn:hover,
    .no-hover-btn:focus,
    .no-hover-btn:active {
        background-color: #198754 !important;
        border-color: #198754 !important;
        color: white !important;
        box-shadow: none !important;
    }
.payslip-container {
    width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    font-family: Arial, sans-serif;
}
.company-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.company-logo {
    flex-shrink: 0;
}

    .company-logo img {
        width: 120px !important;
        height: 120px !important;
        object-fit: contain;
        display: block;
    }

.company-details {
    flex: 1;
    text-align: center;
    margin-right: 70px;
}

    .company-details h3 {
        margin: 0;
        font-size: 22px;
        font-weight: bold;
    }

    .company-details p {
        margin: 2px 0;
        font-size: 13px;
    }

    .company-details h4 {
        margin-top: 15px;
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: bold;
    }

.header-line {
    height: 2px;
    background: black;
    width: 100%;
    margin-top: 10px;
}
.netpay-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

    .netpay-table td {
        border: 1px solid #ccc;
        padding: 10px;
    }

.amount-in-words {
    font-style: italic;
}
.footer-note {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 24px;
}
.salary-master-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .salary-master-table th,
    .salary-master-table td {
        border: 1px solid #000;
        padding: 8px;
        font-size: 14px;
    }

    .salary-master-table th {
        background: #f2f2f2;
        text-align: center;
        font-weight: bold;
    }

.total-row {
    background: #f7f7f7;
    font-weight: bold;
}

.amount-words {
    font-style: italic;
    padding: 10px;
}
.salary-master-table, .employee-table {
    width: 100%;
    border-collapse: collapse;
}
.summary-row td {
    background: #f2f2f2;
    font-weight: 600;
}

.netpay-row,
.netpay-row td {
    background-color: transparent !important;
    color: inherit !important;
}
.netpay-label strong,
.netpay-amount strong {
    font-weight: 600; /* not 900 */
}

.netpay-table {
    width: 100%;
    border-collapse: collapse;
}

.netpay-words {
    text-align: center;
    font-size: 13px;
    opacity: 0.85;
}