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

a {
    text-decoration: none;
    color: inherit;
}

/* Main Content */
.main-content {
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    min-height: calc(100vh - 70px);
}

.content-header {
    margin-bottom: 10px;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-item.active {
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.stat-students .stat-icon {
    background: rgba(80, 110, 228, 0.1);
    color: var(--primary);
}

.stat-teachers .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-parents .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-guardians .stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.table-responsive {
    overflow: auto;
}

.login-banner {
    height: 100vh;
    width: 100%;
    object-fit: cover;
}

.auth .auth-form-light {
    background: #ffffff;
}

.auth-form.text-left.py-5.px-sm-5 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 95%;
}

.auth .brand-logo {
    margin-bottom: 2rem;
}

.auth .brand-logo img {
    width: 150px;
}

.auth form .form-group {
    margin-bottom: 1.5rem;
}

.auth form .form-group .form-control {
    background: transparent;
    border-radius: 0;
    font-size: 0.9375rem;
}

.auth form .auth-form-btn {
    line-height: 1.5;
    width: 100%;
}

div#filterDropdownMenu {
    width: 365px !important;
    z-index: 2024;
}

form#filterForm .form-label {
    font-size: 12px;
    font-weight: 500 !important;
}

.modal-open-custom {
    overflow: hidden !important;
    padding-right: var(--bs-gutter-x, 0.5rem);
    /* avoid layout shift */
}

.filter-options {
    max-height: 40vh;
    overflow-y: scroll;
}

.avatar.avatar-md {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    font-size: 0.8rem;
}

.avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
    font-size: 0.939rem !important;
    font-weight: 600 !important;
    border-top: unset !important;
    border-left: unset !important;
    border-right: unset !important;
}

.nav-link {
    color: unset !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.tl-item .avatar {
    z-index: 2 !important;
}

.circle {
    border-radius: 500px !important;
}

.timeline {
    position: relative !important;
    border-color: rgba(160, 175, 185, 0.15) !important;
    margin: 0 !important;
}

.block {
    border-width: 0 !important;
    border-radius: 0.25rem !important;
}

.tl-item {
    border-radius: 3px !important;
    position: relative !important;
    display: -ms-flexbox !important;
    display: flex !important;
}

.tl-item > * {
    padding: 10px !important;
}

.tl-item .avatar {
    z-index: 2 !important;
}

.tl-item:last-child .tl-dot:after {
    display: none !important;
}

.tl-item.active .tl-dot:before {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(68, 139, 255, 0.2) !important;
}

.tl-item:last-child .tl-dot:after {
    display: none !important;
}

.tl-item.active .tl-dot:before {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(68, 139, 255, 0.2) !important;
}

.tl-dot {
    position: relative !important;
    border-color: rgba(160, 175, 185, 0.15) !important;
}

.tl-dot:after,
.tl-dot:before {
    content: "" !important;
    position: absolute !important;
    border-color: inherit !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 50% !important;
    width: 10px !important;
    height: 10px !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.tl-dot:after {
    width: 0 !important;
    height: auto !important;
    top: 25px !important;
    bottom: -15px !important;
    border-right-width: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    border-radius: 0 !important;
}

.tl-item.active .tl-dot:before {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(68, 139, 255, 0.2) !important;
}

.tl-dot {
    position: relative !important;
    border-color: rgba(160, 175, 185, 0.15) !important;
}

.tl-dot:after,
.tl-dot:before {
    content: "" !important;
    position: absolute !important;
    border-color: inherit !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 50% !important;
    width: 10px !important;
    height: 10px !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.tl-dot:after {
    width: 0 !important;
    height: auto !important;
    top: 25px !important;
    bottom: -15px !important;
    border-right-width: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    border-radius: 0 !important;
}

.tl-content p:last-child {
    margin-bottom: 0 !important;
}

.tl-content {
    width: 100% !important;
}

.tl-date {
    font-size: 0.85em !important;
    margin-top: 2px !important;
}

.b-primary {
    border-color: var(--primary) !important;
}

.task-card span {
    font-size: 12px !important;
}

.task-card:hover {
    box-shadow: var(--bs-box-shadow) !important;
}

.document-box {
    margin-bottom: 1rem;
}

.document-box:last-child {
    margin-bottom: 0;
}

.avatar.avatar-xxl {
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--primary);
    border-radius: 50%;
    line-height: 5rem;
    font-size: 1.5rem;
}

.drag-upload-btn {
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    border: 1px dashed var(--primary);
    border-radius: 5px;
    margin: 0 12px 10px 0;
    padding: 6px 16px;
    position: relative;
    transition: all 0.5s;
}

.drag-upload-btn input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.select2-container--default .select2-selection--single {
    border-color: #e9edf4 !important;
    color: #202c4b !important;
    background-color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    border-radius: 5px !important;
    padding: 0.5rem 0.625rem !important;
    /* height: 38px !important; */
    transition: all 0.5s !important;
    display: flex;
    align-items: center;
}

label.form-check-label {
    font-size: 12px;
}

/* STEP WIZARD CONTAINER */
.step-wizard {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    padding: 0 10px;
}

/* BACKGROUND LINE */
.step-wizard::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e8e8e8;
    z-index: 0;
    border-radius: 5px;
}

/* ACTIVE PROGRESS FILL */
.step-wizard::after {
    content: "";
    position: absolute;
    top: 28px;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 0;
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
    width: 0%;
}

/* INDIVIDUAL STEP ITEM */
.step-item {
    text-align: center;
    width: 25%;
    position: relative;
    z-index: 2;
}

/* STEP CIRCLE */
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dcdcdc;
    color: #555;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* ACTIVE CIRCLE */
.step-item.active .step-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.12);
}

/* STEP LABEL */
.step-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    transition: all 0.3s ease;
}

/* ACTIVE LABEL */
.step-item.active .step-label {
    color: #000;
    font-weight: 700;
}

/* ANIMATION FOR FORM CONTENT */
.step-content {
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BUTTON UPGRADE */
#nextBtn,
#prevBtn {
    padding: 10px 24px;
    font-size: 15px;
    border-radius: 6px;
    transition: 0.3s;
}

#nextBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#prevBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active {
    background-color: none !important;
    /* border-color: rgba(var(--secondary-rgb), 0.9); */
    color: #fff;
}

.bg-super-light-success {
    background-color: var(--super-light-success);
}

.attendance-info-border {
    border-right: 1px solid #9ca1af;
}

.fw-medium-value {
    font-size: 0.75rem;
    word-break: break-word;
}

.text-muted-label {
    font-size: 0.65rem;
}

tbody#attendance-table-body tr td {
    font-size: 12px !important;
}

/* Employee Card Styling */
.employee-card {
    border-radius: 12px !important;
    border: 1px solid var(--neutral-200) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.employee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.employee-card .card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar-text {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

/* Info Grid Layout */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    background: var(--neutral-50);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
}

.info-item,
.detail-item {
    padding: 4px 0;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-600);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--neutral-300);
}

/* Collapse Toggle */
.collapse-toggle {
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collapse-toggle:hover {
    opacity: 0.8;
}

.collapse-toggle[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.collapse-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 6px;
}

.action-buttons .btn {
    border-radius: 8px;
    padding: 4px 10px;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: scale(1.05);
}

/* Status Badges */
.badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

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

    .avatar-circle {
        width: 40px;
        height: 40px;
    }

    .avatar-text {
        font-size: 16px;
    }
}

/* Empty State Styling */
.text-truncate {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* compoff */
/* CompOff Card Styling */
.compoff-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.compoff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.compoff-card .card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* Status Ribbon */
.status-ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    transform: rotate(45deg);
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ribbon-success {
    background: linear-gradient(135deg, var(--success) 0%, #5da46a 100%);
}

.ribbon-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #e0a800 100%);
}

.ribbon-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #e03535 100%);
}

.ribbon-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #8a8b8c 100%);
}

.ribbon-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3a3a82 100%);
}

/* Avatar */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar-text {
    color: inherit;
}

/* CompOff Count Badge */
.compoff-count-badge .badge {
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Section Title */
.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description Section */
.description-content {
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, var(--neutral-50) 0%, white 100%);
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Approval Details */
.approval-details {
    border: 1px solid var(--neutral-200);
}

.detail-item {
    padding: 2px 0;
}

/* CompOff Summary */
.bg-gradient-light {
    background: linear-gradient(
        135deg,
        var(--neutral-50) 0%,
        var(--neutral-100) 100%
    );
    border: 1px solid var(--neutral-200);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 4px;
}

.action-buttons .btn {
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-width: 1px;
}

.action-buttons .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.approve-btn:hover {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
    color: white !important;
}

.reject-btn:hover {
    background-color: var(--danger) !important;
    border-color: var(--danger) !important;
    color: white !important;
}

/* Text truncation */
.text-truncate {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form Check Custom Styling */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(71, 71, 161, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .compoff-card .card-header {
        padding: 0.75rem;
    }

    .avatar-circle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .status-ribbon {
        font-size: 0.6rem;
        right: -35px;
        padding: 4px 35px;
    }

    .action-buttons {
        gap: 2px;
    }

    .action-buttons .btn {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .status-ribbon {
        display: none;
    }

    .compoff-card .card-header::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 40px 40px 0;
        border-color: transparent var(--success) transparent transparent;
    }
}

/* Shits */
/* Shift Card Styling */
.shift-card {
    border-radius: 16px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.shift-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Card Header */
.shift-card .card-header {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: none;
}

.shift-icon {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Timing Cards */
.timing-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.timing-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.timing-value {
    font-family: "Courier New", monospace;
    letter-spacing: 1px;
}

/* Half Cards */
.half-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.half-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.half-card.bg-warning-light:hover {
    border-color: var(--warning);
}

.half-card.bg-info-light:hover {
    border-color: var(--info);
}

.timing-display {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 8px;
}

/* Stat Cards */
.stat-2-card {
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
}

.stat-2-card:hover {
    transform: scale(1.05);
    border-color: var(--neutral-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-2-icon {
    opacity: 0.8;
}

.stat-2-value {
    font-size: 1.25rem;
    line-height: 1;
}

.stat-2-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Title */
.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-700);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--neutral-200);
}

/* Last Updated */
.last-updated {
    border: 1px solid var(--neutral-200);
    background: linear-gradient(
        135deg,
        var(--neutral-50) 0%,
        var(--neutral-100) 100%
    );
}

/* Action Buttons */
.action-buttons .btn-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-buttons .btn {
    border-width: 2px;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
}

.action-buttons .btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.action-buttons .btn-outline-info:hover {
    background-color: var(--info);
    color: white;
}

.action-buttons .btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
}

/* Form Switch */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    background-color: var(--neutral-300);
    border-color: var(--neutral-400);
}

.form-switch .form-check-input:checked {
    background-color: var(--success);
    border-color: var(--success);
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(116, 166, 126, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .shift-card .card-body {
        padding: 1.5rem !important;
    }

    .timing-value {
        font-size: 1.75rem;
    }

    .action-buttons .btn-group .btn span {
        display: none;
    }

    .action-buttons .btn-group .btn {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hours-stats .row {
        gap: 0.5rem;
    }

    .hours-stats .col-6 {
        width: 48%;
    }

    .half-sections .col-6 {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.time-text {
    font-size: 0.735rem;
}

/* ================= LEAVE APPROVAL ================= */

.avatar-circle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Approval option card */
.approval-option {
    padding: 12px;
    border: 2px solid var(--neutral-200);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.approval-option:hover {
    border-color: var(--neutral-300);
    background-color: var(--neutral-50);
}

/* Checked state */
.approval-option .form-check-input:checked ~ .form-check-label {
    border-color: var(--primary);
    background-color: var(--primary-50);
}

/* Remarks */
.remarks-content {
    border-left: 4px solid var(--primary);
    background-color: var(--neutral-50);
}

/* Decision radio/checkbox */
.decision-options .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
}

/* Success state */
.form-check-input.success:checked {
    background-color: var(--success);
    border-color: var(--success);
}

/* Danger state */
.form-check-input.danger:checked {
    background-color: var(--danger);
    border-color: var(--danger);
}

/* ================= ADD COMPOFF ================= */

.table-sm thead th {
    padding: 0.75rem !important;
    font-size: 0.875rem;
}

.table-sm tbody td {
    padding: 0.35rem;
    color: var(--neutral-700);
}

/* ================= ADD SALARY REGISTER ================= */

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step.active .step-number {
    background: var(--primary);
    color: var(--neutral-50);
}

.step-label {
    display: block;
    font-size: 0.875rem;
    color: var(--neutral-500);
}

.step.active .step-label {
    color: var(--neutral-900);
    font-weight: 600;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ⚠️ FIXED TYPO: --dange → --danger */
.required:after {
    content: " *";
    color: var(--danger);
}

.input-group-text {
    background: var(--neutral-100);
}

.card-header {
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

/* ================= HIERARCHY ================= */

.hierarchy-scroll {
    height: calc(100vh - 260px);
    min-height: 600px;
    overflow-x: auto;
    overflow-y: auto;
    padding: 40px 30px 120px;
    background: var(--neutral-50);
}

/* Root */
.hierarchy-root {
    list-style: none;
    padding: 0 50vw;
    margin: 0;
    width: max-content;
    display: inline-block;
}

/* Node */
.v-node {
    position: relative;
    width: 360px;
    margin: 0 auto;
    text-align: center;
}

/* Card */
.v-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

/* Avatar */
.avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-50);
    color: var(--primary-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info */
.info {
    flex: 1;
    text-align: left;
}

.info strong {
    font-size: 15px;
    color: var(--neutral-900);
}

.meta {
    font-size: 12px;
    color: var(--neutral-500);
}

/* Toggle */
.toggle-btn {
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Vertical connectors */
.v-node::before,
.v-node::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: 20px;
    background: var(--neutral-300);
}

.v-node::before {
    top: 100%;
}

.v-node::after {
    top: -30%;
}

/* Children */
.v-children {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    margin: 0;
    padding-top: 40px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 360px;
    gap: 40px;
}

/* Horizontal line */
.v-children::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: var(--neutral-300);
    transform: translateX(-50%);
}

/* Visibility helpers */
.d-none {
    display: none !important;
}

/* Connector logic */
.v-node:not(:has(> .v-children))::before,
.v-node:has(> .v-children.d-none)::before {
    display: none;
}

.v-node:has(> .v-children:not(.d-none))::before {
    display: block;
}

/* ================= ORGANIZATION CARDS ================= */

.card.border-hover {
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.card.border-hover:hover {
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(71, 71, 161, 0.25);
}

/* Icon hover */
.card.border-hover:hover i {
    color: var(--primary) !important;
    transition: color 0.3s ease;
}

/* Dashed variant */
.card.border-dashed {
    border: 2px dashed var(--neutral-300);
}

/* Title & badge hover */
a:hover .card-title {
    color: var(--primary) !important;
}

a:hover .badge {
    background-color: var(--primary-50) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* receipt */
body {
    font-family:
        DejaVu Sans,
        sans-serif;
    font-size: 12px;
    color: var(--neutral-900);
}

.muted {
    color: var(--neutral-500);
}

.title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--neutral-900);
}

.subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--neutral-600);
}

.wrap {
    padding: 8px 4px;
}

.header {
    width: 100%;
    margin-bottom: 14px;
}

.header td {
    vertical-align: top;
}

.brand {
    width: 60%;
}

.meta {
    width: 40%;
    text-align: right;
    color: var(--neutral-600);
}

/* Card */
.card {
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
}

/* Utilities */
.right {
    text-align: right;
}

.small {
    font-size: 11px;
    color: var(--neutral-600);
}

/* Footer */
.footer {
    margin-top: 14px;
    font-size: 11px;
    color: var(--neutral-500);
    border-top: 1px dashed var(--neutral-300);
    padding-top: 10px;
}

/* reimbursement approvel form */

.icon-container {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Approval option */
.approval-option {
    padding: 12px;
    border: 2px solid var(--neutral-200);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.approval-option:hover {
    border-color: var(--neutral-300);
    background-color: var(--neutral-100);
}

/* Checked state */
.approval-option .form-check-input:checked ~ .form-check-label {
    border-color: var(--primary);
    background-color: var(--primary-50);
}

/* Remarks */
.remarks-content {
    border-left: 4px solid var(--primary);
    background-color: var(--neutral-50);
}

/* Decision radio/checkbox */
.decision-options .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
}

/* Success state */
.form-check-input.success:checked {
    background-color: var(--success);
    border-color: var(--success);
}

/* Danger state */
.form-check-input.danger:checked {
    background-color: var(--danger);
    border-color: var(--danger);
}

/* Subtle primary badge */
.badge-primary-subtle {
    background-color: var(--primary-50);
    color: var(--primary);
}

/* reimbursement payment status form */

.icon-container {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Approval option */
.approval-option {
    padding: 12px;
    border: 2px solid var(--neutral-200);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.approval-option:hover {
    border-color: var(--neutral-300);
    background-color: var(--neutral-100);
}

/* Checked state */
.approval-option .form-check-input:checked ~ .form-check-label {
    border-color: var(--primary);
    background-color: var(--primary-50);
}

/* Remarks */
.remarks-content {
    border-left: 4px solid var(--primary);
    background-color: var(--neutral-50);
}

/* Decision radio/checkbox */
.decision-options .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
}

/* Success state */
.form-check-input.success:checked {
    background-color: var(--success);
    border-color: var(--success);
}

/* Danger state */
.form-check-input.danger:checked {
    background-color: var(--danger);
    border-color: var(--danger);
}

/* Subtle primary badge */
.badge-primary-subtle {
    background-color: var(--primary-50);
    color: var(--primary);
}

/* ================= POLICY VIEWER ================= */

/* Viewer area */
.policy-viewer {
    padding: 20px;
    background: var(--neutral-100);
    overflow: auto;
}

/* Page look like Word (A4-ish) */
.policy-page {
    background: var(--neutral-50);
    margin: 0 auto;
    padding: 28px 34px;
    /* page margins */
    width: 900px;
    /* good screen width */
    max-width: 100%;
    border-radius: 10px;
}

/* Global typography + spacing */
.policy-html,
.policy-html * {
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: var(--neutral-900);
    box-sizing: border-box;
}

/* Paragraph spacing */
.policy-html p {
    margin: 0 0 10px !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Headings */
.policy-html h1 {
    font-size: 22px !important;
    margin: 16px 0 10px !important;
    color: var(--neutral-900);
}

.policy-html h2 {
    font-size: 18px !important;
    margin: 14px 0 8px !important;
    color: var(--neutral-800);
}

.policy-html h3 {
    font-size: 16px !important;
    margin: 12px 0 6px !important;
    color: var(--neutral-800);
}

/* Images: fit nicely and never overflow */
.policy-html img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
}

/* Tables: prevent overflow + keep readable */
.policy-html table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    margin: 12px 0;
    table-layout: auto;

    /* horizontal scroll if needed */
    display: block;
    overflow-x: auto;
}

.policy-html td,
.policy-html th {
    border: 1px solid var(--neutral-200);
    padding: 8px;
    vertical-align: top;
    word-break: break-word;
}

/* Lists */
.policy-html ul,
.policy-html ol {
    margin: 0 0 12px 20px !important;
    padding: 0;
}

.policy-html li {
    margin: 4px 0;
}

/* ================= PRINT ================= */
@media print {
    .policy-viewer {
        background: var(--neutral-50);
        padding: 0;
    }

    .policy-page {
        box-shadow: none;
        border-radius: 0;
        width: auto;
        padding: 0;
    }
}

/* profile */

.month-calendar {
    width: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

/* Weekday header */
.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--neutral-500);
    padding-bottom: 6px;
}

/* Calendar cell */
.calendar-day {
    min-height: 70px;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: var(--neutral-50);
}

/* Empty cells */
.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

/* Hover */
.calendar-day:hover:not(.empty) {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Date number */
.calendar-day .date {
    font-size: 14px;
    color: var(--neutral-900);
}

.stat-box {
    width: 80px; /* prevents squishing */
}
.cursor-pointer {
    cursor: pointer;
}
.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.form-control.bg-light {
    background-color: #f8f9fa !important;
    border-left: none;
}

#preloader {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader .spinner-border {
    width: 4rem;
    height: 4rem;
}
.row-highlight {
    background-color: #e2e6ea !important;
}

/* Count Box Style */
.entries-count {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.page-link {
    font-size: 14px !important;
    padding: 0.2rem 0.5rem !important;
    color: #000 !important;
}

li.page-item.active .page-link {
    color: #fff !important;
}
