/* Tax home dashboard — 4-colour system: deep green · deep red · deep blue · white/black */
.tax-dash {
    --tax-deep-green: #0B3D2E;
    --tax-deep-red: #7F1D1D;
    --tax-deep-blue: #163A5F;
    --tax-white: #ffffff;
    --tax-black: #0A0A0A;

    --tax-bg: #EEF2F6;
    --tax-surface: var(--tax-white);
    --tax-border: #D5DEE8;
    --tax-text: var(--tax-black);
    --tax-muted: #5B6B7C;
    --tax-radius: 12px;

    /* Semantic aliases → 4-colour palette only */
    --tax-green: var(--tax-deep-green);
    --tax-green-deep: var(--tax-deep-green);
    --tax-blue: var(--tax-deep-blue);
    --tax-blue-deep: var(--tax-deep-blue);
    --tax-teal: var(--tax-deep-blue);
    --tax-teal-deep: var(--tax-deep-blue);
    --tax-amber: var(--tax-deep-red);
    --tax-amber-deep: var(--tax-deep-red);
    --tax-slate: var(--tax-black);
    --tax-slate-deep: var(--tax-black);
    --tax-rose: var(--tax-deep-red);
    --tax-rose-deep: var(--tax-deep-red);

    background:
        radial-gradient(1200px 420px at 8% -10%, rgba(11, 61, 46, 0.10), transparent 55%),
        radial-gradient(900px 380px at 92% 0%, rgba(22, 58, 95, 0.10), transparent 50%),
        linear-gradient(180deg, #F7F9FC 0%, var(--tax-bg) 40%, #E8EEF5 100%);
    /* Cancel .kt-container 25px pad; left inset half of page pad (12px) to match footer */
    margin: -25px -25px 0;
    /* Top pad between header and subtitle; bottom clears fixed footer */
    padding: 0.75rem 25px 3.25rem 12px;
    min-height: calc(100vh - 220px);
    color: var(--tax-text);
}

.tax-dash .tax-dash-header {
    margin-bottom: 1.25rem;
}

/* Top dashboard banner upload slot — full cover */
.tax-dash .tax-dash-banner-upload {
    position: relative;
    margin: -1.25rem -25px 1rem -12px;
    width: calc(100% + 37px);
    max-width: none;
}

.tax-dash .tax-dash-banner-frame {
    width: 100%;
    min-height: 180px;
    height: 220px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 2px dashed rgba(255, 255, 255, 0.55);
    border-radius: 0;
    overflow: hidden;
}

.tax-dash .tax-dash-banner-frame.has-image {
    border: none;
    border-radius: 0;
    background: #0a0a0a;
    height: 220px;
    min-height: 220px;
    max-height: none;
}

.tax-dash .tax-dash-banner-frame:hover {
    background: rgba(255, 255, 255, 0.18);
}

.tax-dash .tax-dash-banner-frame.has-image:hover {
    background: #0a0a0a;
}

.tax-dash .tax-dash-banner-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #000;
}

.tax-dash .tax-dash-banner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.tax-dash .tax-dash-banner-placeholder i {
    font-size: 1.6rem;
    opacity: 0.95;
}

.tax-dash .tax-dash-banner-placeholder small {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.85;
}

.tax-dash .tax-dash-banner-busy {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    z-index: 2;
}

.tax-dash .tax-dash-banner-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tax-dash .tax-dash-banner-crop {
    position: absolute;
    top: 8px;
    right: 42px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tax-dash .tax-dash-banner-crop:hover {
    background: #018ABE;
}

.tax-dash .tax-dash-banner-clear:hover {
    background: #be123c;
}

.tax-dash .tax-dash-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.tax-dash .tax-dash-subtitle {
    font-size: 0.9rem;
    color: #ffffff !important;
    margin: 0 0 0.25rem;
    font-weight: 500;
}

.tax-dash .tax-dash-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
    font-weight: 500;
}

/* Desktop: keep header text pure white on navy bg */
@media (min-width: 992px) {
    .tax-dash .tax-dash-header .tax-dash-title,
    .tax-dash .tax-dash-header .tax-dash-subtitle,
    .tax-dash .tax-dash-header .tax-dash-tagline {
        color: #ffffff !important;
    }
}

.tax-dash .tax-logo-wrap {
    background: linear-gradient(135deg, #0f766e, #0e7490, #1e40af);
    padding: 3px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.2);
    display: inline-flex;
}

.tax-dash .tax-logo-inner {
    background: #fff;
    border-radius: 11px;
    padding: 0.75rem 1rem;
    min-width: 140px;
    max-width: 240px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tax-dash .tax-logo-inner img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* Card shell — uniform size (match Service charge / ops boxes) */
.tax-dash .tax-card {
    background: var(--tax-surface);
    border: 1px solid var(--tax-border);
    border-radius: var(--tax-radius);
    border-left: 4px solid var(--tax-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    overflow: hidden;
    z-index: 1;
}

.tax-dash .row > [class*="col-"] > .tax-card {
    width: 100%;
}

.tax-dash .tax-card .tax-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.tax-dash .tax-card .tax-card-header h5,
.tax-dash .tax-card .tax-card-header .tax-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
}

.tax-dash .tax-card .tax-card-header i {
    opacity: 0.9;
    font-size: 0.95rem;
}

.tax-dash .tax-card .tax-card-body {
    flex: 1;
    overflow: hidden;
    padding: 0.75rem 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tax-dash .tax-card .tax-card-subhead {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tax-muted);
    margin: 0 0 0.5rem;
    text-align: center;
}

.tax-dash .tax-card .tax-card-footer {
    flex-shrink: 0;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border-top: 1px solid var(--tax-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
}

/* Variants */
.tax-dash .tax-card--purchase { border-left-color: #0f766e; }
.tax-dash .tax-card--purchase .tax-card-header { background: var(--tax-green-deep); }

.tax-dash .tax-card--m43 { border-left-color: #1e40af; }
.tax-dash .tax-card--m43 .tax-card-header { background: var(--tax-blue-deep); }

.tax-dash .tax-card--m63 { border-left-color: #0e7490; }
.tax-dash .tax-card--m63 .tax-card-header { background: var(--tax-teal-deep); }

.tax-dash .tax-card--vat { border-left-color: #b45309; }
.tax-dash .tax-card--vat .tax-card-header { background: var(--tax-amber-deep); }

.tax-dash .tax-card--server { border-left-color: #7c2d12; }
.tax-dash .tax-card--server .tax-card-header { background: #7c2d12; }

.tax-dash .tax-card--company { border-left-color: #334155; }
.tax-dash .tax-card--company .tax-card-header { background: var(--tax-slate-deep); }

.tax-dash .tax-card--users { border-left-color: #0f766e; }
.tax-dash .tax-card--users .tax-card-header { background: #134e4a; }

.tax-dash .tax-card--payment { border-left-color: #be123c; }
.tax-dash .tax-card--payment .tax-card-header { background: var(--tax-rose-deep); }

.tax-dash .tax-card--history { border-left-color: #1e40af; }
.tax-dash .tax-card--history .tax-card-header { background: var(--tax-blue-deep); }

.tax-dash .tax-card--notice { border-left-color: #0e7490; }
.tax-dash .tax-card--notice .tax-card-header { background: var(--tax-teal-deep); }

/* Tabs as pills */
.tax-dash .tax-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    border: none;
}

.tax-dash .tax-tabs .tax-tab {
    border: 1px solid var(--tax-border);
    background: #f8fafc;
    color: var(--tax-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1.4;
}

.tax-dash .tax-tabs .tax-tab:hover {
    background: #e2e8f0;
    color: var(--tax-text);
}

.tax-dash .tax-tabs .tax-tab.active {
    background: var(--tax-slate-deep);
    border-color: var(--tax-slate-deep);
    color: #fff;
}

.tax-dash .tax-tabs .tax-tab .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: inherit !important;
    font-weight: 700;
    margin-left: 0.25rem;
}

.tax-dash .tax-tabs .tax-tab.active .badge {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Lists */
.tax-dash .tax-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tax-dash .tax-list > li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.35rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: var(--tax-text);
    background: transparent !important;
}

.tax-dash .tax-list > li:last-child {
    border-bottom: none;
}

.tax-dash .tax-list .tax-empty {
    justify-content: center;
    color: var(--tax-muted);
    font-size: 0.85rem;
    padding: 1.25rem 0.5rem;
}

.tax-dash .tax-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #0f766e;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
}

.tax-dash .tax-badge--slate { background: var(--tax-slate-deep); }
.tax-dash .tax-badge--online { background: #15803d; }
.tax-dash .tax-badge--warn { background: #b45309; }

.tax-dash .tax-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0.25rem;
}

.tax-dash .tax-stat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    color: var(--tax-text);
}

.tax-dash .tax-stat-label i {
    font-size: 1.75rem;
    color: var(--tax-green);
}

.tax-dash .tax-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tax-green-deep);
    line-height: 1;
}

.tax-dash .tax-stat--compact {
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.25rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.tax-dash .tax-stat--compact .tax-stat-value {
    font-size: 1.35rem;
}

.tax-dash .tax-scroll-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 0.15rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

.tax-dash .tax-scroll-list::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.tax-dash .tax-scroll-list::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.tax-dash .tax-scroll-list::-webkit-scrollbar-track {
    background: transparent;
}

.tax-dash .tax-scroll-list:hover::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.32);
}

.tax-dash .tax-scroll-list .tax-list > li {
    padding: 0.45rem 0.5rem;
    align-items: flex-start;
}

.tax-dash .tax-scroll-list .tax-list > li > span:first-child {
    min-width: 0;
    flex: 1;
}

.tax-dash .tax-scroll-list .tax-list > li strong {
    font-size: 0.82rem;
    color: #0f172a;
}

.tax-dash .tax-scroll-list .tax-list > li small {
    font-size: 0.7rem;
    line-height: 1.35;
    margin-top: 0.1rem;
}

.tax-dash .tax-scroll-list .tax-list > li small.tax-mini-note {
    color: #475569;
    font-style: italic;
}

.tax-dash .tax-card--purchase .tax-card-header .tax-badge,
.tax-dash .tax-card--m43 .tax-card-header .tax-badge,
.tax-dash .tax-card--m63 .tax-card-header .tax-badge,
.tax-dash .tax-card--server .tax-card-header .tax-badge {
    min-width: 1.75rem;
    text-align: center;
}

.tax-dash .tax-sector-history-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.tax-dash .tax-sector-history-actions .tax-chip {
    cursor: pointer;
    border: none;
    line-height: 1.2;
}

.tax-dash .tax-sector-history-actions .tax-chip:hover {
    background: #1d4ed8;
}

.tax-dash .tax-card--company .tax-card-body,
.tax-dash .tax-card--users .tax-card-body {
    max-height: 400px;
}

.tax-dash .tax-mini-date {
    opacity: 0.85;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.15rem;
}

.tax-dash .tax-card--purchase .tax-card-body,
.tax-dash .tax-card--m43 .tax-card-body,
.tax-dash .tax-card--m63 .tax-card-body,
.tax-dash .tax-card--server .tax-card-body {
    max-height: 420px;
}

/* M63 failed sector issues — column layout */
.tax-dash .tax-m63-issue-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.tax-dash .tax-m63-issue-head,
.tax-dash .tax-m63-issue-row {
    display: grid;
    grid-template-columns: minmax(4.8rem, 0.95fr) minmax(3.6rem, 0.9fr) minmax(4.5rem, 1.15fr) minmax(4.5rem, 1.25fr) auto;
    gap: 0.35rem;
    align-items: start;
}

.tax-dash .tax-m63-issue-head {
    padding: 0.35rem 0.35rem 0.25rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.tax-dash .tax-m63-issue-list > li.tax-m63-issue-row {
    display: grid;
    align-items: start;
    padding: 0.5rem 0.35rem;
    border-bottom: 1px solid #f1f5f9;
}

.tax-dash .tax-scroll-list .tax-m63-issue-list > li.tax-m63-issue-row > span {
    flex: unset;
}

.tax-dash .tax-m63-issue-list > li.tax-m63-issue-empty {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.tax-dash .tax-m63-col {
    min-width: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    word-break: break-word;
}

.tax-dash .tax-m63-col-when strong {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #0f172a;
}

.tax-dash .tax-m63-sub {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.62rem;
    color: #64748b;
}

.tax-dash .tax-m63-sector {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.08rem;
}

.tax-dash .tax-m63-col-note {
    color: #334155;
}

.tax-dash .tax-m63-col-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.tax-dash .tax-m63-col-actions .tax-chip {
    white-space: nowrap;
}

@media (max-width: 575px) {
    .tax-dash .tax-m63-issue-head {
        display: none;
    }

    .tax-dash .tax-m63-issue-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        padding: 0.55rem 0.35rem;
    }

    .tax-dash .tax-m63-col-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }
}

/* Footer chips */
.tax-dash .tax-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    background: var(--tax-slate-deep);
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.tax-dash .tax-chip:hover {
    background: #0f172a;
    color: #fff !important;
}

/* VAT document rows */
.tax-dash .tax-doc {
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.78rem;
}

.tax-dash .tax-doc:last-child { border-bottom: none; }

.tax-dash .tax-doc strong { color: var(--tax-text); }
.tax-dash .tax-doc .tax-doc-name { color: var(--tax-green-deep); font-weight: 700; }
.tax-dash .tax-doc .tax-doc-meta { color: var(--tax-muted); margin-top: 0.15rem; }
.tax-dash .tax-doc .tax-doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
    font-weight: 600;
}

.tax-dash .tax-doc-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--tax-teal);
    color: #fff !important;
    text-decoration: none !important;
}

.tax-dash .tax-doc-dl:hover { background: var(--tax-teal-deep); }

/* Tables inside cards */
.tax-dash .tax-card .table {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.tax-dash .tax-card .table th {
    background: #f8fafc;
    border-color: var(--tax-border);
    font-weight: 700;
    color: var(--tax-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Override legacy green card styles inside tax-dash */
.tax-dash .dashboard_card_header,
.tax-dash .dashboard_card_footer {
    background: transparent !important;
}

.tax-dash .list-group-item {
    border-color: #f1f5f9;
    background: transparent;
}

@media (max-width: 768px) {
    .tax-dash {
        margin: 0;
        /* Match #kt_footer mobile: left half of 15px */
        padding: 1rem 15px 2rem 8px;
    }
    .tax-dash .tax-card {
        height: 320px;
        min-height: 320px;
        max-height: 320px;
    }
}

/* ===== Tablet (768–1024) ===== */
@media (max-width: 1024px) {
    .tax-dash {
        margin: -20px -15px 0;
        padding: 0.65rem 15px 3rem 8px;
        min-height: calc(100vh - 260px);
    }

    .tax-dash .tax-dash-banner-upload {
        margin: -0.65rem -15px 0.85rem -8px;
        width: calc(100% + 23px);
    }

    .tax-dash .tax-dash-banner-frame,
    .tax-dash .tax-dash-banner-frame.has-image {
        height: 160px;
        min-height: 160px;
    }

    .tax-dash .tax-dash-title {
        font-size: 1.25rem;
    }

    .tax-dash .tax-ops-section-title {
        font-size: 0.98rem;
        margin: 0.35rem 0 0.85rem;
    }

    .tax-dash .tax-card .tax-card-header {
        padding: 0.6rem 0.85rem;
        font-size: 0.88rem;
    }

    .tax-dash .tax-card .tax-card-header h5,
    .tax-dash .tax-card .tax-card-header .tax-card-title {
        font-size: 0.88rem;
    }

    .tax-dash .tax-card .tax-card-body {
        padding: 0.65rem 0.85rem;
    }

    .tax-dash .tax-ops-big {
        font-size: 1.7rem;
        margin: 0.25rem 0 0.55rem;
    }

    /* Activity / OTP header: wrap cleanly on tablet */
    .tax-dash .tax-ops-activity-header {
        align-items: flex-start !important;
    }

    .tax-dash .tax-ops-header-otp {
        flex: 1 1 100%;
        min-width: 0;
        justify-content: flex-start;
        order: 3;
    }

    .tax-dash .tax-ops-live-pill {
        order: 2;
    }

    .tax-dash .tax-ops-header-otp-msg {
        max-width: 100%;
        white-space: normal;
    }

    .tax-dash .tax-ops-pulse-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tax-dash .tax-ops-activity-table {
        min-width: 760px;
        font-size: 0.74rem;
    }

    .tax-dash .tax-card--ops-activity {
        height: auto;
        min-height: 320px;
        max-height: none;
    }

    .tax-dash .tax-ops-activity-table-wrap {
        max-height: 360px;
    }

    /* Side-by-side pair cards: allow natural height when stacked narrow */
    .tax-dash .tax-ops-pair > [class*="col-"] > .tax-card,
    .tax-dash .tax-card--ops-tall {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    /* Portrait tablet: slightly shorter fixed cards, more breathing room */
    .tax-dash .tax-card {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }

    .tax-dash .tax-ops-pair > [class*="col-"] > .tax-card,
    .tax-dash .tax-card--ops-tall {
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
    }

    .tax-dash #tax_ops_money_kpis .tax-kpi {
        min-height: 240px;
    }
}

/* ===== Ops command center ===== */
.tax-dash .tax-ops-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tax-white);
    margin: 0.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.tax-dash .tax-ops-vat-divider {
    border: 0;
    border-top: 3px solid #dc2626;
    margin: 0.75rem 0 1.5rem;
    opacity: 1;
}

.tax-dash .tax-ops-row .tax-card-body {
    position: relative;
}

.tax-dash .tax-ops-row .tax-card-body::after {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    height: 16px;
    background: linear-gradient(to top, #ffffff 15%, rgba(255, 255, 255, 0));
}

.tax-dash .tax-kpi {
    background: var(--tax-white);
    border: 1px solid var(--tax-border);
    border-left: 4px solid var(--tax-slate);
    border-radius: var(--tax-radius);
    padding: 0.85rem 1rem;
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    box-shadow: 0 1px 3px rgba(10, 10, 10, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Money KPIs with 15-day history — taller card, hero + scroll list */
.tax-dash #tax_ops_money_kpis .tax-kpi {
    height: auto;
    min-height: 260px;
    max-height: none;
    justify-content: flex-start;
    overflow: visible;
}

.tax-dash .tax-kpi-history-wrap {
    margin-top: 0.55rem;
    border-top: 1px solid var(--tax-border);
    padding-top: 0.4rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tax-dash .tax-kpi-history {
    max-height: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.15rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

.tax-dash .tax-kpi-history::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.tax-dash .tax-kpi-history::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.tax-dash .tax-kpi-history:hover::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.32);
}

.tax-dash .tax-kpi-history-row,
.tax-dash .tax-kpi-history-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.35;
}

.tax-dash .tax-kpi-history-row {
    padding: 0.12rem 0;
    color: var(--tax-muted);
}

.tax-dash .tax-kpi-history-row.is-txn {
    align-items: flex-start;
}

.tax-dash .tax-kpi-history-main {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    flex: 1 1 auto;
}

.tax-dash .tax-kpi-history-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--tax-muted);
    line-height: 1.25;
    word-break: break-word;
}

.tax-dash .tax-kpi-history-amt.is-plus {
    color: #15803d;
}

.tax-dash .tax-kpi-history-amt.is-minus {
    color: #b91c1c;
}

.tax-dash .tax-kpi-history-amt.is-zero {
    color: var(--tax-black);
}

.tax-dash .tax-kpi-history-date {
    font-weight: 600;
    white-space: nowrap;
}

.tax-dash .tax-kpi-history-amt {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--tax-black);
    text-align: right;
}

.tax-dash .tax-kpi-history-empty {
    font-size: 0.7rem;
    color: var(--tax-muted);
    padding: 0.25rem 0;
}

.tax-dash .tax-kpi-history-foot {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--tax-border);
    font-weight: 800;
    color: var(--tax-black);
    font-size: 0.72rem;
}

.tax-dash .tax-kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tax-muted);
    margin-bottom: 0.35rem;
}

.tax-dash .tax-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tax-black);
    line-height: 1.15;
}

.tax-dash .tax-kpi-meta {
    font-size: 0.7rem;
    color: var(--tax-muted);
    margin-top: 0.35rem;
}

.tax-dash .tax-kpi--green { border-left-color: var(--tax-deep-green); }
.tax-dash .tax-kpi--green .tax-kpi-value { color: var(--tax-deep-green); }

.tax-dash .tax-kpi--red { border-left-color: var(--tax-deep-red); }
.tax-dash .tax-kpi--red .tax-kpi-value { color: var(--tax-deep-red); }

.tax-dash .tax-kpi--blue { border-left-color: var(--tax-deep-blue); }
.tax-dash .tax-kpi--blue .tax-kpi-value { color: var(--tax-deep-blue); }

.tax-dash .tax-kpi--black { border-left-color: var(--tax-black); }
.tax-dash .tax-kpi--black .tax-kpi-value { color: var(--tax-black); }

.tax-dash .tax-card--ops-green { border-left-color: var(--tax-deep-green); }
.tax-dash .tax-card--ops-green .tax-card-header { background: var(--tax-deep-green); }

.tax-dash .tax-card--ops-red { border-left-color: var(--tax-deep-red); }
.tax-dash .tax-card--ops-red .tax-card-header { background: var(--tax-deep-red); }

.tax-dash .tax-card--ops-blue { border-left-color: var(--tax-deep-blue); }
.tax-dash .tax-card--ops-blue .tax-card-header { background: var(--tax-deep-blue); }

.tax-dash .tax-card--ops-black { border-left-color: var(--tax-black); }
.tax-dash .tax-card--ops-black .tax-card-header { background: var(--tax-black); }

.tax-dash .tax-card--ops-tall {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
}

/* Cash roll + Attendance: lock equal height side-by-side */
.tax-dash .tax-ops-pair > [class*="col-"] {
    display: flex;
}
.tax-dash .tax-ops-pair > [class*="col-"] > .tax-card {
    flex: 1 1 auto;
    width: 100%;
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
}

.tax-dash .tax-ops-big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tax-deep-green);
    text-align: center;
    margin: 0.15rem 0 0.4rem;
}

.tax-dash .tax-ops-big--red { color: var(--tax-deep-red); }
.tax-dash .tax-ops-big--black { color: var(--tax-black); }

.tax-dash .tax-card--ops-smart .tax-card-header {
    justify-content: space-between;
}

.tax-dash .tax-ops-head-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.tax-dash .tax-ops-head-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.tax-dash .tax-ops-month-chip,
.tax-dash .tax-ops-auto-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    height: 20px;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    white-space: nowrap;
}

.tax-dash .tax-ops-metric {
    flex-shrink: 0;
}

.tax-dash .tax-ops-progress {
    flex-shrink: 0;
    margin: 0 0 0.55rem;
}

.tax-dash .tax-ops-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--tax-muted);
    margin-bottom: 0.28rem;
}

.tax-dash .tax-ops-progress-meta strong {
    color: var(--tax-text);
    font-size: 0.78rem;
}

.tax-dash .tax-ops-progress-track {
    height: 6px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.tax-dash .tax-ops-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--tax-deep-green);
}

.tax-dash .tax-ops-progress-fill.is-green { background: var(--tax-deep-green); }
.tax-dash .tax-ops-progress-fill.is-red { background: var(--tax-deep-red); }
.tax-dash .tax-ops-progress-fill.is-blue { background: var(--tax-deep-blue); }

.tax-dash .tax-ops-progress-hint {
    margin-top: 0.28rem;
    font-size: 0.68rem;
    color: var(--tax-muted);
    line-height: 1.35;
}

.tax-dash .tax-ops-status-dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
    background: #94a3b8;
    flex-shrink: 0;
}

.tax-dash .tax-ops-status-dot.is-green { background: #15803d; }
.tax-dash .tax-ops-status-dot.is-red { background: #b91c1c; }
.tax-dash .tax-ops-status-dot.is-blue { background: #1d4ed8; }

/* Pill search — icon inside, no boxed input */
.tax-dash .tax-ops-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    height: 36px;
    margin: 0.15rem 0 0.45rem;
    padding: 0 0.7rem;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tax-dash .tax-ops-search:hover {
    background: #e8eef5;
}

.tax-dash .tax-ops-search:focus-within {
    background: #fff;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(22, 58, 95, 0.12);
}

.tax-dash .tax-card--ops-green .tax-ops-search:focus-within {
    border-color: var(--tax-deep-green);
    box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.14);
}

.tax-dash .tax-card--ops-red .tax-ops-search:focus-within {
    border-color: var(--tax-deep-red);
    box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.14);
}

.tax-dash .tax-card--ops-black .tax-ops-search:focus-within {
    border-color: var(--tax-black);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.12);
}

.tax-dash .tax-card--ops-blue .tax-ops-search:focus-within {
    border-color: var(--tax-deep-blue);
    box-shadow: 0 0 0 3px rgba(22, 58, 95, 0.14);
}

.tax-dash .tax-ops-search-icon {
    color: #64748b;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.tax-dash .tax-ops-search:focus-within .tax-ops-search-icon {
    color: #0f172a;
}

.tax-dash .tax-ops-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    font-size: 0.8rem;
    color: #0f172a;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.tax-dash .tax-ops-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.tax-dash .tax-ops-search-input::-webkit-search-cancel-button,
.tax-dash .tax-ops-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.tax-dash .tax-ops-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    color: #334155;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.tax-dash .tax-ops-search-clear:hover {
    background: #94a3b8;
    color: #fff;
}

.tax-dash .tax-ops-search-count {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #475569;
    background: #e2e8f0;
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.tax-dash .tax-list .tax-empty {
    flex-direction: column;
    gap: 0.35rem;
    min-height: 4.5rem;
}

.tax-dash .tax-list .tax-empty i {
    font-size: 1.15rem;
    opacity: 0.45;
}

.tax-dash .tax-alert-strip {
    background: var(--tax-deep-red);
    color: var(--tax-white);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
}

.tax-dash .tax-alert-item {
    align-items: flex-start !important;
}

.tax-dash .tax-alert-msg {
    font-size: 0.78rem;
    color: var(--tax-muted);
    margin-top: 0.15rem;
}

.tax-dash .tax-chip--dismiss {
    background: var(--tax-deep-red);
    min-width: 1.75rem;
    justify-content: center;
    padding: 0.15rem 0.4rem;
    font-size: 1rem;
    line-height: 1;
    border: none;
    cursor: pointer;
}

.tax-dash .tax-card--ops-security { border-left-color: #7f1d1d; }
.tax-dash .tax-card--ops-security .tax-card-header { background: #7f1d1d; }

.tax-dash .tax-alert-strip--security {
    background: #7f1d1d;
}

.tax-dash .tax-alert-strip--server {
    background: #7c2d12;
    color: #fff;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
}

.tax-dash .tax-security-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    min-height: 280px;
}

.tax-dash .tax-security-col {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    min-width: 0;
    display: flex;
    flex-direction: column;
    max-height: 360px;
}

.tax-dash .tax-security-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    background: #0f172a;
    color: #fff;
    border-radius: 6px 6px 0 0;
}

.tax-dash .tax-security-col-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tax-dash .tax-security-col-status {
    font-size: 0.62rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
    background: #166534;
    color: #bbf7d0;
}

.tax-dash .tax-security-col-status.is-warning {
    background: #92400e;
    color: #fde68a;
}

.tax-dash .tax-security-col-status.is-critical {
    background: #991b1b;
    color: #fecaca;
}

.tax-dash .tax-security-list {
    margin: 0;
    padding: 0.35rem 0.4rem 0.5rem;
    overflow: auto;
    flex: 1;
}

.tax-dash .tax-security-list > li {
    padding: 0.35rem 0.2rem;
}

.tax-dash .tax-security-item.is-critical strong {
    color: #991b1b;
}

.tax-dash .tax-security-item.is-warning strong {
    color: #92400e;
}

.tax-dash .tax-security-hint {
    margin: 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

.tax-dash .tax-security-kind {
    display: inline-block;
    margin: 0 0.35rem 0.2rem 0;
    padding: 0.08rem 0.35rem;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    vertical-align: middle;
    background: #e2e8f0;
    color: #334155;
}

.tax-dash .tax-security-kind.is-security { background: #7f1d1d; color: #fff; }
.tax-dash .tax-security-kind.is-error { background: #b91c1c; color: #fff; }
.tax-dash .tax-security-kind.is-bug { background: #c2410c; color: #fff; }
.tax-dash .tax-security-kind.is-glitch { background: #a16207; color: #fff; }
.tax-dash .tax-security-kind.is-repair { background: #1d4ed8; color: #fff; }
.tax-dash .tax-security-kind.is-implement { background: #6d28d9; color: #fff; }
.tax-dash .tax-security-kind.is-warning { background: #ca8a04; color: #fff; }

.tax-dash .tax-security-at {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

@media (max-width: 1200px) {
    .tax-dash .tax-security-cols {
        grid-template-columns: 1fr;
    }
}

.tax-dash .tax-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tax-dash .tax-timeline > li {
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.tax-dash .tax-timeline > li:last-child { border-bottom: none; }

.tax-dash .tax-timeline-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--tax-deep-blue);
}

.tax-dash .tax-timeline-body {
    font-size: 0.85rem;
    color: var(--tax-text);
    margin-top: 0.2rem;
}

.tax-dash .tax-timeline-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--tax-muted);
    margin-top: 0.2rem;
}

.tax-dash .tax-card--ops-activity .tax-card-body {
    padding: 0.5rem 0.65rem 0.75rem;
}

.tax-dash .tax-ops-id-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
}
.tax-dash .tax-ops-id-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Inactive — bright red ID button */
.tax-dash .tax-ops-id-tag,
.tax-dash .tax-ops-id-tag.is-inactive {
    color: #fff1f2;
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    border: 1px solid #f87171;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 2px 8px rgba(185, 28, 28, 0.45);
}
.tax-dash .tax-ops-id-tag .tax-ops-id-tag-dot,
.tax-dash .tax-ops-id-tag.is-inactive .tax-ops-id-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fecaca;
    box-shadow: 0 0 6px #fca5a5;
}
.tax-dash .tax-ops-id-tag-label,
.tax-dash .tax-ops-id-tag.is-inactive .tax-ops-id-tag-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #fee2e2;
}
/* Active — bright green ID button (working on a module) */
.tax-dash .tax-ops-id-tag.is-active {
    color: #052e16;
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
    border: 1px solid #86efac;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.55), 0 0 14px rgba(34, 197, 94, 0.75);
}
.tax-dash .tax-ops-id-tag.is-active .tax-ops-id-tag-dot {
    background: #f0fdf4;
    box-shadow: 0 0 0 0 rgba(240, 253, 244, 0.7);
    animation: taxLivePulse 1.4s infinite;
}
.tax-dash .tax-ops-id-tag.is-active .tax-ops-id-tag-label {
    color: #14532d;
}
/* Super Admin — bright gold/blue */
.tax-dash .tax-ops-id-tag.is-super-admin {
    color: #0c4a6e;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    border: 1px solid #7dd3fc;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.45), 0 0 16px rgba(56, 189, 248, 0.75);
}
.tax-dash .tax-ops-id-tag.is-super-admin .tax-ops-id-tag-dot {
    background: #f0f9ff;
    animation: taxLivePulse 1.2s infinite;
}
.tax-dash .tax-ops-id-tag.is-super-admin .tax-ops-id-tag-label {
    color: #0c4a6e;
}
.tax-dash .tax-ops-id-tag.is-admin {
    color: #1e3a8a;
    background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
    border: 1px solid #60a5fa;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 0 12px rgba(59, 130, 246, 0.45);
}
.tax-dash .tax-ops-id-tag.is-admin .tax-ops-id-tag-dot {
    background: #eff6ff;
}
.tax-dash .tax-ops-id-tag.is-admin .tax-ops-id-tag-label {
    color: #1e3a8a;
}
.tax-dash .tax-ops-id-chip.is-admin {
    color: #1e3a8a;
    background: #93c5fd;
    border: 1px solid #60a5fa;
}
.tax-dash .tax-badge--admin {
    background: #2563eb;
    color: #fff;
}
.tax-dash .tax-staff-otp-box {
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.45);
}
.tax-dash .tax-staff-otp-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}
.tax-dash .tax-staff-otp-phone {
    font-size: 12px;
    color: #334155;
}
.tax-dash .tax-staff-otp-hint {
    font-size: 12px;
    color: #475569;
}
.tax-dash .tax-staff-otp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.tax-dash .tax-staff-otp-input {
    max-width: 160px;
    letter-spacing: 0.12em;
    font-weight: 700;
}
.tax-dash .tax-chip--primary {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}
.tax-dash .tax-staff-otp-msg {
    margin-top: 0.45rem;
    font-size: 12px;
    color: #334155;
}
.tax-dash .tax-staff-otp-msg.is-ok { color: #15803d; }
.tax-dash .tax-staff-otp-msg.is-bad { color: #b91c1c; }
.tax-dash .tax-ops-id-chip.is-super-admin {
    color: #0c4a6e;
    background: #38bdf8;
    border: 1px solid #7dd3fc;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}
.tax-dash .tax-badge--super {
    background: #0284c7;
    color: #fff;
}
.tax-dash .tax-badge--danger {
    background: #dc2626;
    color: #fff;
}
.tax-dash .tax-super-admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.4);
}
.tax-dash .tax-ops-id-chip {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}
.tax-dash .tax-ops-id-chip.is-inactive {
    color: #fff1f2;
    background: #dc2626;
    border: 1px solid #f87171;
}
.tax-dash .tax-ops-id-chip.is-active {
    color: #052e16;
    background: #22c55e;
    border: 1px solid #86efac;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
}
.tax-dash .tax-ops-activity-table tbody tr.is-active-id td:nth-child(3) {
    font-weight: 600;
}
.tax-dash .tax-card--ops-activity.is-server-focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .35);
    animation: tax-ops-server-focus 1.2s ease-in-out 2;
}
@keyframes tax-ops-server-focus {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .28); }
}
.tax-dash .tax-ops-pulse-item.is-server-focus {
    box-shadow: inset 0 0 0 2px rgba(220, 38, 38, .45);
    border-radius: 6px;
}
.tax-dash .tax-ops-activity-table tbody tr.is-server-focus-row {
    background: rgba(254, 226, 226, .75) !important;
    outline: 2px solid rgba(220, 38, 38, .45);
    outline-offset: -2px;
}
.tax-dash .tax-ops-server-focus-strip {
    padding: .45rem .55rem;
    border-radius: .4rem;
    border: 1px solid rgba(245, 158, 11, .45);
    background: rgba(255, 251, 235, .98);
    color: #92400e;
    font-size: .72rem;
    line-height: 1.35;
}
.tax-dash .tax-ops-server-focus-strip.is-critical {
    border-color: rgba(220, 38, 38, .45);
    background: rgba(254, 226, 226, .95);
    color: #991b1b;
}
.tax-dash .tax-ops-server-focus-strip strong {
    display: block;
    margin-bottom: .12rem;
}
.tax-dash .tax-ops-server-focus-meta,
.tax-dash .tax-server-issue-alert-meta {
    display: block;
    margin-top: .2rem;
    font-size: .66rem;
    line-height: 1.35;
    opacity: .92;
    word-break: break-word;
}
.tax-dash .tax-server-issue-alert-meta {
    color: inherit;
}
.tax-dash .tax-sector-history-actions .tax-server-issue-row-goto {
    margin-right: .25rem;
}

.tax-dash .tax-ops-activity-table-wrap {
    width: 100%;
    max-height: 420px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

.tax-dash .tax-ops-activity-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.78rem;
}

.tax-dash .tax-ops-activity-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #111827;
    color: #fff;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid #0f172a;
}

.tax-dash .tax-ops-activity-table tbody td {
    padding: 0.45rem 0.45rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
    color: #0f172a;
    text-align: left;
}

.tax-dash .tax-ops-activity-table tbody td:nth-child(1),
.tax-dash .tax-ops-activity-table tbody td:nth-child(2) {
    text-align: center;
    white-space: nowrap;
}

.tax-dash .tax-ops-activity-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.tax-dash .tax-ops-activity-table tbody tr:hover {
    background: #eef2ff;
}

.tax-dash .tax-ops-activity-table .tax-empty {
    color: var(--tax-muted);
    padding: 1rem;
}

.tax-dash .tax-ops-note-cell {
    text-align: left !important;
    white-space: normal;
    vertical-align: top !important;
    min-width: 140px;
}

.tax-dash .tax-ops-note-cell .tax-ops-view-btn {
    min-width: 64px;
    font-weight: 700;
    margin-top: 0.15rem;
}

.tax-ops-detail-modal .modal-header {
    background: linear-gradient(90deg, #eff6ff 0%, #fff 70%);
    border-bottom: 1px solid #cbd5e1;
}

.tax-ops-detail-modal .modal-title {
    font-weight: 800;
    color: #1e3a8a;
}

.tax-ops-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.25rem;
    margin: 0;
}

.tax-ops-detail-grid .tax-ops-detail-full {
    grid-column: 1 / -1;
}

.tax-ops-detail-grid dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.tax-ops-detail-grid dd {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}

.tax-ops-detail-grid .tax-ops-detail-note {
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 3rem;
}

.tax-ops-detail-section-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
}

.tax-ops-detail-history-scroll {
    max-height: min(48vh, 420px);
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.tax-ops-detail-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.tax-ops-detail-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #cbd5e1;
    white-space: nowrap;
}

.tax-ops-detail-history-table tbody td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #0f172a;
}

.tax-ops-detail-history-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.tax-ops-detail-history-table tbody tr.is-current {
    background: #ecfdf5;
}

.tax-ops-detail-history-table tbody tr.is-solved td:nth-child(5) {
    color: #047857;
    font-weight: 700;
}

.tax-ops-detail-history-table tbody tr.is-failed td:nth-child(5) {
    color: #b91c1c;
    font-weight: 700;
}

.tax-ops-detail-history-note {
    max-width: 280px;
    white-space: pre-wrap;
    word-break: break-word;
    font-weight: 500;
    color: #475569;
}

@media (max-width: 575.98px) {
    .tax-ops-detail-grid {
        grid-template-columns: 1fr;
    }
}

.tax-dash .tax-ops-worklog-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
}

.tax-dash .tax-ops-worklog-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.2rem;
}

.tax-dash .tax-ops-worklog-label small {
    font-weight: 500;
    color: #64748b;
}

.tax-dash .tax-ops-worklog-form .form-control-sm {
    font-size: 0.78rem;
}

.tax-dash .tax-ops-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #bbf7d0;
    background: rgba(21, 128, 61, 0.25);
    border: 1px solid rgba(187, 247, 208, 0.35);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.tax-dash .tax-ops-activity-header {
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tax-dash .tax-ops-activity-header-left {
    flex: 0 1 auto;
    min-width: 0;
}
.tax-dash .tax-ops-header-otp {
    flex: 1 1 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 220px;
    visibility: visible !important;
    opacity: 1 !important;
}
.tax-dash .tax-ops-header-otp-input {
    display: inline-block !important;
    width: 110px;
    max-width: 40vw;
    height: 30px;
    padding: 0.15rem 0.4rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: #ffffff;
    color: #0f172a;
}
.tax-dash .tax-ops-header-phone-input {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 140px;
    min-width: 120px;
    max-width: 46vw;
    height: 30px;
    padding: 0.15rem 0.45rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: #ffffff !important;
    color: #0f172a !important;
}
.tax-dash .tax-ops-header-otp #tax_otp_verify_btn,
.tax-dash .tax-ops-header-otp #tax_otp_send_btn {
    display: inline-flex !important;
    align-items: center;
    height: 30px;
    line-height: 1;
    padding: 0.2rem 0.7rem;
}
.tax-dash .tax-ops-header-otp .tax-chip {
    height: 30px;
    line-height: 1;
    padding: 0.2rem 0.7rem;
}
.tax-dash .tax-ops-header-otp-msg {
    font-size: 11px;
    color: #e2e8f0;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tax-dash .tax-ops-header-otp-msg.is-ok { color: #86efac; }
.tax-dash .tax-ops-header-otp-msg.is-bad { color: #fecaca; }
.tax-dash .tax-ops-header-otp.is-unlocked .tax-ops-header-unlocked {
    display: inline-flex !important;
}

.tax-dash .tax-ops-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: taxLivePulse 1.4s infinite;
}

.tax-dash .tax-ops-live-dot.is-off {
    background: #f87171;
    animation: none;
}

@keyframes taxLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.tax-dash .tax-ops-activity-table tr.is-current {
    background: #ecfdf5 !important;
}

.tax-dash .tax-ops-sector {
    display: inline-block;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}
.tax-dash .tax-ops-sector--frontend {
    color: #0b3d91;
    background: rgba(66, 133, 244, 0.18);
}
.tax-dash .tax-ops-sector--backend {
    color: #0b6b3a;
    background: rgba(52, 168, 83, 0.18);
}
.tax-dash .tax-ops-sector--database {
    color: #8a4b00;
    background: rgba(251, 188, 5, 0.2);
}
.tax-dash .tax-ops-sector--server {
    color: #5b2c6f;
    background: rgba(156, 39, 176, 0.16);
}
.tax-dash .tax-ops-sector--idle,
.tax-dash .tax-ops-sector-- {
    color: #9aa0a6;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
    text-transform: none;
}

.tax-dash .tax-ops-solution {
    display: inline-block;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}
.tax-dash .tax-ops-solution--done {
    color: #0b6b3a;
    background: rgba(52, 168, 83, 0.2);
}
.tax-dash .tax-ops-solution--testing,
.tax-dash .tax-ops-solution--partial,
.tax-dash .tax-ops-solution--in_progress {
    color: #8a4b00;
    background: rgba(251, 188, 5, 0.22);
}
.tax-dash .tax-ops-solution--analysis {
    color: #5f6368;
    background: rgba(154, 160, 166, 0.2);
}
.tax-dash .tax-ops-solution--failed {
    color: #b3261e;
    background: rgba(234, 67, 53, 0.18);
}
.tax-dash .tax-ops-solution--idle {
    color: #9aa0a6;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.tax-dash .tax-ops-activity-table tr.is-current td {
    font-weight: 600;
}

.tax-dash .tax-ops-role-line {
    margin-top: 0.15rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tax-dash .tax-ops-sync-line {
    margin-top: 0.1rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #15803d;
    text-transform: none;
}

.tax-dash .tax-ops-activity-table tr.is-current .tax-ops-role-line {
    color: #166534;
}

.tax-dash .tax-ops-activity-table tr.is-current .tax-ops-sync-line {
    color: #166534;
}

.tax-dash .tax-ops-pulse-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.tax-dash .tax-ops-pulse-item {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
    min-width: 0;
}

.tax-dash .tax-ops-pulse-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tax-dash .tax-ops-pulse-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #4ade80;
    line-height: 1.2;
}

.tax-dash .tax-ops-pulse-value.is-down {
    color: #f87171;
}

.tax-dash .tax-ops-pulse-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: #cbd5e1;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.tax-dash .tax-ops-staff-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.tax-dash .tax-ops-legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.tax-dash .tax-ops-legend-chip.is-super-admin {
    color: #0c4a6e;
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.tax-dash .tax-ops-legend-chip.is-admin {
    color: #3730a3;
    background: #eef2ff;
    border-color: #a5b4fc;
}

.tax-dash .tax-ops-legend-role {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.64rem;
}

.tax-dash .tax-ops-legend-id {
    font-weight: 800;
}

.tax-dash .tax-ops-legend-hint {
    flex: 1 1 100%;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.4;
}

.tax-dash .tax-ops-note-preview {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #334155;
    margin-bottom: 0.35rem;
    max-width: 220px;
    word-break: break-word;
}

.tax-dash .tax-ops-note-preview.is-muted {
    color: #64748b;
    font-style: italic;
}

.tax-dash .tax-ops-note-preview.is-empty {
    color: #94a3b8;
    font-size: 0.68rem;
}

.tax-dash .tax-ops-source-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.25rem;
}

.tax-dash .tax-ops-source-tag {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0f172a;
    background: #e2e8f0;
    border-radius: 3px;
    padding: 0.05rem 0.28rem;
}

.tax-dash .tax-ops-activity-table tr.is-current .tax-ops-source-tag {
    background: #bbf7d0;
}

@media (max-width: 992px) {
    .tax-dash .tax-ops-pulse-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Server & Security card */
.tax-dash .tax-card--server.is-alert {
    animation: tax-server-pulse 2.4s ease-in-out infinite;
}
@keyframes tax-server-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 0 3px rgba(245, 158, 11, .22); }
}
.tax-dash .tax-card--server.is-critical {
    animation: tax-server-pulse-critical 1.8s ease-in-out infinite;
}
@keyframes tax-server-pulse-critical {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .28); }
}
.tax-dash .tax-server-live-pill {
    font-size: .62rem;
    padding: .15rem .45rem;
}
.tax-dash .tax-server-sec-badge {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .12rem .4rem;
    border-radius: .25rem;
    text-transform: uppercase;
}
.tax-dash .tax-server-sec-badge.is-ok {
    background: rgba(22, 163, 74, .15);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, .35);
}
.tax-dash .tax-server-sec-badge.is-warn {
    background: rgba(245, 158, 11, .15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, .4);
}
.tax-dash .tax-server-sec-badge.is-critical {
    background: rgba(220, 38, 38, .12);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, .4);
}
.tax-dash .tax-server-sec-strip.is-ok {
    border-color: rgba(22, 163, 74, .35);
    background: rgba(240, 253, 244, .95);
}
.tax-dash .tax-server-sec-strip.is-warn {
    border-color: rgba(245, 158, 11, .45);
    background: rgba(255, 251, 235, .98);
}
.tax-dash .tax-server-sec-strip.is-critical {
    border-color: rgba(220, 38, 38, .45);
    background: rgba(254, 242, 242, .98);
    color: #991b1b;
}
.tax-dash .tax-server-sec-strip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .12rem;
}
.tax-dash .tax-server-sec-strip .tax-server-sec-strip-label {
    margin-bottom: 0;
    color: inherit;
    opacity: .82;
}
.tax-dash .tax-server-sec-strip .tax-server-sec-strip-status {
    font-weight: 700;
    font-size: .72rem;
    line-height: 1.25;
}
.tax-dash .tax-server-section-label {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: .35rem;
}
.tax-dash .tax-server-tip-text {
    display: none !important;
}
.tax-dash .tax-server-ring-wrap {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
    height: 100%;
    min-height: 17.5rem;
    justify-content: flex-start;
}
.tax-dash .tax-server-ring-stage {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(12rem, 1.35fr) minmax(8rem, 1fr);
    gap: 0.55rem;
    align-items: stretch;
    padding: 0.55rem 0.75rem 0.45rem;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
}
.tax-dash .tax-server-side-panel {
    display: grid;
    grid-template-rows: auto repeat(4, minmax(2.7rem, 1fr));
    gap: 0.32rem;
    min-width: 0;
    height: 100%;
    min-height: 17.5rem;
    align-self: stretch;
    padding: 0.4rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(154, 52, 18, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    box-sizing: border-box;
}
.tax-dash .tax-server-side-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9a3412;
    margin: 0;
    padding: 0.1rem 0.15rem 0.15rem;
    align-self: end;
}
.tax-dash .tax-server-side-panel-title i {
    font-size: 0.68rem;
    opacity: 0.9;
}
.tax-dash .tax-server-side-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    min-height: 0;
    height: 100%;
    padding: 0.38rem 0.5rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.tax-dash .tax-server-side-row.is-ok {
    border-color: rgba(22, 163, 74, 0.28);
    background: linear-gradient(90deg, rgba(240, 253, 244, 0.95) 0%, #fff 55%);
}
.tax-dash .tax-server-side-row.is-off {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.98) 0%, #fff 55%);
}
.tax-dash .tax-server-side-ico {
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    font-size: 0.68rem;
}
.tax-dash .tax-server-side-row.is-off .tax-server-side-ico {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}
.tax-dash .tax-server-side-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.08rem;
}
.tax-dash .tax-server-side-row strong {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.1;
}
.tax-dash .tax-server-side-row small {
    font-size: 0.72rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #0f172a;
    word-break: break-word;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 1100px) {
    .tax-dash .tax-server-ring-stage {
        grid-template-columns: 1fr;
    }
    .tax-dash .tax-server-ring-wrap,
    .tax-dash .tax-server-side-panel {
        min-height: 0;
        height: auto;
    }
    .tax-dash .tax-server-side-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto auto;
        gap: 0.3rem;
    }
    .tax-dash .tax-server-side-panel-title {
        grid-column: 1 / -1;
    }
    .tax-dash .tax-server-side-row {
        height: auto;
        min-height: 2.4rem;
    }
}
.tax-dash .tax-server-ring {
    position: relative;
    width: 100%;
    max-width: 16.5rem;
    margin: 0 auto;
    aspect-ratio: 1;
}
.tax-dash .tax-server-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.tax-dash .tax-server-ring-track {
    fill: none;
    stroke: rgba(148, 163, 184, .35);
    stroke-width: 3;
}
.tax-dash .tax-server-ring-flow {
    fill: none;
    stroke: rgba(22, 163, 74, .55);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 12 18;
    animation: tax-server-ring-spin 3.2s linear infinite;
}
.tax-dash .tax-server-ring.is-alert .tax-server-ring-flow {
    stroke: rgba(245, 158, 11, .75);
}
.tax-dash .tax-server-ring.is-alert .tax-server-ring-track {
    stroke: rgba(245, 158, 11, .35);
}
@keyframes tax-server-ring-spin {
    to { stroke-dashoffset: -60; }
}
.tax-dash .tax-server-ring-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    border: 1px solid rgba(22, 163, 74, .35);
    background: rgba(240, 253, 244, .96);
    box-shadow: 0 0 0 4px rgba(240, 253, 244, .65);
    animation: tax-server-core-pulse 2.4s ease-in-out infinite;
}
.tax-dash .tax-server-ring.is-alert .tax-server-ring-core {
    border-color: rgba(245, 158, 11, .45);
    background: rgba(255, 251, 235, .98);
    box-shadow: 0 0 0 4px rgba(255, 251, 235, .65);
}
@keyframes tax-server-core-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.04); }
}
.tax-dash .tax-server-ring-core strong {
    font-size: .58rem;
    letter-spacing: .08em;
    color: #15803d;
}
.tax-dash .tax-server-ring-core small {
    font-size: .52rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}
.tax-dash .tax-server-ring-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 5.5rem;
    max-width: 7.2rem;
    padding: .28rem .42rem;
    border-radius: .4rem;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(248, 250, 252, .96);
    text-align: center;
    transform: translate(-50%, -50%);
}
.tax-dash .tax-server-ring-node.is-top { top: 4%; left: 50%; }
.tax-dash .tax-server-ring-node.is-right { top: 50%; left: 96%; }
.tax-dash .tax-server-ring-node.is-bottom { top: 96%; left: 50%; }
.tax-dash .tax-server-ring-node.is-left { top: 50%; left: 4%; }
.tax-dash .tax-server-ring-node.is-ok {
    border-color: rgba(22, 163, 74, .35);
    background: rgba(240, 253, 244, .96);
}
.tax-dash .tax-server-ring-node.is-off,
.tax-dash .tax-server-ring-node.has-issues {
    border-color: rgba(245, 158, 11, .45);
    background: rgba(255, 251, 235, .98);
}
.tax-dash .tax-server-ring-node-label {
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #475569;
    line-height: 1.2;
}
.tax-dash .tax-server-ring-node-detail {
    font-size: .58rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #0f172a;
    word-break: break-all;
    line-height: 1.2;
}
.tax-dash .tax-server-ring-issue-badge {
    position: absolute;
    top: -.35rem;
    right: -.25rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 .22rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    line-height: 1rem;
}
.tax-dash .tax-server-automation-strip {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    padding: .2rem 0.15rem 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    font-size: .68rem;
    line-height: 1.3;
    margin-top: auto;
    flex: 0 0 auto;
}
.tax-dash .tax-server-automation-strip.is-working,
.tax-dash .tax-server-automation-strip.is-partial {
    border: 0;
    background: transparent;
}
.tax-dash .tax-server-automation-strip.is-off {
    border: 0;
    background: transparent;
    color: #64748b;
}
.tax-dash .tax-server-automation-strip strong {
    font-size: .62rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #475569;
}
.tax-dash .tax-server-automation-strip small {
    color: #334155;
}
.tax-dash .tax-server-issue-alert,
.tax-dash .tax-server-live-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .45rem;
    flex-wrap: wrap;
    padding: .45rem .55rem;
    border-radius: .4rem;
    font-size: .72rem;
    line-height: 1.35;
}
.tax-dash .tax-server-issue-alert {
    margin-top: 0;
    margin-bottom: 0;
    border: 1px solid rgba(245, 158, 11, .5);
    background: rgba(255, 251, 235, .98);
    color: #92400e;
}
.tax-dash .tax-card--server > .tax-server-issue-alert {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    flex-shrink: 0;
}
.tax-dash .tax-server-issue-alert.is-critical,
.tax-dash .tax-server-live-alert {
    border: 1px solid rgba(220, 38, 38, .45);
    background: rgba(254, 226, 226, .95);
    color: #991b1b;
}
.tax-dash .tax-server-issue-alert-text,
.tax-dash .tax-server-live-alert-text {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    flex: 1 1 10rem;
    min-width: 0;
}
.tax-dash .tax-server-issue-alert-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
}
.tax-dash .tax-chip--danger {
    background: #dc2626;
    color: #fff;
    border: 1px solid #b91c1c;
    font-weight: 700;
    white-space: nowrap;
}
.tax-dash .tax-server-goto-ops-btn {
    cursor: pointer;
    pointer-events: auto;
    border: 1px solid #b91c1c;
    text-decoration: none !important;
}
.tax-dash a.tax-server-goto-ops-btn:hover,
.tax-dash a.tax-server-goto-ops-btn:focus {
    color: #fff !important;
    text-decoration: none !important;
}
.tax-dash .tax-chip--danger:hover,
.tax-dash .tax-chip--danger:focus {
    background: #b91c1c;
    color: #fff;
}
.tax-dash .tax-server-live-alert strong,
.tax-dash .tax-server-issue-alert strong {
    flex: 0 0 auto;
}
.tax-dash .tax-server-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
    flex-wrap: wrap;
}
.tax-dash .tax-server-link-path {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    font-size: .72rem;
    line-height: 1.2;
    flex: 1 1 12rem;
    min-width: 0;
}
.tax-dash .tax-server-ip-panel {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    flex: 0 0 auto;
    min-width: 9.5rem;
    max-width: 14rem;
}
.tax-dash .tax-server-ip-row {
    display: flex;
    flex-direction: column;
    padding: .22rem .45rem;
    border-radius: .35rem;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(248, 250, 252, .95);
}
.tax-dash .tax-server-ip-row.is-ok {
    border-color: rgba(22, 163, 74, .35);
    background: rgba(240, 253, 244, .95);
}
.tax-dash .tax-server-ip-row.is-off {
    border-color: rgba(148, 163, 184, .45);
    background: rgba(248, 250, 252, .95);
}
.tax-dash .tax-server-ip-row strong {
    font-size: .58rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #64748b;
}
.tax-dash .tax-server-ip-row small {
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
    font-size: .68rem;
    line-height: 1.25;
}
.tax-dash .tax-server-link-node {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    max-width: 9.5rem;
    padding: .22rem .42rem;
    border-radius: .35rem;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(248, 250, 252, .9);
}
.tax-dash .tax-server-link-node.is-ok {
    border-color: rgba(22, 163, 74, .35);
    background: rgba(240, 253, 244, .95);
}
.tax-dash .tax-server-link-node.is-off {
    border-color: rgba(245, 158, 11, .4);
    background: rgba(255, 251, 235, .95);
}
.tax-dash .tax-server-link-node strong {
    font-size: .62rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tax-dash .tax-server-link-node small {
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
    font-size: .68rem;
}
.tax-dash .tax-server-link-arrow {
    color: #64748b;
    font-weight: 600;
    flex: 0 0 auto;
}
.tax-dash .tax-server-vitals {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.tax-dash .tax-server-vital {
    display: inline-flex;
    flex-direction: column;
    min-width: 5.6rem;
    max-width: 9.5rem;
    padding: .22rem .42rem;
    border-radius: .35rem;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(248, 250, 252, .95);
    flex: 1 1 auto;
}
.tax-dash .tax-server-vital.is-ok {
    border-color: rgba(22, 163, 74, .3);
    background: rgba(240, 253, 244, .92);
}
.tax-dash .tax-server-vital.is-off {
    border-color: rgba(245, 158, 11, .4);
    background: rgba(255, 251, 235, .95);
}
.tax-dash .tax-server-vital strong {
    font-size: .58rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #64748b;
}
.tax-dash .tax-server-vital small {
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .68rem;
    word-break: break-word;
    line-height: 1.25;
}

@media (max-width: 576px) {
    .tax-dash .tax-card--server > .tax-server-ring-stage {
        padding-left: .5rem;
        padding-right: .5rem;
    }
    .tax-dash .tax-card--server.has-issue-alert > .tax-server-ring-stage {
        padding-top: .5rem;
    }
    .tax-dash .tax-server-issue-alert-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .tax-dash .tax-server-ring {
        max-width: 100%;
    }
    .tax-dash .tax-server-ring-node {
        min-width: 4.8rem;
        max-width: 6rem;
        padding: .22rem .32rem;
    }
}

/* HQ dashboard summary strip */
.tax-dash .tax-dash-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--tax-radius);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.tax-dash .tax-dash-summary-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    text-align: center;
    min-height: 3.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
}
.tax-dash .tax-dash-summary-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tax-muted);
    line-height: 1.2;
}
.tax-dash .tax-dash-summary-item strong {
    font-size: 1.05rem;
    color: var(--tax-text);
    line-height: 1.15;
}

/* Server card — ring hero + two-column body */
.tax-dash .tax-card--server > .tax-server-ring-stage {
    flex-shrink: 0;
}
.tax-dash .tax-card--server.has-issue-alert > .tax-server-ring-stage {
    padding-top: 0.65rem;
}
.tax-dash .tax-card--server > .tax-server-ring-wrap {
    padding: 0;
    background: transparent;
    border-bottom: 0;
    flex-shrink: 0;
}
.tax-dash .tax-card--server.has-issue-alert > .tax-server-ring-wrap {
    padding-top: 0;
}
.tax-dash .tax-server-chain-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.35rem 0.75rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.tax-dash .tax-server-chain-text {
    font-size: 0.68rem;
    color: #334155;
    font-weight: 600;
    line-height: 1.35;
    flex: 1 1 12rem;
}
.tax-dash .tax-server-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0.75rem;
    align-items: start;
}
.tax-dash .tax-card--server .tax-card-body {
    max-height: none;
}
.tax-dash .tax-card--server .tax-scroll-list {
    max-height: 220px;
}

@media (max-width: 1200px) {
    .tax-dash .tax-server-body-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tax-dash .tax-card--server-compact .tax-server-ring {
        max-width: 100%;
    }
}

/* Server card — compact column (VAT / Users row) */
.tax-dash .tax-card--server-compact > .tax-server-ring-stage {
    padding: 0.45rem 0.55rem 0.3rem;
    margin-bottom: 0 !important;
    grid-template-columns: 1fr;
}
.tax-dash .tax-card--server-compact .tax-server-side-panel {
    display: none;
}
.tax-dash .tax-card--server-compact > .tax-server-ring-wrap {
    padding: 0.45rem 0.55rem 0.3rem;
    margin-bottom: 0 !important;
}
.tax-dash .tax-card--server-compact > .tax-server-chain-bar {
    display: none;
}
.tax-dash .tax-card--server-compact .tax-server-ring {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}
.tax-dash .tax-card--server-compact .tax-server-ring-node.is-left,
.tax-dash .tax-card--server-compact .tax-server-ring-node.is-right {
    min-width: 6.8rem;
    max-width: 9rem;
}
.tax-dash .tax-card--server-compact .tax-server-ring-node.is-left {
    left: 1%;
}
.tax-dash .tax-card--server-compact .tax-server-ring-node.is-right {
    left: 99%;
}
.tax-dash .tax-card--server-compact .tax-server-ring-node.is-top {
    top: 2%;
}
.tax-dash .tax-card--server-compact .tax-server-ring-node.is-bottom {
    top: 98%;
}
.tax-dash .tax-card--server-compact .tax-server-ring-node-label {
    font-size: 0.52rem;
}
.tax-dash .tax-card--server-compact .tax-server-ring-node-detail {
    font-size: 0.48rem;
}
.tax-dash .tax-card--server-compact .tax-server-automation-strip {
    padding: 0.35rem 0.55rem;
}
.tax-dash .tax-card--server-compact .tax-server-automation-strip small {
    font-size: 0.58rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tax-dash .tax-card--server-compact .tax-server-body-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
.tax-dash .tax-card--server-compact .tax-server-top-row {
    flex-direction: column;
}
.tax-dash .tax-card--server-compact .tax-server-link-path {
    flex-wrap: wrap;
}
.tax-dash .tax-card--server-compact .tax-scroll-list {
    max-height: 140px;
}
.tax-dash .tax-card--server-compact .tax-card-body {
    padding-top: 0.35rem;
}
.tax-dash .tax-card--server-compact .tax-server-tip-text {
    display: none;
}

/* Live Server & Security Status — compact detail card */
.tax-dash .tax-card--server-ops {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #fed7aa;
}
.tax-dash .tax-card--server-ops > .tax-card-header {
    background: #9a3412;
    color: #fff;
    flex-shrink: 0;
}
.tax-dash .tax-card--server-ops > .tax-card-header .tax-card-title {
    color: #fff;
}
.tax-dash .tax-server-ops-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem 0.6rem;
    overflow: auto;
}
.tax-dash .tax-server-ops-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.tax-dash .tax-server-ops-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 163, 74, 0.35);
    background: rgba(240, 253, 244, 0.98);
}
.tax-dash .tax-server-ops-status-pill.is-warn {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(255, 251, 235, 0.98);
}
.tax-dash .tax-server-ops-status-pill.is-critical {
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(254, 242, 242, 0.98);
}
.tax-dash .tax-server-ops-status-kicker {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}
.tax-dash .tax-server-ops-status-pill strong {
    font-size: 0.7rem;
    color: #14532d;
    line-height: 1.2;
}
.tax-dash .tax-server-ops-status-pill.is-warn strong { color: #92400e; }
.tax-dash .tax-server-ops-status-pill.is-critical strong { color: #991b1b; }
.tax-dash .tax-server-ops-sla {
    font-size: 0.65rem;
    color: #64748b;
    white-space: nowrap;
}
.tax-dash .tax-server-ops-block {
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    background: #fff;
    padding: 0.45rem 0.55rem 0.5rem;
}
.tax-dash .tax-server-ops-block--issues {
    background: #fff;
    border-color: #e2e8f0;
}
.tax-dash .tax-server-ops-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}
.tax-dash .tax-server-ops-block-head > span {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9a3412;
}
.tax-dash .tax-server-ops-block-head > small {
    font-size: 0.62rem;
    color: #64748b;
    text-align: right;
    line-height: 1.25;
    max-width: 65%;
}
.tax-dash .tax-server-ops-path {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.tax-dash .tax-server-ops-path .tax-server-path-chain {
    margin-bottom: 0;
}
.tax-dash .tax-server-ops-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
}
.tax-dash .tax-server-ops-hops {
    flex: none;
    width: 100%;
    margin-bottom: 0.35rem;
}
.tax-dash .tax-server-ops-ips {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.28rem;
}
.tax-dash .tax-server-ops-ips .tax-server-ip-row {
    min-width: 0;
}
.tax-dash .tax-server-ops-hops.d-none {
    display: none !important;
}
.tax-dash .tax-server-ops-vitals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
}
.tax-dash .tax-server-ops-vitals .tax-server-vital {
    max-width: none;
    min-width: 0;
    flex: none;
}
.tax-dash .tax-card--server-ops .tax-server-ops-issues {
    max-height: 130px;
}
.tax-dash .tax-server-ops-foot {
    margin: 0;
    font-size: 0.6rem;
    color: #94a3b8;
}
@media (max-width: 992px) {
    .tax-dash .tax-server-ops-grid {
        grid-template-columns: 1fr;
    }
}
.tax-dash .tax-card--server-full {
    overflow: visible;
}
.tax-dash .tax-card--server-full .tax-card-body {
    max-height: none;
}
.tax-dash .tax-card--server-full > .tax-server-ring-stage {
    margin-bottom: 0 !important;
}
.tax-dash .tax-server-path-panel {
    margin: 0 0.55rem 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.tax-dash .tax-server-path-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.45rem;
}
.tax-dash .tax-server-sla-policy {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.35;
}
.tax-dash .tax-server-path-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.25rem 0.35rem;
    margin-bottom: 0.45rem;
}
.tax-dash .tax-server-path-seg {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    min-width: 7.5rem;
    max-width: 14rem;
    padding: 0.4rem 0.5rem 0.4rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    position: relative;
}
.tax-dash .tax-server-path-seg.is-ok {
    border-color: #86efac;
    background: #f0fdf4;
}
.tax-dash .tax-server-path-seg.is-off,
.tax-dash .tax-server-path-seg.is-issue {
    border-color: #fca5a5;
    background: #fef2f2;
    box-shadow: inset 3px 0 0 #dc2626;
}
.tax-dash .tax-server-path-mark {
    position: absolute;
    left: 0.35rem;
    top: 0.42rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #22c55e;
}
.tax-dash .tax-server-path-seg.is-issue .tax-server-path-mark,
.tax-dash .tax-server-path-seg.is-off .tax-server-path-mark {
    background: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}
.tax-dash .tax-server-path-seg strong {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #334155;
    padding-left: 0.55rem;
}
.tax-dash .tax-server-path-seg small {
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.25;
    padding-left: 0.55rem;
    word-break: break-word;
}
.tax-dash .tax-server-path-issue-count {
    position: absolute;
    top: -0.35rem;
    right: -0.25rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tax-dash .tax-server-path-arrow {
    align-self: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
}
.tax-dash .tax-server-path-issue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.tax-dash .tax-server-path-issue-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
    align-items: start;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fff5f5;
}
.tax-dash .tax-server-path-issue-item.is-sla-exceeded {
    border-color: #dc2626;
    background: #fef2f2;
    animation: tax-server-sla-pulse 1.5s ease-in-out infinite;
}
@keyframes tax-server-sla-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }
}
.tax-dash .tax-server-path-issue-mark {
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    flex-shrink: 0;
}
.tax-dash .tax-server-path-issue-body strong {
    display: block;
    font-size: 0.76rem;
    color: #991b1b;
    line-height: 1.35;
}
.tax-dash .tax-server-path-issue-body small {
    font-size: 0.65rem;
    color: #64748b;
}
.tax-dash .tax-server-path-issue-tip {
    margin: 0.25rem 0 0;
    font-size: 0.68rem;
    color: #334155;
    line-height: 1.35;
}
.tax-dash .tax-server-path-issue-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}
.tax-dash .tax-server-sla-timer {
    font-size: 0.65rem;
    font-weight: 800;
    color: #0f766e;
    white-space: nowrap;
}
.tax-dash .tax-server-sla-timer.is-over {
    color: #dc2626;
}
.tax-dash .tax-server-path-handoff-strip {
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}
.tax-dash .tax-server-path-handoff-strip.is-hanging {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}
.tax-dash .tax-server-path-handoff-strip.is-handoff {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}
.tax-dash .tax-server-path-issue-empty {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.72rem;
}
