/**
 * Client layout – font, scrollbar, CSS variables, loader, support overlay.
 * Dùng cho layout client (app.blade.php).
 */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Ẩn scrollbar trình duyệt dọc nhưng vẫn cho phép cuộn */
html {
    scrollbar-width: none;
    /* Firefox */
}

body {
    -ms-overflow-style: none;
    /* IE, Edge cũ */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

:root {
    --dh-default-color: #1c252e;
    --dh-primary-color: #4680ff;
    --dh-dark-main-color: #3580f7;
}

[data-bs-theme="dark"] {
    --dh-default-color: #ffffff;
}

body.loaded .loader-bg,
.loader-bg[style*="display: none"],
.loader-bg[style*="visibility: hidden"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.support-popup-overlay:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.pc-micon-img {
    width: 20px;
    height: 20px;
    object-fit: cover;
}

/* ---------- Cập nhật dịch vụ: card + bảng rõ, có đổ bóng ---------- */
.service-update-stat-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.service-update-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-update-history-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-update-history-card .card-header {
    background-color: #fafbfc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.service-update-table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(0, 0, 0, 0.08);
}

.service-update-table thead {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
    color: #495057;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.service-update-table thead th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    border-top: 0;
    padding: 0.75rem 1rem;
}

.service-update-table tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.service-update-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.service-update-table-wrap {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ---------- Lịch sử đơn hàng: card thống kê thống nhất ---------- */
.orders-stat-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.orders-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ---------- Chung cho tất cả client: card + bảng có đổ bóng, rõ ràng ---------- */
.pc-content .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.pc-content .card:not(.border-0) {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pc-content .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pc-content .card .card-header:not([class*="bg-"]):not(.bg-transparent) {
    background-color: #fafbfc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pc-content .card .card-header.bg-transparent {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pc-content .table-responsive:not(.service-update-table-wrap) {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.375rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.pc-content .table:not(.table-borderless) thead th {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    padding: 0.65rem 0.75rem;
}

.pc-content .table:not(.table-borderless) tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.65rem 0.75rem;
}

.pc-content .table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .pc-content .card:not(.border-0) {
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .pc-content .card .card-header:not([class*="bg-"]) {
    background-color: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .pc-content .table:not(.table-borderless) thead th {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .pc-content .table:not(.table-borderless) tbody td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .pc-content .table-responsive {
    border-color: rgba(255, 255, 255, 0.1);
}