/* ASCC Logistics Filament theme: green / near-black / white (not Sidoman navy). */
:root {
    --ascc-green: #14B41C;
    --ascc-primary: #0B7F12;
    --ascc-lime: #68C850;
    --ascc-black: #111111;
    --ascc-white: #FFFFFF;
    --ascc-gray: #4A4A4A;
}

/* Dark near-black sidebar in light and dark mode. */
.fi-sidebar,
.fi-sidebar-header {
    background-color: var(--ascc-black) !important;
    --tw-ring-color: rgba(255, 255, 255, .06);
}
.fi-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}
.fi-sidebar .fi-logo img,
.fi-sidebar-header img,
.fi-sidebar .fi-logo {
    max-height: 2.85rem;
    width: auto;
}
.fi-sidebar .fi-sidebar-item-button,
.fi-sidebar .fi-sidebar-item-button .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item-button .fi-sidebar-item-icon,
.fi-sidebar .fi-sidebar-group-button,
.fi-sidebar .fi-sidebar-group-label,
.fi-sidebar .fi-sidebar-group-collapse-button {
    color: #e8e8e8 !important;
}
.fi-sidebar .fi-sidebar-group-label,
.fi-sidebar .fi-sidebar-group-button {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem !important;
    font-weight: 650 !important;
    color: #9a9a9a !important;
}
.fi-sidebar .fi-sidebar-item-button:hover {
    background-color: rgba(20, 180, 28, .16) !important;
}
.fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-button,
.fi-sidebar .fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-button,
.fi-sidebar .fi-active > .fi-sidebar-item-button {
    background-color: rgba(20, 180, 28, .28) !important;
    color: #fff !important;
}
.fi-sidebar .fi-badge,
.fi-sidebar .fi-sidebar-item-badge-ctn span {
    text-transform: lowercase;
}

/* User card (Sidoman-style, ASCC colours). */
.ascc-user-card {
    margin: .35rem .7rem 1rem;
    padding: .85rem .9rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #f4f4f4;
}
.ascc-user-card-name { font-weight: 650; font-size: .95rem; line-height: 1.25; }
.ascc-user-card-role { color: #b8b8b8; font-size: .78rem; margin-top: .15rem; }
.ascc-user-card-meta { margin-top: .45rem; }
.ascc-user-card-meta span {
    display: inline-block;
    font-size: .68rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    color: #d0d0d0;
}

/* Sidebar account footer. */
.ascc-side-foot {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .7rem;
    padding: .85rem 1rem 1.1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: .4rem;
}
.ascc-side-foot a,
.ascc-side-foot button {
    background: none;
    border: 0;
    padding: 0;
    color: #c8c8c8;
    font-size: .75rem;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.ascc-side-foot a:hover,
.ascc-side-foot button:hover { color: #fff; text-decoration: underline; }

/* Dashboard. */
.ascc-dash { display: flex; flex-direction: column; gap: 1.1rem; }
.ascc-dash-hello h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 .25rem;
}
.dark .ascc-dash-hello h2 { color: #f4f4f4; }
.ascc-dash-hello p {
    margin: 0;
    color: #5b5b5b;
    font-size: .9rem;
}
.dark .ascc-dash-hello p { color: #b0b0b0; }
.ascc-dot { padding: 0 .15rem; }
.ascc-live {
    display: inline-block;
    margin-left: .4rem;
    color: var(--ascc-primary);
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ascc-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.ascc-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #1a1a1a;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
.ascc-pill svg { width: 1.05rem; height: 1.05rem; }
.ascc-pill:hover {
    border-color: var(--ascc-primary);
    color: var(--ascc-primary);
    background: #f3fbf3;
}
.dark .ascc-pill { background: #1c1c1c; border-color: #333; color: #eee; }
.dark .ascc-pill:hover { background: #163516; }

.ascc-modes {
    display: flex;
    gap: .25rem;
    background: #ececec;
    padding: .2rem;
    border-radius: .8rem;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
}
.dark .ascc-modes { background: #2a2a2a; }
.ascc-mode {
    border: 0;
    background: transparent;
    padding: .45rem 1rem;
    border-radius: .65rem;
    font-weight: 650;
    font-size: .9rem;
    color: #555;
    cursor: pointer;
    font-family: inherit;
}
.ascc-mode.is-on {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.dark .ascc-mode { color: #bbb; }
.dark .ascc-mode.is-on { background: #111; color: #fff; }

.ascc-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .85rem;
}
.ascc-kpi {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 1rem;
    padding: .95rem 1rem 1.05rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.dark .ascc-kpi { background: #171717; border-color: #2c2c2c; }
.ascc-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ascc-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .7rem;
    background: #e9f8ea;
    color: var(--ascc-primary);
}
.dark .ascc-kpi-icon { background: #163516; }
.ascc-kpi-icon svg { width: 1.15rem; height: 1.15rem; }
.ascc-kpi-label { margin-top: .7rem; font-size: .82rem; color: #666; font-weight: 600; }
.dark .ascc-kpi-label { color: #aaa; }
.ascc-kpi-value { font-size: 1.55rem; font-weight: 750; color: #111; letter-spacing: -.02em; line-height: 1.2; }
.dark .ascc-kpi-value { color: #f5f5f5; }
.ascc-kpi-desc { margin-top: .15rem; font-size: .78rem; color: #7a7a7a; }

.ascc-soon { max-width: 40rem; }
.ascc-soon-group {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--ascc-primary);
    margin: 0 0 .4rem;
}
.ascc-soon-blurb { font-size: 1rem; line-height: 1.5; margin: 0 0 .75rem; }
.ascc-soon-note { color: #666; font-size: .9rem; margin: 0; }

/* Login: official wordmark only, with room to sit at full size. */
.fi-simple-layout .fi-logo,
.fi-simple-main .fi-logo {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
}
.fi-simple-layout .fi-logo img,
.fi-simple-main .fi-logo img {
    width: auto;
    max-height: 3.25rem;
}

/* Compact sidebar so the full group list plus account footer fit on a phone. */
.fi-sidebar-header { padding: .4rem .6rem !important; }
.fi-sidebar .fi-logo img,
.fi-sidebar-header img { max-height: 2.15rem; }
.fi-sidebar-nav { padding-top: .15rem !important; padding-bottom: .15rem !important; }
.fi-sidebar .fi-sidebar-group-button,
.fi-sidebar .fi-sidebar-item-button {
    padding-top: .32rem !important;
    padding-bottom: .32rem !important;
    min-height: 0 !important;
}
.ascc-user-card { margin: .15rem .55rem .4rem; padding: .5rem .7rem; }
.ascc-side-foot { padding: .4rem .75rem .55rem; }



/* Brand marks sit on a dark sidebar / top bar: never paint a white box behind them. */
.fi-sidebar .ascc-brand img,
.ascc-topbar-mark img,
.ascc-collapsed-mark img {
    background: transparent;
}

/* One mark per surface: wordmark where there is room, icon where it is tight. Never both. */
.ascc-brand { display: inline-flex; align-items: center; }
.ascc-brand img { display: none; width: auto; object-fit: contain; }
.fi-simple-layout .ascc-brand-wordmark-full { display: block; height: 3.1rem; }
.fi-sidebar .ascc-brand-wordmark-sidebar,
.fi-topbar-with-navigation .ascc-brand-wordmark-sidebar { display: block; height: 2.35rem; }

/* Mobile top bar: globe only, and only when the sidebar or top-nav wordmark is hidden. */
.ascc-topbar-mark {
    display: inline-flex;
    align-items: center;
    height: 2rem;
}
.ascc-topbar-mark img { height: 2rem; width: auto; }
@media (min-width: 1024px) {
    .ascc-topbar-mark { display: none; }
}

/* Collapsed desktop sidebar: globe tile in the rail (Alpine toggles display). */
.ascc-collapsed-mark { display: none; }
@media (min-width: 1024px) {
    .ascc-collapsed-mark { justify-content: center; padding: .15rem 0 .35rem; }
    .ascc-collapsed-mark img { width: 2.1rem; height: 2.1rem; }
}
@media (max-width: 1023px) {
    .ascc-collapsed-mark { display: none !important; }
}

.ascc-dash-hello-text { min-width: 0; }
.ascc-dash-hello h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 .25rem;
}
.dark .ascc-dash-hello h2 { color: #f4f4f4; }
