:root {
    --v2-ink: #2d3748;
    --v2-muted: #718096;
    --v2-surface: rgba(255, 255, 255, .9);
    --v2-surface-solid: #fff;
    --v2-border: #e2e8f0;
    --v2-brand: #667eea;
    --v2-brand-deep: #764ba2;
    --v2-brand-soft: #eef0ff;
    --v2-warning: #d97706;
    --v2-danger: #dc3545;
    --v2-success: #059669;
    --v2-shadow: 0 14px 36px rgba(45, 55, 72, .07);
    --v2-radius: 18px;
}

* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--v2-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(900px circle at 100% 0%, rgba(102, 126, 234, .09), transparent 55%),
        radial-gradient(800px circle at 0% 100%, rgba(118, 75, 162, .06), transparent 58%),
        #f8f9fa;
}

.v2-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.v2-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 18px;
    overflow: hidden;
    color: #edf4ff;
    background: linear-gradient(165deg, #172b4d 0%, #12233f 54%, #0d1a30 100%);
    box-shadow: 10px 0 40px rgba(13, 26, 48, .18);
}
.v2-brand-row { display: flex; align-items: center; justify-content: space-between; }
.v2-brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; min-width: 0; }
.v2-brand:hover { color: white; }
.v2-brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    padding: 6px;
    border: 1px solid rgba(166,196,235,.3);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(96,165,250,.24), rgba(255,255,255,.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 16px rgba(2,12,28,.28);
    overflow: hidden;
}
.v2-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.2));
}
.v2-brand-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}
.v2-brand strong, .v2-brand small { display: block; }
.v2-brand strong { font-size: 1.08rem; letter-spacing: .02em; }
.v2-brand small { margin-top: 1px; color: rgba(219,234,254,.64); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.v2-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 2px 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.v2-nav-section { padding: 14px 0; border-top: 1px solid rgba(171,196,230,.14); }
.v2-nav-section:first-child { border-top: 0; }
.v2-nav-label {
    display: block;
    padding: 0 11px 7px;
    color: rgba(191,211,238,.58);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.v2-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 11px;
    margin: 3px 0;
    border: 1px solid transparent;
    border-radius: 11px;
    color: rgba(231,241,255,.82);
    font-size: .96rem;
    text-decoration: none;
    transition: .18s ease;
}
.v2-nav a i { width: 17px; color: rgba(164,195,235,.82); text-align: center; }
.v2-nav a span { min-width: 0; }
.v2-nav a strong, .v2-nav a small { display: block; }
.v2-nav a strong { font-size: .98rem; font-weight: 700; }
.v2-nav a small { margin-top: 2px; color: rgba(201,220,244,.62); font-size: .72rem; }
.v2-nav a.active small, .v2-nav a:hover small { color: rgba(255,255,255,.68); }
.v2-nav a:hover { color: white; border-color: rgba(147,197,253,.18); background: rgba(96,165,250,.12); }
.v2-nav a.active { color: white; border-color: rgba(147,197,253,.3); background: rgba(37,99,235,.28); box-shadow: inset 3px 0 #7db4ff; }
.v2-sidebar-footer { display: flex; align-items: center; gap: 10px; padding: 15px 5px 0; border-top: 1px solid rgba(171,196,230,.16); }
.v2-user-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #e8eaff; color: #4c51bf; font-size: .8rem; font-weight: 800; }
.v2-user-copy { min-width: 0; }
.v2-user-copy strong, .v2-user-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v2-user-copy strong { font-size: .78rem; }
.v2-user-copy small { color: rgba(244,238,255,.52); font-size: .67rem; }
.v2-sidebar-close { display: none !important; color: white !important; border-color: rgba(255,255,255,.13) !important; background: rgba(255,255,255,.07) !important; }

.v2-main { min-width: 0; padding: 30px 36px 60px; }
.v2-mobile-bar { display: none; }
.v2-topbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.v2-eyebrow { margin-bottom: 5px; color: var(--v2-brand); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.v2-topbar h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.05; letter-spacing: -.035em; }
.v2-topbar p { max-width: 720px; margin: 7px 0 0; color: var(--v2-muted); font-size: .9rem; }
.v2-topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-mode-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #d9ddfb; border-radius: 999px; color: #4c51bf; background: rgba(238,240,255,.85); font-size: .7rem; font-weight: 700; white-space: nowrap; }

.v2-card {
    overflow: hidden;
    border: 1px solid rgba(226,232,240,.98);
    border-radius: var(--v2-radius);
    background: var(--v2-surface);
    box-shadow: var(--v2-shadow);
    backdrop-filter: blur(10px);
}
.v2-card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--v2-border); }
.v2-card-header strong, .v2-card-header h5 { color: #2d3748; font-size: .95rem; }
.v2-card-body { padding: 20px; }
.v2-switcher { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--v2-border); border-radius: 13px; background: #fff; }
.v2-switcher a { padding: 9px 14px; border-radius: 9px; color: #64748b; text-decoration: none; font-size: .84rem; font-weight: 700; }
.v2-switcher a:hover { color: #4055ce; background: #f3f5ff; }
.v2-switcher a.active { color: #fff; background: linear-gradient(135deg, #5771e8, #7254ba); }
.v2-feature-card { height: 100%; padding: 20px; border: 1px solid var(--v2-border); border-radius: 15px; background: rgba(255,255,255,.55); }
.v2-feature-number { display: grid; width: 32px; height: 32px; margin-bottom: 18px; place-items: center; border-radius: 10px; color: var(--v2-brand); background: var(--v2-brand-soft); font-size: .76rem; font-weight: 800; }
.v2-feature-card strong { display: block; margin-bottom: 8px; }
.v2-feature-card p { color: var(--v2-muted); font-size: .82rem; line-height: 1.55; }
.v2-action-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--v2-border); border-radius: 14px; color: var(--v2-ink); background: rgba(255,255,255,.62); text-decoration: none; transition: .18s ease; }
.v2-action-card:hover { color: var(--v2-ink); border-color: #c8cff5; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45,55,72,.07); }
.v2-action-card i { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--v2-brand); background: var(--v2-brand-soft); }
.v2-action-card strong, .v2-action-card small { display: block; }
.v2-action-card small { margin-top: 3px; color: var(--v2-muted); font-size: .74rem; }
.v2-trend-list { display: grid; gap: 10px; max-height: 360px; overflow-y: auto; padding: 4px 10px 4px 0; scrollbar-width: thin; scrollbar-color: #9aa9c2 #eef2f7; }
.v2-trend-list::-webkit-scrollbar { width: 7px; }
.v2-trend-list::-webkit-scrollbar-track { background: #eef2f7; border-radius: 8px; }
.v2-trend-list::-webkit-scrollbar-thumb { background: #9aa9c2; border-radius: 8px; }
.v2-trend-row { min-height: 26px; }
.v2-trend-row { display: grid; grid-template-columns: 72px minmax(90px,1fr) 90px; align-items: center; gap: 12px; font-size: .78rem; }
.v2-trend-track { height: 8px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
.v2-trend-bar { height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, var(--v2-brand), var(--v2-brand-deep)); }
.v2-status-up { color: var(--v2-success); }
.v2-status-down { color: var(--v2-danger); }
.v2-sync-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border: 1px solid #bde4ee; border-radius: 14px; color: #17566a; background: #e7f8fc; font-size: .8rem; }
.v2-sync-bar > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2-sync-bar span { color: #5c7e88; }
.v2-preset-row { display: flex; gap: 7px; flex-wrap: wrap; }
.v2-preset-row .btn { min-height: 34px; padding: 6px 10px; }
.v2-analytics-quick-ranges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 17px; margin-bottom: 17px; border-bottom: 1px solid var(--v2-border); }
.v2-analytics-quick-label { color: var(--v2-ink); font-size: .82rem; font-weight: 750; white-space: nowrap; }
.v2-analytics-quick-ranges .v2-preset-row { gap: 7px; }
.v2-quick-range { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 6px 10px; border: 1px solid #aab3c2; border-radius: 7px; color: #4a5568; background: #fff; font-size: .74rem; font-weight: 650; line-height: 1; text-decoration: none; white-space: nowrap; }
.v2-quick-range i { color: #687386; font-size: .7rem; }
.v2-quick-range:hover { border-color: var(--v2-brand); color: var(--v2-brand); background: var(--v2-brand-soft); }
.v2-quick-range.active { border-color: var(--v2-brand); color: #fff; background: var(--v2-brand); box-shadow: 0 6px 14px rgba(102,126,234,.2); }
.v2-quick-range.active i { color: #fff; }
.v2-filter-card { position: relative; z-index: 10; overflow: visible; }
.v2-filter-toolbar { display: grid; grid-template-columns: minmax(210px,.9fr) minmax(220px,1fr) minmax(220px,1fr) 120px auto; align-items: end; gap: 12px; }
.v2-date-picker { position: relative; }
.v2-date-picker summary { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 7px 12px; border: 1px solid #d7dce5; border-radius: 11px; background: rgba(255,255,255,.86); cursor: pointer; list-style: none; }
.v2-date-picker summary::-webkit-details-marker { display: none; }
.v2-date-picker summary span, .v2-date-panel-head > div { display: grid; min-width: 0; }
.v2-date-picker summary strong { overflow: hidden; color: var(--v2-ink); font-size: .81rem; text-overflow: ellipsis; white-space: nowrap; }
.v2-date-picker summary small, .v2-date-panel-head small { color: var(--v2-muted); font-size: .65rem; }
.v2-date-picker summary i { margin-left: 12px; color: var(--v2-brand); }
.v2-date-picker[open] summary { border-color: #8d9bec; box-shadow: 0 0 0 .2rem rgba(102,126,234,.11); }
.v2-date-panel { position: absolute; top: calc(100% + 7px); left: 0; z-index: 30; width: 520px; overflow: hidden; border: 1px solid var(--v2-border); border-radius: 15px; background: #fff; box-shadow: 0 22px 55px rgba(45,55,72,.18); }
.v2-date-panel-head, .v2-date-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.v2-date-panel-head { border-bottom: 1px solid var(--v2-border); }
.v2-date-panel-head strong { color: var(--v2-ink); font-size: .88rem; }
.v2-popover-close { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 9px; color: var(--v2-muted); background: #f4f6f9; }
.v2-date-section { padding: 14px 16px; border-bottom: 1px solid var(--v2-border); }
.v2-date-section-label { display: block; margin-bottom: 9px; color: var(--v2-muted); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.v2-preset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.v2-preset-grid a { padding: 8px 9px; border: 1px solid var(--v2-border); border-radius: 9px; color: #4a5568; background: #fff; font-size: .72rem; font-weight: 700; text-align: center; text-decoration: none; }
.v2-preset-grid a:hover { border-color: #bcc5ef; color: var(--v2-brand); background: var(--v2-brand-soft); }
.v2-preset-grid a.active { border-color: var(--v2-brand); color: #fff; background: var(--v2-brand); }
.v2-date-actions { justify-content: flex-end; background: #fafbfc; }
.v2-date-actions .btn { min-height: 36px; }
.v2-filter-actions > div { display: flex; gap: 8px; }
.v2-filter-actions .btn { white-space: nowrap; }
.v2-multiselect { position: relative; }
.v2-multiselect summary { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 9px 12px; border: 1px solid #d7dce5; border-radius: 11px; background: rgba(255,255,255,.86); cursor: pointer; font-size: .84rem; list-style: none; }
.v2-multiselect summary::-webkit-details-marker { display: none; }
.v2-multiselect[open] summary { border-color: #8d9bec; box-shadow: 0 0 0 .2rem rgba(102,126,234,.11); }
.v2-multiselect-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; padding: 10px; border: 1px solid var(--v2-border); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(45,55,72,.14); }
.v2-option-list { max-height: 260px; overflow-y: auto; }
.v2-option-list label { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 8px; cursor: pointer; font-size: .8rem; }
.v2-option-list label:hover { background: var(--v2-brand-soft); }
.v2-option-list label.keyboard-active { outline: 2px solid rgba(102,126,234,.35); background: var(--v2-brand-soft); }
.v2-option-list label small { display: block; margin-top: 1px; color: var(--v2-muted); font-size: .65rem; }
.v2-option-list .form-check-input { margin-top: 2px; flex: 0 0 auto; }
.v2-table-toolbar { flex-wrap: wrap; }
.v2-view-label { color: var(--v2-muted); font-size: .75rem; white-space: nowrap; }
.v2-analytics-total > * { border-top: 2px solid #cfd6e2 !important; background: #f3f6fa !important; color: #1f2937; }
.v2-breakdown-select { min-width: 142px; }
.v2-table-toolbar form { flex-wrap: wrap; }
.v2-table-toolbar .form-select { min-height: 36px; width: auto; }
.v2-sort-link { color: inherit; text-decoration: none; }
.v2-sort-link:hover { color: var(--v2-brand); }
.v2-row-actions { position: relative; display: inline-block; }
.modal { z-index: 1060 !important; }
.modal-backdrop { z-index: 1050 !important; }
body > .modal { z-index: 1060 !important; }
body > .modal-backdrop { z-index: 1050 !important; }
.v2-submissions-table .v2-message-column { max-width: 280px; width: 280px; }
.v2-submissions-table .v2-message-column span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-submission-full-message { padding: 14px 16px; border: 1px solid var(--v2-border); border-radius: 10px; background: #f8fafc; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.v2-row-quick-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.v2-quick-action { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; padding: 0; border: 1px solid var(--v2-border); border-radius: 9px; color: var(--v2-ink); background: #fff; font-size: .8rem; font-weight: 600; text-decoration: none; }
.v2-quick-action span { display: none; }
.v2-quick-action:hover { color: var(--v2-brand); border-color: #8d9bec; background: var(--v2-brand-soft); }
.v2-quick-action i { color: var(--v2-muted); }
.v2-row-actions > summary { display: grid; width: 36px; height: 34px; place-items: center; border: 1px solid var(--v2-border); border-radius: 9px; color: var(--v2-muted); background: #fff; cursor: pointer; list-style: none; }
.v2-row-actions > summary::-webkit-details-marker { display: none; }
.v2-row-actions[open] > summary { border-color: #8d9bec; color: var(--v2-brand); box-shadow: 0 0 0 .18rem rgba(102,126,234,.1); }
.v2-row-actions-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 45; width: 210px; padding: 6px; border: 1px solid var(--v2-border); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(45,55,72,.16); text-align: left; }
.v2-row-actions-menu a, .v2-row-actions-menu button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 9px; border: 0; border-radius: 8px; color: var(--v2-ink); background: transparent; font-size: .75rem; text-align: left; text-decoration: none; }
.v2-row-actions-menu a:hover, .v2-row-actions-menu button:hover { color: var(--v2-brand); background: var(--v2-brand-soft); }
.v2-row-actions-menu button.danger { color: var(--v2-danger); }
.v2-row-actions-menu button:disabled { opacity: .45; cursor: not-allowed; }
.v2-row-actions-menu i { width: 15px; color: var(--v2-muted); text-align: center; }
.v2-card:has(.v2-row-actions[open]), .table-responsive:has(.v2-row-actions[open]) { overflow: visible; }

.gst-review-form { display: grid; grid-template-columns: minmax(145px, 1.2fr) repeat(3, minmax(115px, 1fr)) minmax(170px, 1.3fr) 76px; gap: 10px; align-items: end; }
.gst-review-form .form-label { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 600; color: #64748b; }
.gst-review-form small { display: block; margin-top: 3px; font-size: .68rem; white-space: nowrap; }
@media (max-width: 1200px) { .gst-review-form { grid-template-columns: repeat(3, minmax(140px, 1fr)); } .gst-review-form__action { grid-column: span 1; } }
@media (max-width: 700px) { .gst-review-form { grid-template-columns: 1fr; } .gst-review-form__action { grid-column: auto; } }
.v2-pagination nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v2-pagination .pagination { margin: 0; }
.v2-pagination .page-link { min-width: 36px; padding: 7px 10px; color: var(--v2-brand) !important; border-color: var(--v2-border) !important; background: #fff !important; font-size: .78rem; text-align: center; }
.v2-pagination .page-link:hover { color: #fff !important; border-color: var(--v2-brand) !important; background: var(--v2-brand) !important; }
.v2-pagination .page-item.active .page-link { border-color: var(--v2-brand); background: var(--v2-brand); }
.v2-pagination .page-item.active .page-link { color: #fff !important; border-color: var(--v2-brand) !important; background: var(--v2-brand) !important; }
.v2-pagination .page-item.disabled .page-link { color: #9aa3b2 !important; background: #f7f8fa !important; }
.v2-summary-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-summary-strip > span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--v2-border); border-radius: 999px; background: rgba(255,255,255,.75); color: var(--v2-muted); font-size: .75rem; }
.v2-summary-strip strong { color: var(--v2-ink); }
.v2-client-name { color: var(--v2-ink); font-weight: 750; text-decoration: none; }
.v2-client-name:hover { color: var(--v2-brand); }
.v2-badge-client { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; color: #fff !important; background: #1677f2; font-size: .76rem; font-weight: 700; line-height: 1.25; }
.v2-badge-client:hover { background: #0d65d8; }
.v2-badge-client i { font-size: .68rem; }
.v2-badge-status { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 2px 6px; border-radius: 5px; color: #fff; font-size: .62rem; font-weight: 700; line-height: 1.2; }
.v2-badge-status.is-active { background: #119b68; }
.v2-badge-status.is-muted { background: #6b7280; }
.v2-badge-domain { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; padding: 1px 5px; border-radius: 4px; color: #fff; background: #6b7280; font-size: .62rem; }
.v2-domain-toggle { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 4px 8px; border: 1px solid #d7dce5; border-radius: 7px; color: #586579; background: #fff; font-size: .7rem; font-weight: 700; }
.v2-domain-toggle:hover, .v2-domain-toggle.active { border-color: #aeb8ef; color: var(--v2-brand); background: var(--v2-brand-soft); }
.v2-domain-toggle i { width: 11px; font-size: .62rem; }
.v2-domain-panel { padding: 14px; border: 1px solid var(--v2-border); border-radius: 12px; background: #fafbfc; }
.v2-domain-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.v2-domain-panel .table > :not(caption) > * > * { padding: .55rem .65rem; }
.v2-client-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.v2-client-actions > a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--v2-border); border-radius: 14px; color: var(--v2-ink); background: rgba(255,255,255,.78); text-decoration: none; }
.v2-client-actions > a:hover { border-color: #c8cff5; box-shadow: 0 8px 22px rgba(45,55,72,.06); }
.v2-client-actions i { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--v2-brand); background: var(--v2-brand-soft); }
.v2-client-actions strong, .v2-client-actions small { display: block; }
.v2-client-actions small { margin-top: 2px; color: var(--v2-muted); font-size: .68rem; }
.v2-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 0; }
.v2-detail-grid div { min-width: 0; }
.v2-detail-grid dt { color: var(--v2-muted); font-size: .65rem; letter-spacing: .09em; text-transform: uppercase; }
.v2-detail-grid dd { margin: 5px 0 0; font-size: .9rem; font-weight: 700; }
.v2-detail-grid dd small { display: block; margin-top: 2px; color: var(--v2-muted); font-size: .7rem; font-weight: 400; }
.v2-bank-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--v2-border); }
.v2-bank-row:last-child { border-bottom: 0; }
.v2-bank-row > i { color: var(--v2-brand); }
.v2-bank-row > span:nth-child(2) { flex: 1; min-width: 0; }
.v2-bank-row strong, .v2-bank-row small { display: block; }
.v2-bank-row small { color: var(--v2-muted); font-size: .68rem; }
.v2-domain-editor { display: grid; gap: 10px; max-height: 500px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #aab4c8 transparent; }
.v2-domain-editor::-webkit-scrollbar { width: 8px; }
.v2-domain-editor::-webkit-scrollbar-track { background: transparent; }
.v2-domain-editor::-webkit-scrollbar-thumb { background: #aab4c8; border-radius: 999px; }
.v2-domain-edit-row { display: grid; grid-template-columns: minmax(0,1fr) auto 38px; align-items: end; gap: 9px; padding: 11px; border: 1px solid var(--v2-border); border-radius: 12px; background: #fafbfc; }
.v2-domain-type { display: flex; align-items: center; gap: 6px; min-height: 43px; margin: 0; color: var(--v2-muted); font-size: .72rem; white-space: nowrap; }
.v2-domain-remove { display: grid; width: 38px; height: 43px; place-items: center; border: 1px solid #f0c9cc; border-radius: 10px; color: var(--v2-danger); background: #fff5f5; }
@media (max-width: 900px) { .v2-client-actions { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 576px) { .v2-client-actions, .v2-detail-grid { grid-template-columns: 1fr; } }

/* Client V2 shares the Admin V2 visual language while retaining client-page markup. */
.client-layout { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); background: #f8f9fa; }
.client-sidebar { position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; padding: 24px 16px 18px; overflow: hidden; color: #edf4ff; background: linear-gradient(165deg,#172b4d 0%,#12233f 54%,#0d1a30 100%); box-shadow: 10px 0 40px rgba(13,26,48,.18); }
.client-sidebar-header { padding: 0 5px 20px; border-bottom: 1px solid rgba(171,196,230,.16); }
.client-sidebar-logo { display: flex; align-items: center; gap: 11px; color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; }
.client-sidebar-logo i { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(166,196,235,.3); border-radius: 12px; color: #a6c4eb; background: rgba(96,165,250,.18); }
.client-sidebar-logo-mark { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 auto; }
.client-sidebar-logo-mark img { width: 100%; height: 100%; object-fit: contain; border: 1px solid rgba(166,196,235,.3); border-radius: 12px; background: rgba(96,165,250,.18); }
.client-sidebar-logo-mark i { display: none; }
.client-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; padding-top: 20px; }
.client-nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 10px; border: 1px solid transparent; border-radius: 11px; color: rgba(219,234,254,.72); font-size: .86rem; font-weight: 600; text-decoration: none; }
.client-nav-item i { width: 19px; color: #a9c2e4; text-align: center; }
.client-nav-item:hover, .client-nav-item.active { color: #fff; border-color: rgba(147,197,253,.3); background: rgba(37,99,235,.28); }
.client-nav-item.active i, .client-nav-item:hover i { color: #dbeafe; }
.client-sidebar .btn-client-secondary { border: 1px solid rgba(166,196,235,.3); color: #edf4ff; background: rgba(255,255,255,.08); }
.client-main { min-width: 0; margin-left: 0 !important; background: transparent; }
.client-quick-ranges { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.client-quick-ranges .btn { white-space: nowrap; min-height: 42px; border-radius: 10px; }
.client-table tfoot td { background: #f5f7fb; border-top: 2px solid #d9e1ee; padding-top: 1rem; padding-bottom: 1rem; }
@media (max-width: 768px) {
  .client-quick-ranges { margin-right: -0.5rem; padding-right: 0.5rem; }
  .client-quick-ranges strong { font-size: .9rem; }
}
.client-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 0 36px; border-bottom: 1px solid rgba(226,232,240,.95); background: rgba(255,255,255,.78); backdrop-filter: blur(12px); }
.client-header-title { color: #2d3748; font-size: 1.35rem; font-weight: 700; }
.client-header-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #4c51bf; background: #e8eaff; font-size: .8rem; font-weight: 800; }
.client-content { padding: 30px 36px 60px; }
.client-card { border: 1px solid rgba(226,232,240,.98); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 14px 36px rgba(45,55,72,.07); }
.client-card-title { color: #2d3748; font-size: 1.05rem; font-weight: 700; }
.client-card-header { border-bottom-color: var(--v2-border); }
.client-table th { color: #687386; background: rgba(245,247,250,.85); font-size: .7rem; font-weight: 800; letter-spacing: .07em; }
.client-table td { color: #2d3748; border-bottom-color: var(--v2-border); font-size: .9rem; }
.client-table tbody tr:hover { background: #f8fafc; }
.client-content .btn-client { color: #fff; border-radius: 9px; background: linear-gradient(135deg,#5771e8,#7254ba); box-shadow: 0 8px 18px rgba(87,113,232,.2); }
.client-content .btn-client:hover { color: #fff; background: linear-gradient(135deg,#4c63d8,#6646a8); }
.client-content .form-control, .client-content .form-select { border-color: var(--v2-border); border-radius: 10px; }
.client-content .form-control:focus, .client-content .form-select:focus { border-color: #8d9bec; box-shadow: 0 0 0 .2rem rgba(102,126,234,.12); }
.client-summary-cards-wrap { width: 100%; max-width: none; margin-left: 0; }
.client-summary-card { border: 1px solid rgba(226,232,240,.98); border-radius: 18px; color: #2d3748; background: rgba(255,255,255,.9) !important; box-shadow: 0 14px 36px rgba(45,55,72,.07); }
.client-summary-card-title { color: #2d3748 !important; }
.client-summary-period-label { color: #718096 !important; }
.client-summary-period-value, .client-summary-balance-main { color: #2d3748 !important; }
.client-summary-card-balance { border-left: 4px solid #667eea; }
.client-summary-period-compare { color: #059669 !important; }
@media (max-width: 768px) { .client-layout { display: block; } .client-sidebar { position: fixed; left: 0; width: min(292px,86vw); transform: translateX(-105%); transition: transform .22s ease; } .client-sidebar.show { transform: translateX(0); } .client-header { padding: 0 18px; } .client-content { padding: 26px 18px 42px; } }
.metric-label { color: var(--v2-muted); font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.metric-value { margin-top: 7px; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 800; letter-spacing: -.025em; }
.v2-metric-accent { position: relative; }
.v2-metric-accent::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--v2-brand); }

/* Readability scale: V2 content should match the larger V1 typography. */
.v2-main { font-size: 1rem; }
.v2-main .table { font-size: .9rem; }
.v2-main .table thead th { font-size: .7rem; }
.v2-main .form-label { font-size: .82rem; }
.v2-main .form-control, .v2-main .form-select { font-size: .94rem; }
.v2-main .btn { font-size: .9rem; }
.v2-main .btn.btn-sm { font-size: .82rem; }
.v2-main .v2-card-header h5, .v2-main .v2-card-header strong { font-size: 1.05rem; }
.v2-main .text-muted { font-size: .86rem; }

.form-label { color: #4a5568; font-size: .73rem; font-weight: 700; }
.form-control, .form-select { min-height: 43px; border-color: #d7dce5; border-radius: 11px; background-color: rgba(255,255,255,.86); font-size: .84rem; }
.form-control:focus, .form-select:focus { border-color: #8d9bec; box-shadow: 0 0 0 .2rem rgba(102,126,234,.11); }
.v2-shell .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 14px; border-radius: 11px; font-size: .82rem; font-weight: 700; line-height: 1.2; }
.v2-shell .btn i { margin: 0 !important; flex: 0 0 auto; }
.v2-shell .btn.btn-sm { min-height: 34px; padding: 6px 10px; gap: 6px; }
.btn-primary { border-color: var(--v2-brand); background: var(--v2-brand); }
.btn-primary { background-image: linear-gradient(135deg, #667eea, #7655aa); box-shadow: 0 7px 16px rgba(102,126,234,.2); }
.btn-primary:hover, .btn-primary:focus { border-color: #5a67d8; background: #5a67d8; background-image: none; }
.v2-alert { border: 1px solid; border-radius: 14px; box-shadow: none; font-size: .82rem; }
.alert-warning { border-color: #efd7ae; color: #74491f; background: rgba(255,245,226,.86); }

.table { --bs-table-bg: transparent; margin: 0; color: #374151; font-size: .8rem; }
.table > :not(caption) > * > * { padding: .82rem .9rem; border-bottom-color: #e8ebf1; vertical-align: middle; }
.table thead th { color: #687386; background: rgba(245,247,250,.85); font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table-hover > tbody > tr:hover > * { --bs-table-accent-bg: rgba(238,240,255,.65); color: inherit; }
.table-primary { --bs-table-bg: rgba(232,235,255,.72); --bs-table-striped-bg: rgba(232,235,255,.72); --bs-table-hover-bg: rgba(224,228,253,.86); }
.table code { padding: 4px 7px; border: 1px solid #e2e6ef; border-radius: 7px; color: #4c51bf; background: #f7f8fc; font-size: .74rem; }
.text-success { color: var(--v2-success) !important; }
.text-muted { color: var(--v2-muted) !important; }
.v2-icon-button { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--v2-border); border-radius: 11px; color: var(--v2-ink); background: rgba(255,255,255,.78); }
.v2-backdrop { display: none; }

@media (max-width: 1100px) {
    .v2-main { padding: 26px 24px 50px; }
    .v2-filter-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .v2-filter-apply, .v2-filter-actions { align-self: end; }
}
@media (max-width: 860px) {
    body.nav-open { overflow: hidden; }
    .v2-shell { display: block; }
    .v2-sidebar { position: fixed; left: 0; width: min(292px, 86vw); transform: translateX(-105%); transition: transform .22s ease; }
    .v2-shell.nav-open .v2-sidebar { transform: translateX(0); }
    .v2-sidebar-close { display: inline-grid !important; }
    .v2-backdrop { position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(26,11,46,.48); backdrop-filter: blur(3px); }
    .v2-shell.nav-open .v2-backdrop { display: block; }
    .v2-main { padding: 0 18px 42px; }
    .v2-mobile-bar { display: flex; align-items: center; gap: 12px; min-height: 66px; margin: 0 -18px 22px; padding: 0 18px; border-bottom: 1px solid rgba(226,232,240,.95); background: rgba(255,255,255,.72); backdrop-filter: blur(12px); }
    .v2-mobile-brand { flex: 1; color: var(--v2-ink); font-weight: 800; text-decoration: none; }
    .v2-mobile-brand span { color: var(--v2-brand); font-size: .7rem; }
    .v2-topbar { align-items: start; }
    .v2-topbar-actions { display: none; }
}
@media (max-width: 576px) {
    .v2-topbar h1 { font-size: 1.75rem; }
    .v2-topbar p { font-size: .82rem; }
    .v2-card { border-radius: 15px; }
    .v2-card-header, .v2-card-body { padding: 16px; }
    .v2-filter-toolbar { grid-template-columns: 1fr; }
    .v2-filter-actions > div, .v2-filter-actions .btn:last-child { width: 100%; }
    .v2-filter-actions .btn:first-child { flex: 0 0 43px; }
    .v2-date-panel { position: fixed; inset: auto 0 0; z-index: 60; width: auto; max-height: 86vh; overflow-y: auto; border-radius: 18px 18px 0 0; }
    .v2-preset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .v2-domain-edit-row { grid-template-columns: 1fr 38px; }
    .v2-domain-type { grid-column: 1; grid-row: 2; }
}
