/* --- Dashboard bars (CSS-only indicators, no JS charts) --------------------- */

.bar-col {
    width: 40%;
}

.bar {
    position: relative;
    height: 0.75rem;
    background: var(--wash);
    border-radius: var(--radius);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--brand);
    border-radius: var(--radius);
}

.bar-fill-breach {
    background: var(--danger);
}

/* --- Muted text --------------------------------------------------------------------------------- */

.muted {
    color: var(--muted);
}

/* Страницы allauth (MFA, пароль, e-mail) внутри общего каркаса */
.allauth-page { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.allauth-page form { display: grid; gap: 0.75rem; max-width: 460px; }
.allauth-page button,
.allauth-page input[type="submit"] {
    display: inline-block; padding: 0.5rem 1rem; min-height: 44px; border-radius: var(--radius-sm); font: inherit; font-weight: 500;
    cursor: pointer; background: var(--brand); border: 1px solid var(--brand); color: #fff; justify-self: start;
}
.allauth-page button:hover { background: var(--brand-hover); }
.allauth-page img, .allauth-page svg { max-width: 200px; height: auto; background: #fff; padding: 8px; }
.allauth-page input[readonly] { font-family: monospace; width: 100%; }

/* --- Small screens (PUB-15): 360px must not overflow horizontally ----------- */

@media (max-width: 360px) {
    /* Long words wrap so nothing pushes the page wider than the viewport;
       tables keep their own scroll inside .tablewrap (overflow: auto). */
    html,
    body {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .pubbar-inner {
        min-height: 0;
        padding: 8px 10px;
    }
    .pubnav a {
        padding: 0.4rem 0.5rem;
        font-size: 0.82rem;
    }
    .content {
        padding: 14px 12px 70px;
    }
    .tablewrap {
        max-width: 100%;
    }
    .tablewrap table {
        min-width: 0;
    }
    .tablewrap th,
    .tablewrap td {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .metric-grid {
        grid-template-columns: 1fr;
    }
    .chart {
        height: 110px;
    }
}
