@import url('root.css');

.w-1{ width: 1% !important; }
.w-2{ width: 2% !important; }
.w-3{ width: 3% !important; }
.w-4{ width: 4% !important; }
.w-5{ width: 5% !important; }
.w-10{ width: 10% !important; }
.w-15{ width: 15% !important; }
.w-20{ width: 20% !important; }
.w-25{ width: 25% !important; }
.w-30{ width: 30% !important; }
.w-35{ width: 35% !important; }
.w-50{ width: 50% !important; }
.w-60{ width: 60% !important; }
.w-70{ width: 70% !important; }
.w-80{ width: 80% !important; }
.w-90{ width: 90% !important; }
.w-100{ width: 100% !important; }

.layout-menu img {
    width: 100% !important;
    padding: 1rem;
}

.layout-menu .main-logo {
    width: 100% !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}
.layout-menu .small-logo {
    display: none;
    width: 25%;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}



.layout-menu-collapsed .main-logo {
    display: none;
}

.layout-menu-collapsed .small-logo {
    display: block;
}

.layout-menu-collapsed.layout-menu-hover .main-logo {
    display: block;
}
.layout-menu-collapsed.layout-menu-hover .small-logo {
    display: none;
}

.bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
    background: linear-gradient(92deg, var(--bs-primary) 22.16%, var(--bs-primary-light3) 76.47%)
}

.breadcrumb-item, .breadcrumb-item a {
    color: var(--bs-primary) !important;
}
a:hover {
    color: var(--bs-primary-light) !important;
}
.breadcrumb-item, .breadcrumb-item.active {
    color: var(--bs-breadcrumb-item-active-color) !important;
}
.btn-primary:hover {
    color: #fff !important;
    background-color: var(--bs-primary-light) !important;
    border-color: var(--bs-primary-light3) !important;
}
.btn-light {
    color: #fff;
    background-color: var(--bs-primary-light);
    border-color: var(--bs-primary-light);
}

.readonly-look {
    background-color: #e9ecef !important;
    cursor: not-allowed;
    pointer-events: none;
}

.dots-loader {
    display: flex;
    gap: 8px;
}

.dots-loader div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0d6efd;
    animation: bounce 0.6s infinite alternate;
}

.dots-loader div:nth-child(2) {
    animation-delay: 0.2s;
}

.dots-loader div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-15px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.dot-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.dot-loader span {
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.dot-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-10px);
        opacity: 0.5;
    }
}

/* quotation print css */
 @media print {
    .quotation_print .company_dv{
        width: 100% !important;
    }
    .quotation_print .invoice_dv,
    .quotation_print .billing_dv,
    .quotation_print .shipping_dv,
    .quotation_print .quotation_dv {
        width: 25% !important;
    }

    .quotation_print .per {
        float: right;
    }

    .quotation_print .invoice-preview .invoice-preview-header,
    .quotation_print .invoice-edit .invoice-preview-header,
    .quotation_print .invoice-add .invoice-preview-header {
        background-color: #ced7e0dc !important;
    }

    .quotation_print .rounded {
        border-radius: var(--bs-border-radius) !important;
    }

    .quotation_print .card-body {
        flex: 1 1 auto;
        padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
        color: var(--bs-card-color);
    }

    .quotation_print .main-logo {
        margin-left: -6px;
    }

    .quotation_print .border-panel {
        border-top: 3px solid #266BEE !important;
        border-radius: 3px !important;
    }

    .quotation_print .text-right {
        text-align: right !important;
    }
}

.buy-now .btn-buy-now-primary {
    position: fixed;
    bottom: 3rem;
    right: 1.5rem;
    z-index: 1080;
    box-shadow: 0 1px 20px 1px #266BEE !important;
}

.scrolling-text {
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    padding-left: 35%; /* push text to right off-screen */
}

.scrolling-text h5{
   color:red !important;
}

@keyframes scroll-left {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.expired-row {
    background-color: #ffe5e5 !important;
}

.text-white-important {
    color: #ffffff !important;
}
table.dataTable > tbody > tr.child ul.dtr-details {
   width: 100%;
}

/* Custom Month Picker Styling */
.custom-month-picker-wrapper {
    position: relative;
}

.month-picker-input {
    position: relative;
    cursor: pointer;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z'/%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.month-picker-input:focus {
    border-color: #2a8dff;
    box-shadow: 0 0 0 0.2rem rgba(42, 141, 255, 0.25);
}

.custom-month-picker-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    margin-top: 4px;
}

.custom-month-picker-dropdown.show {
    display: block;
}

.month-picker-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.month-picker-year-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.month-picker-year-btn:hover {
    background-color: #f0f0f0;
}

.month-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 12px;
}

.month-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
}

.month-btn:hover {
    background-color: #f5f5f5;
    border-color: #2a8dff;
}

.month-btn.selected {
    background-color: #2a8dff;
    color: #fff;
    border-color: #2a8dff;
    font-weight: 600;
}

.month-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.month-btn.disabled:hover {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
}

.month-picker-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px solid #eee;
}

.month-picker-link {
    color: #2a8dff;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.month-picker-link:hover {
    background-color: #f0f7ff;
    text-decoration: none;
}

#month_range_info {
    font-size: 11px;
    margin-top: 4px;
    color: #6c757d;
}

/* ============================================
   ATTENDANCE REPORT STYLES
   ============================================ */

/* ============================================================
   ATTENDANCE REPORT - FREEZE HEADER + STICKY LEFT/RIGHT COLS
   ============================================================ */

.attendance-wrapper {
    border: 1px solid #d0d7e2;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.attendance-header {
    background: linear-gradient(90deg, #2a8dff, #0056b3);
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

/* ── Main scroll container: scrolls BOTH X and Y ── */
#att_scroll_container {
    max-height: 65vh;
    overflow: auto;
    position: relative;
}

/* ── Frozen header: sticky to top of scroll container ── */
#header_container {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #eef2f7;
    border-bottom: 2px solid #c5cdd8;
    width: max-content;
    min-width: 100%;
}

/* ── Body rows ── */
#body_container {
    display: flex;
    width: max-content;
    min-width: 100%;
}

/* ── Left sticky column ── */
.att-fixed-left {
    flex: 0 0 auto;
    position: sticky;
    left: 0;
    z-index: 20;
    background: #f0f4f8;
    box-shadow: 2px 0 5px rgba(0,0,0,0.08);
}

/* ── Right sticky column ── */
.att-fixed-right {
    flex: 0 0 auto;
    position: sticky;
    right: 0;
    z-index: 20;
    background: #f0f4f8;
    box-shadow: -2px 0 5px rgba(0,0,0,0.08);
}

/* ── Middle scrollable section ── */
.att-middle {
    flex: 1;
}

/* ── Table base ── */
.attendance-table {
    border-collapse: collapse;
    width: max-content;
}

/* Header cells */
.attendance-table thead th {
    background-color: #eef2f7;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid #d0d7e2;
    white-space: nowrap;
    vertical-align: middle;
    height: 40px;
    box-sizing: border-box;
}

.att-fixed-left thead th,
.att-fixed-right thead th {
    background-color: #e2eaf3 !important;
}

/* Body cells */
.attendance-table tbody td {
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 4px 3px;
    font-size: 12px;
    height: 90px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Column widths */
.att-col-sr   { min-width: 55px; width: 55px; }
.att-col-name {
    min-width: 200px;
    width: 200px;
    max-width: 200px;
    text-align: left !important;
    font-weight: 600;
    background-color: #e9eff5;
    padding-left: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.att-col-summary { min-width: 75px; width: 75px; }

.attendance-table td.att-col-name {
    text-align: left !important;
    padding-left: 8px !important;
    background-color: #f5f8fb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Day columns */
.attendance-table thead th:not(.att-col-sr):not(.att-col-name):not(.att-col-summary),
.attendance-table tbody td:not(.att-col-sr):not(.att-col-name):not(.att-col-summary) {
    min-width: 80px;
    width: 80px;
}

/* Fixed columns legacy support */
.employee-col {
    min-width: 200px;
    width: 200px;
    max-width: 200px;
    text-align: left !important;
    font-weight: 600;
    background-color: #e9eff5;
    padding-left: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.attendance-table th.employee-col,
.attendance-table td.employee-col {
    text-align: left !important;
    padding-left: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 200px;
    width: 200px;
    max-width: 200px;
}

.working-hours-col {
    background-color: #e9eff5;
    font-weight: 600;
    min-width: 75px;
    width: 75px;
    white-space: nowrap;
}

/* ALL body td - no wrap */
.attendance-table tbody td {
    white-space: nowrap;
}

/* Sr No column in body */
.attendance-table tbody td:first-child {
    min-width: 55px;
    width: 55px;
    text-align: center;
}

/* ============================================
   ATTENDANCE STATUS CELL COLORS
   ============================================ */

/* Present - Light Green */
.present-cell {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Absent - Light Red/Pink */
.absent-cell {
    background-color: #f7a4b0;
    color: #c62828;
}

/* Half Day - Purple */
.half-day-cell,
.leave-half-cell,
.purple-cell {
    background-color: #f4d9f9 !important;
    color: #4a148c !important;
    text-align: center;
}

/* Leave - Light Orange */
.leave-cell,
.full-leave-cell {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Pending Leave - Light Orange with dashed border */
.pending-leave-cell {
    background-color: #fff3e0 !important;
    color: #ef6c00 !important;
    border: 2px dashed #ff9800 !important;
    position: relative;
}

.pending-leave-cell small {
    color: #ff6f00;
    font-weight: bold;
}

.pending-leave {
    position: relative;
}

/* Holiday - Light Blue */
.holiday-cell {
    background-color: #e3f2fd;
    color: #1565c0;
}

/* Week Off - Gray */
.week-off-cell {
    background-color: #9e9e9e;
    color: #ffffff;
    text-align: center;
}

/* Week Off Working - Green with border */
.week-off-working-cell {
    background-color: #c8e6c9;
    color: #1b5e20;
    border: 2px solid #4caf50;
}

/* Weekend/Future - Light Gray */
.weekend {
    background-color: #f0f0f0;
    color: #777;
}

/* ============================================
   ATTENDANCE STATUS TEXT STYLES
   ============================================ */

.present {
    font-weight: 600;
    color: #2e7d32;
}

.absent {
    font-weight: bold;
    color: #c62828;
}

.leave {
    font-weight: 600;
    color: #ef6c00;
}

.holiday {
    font-weight: 600;
    color: #1565c0;
}

.week-off {
    font-weight: bold;
    color: #ffffff;
}

/* ============================================
   PUNCH TIME STYLES
   ============================================ */

.time-in {
    color: #43a047;
    font-size: 11px;
    display: inline-block;
    font-weight: 600;
    margin-right: 4px;
}

.time-out {
    color: #e53935;
    font-size: 11px;
    display: inline-block;
    font-weight: 600;
    margin-right: 4px;
}

.working-hours {
    color: #000;
    font-size: 11px;
    display: inline-block;
    font-weight: 500;
}

.present-label {
    font-weight: 700;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

.present > div {
    line-height: 1.4;
    margin-bottom: 2px;
}

/* ============================================
   SCROLLBAR & UTILITY STYLES
   ============================================ */

.scrollable-section::-webkit-scrollbar {
    height: 8px;
}

.scrollable-section::-webkit-scrollbar-thumb {
    background: #b0bec5;
    border-radius: 4px;
}

.scrollable-section::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.eye-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 3px;
}

.no-data-placeholder {
    text-align: center;
    font-weight: 500;
    min-width: 600px;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.more-btn {
    background-color: #28a745;
    border: none;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 3px;
    transition: background 0.2s ease;
}

.more-btn:hover {
    background-color: #218838;
}

/* 
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px 25px;
    border-radius: 10px;
    width: 450px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    font-family: "Poppins", sans-serif;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.close {
    font-size: 22px;
    cursor: pointer;
    color: #444;
    font-weight: bold;
} */

.close:hover {
    color: #000;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modal-table th,
.modal-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.modal-table th {
    background: #007bff;
    color: #fff;
}
