﻿@media print {
    .sticky-col {
        position: static !important;
        left: auto !important;
        z-index: auto !important;
    }
}

.color-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.total-records {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.25;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    background-color: #fdfdb2 !important;
    outline: none;
}

.dark-style input:not([type="checkbox"]):not([type="radio"]):focus,
.dark-style select:focus,
.dark-style textarea:focus {
    background-color: #292c32 !important;
}



/* Report Header Responsive Styles */
.highlight-error {
    background-color: #ffebee !important;
    border: 2px solid #f44336 !important;
}

.report-header-container {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding: 0 15px;
}

    .report-header-container .report-heading {
        margin-bottom: 2rem;
    }

    .report-header-container .report-title {
        line-height: 1.0;
        margin-bottom: 0.3rem;
        font-weight: bold;
        word-wrap: break-word;
        hyphens: auto;
    }

    .report-header-container .report-subtitle {
        line-height: 0.9;
        font-size: 1.125rem;
        margin-top: 0.3rem;
        margin-bottom: 0.3rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .report-header-container .report-info {
        line-height: 0.9;
        font-size: 1.125rem;
        margin-top: 0.3rem;
        margin-bottom: 0.3rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .report-header-container .report-detail {
        line-height: 0.9;
        margin-top: 0.3rem;
        margin-bottom: 0.3rem;
        word-wrap: break-word;
        hyphens: auto;
    }

/* Mobile Responsive Styles */
@media (max-width: 767.98px) {
    .report-header-container {
        padding: 0 10px;
        margin-top: 0.5rem;
    }

        .report-header-container .report-title {
            font-size: 1.5rem;
            line-height: 1.0;
            margin-bottom: 0.3rem;
        }

        .report-header-container .report-subtitle {
            font-size: 1rem;
            margin-top: 0.3rem;
            margin-bottom: 0.2rem;
        }

        .report-header-container .report-info {
            font-size: 1rem;
            margin-top: 0.3rem;
            margin-bottom: 0.2rem;
        }

        .report-header-container .report-detail {
            font-size: 0.95rem;
            margin-top: 0.3rem;
            margin-bottom: 0.2rem;
        }
}

/* Extra Small Mobile Devices */
@media (max-width: 575.98px) {
    .report-header-container {
        padding: 0 8px;
    }

        .report-header-container .report-title {
            font-size: 1.25rem;
            line-height: 1.4;
        }

        .report-header-container .report-subtitle {
            font-size: 0.95rem;
        }

        .report-header-container .report-info {
            font-size: 0.95rem;
        }

        .report-header-container .report-detail {
            font-size: 0.9rem;
        }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .report-header-container .report-title {
        font-size: 1.75rem;
    }

    .report-header-container .report-subtitle {
        font-size: 1.1rem;
    }

    .report-header-container .report-info {
        font-size: 1.1rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .report-header-container .report-title {
        font-size: 2.25rem;
    }

    .report-header-container .report-subtitle {
        font-size: 1.25rem;
    }

    .report-header-container .report-info {
        font-size: 1.25rem;
    }
}

.fonepay-button {
    background-color: #bf0000 !important;
    border-color: #a80606 !important;
    color: white !important;
}

.fonepay-timer {
    font-size: 32px;
    font-family: fantasy;
}

.fonepay-image {
    margin-right: 52px;
}

.fonepay-title {
    font-size: 20px;
    margin-top: 6px;
    margin-left: 11px;
    font-weight: bolder;
    font-family: sans-serif;
}

#qrcode img {
    border-end-end-radius: 39px;
    border: 5px solid;
    border-start-start-radius: 39px;
}

.fonepay-amount {
    left: 83px;
    position: absolute;
    background-color: #337ab7;
    margin-top: -21px;
    padding: 0;
    padding: 0px 5px 0 4px;
    border-radius: 8px;
    color: white;
}

.fonepay-qr {
    margin-top: 20px;
}

.fonepay-waiting-text {
    font-size: 20px;
    color: #337ab7;
    font-weight: 700;
}

.qr-instruction-text {
    font-size: 20px;
    color: #000000;
    font-weight: 700;
}

.qr-instruction-text {
    font-size: 20px;
    color: #000000;
    font-weight: 700;
}

.fonepay-success {
    font-size: 129px;
    position: absolute;
    top: 119px;
    /*display: none !important;*/
    opacity: 0;
}

.fonepay-qr img {
    padding: 10px;
}


tr.focused-row-manual {
    background-color: #4a6bff3d;
    cursor: pointer;
}

    tr.focused-row-manual td {
        border: 1px solid #4a6bff;
        border-right: none;
    }

        tr.focused-row-manual td:first-child {
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
        }

        tr.focused-row-manual td:last-child {
            border-right: 1px solid #4a6bff;
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
        }

.dark-style .note-editable {
    background-color: #242936;
    color: white;
}

.dark-style .note-toolbar {
    background-color: #242936;
}

.dark-style .note-btn {
    /*    background-color: #48536f;*/
    background-color: #344260;
    color: white;
}


.dx-item-content.dx-list-item-content a.dx-link {
    display: block;
    width: 100%;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

#FeeInvoiceTable th:nth-child(1),
#FeeInvoiceTable th:nth-child(2),
#FeeInvoiceTable th:nth-child(3),
#FeeInvoiceTable td:nth-child(1),
#FeeInvoiceTable td:nth-child(2),
#FeeInvoiceTable td:nth-child(3) {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: var(--bs-card-table-col1-color);
}

#FeeInvoiceTable th:nth-child(2),
#FeeInvoiceTable td:nth-child(2) {
    left: 40px;
}

#FeeInvoiceTable th:nth-child(3),
#FeeInvoiceTable td:nth-child(3) {
    left: 240px;
}

#FeeInvoiceTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--bs-card-table-col1-color);
}

#FeeInvoiceTable th,
#FeeInvoiceTable td {
    background-color: inherit;
}

.keyword-item {
    padding: 10px;
    margin: 2px;
}

.tablesorter-header {
    background-repeat: no-repeat;
    background-position: center right;
    padding-right: 20px;
    cursor: pointer;
}

.tablesorter-headerAsc:after {
    content: '▲';
    color: burlywood;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
}

.tablesorter-headerDesc:after {
    content: '▼';
    color: burlywood;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
}

.tablesorter-header {
    position: relative;
}


/* Light mode styles */
#notificationGrid .notification-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    margin: 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#notificationGrid .notification-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}


.notification-detail {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

#notificationGrid .notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #f0f0f0;
    padding: 8px;
    margin-top: 8px;
}

#notificationGrid .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

#notificationGrid .status-new {
    background: #e3f2fd;
    color: #1976d2;
}

#notificationGrid .status-seen {
    background: #fff3e0;
    color: #f57c00;
}

#notificationGrid .status-read {
    background: #e8f5e8;
    color: #388e3c;
}

#notificationGrid .date-info {
    font-size: 12px;
    color: #9e9e9e;
    display: flex;
    align-items: center;
    gap: 4px;
}

#notificationGrid .student-info {
    font-size: 12px;
    color: #546e7a;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#notificationGrid .grid-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

#notificationGrid .grid-title {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

#notificationGrid .dx-scrollable-scrollbar {
    width: 8px;
}

#notificationGrid .dx-scrollable-scroll {
    background: #ccc;
    border-radius: 4px;
}

/* Dark mode styles */
.dark-style #notificationGrid .notification-card,
.light-style #notificationGrid .notification-card {
    border: 1px solid #2d3748;
    background: #2d3748;
}

.dark-style #notificationGrid .notification-card {
    border: 1px solid #4a5568;
    background: #2d3748;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dark-style #notificationGrid .notification-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #f7fafc;
}

.dark-style #notificationGrid .notification-detail {
    color: #cbd5e0;
}

.dark-style #notificationGrid .notification-footer {
    border-top: 1px solid #4a5568;
}

.dark-style #notificationGrid .status-new {
    background: #2b6cb0;
    color: #ebf8ff;
}

.dark-style #notificationGrid .status-seen {
    background: #9c4221;
    color: #fffaf0;
}

.dark-style #notificationGrid .status-read {
    background: #2f855a;
    color: #f0fff4;
}

.dark-style #notificationGrid .date-info {
    color: #a0aec0;
}

.dark-style #notificationGrid .student-info {
    color: #e2e8f0;
    background: #4a5568;
}

.dark-style #notificationGrid .grid-container {
    background: #1a202c;
}

.dark-style #notificationGrid .grid-title {
    color: #f7fafc;
}

.dark-style #notificationGrid .dx-scrollable-scroll {
    background: #718096;
}

/* Light mode override (in case you need to be explicit) */
.light-style #notificationGrid .notification-card {
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.light-style #notificationGrid .notification-detail {
    color: #6c757d;
    padding: 5px 14px;
}

.light-style #notificationGrid .grid-container {
    background: #f8f9fa;
}

.light-style #notificationGrid .grid-title {
    color: #333;
}

.attendance-container {
    min-height: 100vh;
    padding: 20px 0;
}

.subject-name {
    font-weight: 600;
}

.stats-card {
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.light-style .attendance-container {
    background: linear-gradient( 135deg, rgba(106, 17, 203, 0.7) 0%, rgba(37, 117, 252, 0.6) 100% );
    backdrop-filter: blur(2px);
}

.light-style .stats-card {
    background: linear-gradient(45deg, rgb(225 196 255 / 50%), rgb(61 107 184 / 50%));
    backdrop-filter: blur(8px);
    border: 1px solid rgb(219 182 182 / 20%);
}

.light-style .subject-name {
    color: #495057;
}

.light-style .attendance-high {
    background-color: #d4edda !important;
    color: #155724;
    font-weight: bold;
}

.light-style .attendance-medium {
    background-color: #fff3cd !important;
    color: #856404;
    font-weight: bold;
}

.light-style .attendance-low {
    background-color: #f8d7da !important;
    color: #721c24;
    font-weight: bold;
}

.dark-style .attendance-container {
    background: linear-gradient(135deg, #2c3e50 0%, #4a148c 100%);
}

.dark-style .subject-name {
    color: #e0e0e0;
}

.dark-style .stats-card {
    background: linear-gradient(45deg, #4a148c, #2c3e50);
    color: white;
}

.dark-style .attendance-high {
    background-color: rgba(40, 167, 69, 0.2) !important;
    color: #a3e9a8;
    font-weight: bold;
}

.dark-style .attendance-medium {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffe082;
    font-weight: bold;
}

.dark-style .attendance-low {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #f5a3a9;
    font-weight: bold;
}


.light-style .table-custom {
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: auto;
    width: 100%;
    background-color: #fff;
}

    .light-style .table-custom thead th {
        background-color: #3b5998;
        color: white !important;
        font-weight: 600;
        border: 1px solid #2a4175;
        padding: 12px 8px;
        text-transform: uppercase;
        font-size: 0.9rem;
    }

    .light-style .table-custom thead tr:nth-child(2) th {
        background-color: #4d70b5;
        color: white;
        border: 1px solid #2a4175;
        padding: 10px 6px;
    }

    .light-style .table-custom tbody td:first-child,
    .light-style .table-custom thead th:first-child {
        background-color: #e9ecf3;
        font-weight: 600;
        border-right: 2px solid #3b5998;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }

    .light-style .table-custom thead th:first-child {
        background-color: #3b5998;
    }

    .light-style .table-custom tbody tr:nth-child(even) td:first-child {
        background-color: #e3e8f0;
    }

    .light-style .table-custom tbody tr:hover td:first-child {
        background-color: #dce5f5;
    }

    .light-style .table-custom td {
        border: 1px solid #d1d9e6;
        padding: 8px;
    }

.light-style .grade-header {
    font-size: 0.85rem;
    line-height: 1.4;
}

.light-style .table-custom tbody tr:nth-child(even) {
    /*background-color: #f8f9fb;*/
}

.light-style .table-custom tbody tr:hover {
    background-color: #e8f0fe;
}


.light-style .table-custom input[type="text"] {
    border: 1px solid #b8c4d9;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

    .light-style .table-custom input[type="text"]:focus {
        border-color: #3b5998;
        box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.25);
        outline: none;
    }

    .light-style .table-custom input[type="text"]:disabled {
        background-color: #f2f4f8;
        border-color: #d1d9e6;
    }

.dark-style .table-custom {
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: auto;
    width: 100%;
    background-color: #283144;
}

    .dark-style .table-custom thead th {
        background-color: #202938;
        color: #e0e6ed;
        font-weight: 600;
        border: 1px solid #0f1419;
        padding: 12px 8px;
        text-transform: uppercase;
        font-size: 0.9rem;
    }

    .dark-style .table-custom thead tr:nth-child(2) th {
        /*background-color: #202938;*/
        color: #e0e6ed;
        border: 1px solid #0f1419;
        padding: 10px 6px;
    }

    .dark-style .table-custom tbody td:first-child,
    .dark-style .table-custom thead th:first-child {
        background-color: #3a4758;
        font-weight: 600;
        border-right: 2px solid #202938;
        box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    }

    .dark-style .table-custom thead th:first-child {
        background-color: #202938;
    }

    .dark-style .table-custom tbody tr:nth-child(even) td:first-child {
        background-color: #3f4c5f;
    }

    .dark-style .table-custom tbody tr:hover td:first-child {
        background-color: #4a5869;
    }

    .dark-style .table-custom td {
        border: 1px solid #3f4c5f;
        padding: 8px;
        vertical-align: middle;
        color: #e0e6ed;
    }

    .dark-style .table-custom tbody tr:nth-child(even) {
        background-color: #2d3a4d;
    }

    .dark-style .table-custom tbody tr:hover {
        background-color: #364152;
    }



    .dark-style .table-custom input[type="text"] {
        border: 1px solid #4a5869;
        border-radius: 4px;
        transition: border-color 0.2s ease;
        background-color: #3a4758;
        color: #e0e6ed;
    }

        .dark-style .table-custom input[type="text"]:focus {
            border-color: #5a7a9a;
            box-shadow: 0 0 0 2px rgba(90, 122, 154, 0.25);
            outline: none;
        }

        .dark-style .table-custom input[type="text"]:disabled {
            background-color: #283144;
            border-color: #3f4c5f;
            color: #9ca3af;
        }

.ai-analysis-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .ai-analysis-btn:hover {
        transform: scale(1.05);
        box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 10px;
    }

    .ai-analysis-btn.generating {
        animation: aiGenerating 1.5s infinite;
    }

@keyframes aiGenerating {
    0% {
        transform: scale(1);
        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
    }

    25% {
        transform: scale(1.05);
        box-shadow: rgba(33, 150, 243, 0.4) 0px 0px 15px;
    }

    50% {
        transform: scale(1.1);
        box-shadow: rgba(33, 150, 243, 0.6) 0px 0px 20px;
    }

    75% {
        transform: scale(1.05);
        box-shadow: rgba(33, 150, 243, 0.4) 0px 0px 15px;
    }

    100% {
        transform: scale(1);
        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
    }
}

.ai-analysis-btn.generating i {
    animation: iconSpin 2s linear infinite;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-analysis-btn.generating-pulse {
    animation: aiPulse 1s infinite;
}

@keyframes aiPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: rgba(33, 150, 243, 0.6) 0px 0px 20px;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading dots effect (alternative) */
.ai-analysis-btn.generating-dots::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: loadingDots 1.4s infinite linear;
    transform: translateX(-50%);
}

@keyframes loadingDots {
    0%, 20% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
}

.ai-analysis-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ai-analysis-btn.success {
    animation: successPulse 0.6s ease-out;
    background-color: #28a745 !important;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        box-shadow: rgba(40, 167, 69, 0.6) 0px 0px 20px;
    }

    100% {
        transform: scale(1);
    }
}


.nav-link.mega-dropdown-link {
    display: flex;
    justify-content: start;
}


.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    transform-origin: center;
    max-height: 8.4rem;
}


@media (max-width: 480px) {
    .config-select {
        margin-bottom: 40px !important;
        margin-left: -28px !important;
    }
}


#vertival-suject-nav button {
    justify-content: start;
}

.light-style .twitter-typeahead .tt-menu {
    min-width: 32rem !important;
}

.requirement {
    list-style-type: none;
    font-size: 14px;
    margin: 1px 0 1px -30px;
    position: relative;
    padding-left: 22px;
}

.fulfilled::before {
    content: "✓";
    color: #51c551;
    font-weight: 700;
    position: absolute;
    left: 0;
}

.unfulfilled::before {
    content: "✗";
    color: #ff5b5c;
    font-weight: 700;
    position: absolute;
    left: 0;
}

.fulfilled {
    color: #51c551;
    font-weight: 500;
}

.unfulfilled {
    color: #ff5b5c;
    font-weight: normal;
}

.navbar-search {
    width: 380px !important;
    height: 38px !important;
    background-color: #f5f7fa !important;
    border: 1px solid #3b588f !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem 0.5rem 2.5rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23777' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 1rem center !important;
    background-size: 14px !important;
}

    .navbar-search:focus {
        background-color: #ffffff !important;
        border-color: #5a8dee !important;
        border-width: 2px !important;
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.25) !important;
    }

    .navbar-search::placeholder {
        color: #99a1b7 !important;
        font-style: italic !important;
    }

.dark-style .navbar-search {
    background-color: #344260 !important;
    border-color: #3a4257 !important;
    color: #e0e4eb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a3a4cc' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") !important;
}

    .dark-style .navbar-search:focus {
        background-color: #323b4e !important;
        border-color: #5a8dee !important;
        box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.3) !important;
    }

    .dark-style .navbar-search::placeholder {
        color: #8d91a6 !important;
    }

.tt-menu {
    width: 100%;
    margin-top: 4px;
    padding: 6px 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    transition: all 0.2s ease;
}

.tt-dataset {
    padding: 2px 0;
}

    .tt-dataset a.suggestion {
        display: flex;
        justify-content: space-between;
        padding: 8px 14px;
        font-size: 13px;
        line-height: 1.4;
        cursor: pointer;
        border-left: 3px solid transparent;
        text-decoration: none;
        color: inherit;
        transition: background 0.2s, border-color 0.2s;
    }

        .tt-dataset a.suggestion:hover,
        .tt-dataset a.suggestion.tt-cursor,
        .tt-dataset a.active {
            background-color: #eef3fd !important;
            border-left-color: #5a8dee !important;
            color: #2a4a85;
        }

.tt-highlight {
    font-weight: 600;
    color: #5a8dee;
    background-color: rgba(90, 141, 238, 0.1);
    padding: 0 2px;
    border-radius: 2px;
}

.dark-style .tt-menu {
    background-color: #2b2c40;
    border-color: #444564;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-style .tt-dataset a.suggestion:hover,
.dark-style .tt-dataset a.suggestion.tt-cursor {
    background-color: rgba(90, 141, 238, 0.15) !important;
    border-left-color: #5a8dee !important;
    color: #cfd8ff;
}

.dark-style .tt-empty {
    background-color: #33354a;
    color: #aaa;
}

.dark-style .tt-highlight {
    background-color: rgba(90, 141, 238, 0.2);
    color: #8faeff;
}


.dark-style .tt-menu {
    background-color: #2b2c40;
    border-color: #444564;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-style .tt-suggestion:hover,
.dark-style .tt-suggestion.tt-cursor {
    background-color: rgba(90, 141, 238, 0.15) !important;
    border-left-color: #5a8dee !important;
    color: #cfd8ff;
}

.dark-style .tt-empty {
    background-color: #33354a;
    color: #aaa;
}

.dark-style .tt-dataset-header {
    background-color: #393b57;
    color: #aaa;
}

.dark-style .tt-highlight {
    background-color: rgba(90, 141, 238, 0.2);
    color: #8faeff;
}


.dark-style .tt-suggestion {
    color: #e0e0e0;
}

    .dark-style .tt-dataset a:hover,
    .dark-style .tt-suggestion:hover {
        background-color: #34354a !important;
        border-left-color: #696cff !important;
    }

    .dark-style .tt-dataset a.active,
    .dark-style .tt-suggestion.tt-cursor {
        background-color: #3a3b50 !important;
        border-left-color: #7a7dff !important;
        color: #a5a6ff;
    }

.dark-style .tt-empty {
    color: #a3a4cc;
    background-color: #343549;
}

.dark-style .tt-highlight {
    color: #9fa1ff;
    background-color: rgba(105, 108, 255, 0.15);
}

.dark-style .tt-dataset-header {
    color: #a3a4cc;
    background-color: #343549;
}

/* Animations for smoother experience */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tt-menu {
    animation: fadeIn 0.2s ease-out;
}

.mt-23 {
    margin-top: 23px !important;
}

.mt-21 {
    margin-top: 21px !important;
}

.mt-28 {
    margin-top: 28px !important;
}

.sms-fixed-div {
    max-height: calc(45vh + 105px);
    overflow: auto;
}
.fixed-div {
    max-height: calc(65vh + 40px);
    overflow: auto;
}

    .fixed-div .fixed-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

.typing-infinite {
    display: inline-block;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #000;
    animation: typing 3s steps(30) infinite, blink-caret 0.5s step-end infinite;
}

.mx-200 {
    max-width: 200px !important;
}

.mx-280 {
    max-width: 280px !important;
}

.mx-300 {
    max-width: 300px !important;
}

@keyframes typing {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    55% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }

    50% {
        border-color: #000;
    }
}

.card-info-div {
    margin-bottom: 10px;
}

[data-type="mega-menu"],
[data-type="horizontal-menu"] {
    display: none;
}

@media (max-width: 991px) {
    [data-type="horizontal-menu"] {
        display: block !important;
    }
}

@media (min-width: 992px) {
    [data-type="mega-menu"] {
        display: block !important;
    }
}

.menu-item {
    font-size: 14px;
}

.mega-menu-horizontal .menu-item .menu-link {
    padding: 0.565rem 10px !important;
}

.dropdown-toggle::after {
    margin-top: -0.2em !important;
    margin-left: 0.4em !important;
    width: 0.45em;
    height: 0.45em;
    border: 1.5px solid;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}


#report-content {
    max-height: 65vh;
    overflow: auto;
}

    /* Sticky header row */
    #report-content thead th {
        position: sticky;
        top: -1px;
        z-index: 2;
        background-color: var(--bs-table-bg, #fff);
    }

    /* Additional styling for sticky columns */
    #report-content .sticky-col {
        border-right: 1px solid var(--bs-border-color, #dee2e6);
    }

        /* Optional: Add shadow to show sticky columns better */
        #report-content .sticky-col::after {
            content: '';
            position: absolute;
            top: 0;
            right: -1px;
            bottom: 0;
            width: 1px;
            background: linear-gradient(to right, rgba(0,0,0,0.1) 0%, transparent 100% );
            pointer-events: none;
        }

    /* Ensure table layout is stable */
    #report-content table {
        table-layout: auto;
        border-spacing: 0;
    }

.menu-head-name {
    color: #f17c20;
}

/*Menu*/
/* Base styles */
.nav-link.mega-dropdown-link {
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

    .nav-link.mega-dropdown-link i {
        margin-top: 2px;
    }



/* Light mode styles */
.light-style .nav-link.mega-dropdown-link.active {
    color: rgb(241, 124, 32);
    font-weight: 500;
    position: relative;
    padding-right: 28px;
    background: linear-gradient(135deg, rgba(241, 124, 32, 0.1), rgba(241, 124, 32, 0.05));
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(241, 124, 32, 0.15);
}

    .light-style .nav-link.mega-dropdown-link.active::after {
        content: '•';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        font-size: 1.4em;
        color: rgb(241, 124, 32);
    }

    .light-style .nav-link.mega-dropdown-link.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 50%, rgba(241, 124, 32, 0.2) 0%, transparent 70%);
        opacity: 0.7;
        pointer-events: none;
    }

.light-style li.nav-item.mega-nav-item:hover {
    background: linear-gradient(135deg, rgba(241, 124, 32, 0.1), rgba(241, 124, 32, 0.05));
}

    .light-style li.nav-item.mega-nav-item:hover > a {
        color: #5a4b31;
        font-weight: 500;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    }

.light-style li.nav-item.mega-nav-item::before {
    background: linear-gradient(135deg, rgba(241, 124, 32, 0.3), rgba(241, 124, 32, 0.2));
}

/* Dark mode styles */
.dark-style .nav-link.mega-dropdown-link.active {
    color: rgb(255, 153, 71);
    font-weight: 500;
    position: relative;
    padding-right: 28px;
    background: linear-gradient(135deg, rgba(241, 124, 32, 0.15), rgba(241, 124, 32, 0.1));
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(241, 124, 32, 0.2);
}

    .dark-style .nav-link.mega-dropdown-link.active::after {
        content: '•';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        font-size: 1.4em;
        color: rgb(255, 153, 71);
    }

    .dark-style .nav-link.mega-dropdown-link.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 50%, rgba(241, 124, 32, 0.25) 0%, transparent 70%);
        opacity: 0.7;
        pointer-events: none;
    }

.dark-style li.nav-item.mega-nav-item:hover {
    background: linear-gradient(135deg, rgba(241, 124, 32, 0.15), rgba(241, 124, 32, 0.1));
}

    .dark-style li.nav-item.mega-nav-item:hover > a {
        color: #ff9947;
        font-weight: 500;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

.dark-style li.nav-item.mega-nav-item::before {
    background: linear-gradient(135deg, rgba(241, 124, 32, 0.25), rgba(241, 124, 32, 0.15));
}

.dark-style .form-group label {
    color: #a1b0cb;
}

/* Shared styles */
.nav-link.mega-dropdown-link.active::after {
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

li.nav-item.mega-nav-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    li.nav-item.mega-nav-item > a {
        transition: color 0.3s ease;
        position: relative;
        z-index: 2;
        padding-right: 28px;
    }

        li.nav-item.mega-nav-item > a::after {
            content: '→';
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%) translateX(10px);
            opacity: 0;
            transition: all 0.3s ease;
            font-size: 1.1em;
        }
    /*
    li.nav-item.mega-nav-item:hover > a::after {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }*/

    li.nav-item.mega-nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    li.nav-item.mega-nav-item:hover::before {
        opacity: 0.6;
    }

    li.nav-item.mega-nav-item:hover::after {
        width: 200%;
        left: -50%;
    }

    /* Pin button styles */
    li.nav-item.mega-nav-item > a {
        padding-right: 60px; /* Increase from 28px to make room for pin button */
    }

.dark-style .pin-button {
    color: white;
}

.pin-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    padding: 4px;
    border-radius: 4px;
    color: #666;
    font-size: 16px;
}

li.nav-item.mega-nav-item:hover .pin-button {
    opacity: 1;
}

.pin-button:hover {
    background: rgba(241, 124, 32, 0.1);
    color: #f17c20;
}

.pin-button.pinned {
    opacity: 1;
    color: #f17c20;
}

.light-style .menu .app-brand {
    height: 64px;
}

.mega-dropdown-link {
    margin: -6px 0;
}

.mega-dropdown .dropdown-menu {
    height: 70vh;
    z-index: 9999 !important;
    padding-bottom: 10px !important;
    margin-left: 2% !important;
    width: 96% !important;
    border: 1px solid var(--bs-border-color) !important;
    box-shadow: 0 1.25rem 1rem rgba(0, 0, 0, 0.25) !important;
    overflow-y: hidden;
}

.mx-500 {
    max-width: 500px !important;
}

.animated-border {
    position: relative;
    padding: 7px;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    font-family: Arial, sans-serif;
}

    .animated-border::before {
        content: "";
        position: absolute;
        background-color: lightblue;
        border-radius: 50%;
        animation: moveBorder 4s linear 2;
    }

@keyframes moveBorder {
    0% {
        width: 10px;
        height: 1px;
        top: 0;
        left: 0;
    }

    25% {
        width: 10px;
        height: 1px;
        top: 0;
        left: 100%;
        transform: translateX(-100%);
    }

    26% {
        width: 1px;
        height: 10px;
        top: 0;
        left: 100%;
    }

    50% {
        width: 1px;
        height: 10px;
        top: 100%;
        left: 100%;
        transform: translateY(-100%);
    }

    51% {
        width: 10px;
        height: 1px;
        top: 100%;
        left: 100%;
        transform: translate(-100%, -100%);
    }

    75% {
        width: 10px;
        height: 1px;
        top: 100%;
        left: 0;
        transform: translateY(-100%);
    }

    76% {
        width: 1px;
        height: 10px;
        top: 100%;
        left: 0;
        transform: translateY(-100%);
    }

    100% {
        width: 1px;
        height: 10px;
        top: 0;
        left: 0;
    }
}

/*animated border end*/

.dx-overlay-wrapper.dx-loadpanel-wrapper {
    z-index: 9999 !important
}

.pt-20 {
    padding-top: 20px;
}

.disable {
    pointer-events: none;
    background-color: var(--bs-card-table-input-button-disabled-color) !important;
}

.counting-span {
    background-color: var(--bs-card-table-counting-span);
    border-radius: 6px;
    padding-inline: 4px
}

.page-title-0 {
    padding-top: 5px;
    color: #f17c20;
    font-size: 22px;
    background: linear-gradient(to top, #f17c20 1%, var(--bs-card-bg) 8%);
    margin-left: -5px;
}

.page-title-blue {
    padding-top: 5px;
    color: cornflowerblue;
    font-size: 20px;
}

.readonly-field {
    cursor: not-allowed;
    pointer-events: none;
    background-color: #efefef !important;
}

.pl-8 {
    padding-left: 8px;
}

.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid black;
    animation: typing 1.5s steps(15) 1, blink 0.5s step-end infinite alternate;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 9ch;
    }
}

@keyframes blink {
    from {
        border-color: var(--bs-card-bg);
    }

    to {
        border-color: transparent;
    }
}


.btn-light.show.dropdown-toggle {
    color: #263c55 !important;
    background-color: transparent !important;
    border-color: inherit !important;
}

html:not([dir=rtl]) .bootstrap-select .dropdown-toggle {
    padding: 0.535rem 1.975rem 0.335rem 0.55rem;
}

.btn.dropdown-toggle.btn-light {
    background-color: var(--bs-card-bg) !important;
    box-shadow: none;
}

tr.error-row {
    background-color: #ffe5e5 !important;
    color: #ff5b5c !important;
}

.error-detail-icon {
    float: right;
    font-size: 9px;
    top: 3px;
    right: 4px;
}

.import-body tr td {
    position: relative;
}

.custom-item > img {
    height: 30px;
    width: 40px;
    float: left;
    margin-top: 2px;
}

.custom-item > div.product-name {
    margin-left: 40px;
    line-height: 34px;
    font-size: 14px;
}

body .custom-item input {
    background-color: transparent;
}

body .dx-popup-content .custom-item {
    padding-top: 7px;
    padding-bottom: 8px;
}

.tag-img {
    height: 30px;
    margin-right: 5px;
    border-radius: 50%;
}

.tag-text {
    font-size: 12px;
    font-weight: bold;
}

.samaya {
    color: #f17c20;
}

.bg-samaya {
    background-color: #f17c20;
}


.student-name-profile-edit {
    text-transform: uppercase;
    color: #f17c20;
    font-size: 20px;
}

.student-list-view-btn {
    margin-bottom: -43px;
    position: relative;
}

.config-select {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 307px;
    z-index: 1;
}

    .config-select .select2-container {
        width: 88% !important;
    }

.grid-save {
    position: fixed;
    bottom: 1rem;
    right: 6.275rem;
    z-index: 1080;
}

.grid-panel-close {
    position: fixed;
    bottom: 1rem;
    right: 0.875rem;
    z-index: 1080;
}

.grid-config-edit {
    margin-top: 0px !important;
    height: 38px !important;
    margin-left: -2px;
    z-index: 2;
}

.grid-box {
    border: 1px solid #ddd;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 15px;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.grid-list-item {
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 10px 15px !important;
    margin-bottom: 5px;
    background-color: #fff !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .grid-list-item:hover {
        box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

    .grid-list-item .icon {
        color: #6c757d;
        transition: color 0.3s ease, transform 0.3s ease;
    }

        .grid-list-item .icon:hover {
            color: #5a8dee;
            cursor: pointer;
            transform: scale(1.2);
        }

.select2-add-new {
    padding: 6px;
    height: 20px;
    display: inline-table;
    text-align: center;
    width: 100%;
    background-color: #5a93d942;
    font-style: italic;
}

.right-panel {
    background: #fff;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0 !important;
    opacity: 1;
    border-left: 1px solid #e3dcdc;
    max-width: 100% !important;
    z-index: 1400;
    transform: inherit !important;
    box-shadow: 0 5px 20px 0 rgba(21, 27, 38, .08);
    box-shadow: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18);
}

    .right-panel.full-screen {
        width: 100% !important;
        height: 100% !important;
    }

    .right-panel .box-body {
        padding: 10px 20px;
        padding-bottom: 50px;
        position: relative;
    }

    .right-panel.hide {
        z-index: -1;
        opacity: 0;
        z-index: -1 !important;
    }

    .right-panel .title {
        min-height: 40px;
        border-bottom: 1px solid #e7dada;
        padding: 0;
        position: relative;
        height: auto;
    }

        .right-panel .title h3 {
            font-size: 16px;
            padding: 10px 0;
            margin: 0;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            text-align: center;
            padding-top: 15px;
            font-weight: 500;
            user-select: none;
        }

    .right-panel .divider {
        margin: 5px 0;
    }

    .right-panel .section-header span {
        font-size: 16px;
        color: #2E6EA4 !important;
        font-weight: 500;
        text-transform: none !important;
    }


.close-right-panel {
    position: absolute;
    right: 6px;
    top: 8px;
    height: 28px;
    width: 30px;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 200;
}

    .close-right-panel:hover {
        background-color: rgba(9, 30, 66, .08);
        color: #42526e;
    }

    .close-right-panel .close-icon {
        width: 21px;
        height: 21px;
        background-position: 3px 3px;
        background-size: 15px 15px;
        padding: 3px;
        font-size: 15px;
        text-align: center;
        line-height: 15px;
    }

.right-panel.show {
    opacity: 1;
}

.right-panel .child-menu {
    padding: 8px 10px;
    margin-bottom: 0;
    transition: all 0.1s;
    cursor: pointer;
    border-bottom: 1px solid #ebdede;
    font-size: 12px;
}

    .right-panel .child-menu.width-half {
        display: inline-block;
        width: 50%;
    }

    .right-panel .child-menu:active {
        background-color: #f1e6e6;
    }

    .right-panel .child-menu:hover {
        background-color: #ebebf3;
    }

    .right-panel .child-menu .text {
        color: #5d5252;
        font-weight: 500;
        margin-left: 6px;
        display: inline-block;
    }

.right-panel .fwd-icon {
    float: right;
    font-size: 17px;
    padding-top: 2px;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.right-panel .child-menu:hover .fwd-icon {
    opacity: 0.8;
}

.right-panel .child-menu .fa {
    opacity: 0.7;
}

.right-panel-child-content {
    position: absolute;
    top: 0px;
    width: 100%;
    background: #fff;
    height: 100%;
    left: 0;
    z-index: 0;
}

.right-panel-left-controls {
    position: absolute;
    top: 10px;
    left: 0;
    padding: 5px;
}

.close-right-child-panel {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: #42526e;
}

.resize-right-panel {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: #42526e;
    margin-left: 3px;
}

    .resize-right-panel .bx {
        font-size: 1rem;
    }

.right-panel-child-body {
    padding: 5px 18px;
    min-height: 100vh;
    overflow: auto;
    height: 100%;
    padding-bottom: 80px;
    background: #fff;
}

    .right-panel-child-body.mobile-view .dx-scrollable-container > .dx-scrollable-content {
        margin-top: 40px;
    }


.right-panel .sub-title {
    border-bottom: 1px solid #2c6de9;
    padding: 8px;
    margin-bottom: 5px;
}

.right-panel .dx-resizable-handle.dx-resizable-handle-left:hover,
.right-panel.dx-resizable-resizing .dx-resizable-handle.dx-resizable-handle-left ::after hover {
    background-color: #5a8dee !important;
}

.right-panel-shading {
    position: fixed;
    left: 0px;
    top: 0px;
    transform: translate(0px, 0px);
    transition: all 0s ease 0s;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1399;
}

    .right-panel-shading.overlapped {
        background-color: rgba(0, 0, 0, 0);
    }

/*------*/
@media screen and (max-width: 767px) {
    .client-text {
        display: none;
    }
}

.dropup, .dropend, .dropdown, .dropstart, .dropup-center, .dropdown-center {
    background-color: transparent !important;
}

.action-buttons-div {
    position: fixed;
    bottom: 12px;
    right: 47px;
    display: flex;
    flex-direction: row-reverse;
}

    .action-buttons-div button {
        margin-left: 10px;
    }


.dx-state-active .dx-link {
    color: white;
}

#template-customizer {
    z-index: 1500 !important
}

.dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item.dx-state-focused.notify-list {
    background-color: transparent;
    color: #fff;
}

.dx-item.dx-list-item.notify-list .dx-item-content.dx-list-item-content {
    padding: 1px 5px !important;
}


::-webkit-scrollbar {
    width: 0.9375rem;
}


.notification-heading {
    font-size: 13px;
    white-space: nowrap; /* Prevents the text from wrapping to the next line */
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-body {
    font-size: 10px;
    white-space: normal;
    text-overflow: ellipsis;
}

.grid-config {
    align-items: center;
    width: 43px;
    position: fixed;
    z-index: 99;
    right: -3px;
    top: 227px;
    -webkit-transition: all 0.1s linear 0.2s;
    -o-transition: all 0.1s linear 0.2s;
    transition: all 0.1s linear 0.2s;
    background-color: var(--bs-body-bg);
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
    height: 65px;
    cursor: pointer;
    padding-top: 0px;
}

    .grid-config:hover {
        opacity: 1;
    }

    .grid-config span {
        text-align: center;
        width: 28px;
        height: 28px;
        left: 6px;
        position: absolute;
        font-size: 17px;
        top: 10px;
    }


body {
    overflow-x: hidden !important
}

.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar {
    width: 8px;
    -webkit-border-radius: 7px;
}

::-webkit-scrollbar-thumb {
    border: 3px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    min-height: 18px;
    -webkit-border-radius: 7px;
    background-color: #69809a;
}

::-webkit-scrollbar-thumb {
    border: 1px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    min-height: 14px; /* Reduced from 18px */
    -webkit-border-radius: 5px; /* Reduced from 7px */
    background-color: #69809a;
}

/* Medium screens */
@media screen and (min-width: 768px) {
    ::-webkit-scrollbar-thumb {
        height: 5px;
        border: 2px solid rgba(0, 0, 0, 0);
    }
}

/* Large screens */
@media screen and (min-width: 1200px) {
    ::-webkit-scrollbar-thumb {
        height: 4px;
        border: 2px solid rgba(0, 0, 0, 0);
        -webkit-border-radius: 5px;
    }
}

/* Extra large screens */
@media screen and (min-width: 1600px) {
    ::-webkit-scrollbar-thumb {
        height: 3px;
        border: 1px solid rgba(0, 0, 0, 0);
        -webkit-border-radius: 4px;
    }
}

.field-validation-error {
    color: #ff5b5c;
}

span.input-validation-error {
    color: #ff5b5c;
}

.input-validation-error {
    border-color: #ff5b5c !important;
}

.field-validation-error {
    border-color: #ff5b5c !important;
}

.input-validation-error + .input-group-text {
    border-color: #ff5b5c !important;
    font-size: 11px !important;
}

.mt-btn {
    margin-top: 1.32rem !important;
}

.field-validation-error + .select2-selection {
    border-color: #ff5b5c !important;
}

.field-validation-error + .select2-container > .selection > .select2-selection {
    border-color: #ff5b5c !important;
}

.input-validation-error + .select2-selection {
    border-color: #ff5b5c !important;
}

.input-validation-error + .select2-container > .selection > .select2-selection {
    border-color: #ff5b5c !important;
}

#loading {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.4);
}

    #loading .sk-chase {
        width: 50px;
        height: 50px;
    }

/*#loading {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100vh;
    background: #fff9 url('/img/spinner.gif') no-repeat center center;
    z-index: 9999;
}*/

label.required-field::after {
    content: '*';
    margin-right: 3px;
    color: red;
}


.form-group label {
    margin-top: 9px;
    font-size: 0.8rem;
    color: #646464;
    text-transform: uppercase;
    letter-spacing: inherit;
}

.label-form-group {
    margin-top: 9px;
    font-size: 0.8rem;
    color: #646464;
    text-transform: uppercase;
    letter-spacing: inherit;
}


.dark-style .form-group label {
    color: #a1b0cb;
}

.light-style .menu .app-brand {
    height: 64px;
}

.bg-menu-theme.menu-horizontal .menu-inner .menu-item > .report-menu-div {
    height: auto;
    max-height: 183px;
    overflow: scroll
}

.dark-style .menu .app-brand {
    height: 64px;
}


.jconfirm {
    z-index: 9998;
}

.light-style .datepicker-dropdown {
    z-index: 9999 !important;
}

.dark-style .datepicker-dropdown {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

.jconfirm .jconfirm-box {
    background-color: var(--bs-body-bg) !important;
}

.jconfirm .jconfirm-light {
    background-color: var(--bs-body-bg) !important;
}

.jconfirm .jconfirm-box.loading:before {
    background-color: var(--bs-body-bg) !important;
}

.form-group {
    /*  display: flex;
      flex-wrap: wrap;*/
    margin-bottom: 10px;
    padding: 0 8px;
}

.page-title {
    padding-left: 26px;
    margin-top: 14px;
    margin-bottom: -15px;
    color: #f17c20;
    font-size: 22px;
}

button .fa {
    padding-right: 8px;
}

a .fa {
    padding-right: 8px;
}

.btn {
    height: 37px;
    margin-top: 7px;
}

.form-check-input[type='checkbox']:not(.check-inline) {
    margin-top: 10px !important;
}

.datagrid {
    margin-top: 10px;
}


::placeholder {
    opacity: 0.5 !important;
}

.misc-wrapper {
    min-height: 300px;
    text-align: center !important;
    margin-top: -18px;
}

.w-100p {
    width: 100px !important;
}

.w-200p {
    width: 200px !important;
}

.w-500p {
    width: 500px !important;
}

.bootstrap-select {
    margin-top: -8px;
}

label.dropdown-label {
    z-index: 2 !important;
}

.number-alignment {
    text-align: right;
}

.sticky-element {
    background-color: var(--bs-card-bg) !important
}

.dropdown-item {
    white-space: normal !important;
}

.dropdown-menu li {
    max-width: 500px;
}

    .dropdown-menu li a {
        padding: 7px 11px 6px 11px
    }

.bootstrap-select .dropdown-menu li a span.text {
    font-size: 14px;
}

.row-to-remove {
    background-color: #ebd6d6 !important;
}

.nav-tabs-custom {
    padding: 9px 7px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    border-radius: 4px;
}

/*Custom*/

.dx-header-row > td > .dx-datagrid-text-content {
    font-size: 14px !important;
}

    .dx-header-row > td > .dx-datagrid-text-content:not(.dx-sort-indicator):not(.dx-header-filter-indicator) {
        color: black !important;
    }

.dark-style .dx-header-row > td > .dx-datagrid-text-content:not(.dx-sort-indicator):not(.dx-header-filter-indicator) {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.dx-row.dx-column-lines.dx-header-row td {
    vertical-align: middle !important;
    background-color: #f2f2f2;
}

.dark-style .dx-row.dx-column-lines.dx-header-row td {
    vertical-align: middle !important;
    background-color: #252e42;
}

.dx-datagrid-search-panel .dx-texteditor-input, .dx-datagrid-filter-row .dx-texteditor-input {
    color: #ee5a5a;
    font-weight: 600;
}

.dx-datagrid .dx-datagrid-headers .dx-header-row > td:not(:has(.dx-header-filter-indicator)),
.dx-datagrid .dx-datagrid-headers .dx-header-filter:not(:has(.dx-header-filter-indicator)) {
    color: #ee5a5a;
    font-weight: 600;
    font-size: 13px;
}



.form-label {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: inherit !important;
    margin-bottom: 1px !important;
    margin-top: 4px;
}

.client-text {
    font-size: 1.45rem;
    padding-left: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 450px;
    padding-right: 2px;
}

@media only screen and (max-width: 600px) {
    .client-text {
        padding-left: 0px;
    }
}

.checkbox-container {
    display: inline;
    float: right;
    margin-right: 31px;
}

.jstree-anchor {
    width: 100%;
    padding: 2px;
}

.perm-check-label {
    position: absolute;
    top: 19px;
    font-size: 10px;
    font-weight: 800;
}

.permission-label {
    padding-right: 50px;
}

.jstree-wholerow {
    height: 44px !important;
}

.jstree-anchor {
    height: 44px !important;
}

.jstree-node {
    padding: 4px 0px !important;
}

.giga-add-btn {
    z-index: 2 !important;
}

.po-dash {
    background-color: #edf2f2;
    padding: 13px 9px;
    border-radius: 5px;
}

.dark-style .po-dash {
    background-color: #252b38;
    padding: 13px 9px;
    border-radius: 5px;
}

.nav.nav-tabs .nav-link.active {
    border-top-color: #5a8dee !important;
    border-top-width: 2px;
}

.dark-style .nav.nav-tabs .nav-link.active {
    border-top-color: #5a8dee;
    border-top-width: 2px;
}

.select2-selection.select2-selection--single {
    border: 1px solid #aea2a2 !important;
}

.light-style .select2-container--default.select2-container--disabled .select2-selection--single {
    border-color: #47484a !important;
}


.dark-style .select2-container--default.select2-container--disabled .select2-selection--single {
    border-color: #47484a !important;
}

.form-control:not(.bootstrap-select) {
    border: 1px solid #aea2a2;
}

.btn.dropdown-toggle.bs-placeholder {
    border: 1px solid #d4d8dd;
}

.btn-light:hover {
    color: #fff !important;
    border-color: #b7babe !important;
}


.light-style .select2-container--default .select2-selection__placeholder {
    color: unset;
}

.dark-style .select2-container--default .select2-selection__placeholder {
    color: unset;
}

.bootstrap-select .bs-placeholder.btn-light {
    background-color: var(--bs-card-bg) !important;
    border: 1px solid #aea2a2 !important;
    box-shadow: unset;
}

    .bootstrap-select .bs-placeholder.btn-light:hover {
        box-shadow: unset !important;
    }

.btn-light.show.dropdown-toggle {
    color: #263c55 !important;
    background-color: var(--bs-card-bg) !important;
    border: 1px solid #aea2a2 !important;
}

.field-validation-error + .btn.dropdown-toggle {
    border: 1px solid red;
}

.field-validation-error {
    color: #ff5b5c;
}

span.input-validation-error {
    color: #ff5b5c;
}

.input-validation-error {
    border-color: #ff5b5c !important;
}

.field-validation-error {
    border-color: #ff5b5c !important;
}

.input-validation-error + .input-group-text {
    border-color: #ff5b5c !important;
    font-size: 11px !important;
}

.mt-btn {
    margin-top: 1.56rem !important;
}

.field-validation-error + .select2-selection {
    border-color: #ff5b5c !important;
}

.field-validation-error + .select2-container > .selection > .select2-selection {
    border-color: #ff5b5c !important;
}

.input-validation-error + .select2-selection {
    border-color: #ff5b5c !important;
}

.input-validation-error + .select2-container > .selection > .select2-selection {
    border-color: #ff5b5c !important;
}

.bootstrap-select .dropdown-toggle {
    border: 1px solid #aea2a2 !important;
}

.hide-on-mobile {
    display: block;
}

@media screen and (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
}

.favorite-menu {
    align-items: center;
    width: 43px;
    position: fixed;
    z-index: 99;
    right: -3px;
    top: 129px;
    -webkit-transition: all 0.1s linear 0.2s;
    -o-transition: all 0.1s linear 0.2s;
    transition: all 0.1s linear 0.2s;
    background-color: var(--bs-body-bg);
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
    height: 65px;
    cursor: pointer;
    padding-top: 0px;
}

.btn-fav {
    padding: 3px;
    color: white !important;
    font-size: 18px;
    border-radius: 8px;
    width: 45px;
    transition: transform 0.3s, box-shadow 0.3s;
}


.dashboard-menu div {
    align-items: center;
    width: 43px;
    position: fixed;
    z-index: 99;
    right: -3px;
    top: 221px;
    -webkit-transition: all 0.1s linear 0.2s;
    -o-transition: all 0.1s linear 0.2s;
    transition: all 0.1s linear 0.2s;
    background-color: var(--bs-body-bg);
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
    height: 65px;
    cursor: pointer;
    padding-top: 0px;
}

.btn-dash {
    padding: 3px;
    color: white !important;
    font-size: 18px;
    width: 45px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.grid-stack-item-content.ui-draggable-handle {
    cursor: move !important;
    border: 1.5px dotted;
    background-color: #6e90ff2b !important;
}

.ui-draggable-disabled > .ui-draggable-handle {
    border: none;
    background-color: var(--bs-card-bg) !important;
}

.ui-draggable-disabled.ui-resizable-disabled .ui-draggable-handle {
    cursor: default !important;
}

.delete-icon:hover,
.d-menu:focus {
    transform: scale(1.1);
}

.delete-icon:active {
    transform: scale(0.9);
}

.delete-icon {
    display: none;
    position: absolute;
    right: 6px;
    cursor: pointer;
    top: 5px;
}

.grid-stack {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 768px) {
    .pis-info {
        height: calc(100vh + 20px);
        margin-bottom: 0;
        overflow-x: scroll;
        overflow-y: hidden;
    }

    .grid-stack-item-content {
        padding: 1px !important;
    }
}

.grid-stack-item-content:hover .delete-icon.active {
    display: block;
}

/* Define transition for GridStack items */

.grid-stack-item {
    transition: all 0.3s ease;
}

    /* Define styles for when item is being dragged */

    .grid-stack-item.ui-draggable-dragging {
        opacity: 0.7; /* Reduce opacity while dragging */
    }

    /* Define styles for when item is being resized */

    .grid-stack-item.ui-resizable-resizing {
        opacity: 0.7; /* Reduce opacity while resizing */
    }

    /* Define styles for when item is being dragged over the grid */

    .grid-stack-item.ui-droppable-hover {
        border: 2px dashed #007bff; /* Highlight border while dragging over */
    }

    /* Define styles for when item is being dropped */

    .grid-stack-item.ui-draggable-dragged {
        transition: none; /* Disable transition during drop */
    }

.card.draggable {
    border: 2px dashed #007bff; /* Highlight border */
    background-color: #e9f5ff; /* Highlight background color */
    cursor: move; /* Change cursor to indicate draggability */
}

.card:not(.draggable) {
    transition: all 0.3s ease; /* Smooth transition */
}

.grid-stack-item.ui-draggable-removing {
    opacity: 0.5; /* Reduce opacity while being removed */
    transition: opacity 0.3s ease; /* Smooth transition for opacity */
}

.light-style .select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #fefefe;
    background-color: #5a8dee;
}

    .light-style .select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
        background-color: rgb(67 93 123);
    }


.time-display {
    font-size: 1.8rem;
    font-weight: bold;
}

.live-clock {
    color: #0d6efd !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

.frozen-time {
    color: #0d6efd !important;
    font-weight: bold;
}

.static-time {
    color: #6c757d !important;
}
