/* Fleet client portal — aligned with VIP ProxyGuard panel (dgs-premium) */

.dgs-page--fleet-portal {
    max-width: 1400px;
}

.fleet-client-portal code {
    color: #a8c9f5;
    background: rgba(96, 165, 250, 0.14);
    padding: 0.12em 0.38em;
    border-radius: 0.28rem;
    font-size: 0.88em;
    border: 1px solid rgba(96, 165, 250, 0.18);
}

.fleet-client-portal .fleet-portal-dash-card {
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

.fleet-client-portal .fleet-portal-header-actions {
    flex-shrink: 0;
}

.fleet-client-portal .fleet-portal-header-actions .dgs-theme-quick {
    margin: 0;
    display: inline-flex !important;
}

.fleet-client-portal .fleet-portal-header-actions .dgs-theme-quick-select {
    min-width: 7.5rem;
}

body.fleet-client-portal.dgs-premium {
    background: var(--dgs-p-bg, #0b0e14);
}

body.fleet-client-portal.dgs-premium #layout-wrapper.dgs-app .main-content .page-content {
    padding-top: 1.25rem !important;
}

.fleet-client-portal .fleet-portal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fleet-client-portal .fleet-portal-header h4 {
    color: #f1f5f9;
}

.fleet-client-portal .text-muted {
    color: rgba(203, 213, 225, 0.68) !important;
}

.fleet-client-portal .form-label {
    color: rgba(226, 232, 240, 0.85);
}

/* Live metrics strip */
.fleet-client-portal .fleet-live-strip {
    margin-bottom: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88));
    overflow: hidden;
}

.fleet-client-portal .fleet-live-strip-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.fleet-client-portal .fleet-live-chip {
    flex: 0 0 auto;
    min-width: 7.5rem;
    padding: 0.65rem 1rem;
    border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.fleet-client-portal .fleet-live-chip:last-child {
    border-right: 0;
}

.fleet-client-portal .fleet-live-chip-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.58);
    margin-bottom: 0.2rem;
}

.fleet-client-portal .fleet-live-chip-val {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
    white-space: nowrap;
}

.fleet-client-portal .fleet-live-chip-val--accent {
    color: #60a5fa;
}

.fleet-client-portal .fleet-live-chip-val--warn {
    color: #fbbf24;
}

.fleet-client-portal .fleet-live-chip-val--danger {
    color: #fb7185;
}

.fleet-client-portal .fleet-live-chip--time {
    min-width: 9rem;
}

/* Quick cards on dark portal */
.fleet-client-portal .dgs-dash-quick-card {
    --dgs-quick-card-bg: rgba(30, 41, 59, 0.88);
    --dgs-quick-card-fg: #f1f5f9;
    --dgs-quick-card-muted: rgba(203, 213, 225, 0.72);
    --dgs-quick-card-border: rgba(148, 163, 184, 0.28);
}

.fleet-client-portal .dgs-dash-quick-icon {
    color: inherit;
}

.fleet-client-portal .dgs-metric {
    cursor: default;
}

.fleet-client-portal .fleet-quick-jump.dgs-metric,
.fleet-client-portal .fleet-quick-jump.dgs-dash-quick-card {
    cursor: pointer;
}

.fleet-client-portal .fleet-metric-uptime {
    font-size: 0.82rem !important;
    line-height: 1.25;
}

/* Bans panel — mirror dashboard */
.fleet-client-portal .dash-bans-panel .card-header {
    font-weight: 600;
    color: #f1f5f9 !important;
    background: rgba(15, 23, 42, 0.35);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.fleet-client-portal .dash-bans-panel .dash-bans-table {
    width: 100%;
    table-layout: fixed;
}

.fleet-client-portal .dash-bans-panel .dash-bans-table th:nth-child(1),
.fleet-client-portal .dash-bans-panel .dash-bans-table td:nth-child(1) {
    width: 28%;
}

.fleet-client-portal .dash-bans-panel .dash-bans-table th:nth-child(2),
.fleet-client-portal .dash-bans-panel .dash-bans-table td:nth-child(2) {
    width: 34%;
}

.fleet-client-portal .dash-bans-panel .dash-bans-table th:nth-child(3),
.fleet-client-portal .dash-bans-panel .dash-bans-table td:nth-child(3) {
    width: 20%;
}

.fleet-client-portal .dash-bans-panel .dash-bans-table th:nth-child(4),
.fleet-client-portal .dash-bans-panel .dash-bans-table td:nth-child(4) {
    width: 18%;
}

.fleet-client-portal .fleet-bans-table-wrap {
    max-height: 380px;
    overflow-y: auto;
}

.fleet-client-portal .dash-bans-row--active {
    background: rgba(225, 29, 72, 0.06);
}

.fleet-client-portal .dash-bans-when {
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

.fleet-client-portal .dash-bans-status {
    font-size: 0.68rem;
    font-weight: 600;
}

.fleet-client-portal .dash-ban-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.fleet-client-portal .dash-ban-cc {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(203, 213, 225, 0.75);
}

.fleet-client-portal .dash-ban-flag-img {
    border-radius: 2px;
    object-fit: cover;
}

.fleet-client-portal .dash-ban-loc {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hosts / countries tables */
.fleet-client-portal .fleet-hosts-table th:nth-child(1) {
    width: 46%;
}

.fleet-client-portal .fleet-hosts-table th:nth-child(2),
.fleet-client-portal .fleet-hosts-table th:nth-child(3),
.fleet-client-portal .fleet-hosts-table th:nth-child(4) {
    width: 18%;
}

.fleet-client-portal .dash-data-table thead th {
    white-space: nowrap;
}

.fleet-client-portal .dash-data-table tbody td {
    vertical-align: middle;
}

.fleet-client-portal .fleet-geo-flag {
    border-radius: 2px;
    vertical-align: -2px;
    margin-right: 0.35rem;
}

/* Server mini panel */
.fleet-client-portal .fleet-server-mini-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.fleet-client-portal .fleet-server-mini-row:last-child {
    border-bottom: 0;
}

.fleet-client-portal .fleet-server-mini-val {
    font-size: 0.86rem;
    color: #e2e8f0;
    text-align: right;
    word-break: break-word;
}

/* Config accordion */
.fleet-client-portal .fleet-portal-config-acc .accordion-item {
    background: transparent;
    border-radius: 12px !important;
    overflow: hidden;
}

.fleet-client-portal .fleet-portal-acc-btn {
    background: rgba(30, 41, 59, 0.55);
    color: #e2e8f0;
    font-weight: 600;
    box-shadow: none;
}

.fleet-client-portal .fleet-portal-acc-btn:not(.collapsed) {
    background: rgba(30, 41, 59, 0.75);
    color: #f8fafc;
}

.fleet-client-portal .fleet-portal-acc-btn:focus {
    box-shadow: 0 0 0 0.15rem rgba(96, 165, 250, 0.2);
}

/* Edit tables (config forms) */
.fleet-client-portal .fleet-portal-stat dt {
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.72);
    margin-bottom: 0.15rem;
}

.fleet-client-portal .fleet-portal-stat dd {
    margin: 0;
    font-size: 0.95rem;
    word-break: break-word;
    color: #e2e8f0;
}

.fleet-client-portal .fleet-meta-egress {
    color: #86efac;
}

.fleet-client-portal .fleet-portal-checklist {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.55;
}

.fleet-client-portal .fleet-portal-code-block {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.4rem;
    padding: 0.85rem 1rem;
    margin: 0;
}

.fleet-client-portal .fleet-portal-edit-table th {
    color: rgba(203, 213, 225, 0.65);
    font-weight: 500;
    white-space: nowrap;
}

.fleet-client-portal .fleet-portal-edit-table .form-control,
.fleet-client-portal .fleet-portal-edit-table .form-select {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

.fleet-client-portal .fleet-portal-edit-table .form-control:focus,
.fleet-client-portal .fleet-portal-edit-table .form-select:focus {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 0 0 0.12rem rgba(96, 165, 250, 0.12);
    color: #f8fafc;
}

.fleet-client-portal .card-title {
    color: #f1f5f9;
}

.fleet-client-portal .card-header {
    color: #e2e8f0;
}

.fleet-client-portal .alert-success {
    background: rgba(22, 78, 56, 0.45);
    border-color: rgba(74, 222, 128, 0.28);
    color: #d1fae5;
}

.fleet-client-portal .alert-danger {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.fleet-client-portal .fleet-traffic-summary td {
    color: #e2e8f0;
    vertical-align: middle;
}

.fleet-client-portal #fleet-bulk-domains {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

.fleet-client-portal .text-success {
    color: #86efac !important;
}

.fleet-client-portal .text-warning {
    color: #fcd34d !important;
}

.fleet-client-portal .fleet-unban-btn {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
}

/* Auth page — match panel login */
body.fleet-client-portal.dgs-auth-page .account-pages {
    min-height: 100vh;
}

body.fleet-client-portal.dgs-auth-page .card {
    backdrop-filter: blur(8px);
}

@media (max-width: 767.98px) {
    .fleet-client-portal .fleet-live-chip {
        min-width: 6.5rem;
        padding: 0.55rem 0.75rem;
    }

    .fleet-client-portal .dgs-dash-quick-desc {
        display: none;
    }

    .fleet-client-portal .fleet-bans-table-wrap {
        max-height: 300px;
    }
}
