/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    background-color: #f5f5f5;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #495057;
}

.form-control, .form-select {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 徽章样式 */
.badge {
    padding: 4px 8px;
    font-weight: 500;
    font-size: 12px;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    margin-bottom: 0;
}

/* 统计卡片 */
.card.text-white h5 {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.card.text-white h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card.text-white p {
    font-size: 12px;
    margin-bottom: 0;
    opacity: 0.8;
}

/* 列表组样式 */
.list-group-item {
    border: 1px solid #dee2e6;
    border-radius: 4px !important;
    margin-bottom: 8px;
}

.list-group-item h6 {
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.list-group-item p {
    margin-bottom: 5px;
    color: #666;
}

/* 模态框样式 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 文字颜色 */
.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-primary {
    color: #007bff !important;
}

/* 背景颜色 */
.bg-light {
    background-color: #f8f9fa !important;
}

/* 表格边框 */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

/* 打印样式 */
@media print {
    .navbar, .btn, .card-header button, .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

.date-lunar-display {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #6c757d;
}

/* 报表页面 */
.report-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.report-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.report-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #2456a5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.report-title {
    margin: 10px 0 4px;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.report-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.report-column-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.report-sortable-header {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 1.6rem !important;
}

.report-sortable-header::before,
.report-sortable-header::after {
    position: absolute;
    right: 0.5rem;
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1;
    transition: color 0.16s ease, opacity 0.16s ease;
}

.report-sortable-header::before {
    content: "▲";
    top: calc(50% - 0.6rem);
    opacity: 0.4;
}

.report-sortable-header::after {
    content: "▼";
    top: calc(50% + 0.1rem);
    opacity: 0.4;
}

.report-sortable-header:hover::before,
.report-sortable-header:hover::after,
.report-sortable-header:focus::before,
.report-sortable-header:focus::after {
    color: #475569;
    opacity: 0.85;
}

.report-sortable-header:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.report-sortable-header[data-sort-state="ascending"]::before,
.report-sortable-header[aria-sort="ascending"]::before {
    color: #2563eb;
    opacity: 1;
}

.report-sortable-header[data-sort-state="ascending"]::after,
.report-sortable-header[aria-sort="ascending"]::after {
    opacity: 0.2;
}

.report-sortable-header[data-sort-state="descending"]::after,
.report-sortable-header[aria-sort="descending"]::after {
    color: #2563eb;
    opacity: 1;
}

.report-sortable-header[data-sort-state="descending"]::before,
.report-sortable-header[aria-sort="descending"]::before {
    opacity: 0.2;
}

/* Modern admin refresh */
:root {
    --app-bg: #eef3f8;
    --app-surface: rgba(255, 255, 255, 0.94);
    --app-surface-strong: #ffffff;
    --app-border: rgba(148, 163, 184, 0.22);
    --app-border-strong: rgba(59, 130, 246, 0.18);
    --app-text-primary: #10233d;
    --app-text-secondary: #5b6b82;
    --app-text-muted: #7f8da3;
    --app-shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.08);
    --app-shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
    --app-accent: #2563eb;
    --app-accent-strong: #1d4ed8;
    --app-success: #0f9d6f;
    --app-warning: #d97706;
    --app-danger: #dc3f58;
    --app-info: #0891b2;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--app-text-primary);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 24%),
        linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
    min-height: 100vh;
}

body.app-authenticated::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

a {
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.app-page-shell {
    position: relative;
    padding-bottom: 18px;
}

.app-navbar {
    position: relative;
    z-index: 1035;
    background: linear-gradient(120deg, rgba(13, 37, 80, 0.95), rgba(29, 78, 216, 0.94));
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-navbar .container-fluid {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.app-brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(191, 219, 254, 0.32));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.app-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.05;
}

.app-brand-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.app-brand-subtitle {
    color: rgba(219, 234, 254, 0.78);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-navbar .navbar-nav {
    gap: 0.18rem;
}

.app-navbar .nav-link {
    border-radius: 999px;
    padding: 0.58rem 0.9rem;
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.94rem;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.app-user-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.dropdown-menu {
    z-index: 1045;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
}

.dropdown-item {
    border-radius: 0.75rem;
    padding: 0.62rem 0.9rem;
    color: var(--app-text-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(37, 99, 235, 0.08);
    color: var(--app-accent-strong);
}

.card {
    margin-bottom: 20px;
    border: 1px solid var(--app-border);
    border-radius: 1.35rem;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-card);
    overflow: hidden;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    padding: 1.15rem 1.35rem;
}

.card-body {
    padding: 1.35rem 1.4rem;
}

.card-header h5,
.card-header h6 {
    color: var(--app-text-primary);
    font-weight: 700;
}

.table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(248, 250, 252, 0.72);
}

.table thead th {
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    color: var(--app-text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table tbody td {
    border-color: rgba(226, 232, 240, 0.9);
    color: var(--app-text-primary);
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(241, 245, 249, 0.88);
}

.btn {
    padding: 0.72rem 1.05rem;
    border-radius: 0.95rem;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-dark,
.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.84);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.55rem;
    color: var(--app-text-secondary);
}

.form-control,
.form-select {
    min-height: 46px;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.96);
    color: var(--app-text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 0.24rem rgba(37, 99, 235, 0.14);
}

.badge {
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
}

.list-group {
    gap: 0.85rem;
}

.list-group-item {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1.05rem !important;
    margin-bottom: 0;
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.list-group-item:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.08);
}

.list-group-item h6 {
    margin-bottom: 0.4rem;
    color: var(--app-text-primary);
    font-weight: 700;
}

.list-group-item p {
    margin-bottom: 0.3rem;
    color: var(--app-text-secondary);
}

.alert {
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: 1rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.app-footer {
    background: transparent;
    color: var(--app-text-muted);
}

.app-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0 2rem;
    border-top: 1px solid rgba(203, 213, 225, 0.75);
}

.app-footer__meta {
    color: var(--app-text-muted);
    font-size: 0.92rem;
}

.dashboard-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 1.9rem;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.38), transparent 24%),
        linear-gradient(135deg, #0f172a, #1d4ed8 52%, #0f766e);
    color: #ffffff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}

.dashboard-hero__content {
    max-width: 720px;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(239, 246, 255, 0.92);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-title {
    margin: 1rem 0 0.55rem;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.dashboard-subtitle {
    max-width: 620px;
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    font-size: 1rem;
    line-height: 1.75;
}

.dashboard-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.9rem;
    min-width: min(100%, 320px);
}

.dashboard-meta-card {
    padding: 1rem 1rem 1.05rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.dashboard-meta-card__label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(219, 234, 254, 0.78);
    font-size: 0.8rem;
}

.dashboard-meta-card__value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-card {
    position: relative;
    min-height: 148px;
    padding: 1.45rem 1.35rem;
    border-radius: 1.5rem;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.metric-card::after {
    content: "";
    position: absolute;
    top: -28px;
    right: -18px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.metric-card__label,
.metric-card__meta {
    position: relative;
    z-index: 1;
}

.metric-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

.metric-card__value {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 1rem;
    font-size: clamp(1.8rem, 2vw, 2.2rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.metric-card__meta {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.76);
}

.metric-card--sales {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.metric-card--monthly {
    background: linear-gradient(135deg, #0f9d6f, #059669);
}

.metric-card--warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.metric-card--danger {
    background: linear-gradient(135deg, #ef4444, #e11d48);
}

.metric-card--info {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
}

.metric-card__link {
    color: inherit;
    text-decoration: none;
}

.metric-card__link:hover {
    color: inherit;
    opacity: 0.96;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-header__title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--app-text-primary);
}

.section-header__subtitle {
    margin: 0.3rem 0 0;
    color: var(--app-text-secondary);
    font-size: 0.92rem;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.shortcut-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 88px;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(226, 232, 240, 0.98);
    background: rgba(255, 255, 255, 0.92);
    color: var(--app-text-primary);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.shortcut-card:hover {
    color: var(--app-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.10);
}

.shortcut-card__icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.shortcut-card__title {
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 700;
}

.shortcut-card__desc {
    display: block;
    color: var(--app-text-secondary);
    font-size: 0.86rem;
}

.shortcut-card--primary .shortcut-card__icon {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.shortcut-card--success .shortcut-card__icon {
    background: rgba(5, 150, 105, 0.12);
    color: #0f9d6f;
}

.shortcut-card--info .shortcut-card__icon {
    background: rgba(8, 145, 178, 0.12);
    color: #0891b2;
}

.shortcut-card--warning .shortcut-card__icon {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.shortcut-card--danger .shortcut-card__icon {
    background: rgba(225, 29, 72, 0.12);
    color: #e11d48;
}

.shortcut-card--neutral .shortcut-card__icon {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.dashboard-panel {
    height: 100%;
}

.dashboard-panel .card-body {
    padding-top: 1rem;
}

.dashboard-table th:first-child,
.dashboard-table td:first-child {
    padding-left: 0;
}

.dashboard-table th:last-child,
.dashboard-table td:last-child {
    padding-right: 0;
}

.pending-empty {
    margin-bottom: 0;
    border-radius: 1rem;
}

@media (max-width: 1199px) {
    .dashboard-hero {
        flex-direction: column;
    }

    .dashboard-hero__meta {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

@media (max-width: 991px) {
    .app-navbar .container-fluid {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .dashboard-hero {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .dashboard-hero__meta {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .app-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 1.5rem;
    }

    .dashboard-title {
        font-size: 1.9rem;
    }

    .dashboard-hero__meta {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .app-brand-subtitle {
        display: none;
    }

    .dashboard-hero__meta,
    .shortcut-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 132px;
    }
}

.workflow-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 1.6rem 1.7rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(191, 219, 254, 0.6);
    background:
        radial-gradient(circle at top right, rgba(147, 197, 253, 0.26), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.92));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -24px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
}

.page-hero__header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-hero__title {
    margin: 0.95rem 0 0.4rem;
    font-size: clamp(1.75rem, 2vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--app-text-primary);
}

.page-hero__subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--app-text-secondary);
    line-height: 1.75;
}

.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.page-hero__actions .btn {
    min-width: 140px;
}

.page-stat-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 1.35rem;
}

.page-stat {
    padding: 0.95rem 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.96);
}

.page-stat--interactive {
    width: 100%;
    text-align: left;
    appearance: none;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.page-stat--interactive:hover,
.page-stat--interactive:focus-visible {
    border-color: rgba(96, 165, 250, 0.96);
    background: rgba(239, 246, 255, 0.96);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.page-stat--interactive[aria-expanded="true"] {
    border-color: rgba(59, 130, 246, 0.96);
    background: rgba(239, 246, 255, 0.96);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.1);
}

.page-stat__label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--app-text-secondary);
    font-size: 0.84rem;
}

.page-stat__value {
    display: block;
    color: var(--app-text-primary);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-stat__meta {
    display: block;
    margin-top: 0.35rem;
    color: var(--app-text-muted);
    font-size: 0.84rem;
}

.page-stat__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.page-stat--interactive[aria-expanded="true"] .page-stat__hint i {
    transform: rotate(180deg);
}

.page-stat__hint i {
    transition: transform 0.18s ease;
}

.page-inline-alert {
    margin-bottom: 0;
}

.page-inline-alert__meta {
    margin-top: 0.4rem;
    color: #33527d;
    font-size: 0.88rem;
}

.unsubmitted-panel {
    margin-top: 0.85rem;
    padding: 1.2rem 1.25rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(191, 219, 254, 0.9);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(239, 246, 255, 0.94));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.08);
}

.unsubmitted-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.unsubmitted-panel__title {
    margin: 0;
    color: var(--app-text-primary);
    font-size: 1.05rem;
    font-weight: 800;
}

.unsubmitted-panel__meta {
    margin: 0.35rem 0 0;
    color: var(--app-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.unsubmitted-panel__count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.92rem;
    font-weight: 800;
}

.unsubmitted-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.unsubmitted-store-chip {
    min-height: 72px;
    padding: 0.82rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(191, 219, 254, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.unsubmitted-store-chip__code {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.38rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.92);
    color: #1e3a8a;
    font-family: "Consolas", "SFMono-Regular", Menlo, Monaco, monospace;
    font-size: 0.78rem;
    font-weight: 700;
}

.unsubmitted-store-chip__name {
    display: block;
    color: var(--app-text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.filter-card .card-header,
.data-card .card-header {
    padding-bottom: 0.9rem;
}

.filter-card,
.filter-card .card-body,
.data-card,
.data-card .card-body {
    overflow: visible;
}

.filter-card .card-body,
.data-card .card-body {
    padding-top: 1.05rem;
}

.filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.filter-toolbar__meta {
    color: var(--app-text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
}

.filter-toolbar__reset {
    border-radius: 999px;
}

.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(147, 197, 253, 0.9);
    background: rgba(239, 246, 255, 0.9);
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.filter-form .form-control,
.filter-form .form-select {
    min-height: 48px;
}

.sales-range-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
}

.sales-range-separator {
    color: var(--app-text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.filter-form__actions {
    display: flex;
    align-items: flex-end;
}

.filter-form__actions .filter-submit {
    width: 100%;
}

.filter-form .filter-submit {
    min-height: 48px;
}

.table-title-meta {
    color: var(--app-text-muted);
    font-size: 0.88rem;
}

.table-modern thead th {
    white-space: nowrap;
}

.table-modern tbody tr {
    transition: background-color 0.18s ease;
}

.table-modern tbody tr td:first-child {
    position: relative;
    padding-left: 1rem;
    font-weight: 600;
}

.table-grid-shell {
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
}

.table-modern--grid {
    margin-bottom: 0;
}

.table-modern--grid thead th {
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid rgba(203, 213, 225, 0.96);
}

.table-modern--grid thead th:not(:last-child),
.table-modern--grid tbody td:not(:last-child) {
    border-right: 1px solid rgba(226, 232, 240, 0.92);
}

.table-modern--grid tbody td {
    border-top: 1px solid rgba(226, 232, 240, 0.96);
    background: #fff;
}

.table-modern--grid tbody tr:first-child td {
    border-top: none;
}

.table-modern--grid tbody tr:hover td {
    background: #f8fbff;
}

.table-pagination {
    margin-top: 1rem;
}

.table-pagination .pagination {
    margin-bottom: 0;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.table-pagination .page-link {
    min-width: 2.6rem;
    border-radius: 0.75rem;
    border-color: rgba(203, 213, 225, 0.96);
    color: #33527d;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
}

.table-pagination .page-item.active .page-link {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.table-pagination .page-link:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.table-modern .reconciliation-no {
    color: #0f172a;
    font-family: "Consolas", "SFMono-Regular", Menlo, Monaco, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.table-modern .reconciliation-row td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 3px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.75);
}

.table-modern .reconciliation-row[data-status="pending_difference"] td:first-child::before,
.table-modern .reconciliation-row[data-status="pending_approval"] td:first-child::before {
    background: rgba(245, 158, 11, 0.95);
}

.table-modern .reconciliation-row[data-status="approved"] td:first-child::before,
.table-modern .reconciliation-row[data-status="completed"] td:first-child::before {
    background: rgba(16, 185, 129, 0.95);
}

.table-modern .reconciliation-row[data-status="rejected"] td:first-child::before {
    background: rgba(239, 68, 68, 0.95);
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.inline-actions .btn,
.inline-actions form {
    margin: 0;
}

.inline-actions--dense form {
    display: inline-flex;
}

.inline-actions--dense .btn {
    min-height: 34px;
    padding: 0.36rem 0.62rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.empty-table-state {
    padding: 2rem 1rem !important;
    color: var(--app-text-muted) !important;
    text-align: center;
}

.table-summary-row td {
    background: rgba(241, 245, 249, 0.86) !important;
    font-weight: 700;
}

.detail-progress-card .card-body {
    padding-top: 1rem;
}

.detail-progress-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.detail-progress-item {
    padding: 0.92rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.86);
}

.detail-progress-item__label {
    display: block;
    color: var(--app-text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.detail-progress-item__value {
    display: block;
    margin-top: 0.38rem;
    color: var(--app-text-primary);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.detail-progress-item__meta {
    display: block;
    margin-top: 0.2rem;
    color: var(--app-text-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.detail-progress-item__track {
    display: block;
    margin-top: 0.54rem;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.5);
    overflow: hidden;
}

.detail-progress-item__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.detail-progress-item__fill--workflow {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.92), rgba(6, 182, 212, 0.9));
}

.detail-progress-item__fill--payment {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.92), rgba(59, 130, 246, 0.9));
}

.detail-progress-item--hint {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-style: dashed;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.detail-meta-item {
    min-height: 100%;
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: rgba(248, 250, 252, 0.84);
}

.detail-meta-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--app-text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
}

.detail-meta-value {
    display: block;
    color: var(--app-text-primary);
    font-size: 0.98rem;
    line-height: 1.7;
    word-break: break-word;
}

.detail-meta-value strong,
.detail-meta-value--emphasis {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.badge-stack--column {
    flex-direction: column;
    align-items: flex-start;
}

.status-pill {
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.status-pill--neutral {
    color: #475569;
    background: rgba(226, 232, 240, 0.85);
    border-color: rgba(148, 163, 184, 0.36);
}

.status-pill--warning {
    color: #92400e;
    background: rgba(254, 243, 199, 0.9);
    border-color: rgba(245, 158, 11, 0.44);
}

.status-pill--success {
    color: #065f46;
    background: rgba(209, 250, 229, 0.9);
    border-color: rgba(16, 185, 129, 0.4);
}

.status-pill--danger {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.92);
    border-color: rgba(239, 68, 68, 0.44);
}

.status-pill--info {
    color: #155e75;
    background: rgba(207, 250, 254, 0.9);
    border-color: rgba(6, 182, 212, 0.4);
}

.status-pill--brand {
    color: #1e3a8a;
    background: rgba(219, 234, 254, 0.92);
    border-color: rgba(59, 130, 246, 0.46);
}

.settlement-progress {
    margin-top: 0.48rem;
    width: min(198px, 100%);
}

.settlement-progress__track {
    display: block;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.55);
    overflow: hidden;
}

.settlement-progress__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.9), rgba(16, 185, 129, 0.9));
    transition: width 0.25s ease;
}

.settlement-progress__text {
    display: block;
    margin-top: 0.3rem;
    color: var(--app-text-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.mini-stat-card {
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: rgba(248, 250, 252, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.mini-stat-card__label {
    display: block;
    color: var(--app-text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
}

.mini-stat-card__value {
    display: block;
    margin-top: 0.45rem;
    color: var(--app-text-primary);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mini-stat-card__meta {
    display: block;
    margin-top: 0.35rem;
    color: var(--app-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.section-note {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(191, 219, 254, 0.72);
    background: rgba(239, 246, 255, 0.84);
    color: var(--app-text-secondary);
    line-height: 1.65;
}

.approval-progress {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.approval-progress .badge {
    max-width: 100%;
}

.editor-table-shell {
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
}

.editor-table-shell .table-responsive {
    max-height: 52vh;
}

.editor-table-shell .table {
    margin-bottom: 0;
}

.editor-table-shell .table td,
.editor-table-shell .table th {
    padding: 0.72rem 0.75rem;
    vertical-align: middle;
}

.editor-table-shell .form-control-sm,
.editor-table-shell .form-select-sm {
    min-height: 42px;
    font-size: 0.92rem;
}

.editor-table-shell .expense-row td:last-child {
    white-space: nowrap;
}

.editor-action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.editor-action-bar .btn {
    min-width: 136px;
}

.reconciliation-editor-modal .modal-dialog {
    max-width: min(1240px, 94vw);
    margin: 1.2rem auto;
}

.reconciliation-editor-modal__content {
    max-height: calc(100vh - 2.4rem);
    border: 1px solid rgba(191, 219, 254, 0.5);
    border-radius: 1.25rem;
    overflow: hidden;
}

.reconciliation-editor-modal .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.94));
    border-bottom-color: rgba(226, 232, 240, 0.9);
}

.reconciliation-editor-modal__body {
    overflow-y: auto;
    padding: 1.2rem 1.25rem;
}

.reconciliation-editor-modal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    border-top-color: rgba(226, 232, 240, 0.9);
}

@media (max-width: 991px) {
    .filter-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .badge-stack--column {
        flex-direction: row;
    }

    .reconciliation-editor-modal .modal-dialog {
        max-width: min(96vw, 1240px);
    }

    .reconciliation-editor-modal__body {
        padding: 1rem;
    }

    .table-modern--responsive thead {
        display: none;
    }

    .table-modern--responsive,
    .table-modern--responsive tbody,
    .table-modern--responsive tr,
    .table-modern--responsive td {
        display: block;
        width: 100%;
    }

    .table-modern--responsive tbody tr {
        margin-bottom: 0.88rem;
        padding: 0.7rem 0.82rem;
        border: 1px solid rgba(226, 232, 240, 0.96);
        border-radius: 0.95rem;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .table-modern--responsive .table-summary-row {
        display: none;
    }

    .table-modern--responsive tbody tr td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.7rem;
        margin: 0;
        padding: 0.36rem 0;
        border: none;
        text-align: left !important;
    }

    .table-modern--responsive tbody tr td::before {
        content: attr(data-label);
        color: var(--app-text-secondary);
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }

    .table-modern--responsive .reconciliation-row td:first-child {
        margin-bottom: 0.42rem;
        padding: 0 0 0.55rem;
        border-bottom: 1px dashed rgba(203, 213, 225, 0.9);
    }

    .table-modern--responsive .reconciliation-row td:first-child::before {
        display: none;
    }

    .table-modern--responsive .badge-stack--column {
        align-items: flex-end;
    }

    .table-modern--responsive .settlement-progress {
        margin-left: auto;
    }

    .table-modern--responsive .inline-actions {
        justify-content: flex-end;
    }

    .table-modern--responsive .empty-table-state {
        display: block;
        padding: 1rem 0.55rem !important;
        text-align: center !important;
    }

    .table-modern--responsive .empty-table-state::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .filter-form .form-control,
    .filter-form .form-select,
    .filter-form .filter-submit {
        min-height: 44px;
    }

    .table-modern tbody tr td:first-child {
        padding-left: 0.82rem;
    }

    .inline-actions--dense .btn {
        width: 100%;
        justify-content: center;
    }

    .reconciliation-editor-modal .modal-dialog {
        margin: 0.5rem auto;
    }

    .reconciliation-editor-modal__content {
        max-height: calc(100vh - 1rem);
        border-radius: 0.95rem;
    }

    .reconciliation-editor-modal .modal-title {
        font-size: 1.05rem;
    }
}

.approval-guide-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.approval-guide-item {
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: rgba(248, 250, 252, 0.84);
}

.approval-guide-item strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--app-text-primary);
}

.approval-level {
    border: 1px solid rgba(226, 232, 240, 0.96);
}

.approval-level .card-header {
    background: rgba(248, 250, 252, 0.88);
}

.approver-row {
    padding: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.88);
}

.badge.bg-purple {
    background-color: #6f42c1;
    color: #ffffff;
}

@media (max-width: 991px) {
    .page-hero__header {
        flex-direction: column;
    }

    .page-hero__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .detail-meta-grid,
    .mini-stat-grid,
    .detail-progress-grid {
        grid-template-columns: 1fr;
    }

    .editor-action-bar {
        justify-content: stretch;
    }

    .editor-action-bar .btn {
        flex: 1 1 180px;
    }
}

.report-column-visibility {
    position: relative;
}

.report-column-visibility-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #d3deed;
    border-radius: 999px;
    background: #fff;
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.report-column-visibility-trigger:hover {
    border-color: #9fb8db;
    color: #153352;
}

.report-column-visibility-trigger .count {
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4fb;
    color: #466488;
    font-size: 12px;
    font-weight: 600;
}

.report-column-visibility-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1080;
    width: min(420px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    display: none;
}

.report-column-visibility.is-open .report-column-visibility-panel {
    display: block;
}

.report-column-visibility-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.report-column-visibility-title {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.report-column-visibility-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.report-column-visibility-reset {
    border: none;
    padding: 0;
    background: transparent;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}

.report-column-visibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.report-column-visibility-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fbff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.report-column-visibility-option:hover {
    border-color: #bfd2ea;
    background: #f0f7ff;
}

.report-column-hidden {
    display: none !important;
}

.report-filter-card {
    border: 1px solid #dce6f3;
    border-radius: 18px;
    overflow: visible;
}

.report-filter-card .card-body {
    padding: 20px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    overflow: visible;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.report-field {
    grid-column: span 3;
    min-width: 0;
}

.report-field-md {
    grid-column: span 4;
    min-width: 0;
}

.report-field-lg {
    grid-column: span 6;
    min-width: 0;
}

.report-field-xl {
    grid-column: 1 / -1;
    min-width: 0;
}

.report-field label,
.report-field-md label,
.report-field-lg label,
.report-field-xl label {
    display: block;
}

.report-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.report-filter-actions .btn {
    min-width: 108px;
}

.report-filter-toolbar {
    display: grid;
    grid-template-columns: 230px minmax(320px, 1fr) auto auto;
    gap: 14px;
    align-items: end;
}

.report-toolbar-view,
.report-toolbar-date,
.report-toolbar-actions,
.report-toolbar-export {
    min-width: 0;
}

.report-toolbar-actions .report-filter-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.report-toolbar-export {
    display: flex;
    justify-content: flex-end;
}

.report-toolbar-export .btn {
    min-width: 132px;
}

.report-filter-status {
    margin-top: 14px;
}

.report-view-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid #d7e2f1;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.report-view-option {
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #496581;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 13px 12px;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.report-view-option:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #214d86;
}

.report-view-option:focus-visible {
    outline: 2px solid #2a6fd1;
    outline-offset: 2px;
}

.report-view-option.is-active {
    background: linear-gradient(135deg, #1f73d6 0%, #2456a5 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(36, 86, 165, 0.22);
}

.report-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #365f93;
    font-size: 12px;
    font-weight: 600;
}

.report-chip.is-muted {
    background: #f1f5f9;
    color: #64748b;
}

.report-filter-block {
    padding: 18px;
    border: 1px solid #dde6f2;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.report-filter-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    overflow: visible;
}

.report-filter-row {
    padding: 14px 16px 16px;
    border: 1px solid #dde6f2;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    overflow: visible;
}

.report-filter-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.report-filter-row-title {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.report-filter-block-title {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.report-filter-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.report-check-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.report-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 156px;
    overflow-y: auto;
    padding-right: 4px;
}

.report-check-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #d8e2f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.report-check-item input {
    margin: 0;
}

.report-selector-shell {
    min-height: 46px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    background: #fff;
}

.report-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
}

.report-selector-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-selector-grid--org {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-selector-grid--business {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-selector-grid--store {
    grid-template-columns: minmax(0, 1fr);
}

.report-selector-field {
    min-width: 0;
    overflow: visible;
}

.report-selector-field--full {
    grid-column: 1 / -1;
}

.report-multi-select {
    position: relative;
}

.report-multi-select-trigger {
    width: 100%;
    height: 84px;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #cfe0f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.report-multi-select-trigger:hover {
    border-color: #8fb9ef;
    box-shadow: 0 12px 24px rgba(37, 86, 165, 0.08);
}

.report-multi-select-trigger[aria-expanded="true"] {
    border-color: #4a97ff;
    box-shadow: 0 0 0 4px rgba(74, 151, 255, 0.12);
}

.report-multi-select-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-multi-select-text {
    overflow: hidden;
    color: #173156;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-multi-select-meta {
    color: #8a97a8;
    font-size: 12px;
}

.report-selector-field.has-selection .report-multi-select-text {
    color: #0f172a;
}

.report-selector-field.has-selection .report-multi-select-meta {
    color: #3567a3;
}

.report-selector-field--compact-placeholder:not(.has-selection) .report-multi-select-main {
    justify-content: center;
    gap: 0;
}

.report-selector-field--compact-placeholder:not(.has-selection) .report-multi-select-text {
    display: none;
}

.report-selector-field--compact-placeholder:not(.has-selection) .report-multi-select-meta {
    font-size: 14px;
}

.report-filter-compact--slim .report-multi-select-trigger {
    height: 40px;
    min-height: 40px;
    padding: 6px 14px;
    border-radius: 12px;
}

.report-filter-compact--slim .report-multi-select-main {
    justify-content: center;
    gap: 0;
}

.report-filter-compact--slim .report-selector-field--compact-placeholder:not(.has-selection) .report-multi-select-main {
    justify-content: center;
}

.report-filter-compact--slim .report-multi-select-text {
    font-size: 14px;
}

.report-filter-compact--slim .report-selector-field--compact-placeholder:not(.has-selection) .report-multi-select-meta {
    font-size: 12px;
    line-height: 1;
}

.report-multi-select-arrow {
    flex-shrink: 0;
    color: #7b8ea8;
    font-size: 13px;
    transition: transform 0.18s ease;
}

.report-selector-field.is-open .report-multi-select-arrow {
    transform: rotate(180deg);
}

.report-multi-select-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    width: max(100%, 320px);
    z-index: 1060;
    display: none;
    overflow: hidden;
    border: 1px solid #e0e9f5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.report-selector-field.is-open .report-multi-select-panel {
    display: block;
}

.report-multi-select-search {
    padding: 18px 18px 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.report-multi-select-search .form-control {
    min-height: 54px;
    border: 2px solid #54a0ff;
    border-radius: 16px;
    padding-inline: 16px;
    font-size: 15px;
}

.report-multi-select-search .form-control:focus {
    border-color: #2a80ef;
    box-shadow: 0 0 0 4px rgba(74, 151, 255, 0.12);
}

.report-multi-select-actions {
    display: flex;
    gap: 10px;
    padding: 0 18px 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.report-multi-select-actions .btn {
    min-width: 74px;
    border-radius: 999px;
    border-color: #d5e3f4;
    background: #fff;
    color: #355b89;
    font-size: 12px;
    font-weight: 700;
}

.report-multi-select-options {
    max-height: 300px;
    padding: 8px 0;
    overflow-y: auto;
}

.report-multi-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.report-multi-select-option:hover {
    background: #f5f9ff;
}

.report-multi-select-option.is-selected {
    background: #eef5ff;
}

.report-multi-select-option-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-multi-select-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.report-multi-select-option-label {
    overflow: hidden;
    color: #173156;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-multi-select-option-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.38);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

.report-selector-shell--store {
    min-height: 56px;
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
}

.report-selector-shell--store .cascade-input {
    min-height: 84px;
    height: 84px;
    border: 1px solid #cfe0f5;
    border-radius: 16px;
    padding: 14px 48px 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #173156;
}

.report-filter-select {
    min-height: 84px;
    height: 84px;
    padding: 14px 48px 14px 18px;
    border: 1px solid #cfe0f5;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #173156;
    background-position: right 18px center;
    background-size: 14px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.report-filter-select:hover,
.report-filter-select:focus {
    border-color: #4a97ff;
    box-shadow: 0 0 0 4px rgba(74, 151, 255, 0.12);
}

.report-filter-compact--slim .report-filter-select {
    height: 40px;
    min-height: 40px;
    padding: 6px 36px 6px 14px;
    border-radius: 12px;
    font-size: 14px;
    background-position: right 14px center;
}

.report-selector-shell--store .cascade-input:hover,
.report-selector-shell--store .cascade-input:focus {
    border-color: #4a97ff;
    box-shadow: 0 0 0 4px rgba(74, 151, 255, 0.12);
}

.report-filter-compact--slim .report-selector-shell--store .cascade-input {
    height: 40px;
    min-height: 40px;
    padding: 6px 36px 6px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.report-filter-control--slim {
    height: 40px;
    min-height: 40px;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.report-filter-control--slim.form-select {
    padding-right: 36px;
    background-position: right 14px center;
}

.report-filter-compact--slim .report-date-range-trigger {
    min-height: 40px;
    padding: 6px 14px;
    border-radius: 12px;
}

.report-filter-compact--slim .report-date-range-value {
    font-size: 14px;
}

.report-filter-compact--slim .report-date-range-icon {
    font-size: 16px;
}

.report-filter-compact--slim .selector-shell,
.report-filter-compact--slim .overdue-statistics-selector-shell {
    min-height: 40px;
}

.report-filter-compact--slim .selector-shell .org-tree-input,
.report-filter-compact--slim .selector-shell .cascade-input,
.report-filter-compact--slim .overdue-statistics-selector-shell .org-tree-input,
.report-filter-compact--slim .overdue-statistics-selector-shell .cascade-input {
    height: 40px;
    min-height: 40px;
    padding: 6px 36px 6px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.report-filter-compact--slim .report-filter-actions .btn,
.report-filter-compact--slim .btn.report-filter-control--slim {
    min-height: 40px;
    border-radius: 12px;
}

.report-selector-shell--store .cascade-dropdown {
    margin-top: 8px;
    border: 1px solid #e0e9f5;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
    z-index: 1085;
}

.report-selector-shell--store .cascade-toolbar {
    padding: 16px;
}

.report-selector-shell--store .cascade-search-input {
    min-height: 46px;
}

.report-selector-shell--store .cascade-tree-container {
    max-height: 300px;
}

.selector-container-visible,
.selector-container-visible .card-body,
.selector-container-visible .modal-content,
.selector-container-visible .modal-body {
    overflow: visible;
}

.selector-shell {
    position: relative;
    min-height: 42px;
    overflow: visible;
}

.selector-shell .org-tree-selector,
.selector-shell .store-cascade-selector {
    position: relative;
    z-index: 20;
}

.selector-shell .org-tree-dropdown,
.selector-shell .cascade-dropdown {
    z-index: 1085;
}

.report-date-range-picker {
    position: relative;
}

.report-date-range-trigger {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border: 1px solid #cfe0f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.report-date-range-trigger:hover,
.report-date-range-picker.is-open .report-date-range-trigger {
    border-color: #4a97ff;
    box-shadow: 0 0 0 4px rgba(74, 151, 255, 0.12);
}

.report-date-range-value {
    overflow: hidden;
    color: #b7c1d0;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-date-range-picker.has-value .report-date-range-value {
    color: #173156;
}

.report-date-range-icon {
    flex-shrink: 0;
    color: #7b8ea8;
    font-size: 18px;
}

.report-date-range-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1080;
    display: none;
    width: min(860px, calc(100vw - 40px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #e1e8f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.14);
}

.report-date-range-picker.is-open .report-date-range-panel {
    display: block;
}

.report-date-range-calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-date-range-month {
    padding: 18px 18px 16px;
}

.report-date-range-month + .report-date-range-month {
    border-left: 1px solid #edf1f6;
}

.report-date-range-month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.report-date-range-month-head--right {
    justify-content: space-between;
}

.report-date-range-month-title {
    color: #42546f;
    font-size: 18px;
    font-weight: 700;
}

.report-date-range-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.report-date-range-nav {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #b6becb;
    font-size: 24px;
    line-height: 1;
}

.report-date-range-nav:hover {
    background: #f3f7fc;
    color: #5a7090;
}

.report-date-range-weekdays,
.report-date-range-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.report-date-range-weekdays {
    margin-bottom: 10px;
}

.report-date-range-weekday {
    padding: 8px 0;
    color: #b8c0cb;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.report-date-range-day {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: #516173;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.report-date-range-day:hover {
    background: #eef5ff;
}

.report-date-range-day.is-outside {
    color: #c5ccd6;
}

.report-date-range-day.is-today {
    border-color: #5ea0ff;
}

.report-date-range-day.is-in-range {
    background: #dcebfb;
    border-radius: 0;
}

.report-date-range-day.is-selected {
    border-color: #3f8df0;
    background: #ffffff;
    color: #225287;
    box-shadow: 0 0 0 1px #3f8df0 inset;
}

.report-date-range-day.is-range-start,
.report-date-range-day.is-range-end {
    background: #3f8df0;
    color: #fff;
    box-shadow: none;
}

.report-date-range-day.is-range-start {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.report-date-range-day.is-range-end {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.report-date-range-day-number {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 600;
}

.report-date-range-day-lunar {
    font-size: 11px;
    line-height: 1.1;
    color: #8a97a8;
}

.report-date-range-day.is-in-range .report-date-range-day-lunar {
    color: #6883a3;
}

.report-date-range-day.is-range-start .report-date-range-day-lunar,
.report-date-range-day.is-range-end .report-date-range-day-lunar {
    color: rgba(255, 255, 255, 0.88);
}

.report-date-range-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 16px;
    border-top: 1px solid #edf1f6;
    background: #fbfdff;
}

.report-date-range-clear {
    border: none;
    background: transparent;
    color: #3f8df0;
    font-size: 14px;
    font-weight: 700;
}

.report-date-range-tip {
    color: #8a97a8;
    font-size: 13px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.report-summary-card {
    min-height: 126px;
    padding: 18px 20px;
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.report-summary-label {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.report-summary-value {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.report-summary-note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 12px;
}

.report-note {
    padding: 16px 18px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fff1dd 100%);
    color: #9a3412;
}

.report-note p:last-child {
    margin-bottom: 0;
}

.report-table-card {
    border: 1px solid #dbe6f4;
    border-radius: 18px;
    overflow: hidden;
}

.report-table-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.report-table-title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

.report-table-meta {
    color: #64748b;
    font-size: 13px;
}

.report-table-wrap {
    overflow: auto;
}

.report-table {
    width: 100%;
    margin-bottom: 0;
}

.report-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eef4ff;
    color: #1e3a5f;
    white-space: nowrap;
    vertical-align: middle;
}

.report-table tbody td {
    vertical-align: middle;
    white-space: nowrap;
}

.report-table .cell-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.report-table .report-total-col {
    background: #fff7db;
    font-weight: 700;
}

.report-table .report-row-total {
    background: #f8fafc;
    font-weight: 700;
}

.report-empty {
    padding: 54px 20px;
    color: #64748b;
    text-align: center;
}

.report-range-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.report-range-card {
    padding: 16px;
    border: 1px solid #dbe5f3;
    border-radius: 16px;
    background: #fff;
}

.report-range-card h6 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.report-range-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.report-chart-card canvas {
    max-height: 300px;
}

.searchable-select-native.is-enhanced {
    display: none;
}

.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    background: #fff;
    color: rgba(15, 23, 42, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: left;
}

.searchable-select-trigger:hover {
    border-color: rgba(59, 130, 246, 0.85);
}

.searchable-select-trigger:focus {
    outline: 0;
    border-color: rgba(59, 130, 246, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.searchable-select.is-disabled .searchable-select-trigger,
.searchable-select-trigger:disabled {
    background: #f8fafc;
    color: rgba(100, 116, 139, 0.86);
    cursor: not-allowed;
}

.searchable-select-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-select-value.is-placeholder {
    color: rgba(100, 116, 139, 0.86);
}

.searchable-select-arrow {
    margin-left: 12px;
    font-size: 12px;
    color: rgba(100, 116, 139, 0.86);
    transition: transform 0.2s;
}

.searchable-select.is-open .searchable-select-arrow {
    transform: rotate(180deg);
}

.searchable-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1060;
    width: 100%;
    min-width: 240px;
    max-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16), 0 8px 20px rgba(15, 23, 42, 0.1);
}

.searchable-select-search {
    padding: 12px 12px 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.98);
}

.searchable-select-search .input-group-text {
    background: #fff;
    border-color: #d9d9d9;
    color: rgba(100, 116, 139, 0.86);
}

.searchable-select-search .form-control {
    border-color: #d9d9d9;
}

.searchable-select-search .form-control:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
}

.searchable-select-options {
    max-height: 292px;
    overflow-y: auto;
    padding: 8px 0;
}

.searchable-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: rgba(15, 23, 42, 0.92);
    text-align: left;
    transition: background-color 0.2s;
}

.searchable-select-option:hover,
.searchable-select-option:focus {
    background: #f8fafc;
    outline: 0;
}

.searchable-select-option.is-selected {
    background: #e8f1ff;
    color: #1d4ed8;
    font-weight: 600;
}

.searchable-select-option.is-placeholder-option {
    color: rgba(71, 85, 105, 0.92);
}

.searchable-select-option-label {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.searchable-select-check {
    margin-left: 12px;
    flex-shrink: 0;
}

.searchable-select-empty {
    padding: 16px 14px 18px;
    color: rgba(100, 116, 139, 0.92);
    font-size: 0.875rem;
}

.searchable-select-options::-webkit-scrollbar {
    width: 6px;
}

.searchable-select-options::-webkit-scrollbar-track {
    background: transparent;
}

.searchable-select-options::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
}

@media (max-width: 767px) {
    .searchable-select-dropdown {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        top: auto;
        width: auto;
        max-height: 70vh;
        border-radius: 16px;
    }

    .searchable-select-options {
        max-height: calc(70vh - 74px);
    }
}

@media (max-width: 1199px) {
    .report-field,
    .report-field-md,
    .report-field-lg {
        grid-column: span 6;
    }

    .report-summary-grid,
    .report-range-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-filter-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-selector-grid,
    .report-selector-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-selector-grid--org {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-selector-grid--business {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .report-title {
        font-size: 1.6rem;
    }

    .report-column-toolbar {
        justify-content: flex-start;
    }

    .report-column-visibility-panel {
        left: 0;
        right: auto;
        width: min(100%, 360px);
    }

    .report-column-visibility-grid {
        grid-template-columns: 1fr 1fr;
    }

    .report-filter-card .card-body {
        padding: 18px;
    }

    .report-field,
    .report-field-md,
    .report-field-lg,
    .report-field-xl {
        grid-column: 1 / -1;
    }

    .report-summary-grid,
    .report-range-grid,
    .report-range-fields {
        grid-template-columns: 1fr;
    }

    .report-filter-toolbar {
        grid-template-columns: 1fr;
    }

    .report-toolbar-actions .report-filter-actions {
        flex-wrap: wrap;
    }

    .report-selector-grid,
    .report-selector-grid--compact {
        grid-template-columns: 1fr;
    }

    .report-selector-grid--org,
    .report-selector-grid--business {
        grid-template-columns: 1fr;
    }

    .report-date-range-panel {
        width: min(100vw - 24px, 860px);
        left: 50%;
        transform: translateX(-50%);
    }

    .report-date-range-calendars {
        grid-template-columns: 1fr;
    }

    .report-date-range-month + .report-date-range-month {
        border-top: 1px solid #edf1f6;
        border-left: none;
    }

    .report-filter-actions {
        justify-content: stretch;
    }

    .report-filter-actions .btn {
        flex: 1 1 auto;
    }
}
