/* Small project-specific fixes on top of template-css/style.css */

[x-cloak] {
    display: none !important;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(70, 95, 255, 0.25);
    border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.offer-detail-table .offer-detail-spacer-cell {
    padding: 0;
    border: 0;
    background: transparent;
}

.table-width-toggle svg {
    pointer-events: none;
}

.dashboard-basic-table th,
.dashboard-basic-table td {
    padding: 0.625rem 0.5rem;
}

.dashboard-basic-table th {
    font-size: 11px;
    line-height: 1.25;
}

.dashboard-basic-table td {
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-basic-table th:nth-child(1),
.dashboard-basic-table td:nth-child(1) {
    width: 72px;
}

.dashboard-basic-table th:nth-child(2),
.dashboard-basic-table td:nth-child(2) {
    width: 64px;
}

.dashboard-basic-table th:nth-child(3),
.dashboard-basic-table td:nth-child(3) {
    width: 26%;
}

.dashboard-basic-table th:nth-child(4),
.dashboard-basic-table td:nth-child(4) {
    width: 84px;
}

.dashboard-basic-table th:nth-child(5),
.dashboard-basic-table td:nth-child(5),
.dashboard-basic-table th:nth-child(6),
.dashboard-basic-table td:nth-child(6),
.dashboard-basic-table th:nth-child(7),
.dashboard-basic-table td:nth-child(7),
.dashboard-basic-table th:nth-child(8),
.dashboard-basic-table td:nth-child(8),
.dashboard-basic-table th:nth-child(9),
.dashboard-basic-table td:nth-child(9) {
    width: 10.5%;
}

.dashboard-basic-table td:nth-child(3) .flex.items-center.gap-3 {
    gap: 0.5rem;
}

.dashboard-basic-table td:nth-child(3) .h-10.w-10 {
    height: 2rem;
    width: 2rem;
}

.dashboard-basic-table td:nth-child(3) p {
    font-size: 12px;
    line-height: 1.3;
}

.dashboard-basic-table td:nth-child(3) span {
    font-size: 11px;
}

.dashboard-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 24px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
    border-radius: 24px;
}

.dark .dashboard-loading-overlay {
    background: rgba(17, 24, 39, 0.45);
}

.dashboard-loading-spinner {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(70, 95, 255, 0.18);
    border-top-color: #465fff;
    animation: dashboard-spin 0.75s linear infinite;
}

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


@media (max-width: 1279px) {
    .sidebar {
        width: min(290px, calc(100vw - 24px));
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    }
}

@media (max-width: 767px) {
    .sidebar-header img.logo,
    .sidebar-header span.logo img {
        max-width: 148px;
        height: auto;
    }

    .table-responsive-card {
        border-radius: 16px;
        padding: 14px;
    }

    .custom-scrollbar {
        -webkit-overflow-scrolling: touch;
    }

    .theme-toggle {
        padding-inline: 10px;
    }
}
