/* Alldays Uniform — Login + Main shell
   Standalone stylesheet. Does not depend on styles.css. */

:root {
    --ad-bg: #f4f6fa;
    --ad-surface: #ffffff;
    --ad-ink: #16202f;
    --ad-muted: #6b7a90;
    --ad-line: #e3e8f0;
    --ad-brand: #1f4fd8;
    --ad-brand-soft: #eaf0ff;
    --ad-brand-deep: #10306f;
    --ad-danger: #d64545;
    --ad-ok: #16a34a;
    --ad-radius: 14px;
    --ad-rail: 76px;
    --ad-side: 268px;
    --ad-shadow: 0 10px 30px rgba(18, 33, 60, .08);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', 'Sarabun', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--ad-bg);
    color: var(--ad-ink);
    -webkit-font-smoothing: antialiased;
}

/* ============ LOGIN ============ */

.ad-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--ad-bg);
}

.ad-auth-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #fff;
    background:
        radial-gradient(1100px 620px at 12% 8%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(150deg, var(--ad-brand) 0%, var(--ad-brand-deep) 100%);
    overflow: hidden;
}

.ad-auth-art::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -180px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.ad-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.ad-auth-brand img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.ad-auth-brand strong {
    display: block;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .2px;
}

.ad-auth-brand span {
    font-size: 13px;
    opacity: .78;
}

.ad-auth-copy {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

.ad-auth-copy h1 {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.18;
    font-weight: 800;
}

.ad-auth-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    opacity: .85;
}

.ad-auth-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.ad-auth-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: .9;
}

.ad-auth-points li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    flex: none;
}

.ad-auth-foot {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    opacity: .65;
}

.ad-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.ad-auth-card {
    width: 100%;
    max-width: 390px;
}

.ad-auth-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
}

.ad-auth-card .ad-auth-lead {
    margin: 0 0 26px;
    color: var(--ad-muted);
    font-size: 14px;
}

.ad-auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.ad-auth-mobile-brand img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
}

.ad-field {
    margin-bottom: 16px;
}

.ad-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #33415a;
}

.ad-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font: inherit;
    font-size: 14.5px;
    color: var(--ad-ink);
    background: #fff;
    border: 1px solid var(--ad-line);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.ad-field input:focus {
    border-color: var(--ad-brand);
    box-shadow: 0 0 0 3px rgba(31, 79, 216, .13);
}

.ad-pass-wrap {
    position: relative;
}

.ad-pass-wrap input {
    padding-right: 62px;
}

.ad-pass-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    height: 32px;
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--ad-brand);
    background: var(--ad-brand-soft);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.ad-btn-primary {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--ad-brand);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, transform .06s;
}

.ad-btn-primary:hover { background: #1a44bd; }
.ad-btn-primary:active { transform: translateY(1px); }

.ad-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    font-size: 13.5px;
    border-radius: 10px;
    background: #fdeced;
    color: #9b2226;
    border: 1px solid #f6c9cc;
}

.ad-auth-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--ad-line);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ad-muted);
}

@media (max-width: 900px) {
    .ad-auth { grid-template-columns: 1fr; }
    .ad-auth-art { display: none; }
    .ad-auth-mobile-brand { display: flex; }
}

/* ============ MAIN SHELL ============ */

.ad-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Rail */
.ad-rail {
    width: var(--ad-rail);
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 0;
    background: var(--ad-brand-deep);
    color: #fff;
}

.ad-rail-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.ad-rail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-rail-btn {
    width: 52px;
    padding: 9px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font: inherit;
    font-size: 9.5px;
    line-height: 1.2;
    text-align: center;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.ad-rail-btn svg { width: 19px; height: 19px; }

.ad-rail-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.ad-rail-btn.is-active {
    background: rgba(255, 255, 255, .17);
    color: #fff;
}

.ad-rail-spacer { flex: 1; }

/* Sidebar */
.ad-sidebar {
    width: var(--ad-side);
    flex: none;
    display: flex;
    flex-direction: column;
    background: var(--ad-surface);
    border-right: 1px solid var(--ad-line);
}

.ad-sidebar-head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--ad-line);
}

.ad-sidebar-head strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.ad-sidebar-head small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--ad-muted);
}

.ad-search {
    position: relative;
    margin: 14px 16px 6px;
}

.ad-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font: inherit;
    font-size: 13.5px;
    background: #f6f8fc;
    border: 1px solid var(--ad-line);
    border-radius: 9px;
    outline: none;
}

.ad-search input:focus {
    border-color: var(--ad-brand);
    background: #fff;
}

.ad-menu {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 16px;
}

.ad-menu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 3px;
    padding: 10px 12px;
    font: inherit;
    text-align: left;
    color: #35405a;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .14s, color .14s;
}

.ad-menu-btn:hover { background: #f2f5fb; }

.ad-menu-btn.is-active {
    background: var(--ad-brand-soft);
    color: var(--ad-brand);
}

.ad-menu-btn .ad-menu-ico {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eef2f9;
    color: #46557a;
}

.ad-menu-btn.is-active .ad-menu-ico {
    background: var(--ad-brand);
    color: #fff;
}

.ad-menu-btn .ad-menu-ico svg { width: 16px; height: 16px; }

.ad-menu-txt { min-width: 0; }

.ad-menu-txt b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-menu-txt span {
    display: block;
    font-size: 11px;
    color: var(--ad-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-menu-empty {
    padding: 20px 12px;
    font-size: 13px;
    text-align: center;
    color: var(--ad-muted);
}

.ad-sidebar-foot {
    padding: 12px 14px;
    border-top: 1px solid var(--ad-line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-avatar {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--ad-brand);
    border-radius: 50%;
}

.ad-user { flex: 1; min-width: 0; }

.ad-user b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-user span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ad-muted);
}

.ad-logout {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    color: var(--ad-danger);
    background: #fdeced;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
}

.ad-logout svg { width: 16px; height: 16px; }

/* Content */
.ad-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ad-topbar {
    height: 56px;
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    background: var(--ad-surface);
    border-bottom: 1px solid var(--ad-line);
}

.ad-burger {
    display: none;
    width: 36px;
    height: 36px;
    place-items: center;
    background: #f2f5fb;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.ad-crumb {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-crumb small {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--ad-muted);
}

.ad-state {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--ad-muted);
}

.ad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ad-ok);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .16);
}

.ad-icon-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #46557a;
    background: #f2f5fb;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.ad-icon-btn svg { width: 16px; height: 16px; }

/* Hero (home) */
.ad-stage {
    flex: 1;
    min-height: 0;
    position: relative;
}

.ad-hero {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 24px;
}

.ad-hero[hidden] { display: none; }

.ad-hero-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 30px;
    color: #fff;
    border-radius: var(--ad-radius);
    background:
        radial-gradient(700px 340px at 90% 0%, rgba(255, 255, 255, .14), transparent 60%),
        linear-gradient(135deg, var(--ad-brand) 0%, var(--ad-brand-deep) 100%);
    box-shadow: var(--ad-shadow);
}

.ad-hero-banner img {
    width: 78px;
    height: 78px;
    flex: none;
    border-radius: 18px;
    object-fit: cover;
    background: #fff;
}

.ad-hero-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    opacity: .8;
}

.ad-hero-banner h1 {
    margin: 6px 0 6px;
    font-size: 27px;
    font-weight: 800;
}

.ad-hero-banner p {
    margin: 0;
    font-size: 14px;
    opacity: .85;
}

.ad-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ad-stat {
    padding: 16px 18px;
    background: var(--ad-surface);
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-radius);
}

.ad-stat small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--ad-muted);
}

.ad-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    font-weight: 800;
}

.ad-section-title {
    margin: 26px 0 12px;
    font-size: 15px;
    font-weight: 700;
}

.ad-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.ad-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    font: inherit;
    text-align: left;
    background: var(--ad-surface);
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-radius);
    cursor: pointer;
    transition: border-color .15s, transform .12s, box-shadow .15s;
}

.ad-tile:hover {
    border-color: var(--ad-brand);
    transform: translateY(-2px);
    box-shadow: var(--ad-shadow);
}

.ad-tile-ico {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    color: var(--ad-brand);
    background: var(--ad-brand-soft);
    border-radius: 11px;
}

.ad-tile-ico svg { width: 18px; height: 18px; }

.ad-tile b {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.ad-tile span {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--ad-muted);
}

/* Iframe */
.ad-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--ad-bg);
}

.ad-frame[hidden] { display: none; }

.ad-loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(244, 246, 250, .88);
    z-index: 5;
}

.ad-loader[hidden] { display: none; }

.ad-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--ad-muted);
}

.ad-ring {
    width: 34px;
    height: 34px;
    border: 3px solid var(--ad-line);
    border-top-color: var(--ad-brand);
    border-radius: 50%;
    animation: ad-spin .8s linear infinite;
}

@keyframes ad-spin { to { transform: rotate(360deg); } }

.ad-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 26, 45, .45);
    z-index: 40;
}

@media (max-width: 860px) {
    .ad-rail { display: none; }

    .ad-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 0 0 40px rgba(16, 26, 45, .18);
    }

    .ad-shell.is-open .ad-sidebar { transform: translateX(0); }
    .ad-shell.is-open .ad-backdrop { display: block; }
    .ad-burger { display: grid; }
    .ad-hero { padding: 16px; }

    .ad-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }
}

/* ============ SIDEBAR COLLAPSE (desktop) ============ */

.ad-sidebar {
    transition: width .22s ease;
}

.ad-collapse-btn {
    width: 28px;
    height: 28px;
    flex: none;
    display: grid;
    place-items: center;
    color: #46557a;
    background: #f2f5fb;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, transform .22s ease;
}

.ad-collapse-btn:hover { background: #e6ecf7; }
.ad-collapse-btn svg { width: 15px; height: 15px; }

.ad-sidebar-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-sidebar-head-txt { flex: 1; min-width: 0; }

@media (min-width: 861px) {

    .ad-shell.is-collapsed .ad-sidebar {
        width: 68px;
    }

    .ad-shell.is-collapsed .ad-sidebar-head-txt,
    .ad-shell.is-collapsed .ad-search,
    .ad-shell.is-collapsed .ad-menu-txt,
    .ad-shell.is-collapsed .ad-menu-empty,
    .ad-shell.is-collapsed .ad-user {
        display: none;
    }

    .ad-shell.is-collapsed .ad-sidebar-head {
        justify-content: center;
        padding: 18px 0 14px;
    }

    .ad-shell.is-collapsed .ad-collapse-btn {
        transform: rotate(180deg);
    }

    .ad-shell.is-collapsed .ad-menu {
        padding: 10px 8px 16px;
    }

    .ad-shell.is-collapsed .ad-menu-btn {
        justify-content: center;
        padding: 9px 0;
        gap: 0;
    }

    .ad-shell.is-collapsed .ad-sidebar-foot {
        flex-direction: column;
        gap: 8px;
        padding: 12px 8px;
    }
}

/* ============ ADMIN PAGE (users) ============ */

.ad-page {
    padding: 24px;
    max-width: 1080px;
}

.ad-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ad-page-head h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
}

.ad-page-head p {
    margin: 0;
    font-size: 13.5px;
    color: var(--ad-muted);
}

.ad-card {
    padding: 20px 22px;
    margin-bottom: 18px;
    background: var(--ad-surface);
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-radius);
}

.ad-card h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.ad-grid .ad-field { margin-bottom: 0; }

.ad-field select {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--ad-line);
    border-radius: 10px;
    outline: none;
}

.ad-field select:focus {
    border-color: var(--ad-brand);
    box-shadow: 0 0 0 3px rgba(31, 79, 216, .13);
}

.ad-hint {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--ad-muted);
}

.ad-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.ad-btn {
    height: 40px;
    padding: 0 18px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #35405a;
    background: #f2f5fb;
    border: 1px solid var(--ad-line);
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ad-btn:hover { background: #e9eff9; }

.ad-btn.is-primary {
    color: #fff;
    background: var(--ad-brand);
    border-color: var(--ad-brand);
}

.ad-btn.is-primary:hover { background: #1a44bd; }

.ad-btn.is-danger {
    color: var(--ad-danger);
    background: #fdeced;
    border-color: #f6c9cc;
}

.ad-btn.is-danger:hover { background: #fbdfe1; }

.ad-btn.is-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12.5px;
}

.ad-alert.is-ok {
    background: #e9f7ef;
    color: #14663a;
    border-color: #bfe5cf;
}

.ad-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-radius);
    background: var(--ad-surface);
}

.ad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.ad-table th {
    padding: 12px 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-align: left;
    color: var(--ad-muted);
    background: #f7f9fc;
    border-bottom: 1px solid var(--ad-line);
    white-space: nowrap;
}

.ad-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ad-line);
    vertical-align: middle;
}

.ad-table tr:last-child td { border-bottom: 0; }
.ad-table tbody tr:hover { background: #fafbfe; }

.ad-table .ad-uname {
    font-weight: 700;
}

.ad-table .ad-sub {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--ad-muted);
}

.ad-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.ad-pill.role-super_admin { background: #efe6ff; color: #5b21b6; }
.ad-pill.role-admin       { background: var(--ad-brand-soft); color: var(--ad-brand); }
.ad-pill.role-staff       { background: #eef2f7; color: #46557a; }
.ad-pill.role-sale           { background: #e7fbf8; color: #0b7a76; }
.ad-pill.role-adminsale      { background: #e8f1fe; color: #1d4ed8; }
.ad-pill.role-superadminsale { background: #fdecf1; color: #a6194a; }
.ad-pill.is-on            { background: #e9f7ef; color: #14663a; }
.ad-pill.is-off           { background: #f1f3f6; color: #78849b; }
.ad-pill.is-me            { background: #fff4e0; color: #92580a; }

.ad-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ad-modal {
    border: 0;
    padding: 0;
    width: min(440px, calc(100vw - 32px));
    border-radius: var(--ad-radius);
    box-shadow: 0 24px 60px rgba(16, 26, 45, .28);
}

.ad-modal::backdrop {
    background: rgba(16, 26, 45, .45);
}

.ad-modal-inner { padding: 22px; }

.ad-modal h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
}

.ad-modal .ad-modal-sub {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--ad-muted);
}

.ad-strength {
    height: 5px;
    margin-top: 8px;
    border-radius: 999px;
    background: #eef1f6;
    overflow: hidden;
}

.ad-strength i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--ad-danger);
    transition: width .2s, background .2s;
}

@media (max-width: 860px) {
    .ad-page { padding: 16px; }
    .ad-page-head { flex-direction: column; }
}

/* หัวข้อคั่นกลุ่มเมนูใน sidebar */
.ad-menu-group {
    margin: 14px 12px 6px;
    padding-top: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--ad-muted);
    border-top: 1px solid var(--ad-line);
}

@media (min-width: 861px) {
    .ad-shell.is-collapsed .ad-menu-group {
        margin: 10px 6px 6px;
        padding-top: 10px;
        font-size: 0;
    }
}
