/*
 * PabiliAPP legacy visual system.
 *
 * The Laravel application keeps the original product identity while its
 * controllers, validation and persistence remain fully Laravel-native.
 */
:root {
    --ink: #17211c;
    --muted: #68746d;
    --paper: #fbf8f0;
    --card: #fff;
    --line: #e9e5dc;
    --green: #165b3c;
    --green-dark: #0f402b;
    --lime: #dff7c7;
    --orange: #ff6b35;
    --orange-dark: #e65124;
    --yellow: #ffc94a;
    --blue: #3158b5;
    --shadow: 0 18px 50px rgba(27, 46, 37, .10);
}

body:not(.dashboard-body) {
    color: var(--ink);
    background: var(--paper);
}

.brand-mark {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 8px 20px rgba(255, 107, 53, .22);
    transform: rotate(-3deg);
}

.brand-mark svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.site-header {
    height: 78px;
    background: rgba(251, 248, 240, .94);
    border-bottom-color: rgba(23, 33, 28, .08);
}

.legacy-desktop-nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    color: #4f5c55;
    font-size: 14px;
    font-weight: 700;
}
.legacy-desktop-nav a:hover { color: var(--orange); }
.site-header .top-actions { margin-left: 0; }
.legacy-cart-button {
    min-width: 104px;
    min-height: 46px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 13px;
    color: #fff;
    background: var(--orange);
    font-weight: 800;
}
.legacy-cart-button b {
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--orange);
    background: #fff;
    font-size: 11px;
}

.page-shell {
    width: min(1240px, calc(100% - 40px));
}

.hero {
    border-radius: 24px;
    background: linear-gradient(125deg, var(--green), var(--green-dark));
    box-shadow: var(--shadow);
}

.hero .eyebrow { color: #ffda76; }
.button { border-radius: 12px; }
.button.orange { background: var(--orange); }
.button.orange:hover { background: var(--orange-dark); }
.card,
.merchant-card,
.trust-strip,
.merchant-open-bar { border-color: var(--line); }

/* Original Customer storefront discovery experience. */
.legacy-storefront {
    margin-top: -30px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}
.customer-discovery {
    padding: 62px max(7%, calc((100vw - 1180px) / 2)) 30px;
    background: linear-gradient(135deg, #f1f8f3, #fff8e8);
}
.customer-discovery-copy { max-width: 760px; }
.customer-discovery-copy h1 {
    margin: 8px 0 7px;
    font: 800 clamp(34px, 5vw, 58px)/1.05 "Manrope", sans-serif;
    letter-spacing: -2.5px;
}
.customer-discovery-copy p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
.legacy-food-search {
    max-width: 850px;
    min-height: 64px;
    margin: 28px 0 16px;
    padding: 7px 7px 7px 19px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}
.legacy-food-search > span { color: var(--muted); font-size: 22px; }
.legacy-food-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}
.legacy-food-search button {
    min-height: 50px;
    padding: 0 23px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: var(--orange);
    font-weight: 800;
}
.customer-quick-actions {
    max-width: 850px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.customer-quick-actions a {
    min-width: 0;
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(19, 61, 40, .04);
}
.customer-quick-actions a > span {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #eaf5ee;
    font-size: 19px;
}
.customer-quick-actions strong,
.customer-quick-actions small { display: block; }
.customer-quick-actions strong { font-size: 12px; }
.customer-quick-actions small { color: var(--muted); font-size: 9px; }
.legacy-errand-launch {
    max-width: 1180px;
    margin: 34px auto 10px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1.45fr .7fr;
    gap: 26px;
    align-items: center;
    border: 1px solid #dce7e1;
    border-radius: 28px;
    background: linear-gradient(135deg, #f3faf5, #fff8ee);
    box-shadow: 0 18px 48px rgba(31, 62, 47, .08);
}
.legacy-errand-launch h2 {
    margin: 7px 0 10px;
    color: #153e2b;
    font: 800 clamp(1.55rem, 3vw, 2.25rem) "Manrope", sans-serif;
}
.legacy-errand-launch p { color: #66786e; line-height: 1.65; }
.legacy-errand-launch > div > div { display: flex; flex-wrap: wrap; gap: 8px; }
.legacy-errand-launch > div > div span {
    padding: 7px 10px;
    border-radius: 99px;
    color: #315c46;
    background: #fff;
    font-size: .72rem;
    font-weight: 800;
}
.legacy-errand-launch aside {
    padding: 24px;
    display: grid;
    justify-items: center;
    border-radius: 22px;
    color: #fff;
    background: #173f2e;
    text-align: center;
}
.legacy-errand-launch aside > span { font-size: 2.5rem; }
.legacy-errand-launch aside strong { margin: 8px 0 3px; font-size: 1.25rem; }
.legacy-errand-launch aside small { color: #cfe0d7; }
.legacy-errand-launch aside a {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    color: #fff;
    background: var(--orange);
    font-weight: 900;
}
.merchant-directory {
    padding: 62px max(7%, calc((100vw - 1180px) / 2)) 50px;
    background: #fff;
}
.merchant-directory > .section-heading > p {
    color: var(--muted);
    font-size: 13px;
}
.legacy-merchant-card {
    height: 310px;
    min-height: 310px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--green);
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.legacy-merchant-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 25, 14, .02) 20%, rgba(3, 25, 14, .88) 100%);
}
.legacy-merchant-card .merchant-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.legacy-merchant-card:hover .merchant-photo { transform: scale(1.05); }
.legacy-merchant-card .merchant-body {
    position: absolute;
    z-index: 1;
    right: 22px;
    bottom: 20px;
    left: 22px;
    padding: 0;
}
.legacy-merchant-card .eyebrow { color: #ffda76; }
.legacy-merchant-card .merchant-body h3 {
    margin: 7px 0 4px;
    color: #fff;
    font-size: 22px;
}
.legacy-merchant-card .meta-row { color: rgba(255, 255, 255, .76); }
.legacy-merchant-card .merchant-cta {
    margin-top: 13px;
    padding-top: 11px;
    display: block;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .20);
}

@media (max-width: 900px) {
    .legacy-desktop-nav { display: none; }
    .site-header .top-actions { margin-left: auto; }
    .customer-quick-actions { grid-template-columns: 1fr; }
    .legacy-errand-launch { grid-template-columns: 1fr; margin: 24px 14px; padding: 22px; }
}

@media (max-width: 600px) {
    .legacy-cart-button { min-width: 45px; width: 45px; padding: 0; }
    .legacy-cart-button > span:nth-child(2) { display: none; }
    .legacy-storefront { margin-top: -12px; }
    .customer-discovery { padding: 35px 5% 24px; }
    .customer-discovery-copy h1 { font-size: 35px; letter-spacing: -1.5px; }
    .legacy-food-search { margin: 20px 0 13px; padding-left: 13px; }
    .legacy-food-search input { font-size: 16px; }
    .legacy-food-search button { min-height: 44px; padding: 10px 13px; }
    .customer-quick-actions a { min-height: 64px; }
    .customer-quick-actions strong { font-size: 15px; }
    .customer-quick-actions small { font-size: 12px; }
    .merchant-directory { padding-top: 34px; }
}

/* Shared original dashboard shell. */
.dashboard-body {
    --dash-bg: #f2f5f2;
    --dash-card: #fff;
    --dash-sidebar: #123f2c;
    --dash-text: #15221b;
    --dash-muted: #6d7c74;
    --dash-line: #e3e9e5;
    --dash-orange: #ff6b35;
    --dash-green: #165b3c;
    color: var(--dash-text);
    background: var(--dash-bg);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
}

.dashboard-body .dash-sidebar {
    width: 248px;
    padding: 24px 17px;
    background: var(--dash-sidebar);
}

.dashboard-body .dash-brand {
    margin: 0 7px 30px;
    padding: 0;
}

.dashboard-body .dash-brand .brand-mark {
    background: var(--dash-orange);
    box-shadow: none;
}

.dashboard-body .role-badge {
    margin-left: auto;
    padding: 5px 8px;
    border-radius: 8px;
    color: #ffe7a4;
    background: rgba(255, 255, 255, .10);
    font-size: 8px;
    letter-spacing: .8px;
}

.dashboard-body .dash-nav {
    gap: 5px;
}

.dashboard-body .dash-nav a,
.dashboard-body .dash-nav button {
    min-height: 42px;
    padding: 11px 13px;
    border-radius: 11px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

.dashboard-body .dash-nav a span,
.dashboard-body .dash-nav button span {
    width: 22px;
    height: auto;
    color: inherit;
    background: transparent;
    font-size: 16px;
}

.dashboard-body .dash-nav a:hover,
.dashboard-body .dash-nav button:hover,
.dashboard-body .dash-nav .active {
    color: #fff;
    background: rgba(255, 255, 255, .11);
}

.dashboard-body .dash-nav .active span {
    color: #fff;
    background: transparent;
}

.dashboard-body .dash-nav .nav-primary {
    color: #fff;
    background: var(--dash-orange);
}

.dashboard-body .sidebar-user {
    padding: 13px;
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    border-top-color: rgba(255, 255, 255, .12);
}

.dashboard-body .sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: var(--dash-orange);
    font-size: 11px;
}

.dashboard-body .sidebar-user strong { font-size: 11px; }
.dashboard-body .sidebar-user small {
    color: rgba(255, 255, 255, .55);
    font-size: 9px;
}

.dashboard-body .dash-main { margin-left: 248px; }

.dashboard-body .dash-topbar {
    min-height: 76px;
    height: auto;
    padding: 14px 3%;
    gap: 14px;
    background: rgba(242, 245, 242, .92);
    border-bottom-color: var(--dash-line);
}

.dashboard-body .dash-title { flex: 1; }
.dashboard-body .dash-title h1 {
    font-size: 21px;
    letter-spacing: -.7px;
}
.dashboard-body .dash-title p {
    color: var(--dash-muted);
    font-size: 10px;
}

.dashboard-body .notification-button,
.dashboard-body .topbar-logout .button {
    border-color: var(--dash-line);
    background: #fff;
}

.dashboard-body .dash-content {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 28px 3% 60px;
}

.dashboard-body .dash-welcome {
    min-height: 185px;
    margin-bottom: 20px;
    padding: 30px 36px;
    border: 0;
    border-radius: 21px;
    color: #fff;
    background: linear-gradient(120deg, var(--dash-green), #0b3523);
}

.dashboard-body .dash-welcome::after {
    width: 260px;
    height: 260px;
    right: -75px;
    top: -100px;
    border: 50px solid rgba(255, 255, 255, .05);
}

.dashboard-body .dash-welcome .eyebrow { color: #ffd56c; }
.dashboard-body .dash-welcome h2 {
    margin: 7px 0 5px;
    color: #fff;
    font-size: 31px;
    letter-spacing: -1.2px;
}
.dashboard-body .dash-welcome p {
    max-width: 650px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    line-height: 1.6;
}
.dashboard-body .welcome-icon {
    margin-right: 7%;
    font-size: 82px;
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .22));
}

.dashboard-body .quick-actions {
    gap: 10px;
    margin: 0 0 22px;
}

.dashboard-body .quick-action {
    min-height: 72px;
    padding: 13px;
    border-color: var(--dash-line);
    border-radius: 13px;
    box-shadow: none;
}

.dashboard-body .quick-action > span {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    border-radius: 10px;
    color: var(--dash-green);
    background: #e9f5ed;
    font-size: 16px;
}
.dashboard-body .quick-action strong { font-size: 11px; }
.dashboard-body .quick-action small {
    color: var(--dash-muted);
    font-size: 9px;
}
.dashboard-body .quick-action.primary {
    border-color: var(--dash-orange);
    background: var(--dash-orange);
}

.dashboard-body .stats {
    gap: 14px;
    margin: 0 0 20px;
}

.dashboard-body .stat {
    padding: 18px;
    border-color: var(--dash-line);
    border-radius: 16px;
    box-shadow: none;
}

.dashboard-body .stat strong {
    font-size: 25px;
    letter-spacing: -1px;
}
.dashboard-body .stat span {
    color: var(--dash-muted);
    font-size: 10px;
}

.app-pagination {
    margin-top: 18px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--dash-line, #dce5df);
    border-radius: 15px;
    background: #fff;
}
.app-pagination-summary {
    margin: 0;
    color: var(--dash-muted, #617472);
    font-size: 11px;
    white-space: nowrap;
}
.app-pagination-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}
.app-pagination-page,
.app-pagination-edge,
.app-pagination-ellipsis {
    min-width: 36px;
    min-height: 36px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dash-line, #dce5df);
    border-radius: 10px;
    color: var(--dash-text, #15221b);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
.app-pagination-edge { min-width: 66px; }
.app-pagination-page:hover,
.app-pagination-edge:hover {
    border-color: var(--dash-green, #165b3c);
    color: var(--dash-green, #165b3c);
    background: #f0f7f3;
}
.app-pagination-page.active {
    border-color: var(--dash-green, #165b3c);
    color: #fff;
    background: var(--dash-green, #165b3c);
}
.app-pagination .disabled {
    color: #9aa59f;
    background: #f4f6f5;
    cursor: not-allowed;
}
.app-pagination-ellipsis {
    min-width: 26px;
    padding-inline: 5px;
    border-color: transparent;
}

.dashboard-body .panel,
.dashboard-body .card,
.dashboard-body details {
    border-color: var(--dash-line);
    border-radius: 17px;
    box-shadow: none;
}
.dashboard-body .panel { padding: 20px; }
.dashboard-body .panel-head h3 { font-size: 15px; }
.dashboard-body .panel-head p {
    color: var(--dash-muted);
    font-size: 10px;
}

.dashboard-body .section-intro { margin-bottom: 20px; }
.dashboard-body .section-intro h2 {
    font-size: 27px;
    letter-spacing: -1px;
}
.dashboard-body .section-intro p {
    color: var(--dash-muted);
    font-size: 11px;
}

.dashboard-body .field label,
.dashboard-body .field > label,
.dashboard-body .help,
.dashboard-body .meta-row { color: var(--dash-muted); }

.dashboard-body .field input,
.dashboard-body .field select,
.dashboard-body .field textarea,
.dashboard-body .search-input,
.dashboard-body .filter-bar input,
.dashboard-body .filter-bar select {
    border-color: var(--dash-line);
    border-radius: 9px;
    background: #fff;
}

.dashboard-body .field input:focus,
.dashboard-body .field select:focus,
.dashboard-body .field textarea:focus,
.dashboard-body .search-input:focus {
    outline: 0;
    border-color: var(--dash-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, .09);
}

.dashboard-body .button {
    border-radius: 10px;
    background: var(--dash-green);
}
.dashboard-body .button.orange { background: var(--dash-orange); }
.dashboard-body .button.ghost {
    color: var(--dash-green);
    background: #eaf4ee;
    border-color: transparent;
}
.dashboard-body .button.danger { background: #a13a2d; }

/* Customer and Rider retain the original rich green workspace. */
.role-customer .dash-sidebar,
.role-rider .dash-sidebar {
    background: linear-gradient(180deg, #103f2b, #0a2f20);
}

.role-customer .dash-welcome,
.role-rider .dash-welcome {
    background: linear-gradient(125deg, #165b3c, #0e3b28);
}

/* Operator keeps the original compact operations green. */
.role-operator .dash-sidebar {
    background: #123f2c;
}
.role-operator .dash-welcome {
    color: var(--dash-text);
    background: linear-gradient(135deg, #e8f4e5, #f8fbf6);
    border: 1px solid #d6e7d9;
}
.role-operator .dash-welcome .eyebrow { color: var(--dash-orange); }
.role-operator .dash-welcome h2 { color: var(--dash-text); }
.role-operator .dash-welcome p { color: var(--dash-muted); }

/* Original System Manager navy control center. */
.role-system_manager.dashboard-body {
    --system: #263466;
    --system-dark: #182248;
    --system-soft: #eef1ff;
    --system-line: #dce1ef;
    background: #f4f6fa;
}

.role-system_manager .dash-sidebar {
    background: linear-gradient(180deg, #172143, #101832);
    border-color: #2c3760;
}
.role-system_manager .dash-brand .brand-mark,
.role-system_manager .sidebar-avatar,
.role-system_manager .role-badge { background: #6f82dd; }
.role-system_manager .role-badge { color: #fff; }
.role-system_manager .dash-nav a,
.role-system_manager .dash-nav button { color: #aeb9df; }
.role-system_manager .dash-nav a:hover,
.role-system_manager .dash-nav button:hover,
.role-system_manager .dash-nav .active {
    color: #fff;
    background: #28355f;
}
.role-system_manager .dash-topbar {
    background: rgba(244, 246, 250, .94);
    border-bottom-color: var(--system-line);
}
.role-system_manager .dash-welcome {
    min-height: 190px;
    padding: 36px 40px;
    color: #fff;
    background: linear-gradient(125deg, var(--system-dark), #354783 70%, #5369ba);
}
.role-system_manager .dash-welcome::after {
    width: 400px;
    height: 400px;
    right: -110px;
    top: -210px;
    border: 75px solid rgba(255, 255, 255, .045);
}
.role-system_manager .dash-welcome .eyebrow { color: #aebfff; }
.role-system_manager .dash-welcome h2 { font-size: 34px; }
.role-system_manager .dash-welcome p { color: #cbd3ef; }
.role-system_manager .quick-action > span {
    color: var(--system);
    background: var(--system-soft);
}
.role-system_manager .quick-action.primary {
    border-color: var(--system);
    background: var(--system);
}
.role-system_manager .stat { border-color: var(--system-line); }
.role-system_manager .button { background: var(--system); }
.role-system_manager .button:hover { background: var(--system-dark); }
.role-system_manager .button.ghost {
    color: var(--system);
    background: var(--system-soft);
}
.role-system_manager .field input:focus,
.role-system_manager .field select:focus,
.role-system_manager .field textarea:focus,
.role-system_manager .search-input:focus {
    border-color: #7182d1;
    box-shadow: 0 0 0 3px #e5e9fc;
}
.role-system_manager .eyebrow { color: #5369ba; }
.role-system_manager .notification-button { border-color: var(--system-line); }

@media (max-width: 1050px) {
    .dashboard-body .dash-sidebar { width: 215px; }
    .dashboard-body .dash-main { margin-left: 215px; }
}

@media (max-width: 800px) {
    .page-shell { width: calc(100% - 18px); }
    .site-header { height: 64px; padding: 0 12px; }

    .dashboard-body {
        font-size: 18px;
    }
    .dashboard-body .dash-main {
        margin-left: 0;
        padding-bottom: 78px;
    }
    .dashboard-body .dash-topbar {
        min-height: 68px;
        padding: 9px 14px;
        background: rgba(242, 245, 242, .97);
    }
    .role-system_manager .dash-topbar { background: rgba(244, 246, 250, .97); }
    .dashboard-body .dash-title h1 { font-size: 21px; }
    .dashboard-body .dash-content { padding: 16px 12px 106px; }
    .dashboard-body .dash-welcome {
        min-height: 156px;
        padding: 23px 20px;
        border-radius: 18px;
    }
    .dashboard-body .dash-welcome h2 { font-size: 29px; }
    .dashboard-body .dash-welcome p { font-size: 13px; }
    .dashboard-body .welcome-icon { display: none; }
    .dashboard-body .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-body .quick-action {
        min-height: 74px;
        padding: 11px;
    }
    .dashboard-body .quick-action strong { font-size: 14px; }
    .dashboard-body .quick-action small { font-size: 11px; }
    .dashboard-body .stats { gap: 9px; }
    .dashboard-body .stat {
        min-width: 0;
        padding: 16px;
        border-radius: 14px;
    }
    .dashboard-body .stat strong { font-size: 25px; }
    .dashboard-body .stat span {
        font-size: 12px;
        line-height: 1.35;
    }
    .dashboard-body .section-intro h2 { font-size: 27px; }
    .dashboard-body .section-intro p {
        font-size: 14px;
        line-height: 1.55;
    }
    .dashboard-body .panel-head h3 { font-size: 19px; }
    .dashboard-body .panel-head p {
        font-size: 13px;
        line-height: 1.5;
    }
    .dashboard-body .field label { font-size: 14px; }
    .dashboard-body .field input,
    .dashboard-body .field select,
    .dashboard-body .field textarea,
    .dashboard-body .search-input,
    .dashboard-body .filter-bar input,
    .dashboard-body .filter-bar select {
        min-height: 48px;
        font-size: 16px;
    }
    .dashboard-body .dash-mobile-nav {
        height: 76px;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
        gap: 4px;
        background: rgba(255, 255, 255, .97);
        border-top-color: #dce6df;
        box-shadow: 0 -8px 30px rgba(12, 50, 32, .10);
    }
    .dashboard-body .dash-mobile-nav a,
    .dashboard-body .dash-mobile-nav button {
        min-height: 58px;
        padding: 5px 1px;
        border-radius: 10px;
        color: #7d8b83;
        font-size: 10px;
    }
    .dashboard-body .dash-mobile-nav span {
        color: var(--dash-green);
        font-size: 19px;
    }
    .dashboard-body .dash-mobile-nav .active {
        color: #fff;
        background: var(--dash-green);
    }
    .dashboard-body .dash-mobile-nav .active span { color: #fff; }
    .role-system_manager .dash-mobile-nav {
        border-top-color: var(--system-line);
        box-shadow: 0 -8px 30px rgba(24, 34, 72, .12);
    }
    .role-system_manager .dash-mobile-nav span { color: var(--system); }
    .role-system_manager .dash-mobile-nav .active { background: var(--system); }
    .role-system_manager .dash-mobile-nav .active span { color: #fff; }
}

@media (max-width: 480px) {
    .dashboard-body .dash-content { padding-left: 10px; padding-right: 10px; }
    .dashboard-body .dash-welcome h2 { font-size: 27px; }
    .dashboard-body .quick-action { display: grid; grid-template-columns: 36px 1fr; }
}

/* Original PabiliAPP split-screen authentication portal. */
.login-body {
    --dash-bg: #f2f5f2;
    --dash-text: #15221b;
    --dash-muted: #6d7c74;
    --dash-line: #e3e9e5;
    --dash-orange: #ff6b35;
    --dash-green: #165b3c;
    margin: 0;
    color: var(--dash-text);
    background: #fff;
    font-family: "DM Sans", sans-serif;
}
.login-body .login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(440px, .9fr);
}
.login-body .login-visual {
    height: 100vh;
    min-width: 0;
    padding: 44px 7%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    align-self: start;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #165b3c, #0e432d);
}
.login-body .login-brand {
    width: max-content;
    color: #fff;
    position: relative;
    z-index: 2;
}
.login-body .login-brand .brand-mark { background: var(--dash-orange); }
.login-body .login-visual > div:nth-child(2) {
    max-width: 580px;
    position: relative;
    z-index: 2;
}
.login-body .login-kicker {
    color: #ffd56c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.login-body .login-visual h1 {
    max-width: 700px;
    margin: 13px 0 17px;
    color: #fff;
    font: 800 clamp(42px, 5vw, 70px)/1.02 "Manrope", sans-serif;
    letter-spacing: -3px;
}
.login-body .login-visual p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    line-height: 1.7;
}
.login-body .login-orbit {
    width: 430px;
    height: 430px;
    position: absolute;
    right: -160px;
    bottom: -130px;
    border: 80px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
}
.login-body .login-orbit > span {
    position: absolute;
    left: -90px;
    top: -85px;
    font-size: 110px;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .2));
}
.login-body .login-orbit i {
    width: 11px;
    height: 11px;
    position: absolute;
    border-radius: 50%;
    background: #ffd56c;
}
.login-body .login-orbit i:nth-child(2) { left: 40px; top: -55px; }
.login-body .login-orbit i:nth-child(3) { right: 0; top: 40px; }
.login-body .login-orbit i:nth-child(4) { left: 10px; bottom: 0; }
.login-body .login-panel {
    min-width: 0;
    padding: 40px;
    display: grid;
    place-items: center;
    overflow-y: auto;
    background: #fff;
}
.login-body .login-card {
    width: min(390px, 100%);
    transition: width .2s ease;
}
.login-body .login-card.application-mode { width: min(560px, 100%); }
.login-body .back-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 25px;
    color: var(--dash-muted);
    font-size: 10px;
    font-weight: 700;
}
.login-body .private-portal-label {
    margin-bottom: 22px;
    padding: 10px;
    border-radius: 10px;
    color: var(--dash-green);
    background: #eaf4ee;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
    text-align: center;
    text-transform: uppercase;
}
.login-body .auth-mode-switch {
    margin-bottom: 25px;
    display: flex;
    gap: 18px;
    border-bottom: 1px solid var(--dash-line);
}
.login-body .auth-mode-switch button {
    min-height: 38px;
    padding: 8px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--dash-muted);
    background: none;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.login-body .auth-mode-switch button.active {
    border-bottom-color: var(--dash-orange);
    color: var(--dash-orange);
}
.login-body [data-auth-heading] .kicker {
    color: var(--dash-orange);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.login-body .login-card h2 {
    margin: 7px 0 5px;
    color: var(--dash-text);
    font: 800 32px "Manrope", sans-serif;
    letter-spacing: -1px;
}
.login-body [data-auth-heading] > p {
    margin: 0 0 25px;
    color: var(--dash-muted);
    font-size: 11px;
}
.login-body .login-card form {
    display: grid;
    gap: 14px;
}
.login-body .login-card form[hidden] { display: none !important; }
.login-body .login-card label {
    min-width: 0;
    display: grid;
    gap: 6px;
    color: var(--dash-muted);
    font-size: 9px;
    font-weight: 800;
}
.login-body .login-card input,
.login-body .login-card select,
.login-body .login-card textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 13px;
    border: 1px solid var(--dash-line);
    border-radius: 10px;
    outline: 0;
    color: var(--dash-text);
    background: #fff;
    font: 11px "DM Sans", sans-serif;
}
.login-body .login-card textarea {
    min-height: 78px;
    line-height: 1.5;
    resize: vertical;
}
.login-body .login-card input:focus,
.login-body .login-card select:focus,
.login-body .login-card textarea:focus {
    border-color: var(--dash-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, .1);
}
.login-body .login-card label small {
    color: #89958e;
    font-size: 8px;
    font-weight: 500;
    line-height: 1.45;
}
.login-body .login-card form > button[type="submit"] {
    min-height: 43px;
    margin-top: 5px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--dash-orange);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.login-body .login-card form > button[type="submit"]:hover { background: #e95b28; }
.login-body .auth-alert {
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.45;
}
.login-body .auth-alert ul { margin: 5px 0 0; }
.login-body .application-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.login-body .rider-photo-upload {
    padding: 11px;
    display: grid !important;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 10px !important;
    border: 1px dashed #c7d6cc;
    border-radius: 11px;
    background: #f6faf7;
}
.login-body .rider-photo-preview {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--dash-green);
    background: #e1f1e7;
    font-size: 20px;
}
.login-body .rider-photo-upload strong,
.login-body .rider-photo-upload small { display: block; }
.login-body .rider-photo-upload strong { color: var(--dash-text); font-size: 9px; }
.login-body .rider-photo-upload input { grid-column: 1 / -1; padding: 9px; background: #fff; }
.login-body .application-consent {
    padding: 10px !important;
    display: flex !important;
    align-items: flex-start;
    gap: 9px !important;
    border: 1px solid #dce9e0;
    border-radius: 10px;
    background: #f5faf7;
}
.login-body .application-consent input {
    width: auto;
    margin-top: 2px;
    accent-color: var(--dash-green);
}
.login-body .application-consent strong,
.login-body .application-consent small { display: block; }
.login-body .application-consent strong { color: var(--dash-text); font-size: 9px; }
.login-body .application-steps {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    background: #eef6f1;
}
.login-body .application-steps span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--dash-green);
    font-size: 7px;
    font-weight: 800;
}
.login-body .application-steps b {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--dash-green);
}
.login-body .application-steps i {
    height: 1px;
    flex: 1;
    margin: 0 6px;
    background: #bfd7c8;
}

/* Customer authentication is intentionally form-first: no marketing hero. */
.login-body .customer-auth-shell {
    min-height: 100dvh;
    grid-template-columns: 1fr;
    background:
        radial-gradient(circle at 8% 0, rgba(223, 247, 199, .7), transparent 25rem),
        #f6f8f5;
}
.login-body .customer-auth-shell .login-panel {
    min-height: 100dvh;
    padding: 34px 20px 54px;
    place-items: start center;
    background: transparent;
}
.login-body .customer-auth-shell .login-card {
    width: min(540px, 100%);
    padding: 24px;
    border: 1px solid var(--dash-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(20, 55, 45, .1);
}
.login-body .customer-auth-header {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.login-body .customer-auth-header .brand { font-size: 17px; }
.login-body .customer-auth-header .brand-mark {
    width: 38px;
    height: 38px;
    background: var(--dash-orange);
}
.login-body .customer-auth-header .back-link {
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--dash-line);
    border-radius: 12px;
    white-space: nowrap;
}
.login-body .customer-auth-assurance {
    margin-bottom: 18px;
    padding: 12px;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    color: var(--dash-green);
    background: #eaf4ee;
}
.login-body .customer-auth-assurance > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff;
}
.login-body .customer-auth-assurance strong,
.login-body .customer-auth-assurance small { display: block; }
.login-body .customer-auth-assurance strong { font-size: 12px; }
.login-body .customer-auth-assurance small {
    margin-top: 2px;
    color: #5e7468;
    font-size: 10px;
    line-height: 1.4;
}
.login-body .customer-auth-shell .auth-mode-switch {
    margin-bottom: 22px;
    padding: 4px;
    gap: 4px;
    border: 0;
    border-radius: 14px;
    background: #f0f4f1;
}
.login-body .customer-auth-shell .auth-mode-switch button {
    min-height: 42px;
    flex: 1;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
}
.login-body .customer-auth-shell .auth-mode-switch button.active {
    border: 0;
    color: var(--dash-orange);
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 61, 48, .09);
}
.login-body .password-input-wrap {
    position: relative;
    display: block;
}
.login-body .password-input-wrap input { padding-right: 70px; }
.login-body .password-input-wrap [data-password-toggle] {
    min-width: 56px;
    min-height: 34px;
    padding: 0 9px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    color: var(--dash-green);
    background: #edf5f0;
    font: 800 10px "DM Sans", sans-serif;
    cursor: pointer;
}
.login-body .customer-registration-note {
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d9e9de;
    border-radius: 12px;
    color: var(--dash-green);
    background: #f4faf6;
}
.login-body .customer-registration-note > span {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--dash-green);
    font-size: 11px;
}
.login-body .customer-registration-note p { margin: 0; }
.login-body .customer-registration-note strong,
.login-body .customer-registration-note small { display: block; }
.login-body .customer-registration-note strong { font-size: 10px; }
.login-body .customer-registration-note small {
    margin-top: 2px;
    color: #75837b;
    font-size: 9px;
}
.login-body .customer-auth-benefits {
    margin-top: 22px;
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    border-top: 1px solid var(--dash-line);
    color: #65746c;
    font-size: 9px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .login-body .login-shell { grid-template-columns: 1fr; }
    .login-body .login-visual {
        height: auto;
        min-height: 300px;
        padding: 29px 24px 34px;
        gap: 42px;
        position: relative;
    }
    .login-body .login-visual h1 {
        max-width: 570px;
        margin: 10px 0 12px;
        font-size: clamp(35px, 10vw, 43px);
        letter-spacing: -2px;
    }
    .login-body .login-visual p {
        max-width: calc(100% - 65px);
        font-size: 12px;
        line-height: 1.55;
    }
    .login-body .login-orbit {
        right: -205px;
        bottom: -190px;
        transform: scale(.64);
    }
    .login-body .login-panel {
        padding: 34px 20px 54px;
        place-items: start center;
        overflow: visible;
    }
    .login-body .back-link { margin-bottom: 20px; font-size: 13px; }
    .login-body .private-portal-label { font-size: 11px; }
    .login-body .auth-mode-switch button { min-height: 44px; font-size: 13px; }
    .login-body [data-auth-heading] .kicker { font-size: 11px; }
    .login-body .login-card h2 { font-size: 31px; }
    .login-body [data-auth-heading] > p { font-size: 14px; line-height: 1.5; }
    .login-body .login-card label { font-size: 14px; }
    .login-body .login-card input,
    .login-body .login-card select,
    .login-body .login-card textarea {
        min-height: 52px;
        padding: 14px;
        font-size: 16px;
    }
    .login-body .login-card label small { font-size: 11px; }
    .login-body .login-card form > button[type="submit"] { min-height: 52px; font-size: 15px; }
    .login-body .auth-alert { font-size: 13px; }
    .login-body .rider-photo-upload strong,
    .login-body .application-consent strong { font-size: 13px; }
    .login-body .rider-photo-upload small,
    .login-body .application-consent small { font-size: 11px; }
    .login-body .customer-auth-shell .login-panel {
        min-height: 100dvh;
        padding: 0;
    }
    .login-body .customer-auth-shell .login-card {
        width: 100%;
        min-height: 100dvh;
        padding: 22px 18px 42px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .login-body .customer-auth-header { margin-bottom: 16px; }
    .login-body .customer-auth-header .back-link {
        min-height: 38px;
        margin: 0;
        font-size: 12px;
    }
    .login-body .customer-auth-assurance strong { font-size: 13px; }
    .login-body .customer-auth-assurance small { font-size: 11px; }
    .login-body .customer-auth-shell .auth-mode-switch button { font-size: 14px; }
    .login-body .password-input-wrap [data-password-toggle] {
        min-height: 40px;
        font-size: 12px;
    }
    .login-body .customer-registration-note strong { font-size: 13px; }
    .login-body .customer-registration-note small { font-size: 11px; }
    .login-body .customer-auth-benefits {
        justify-content: flex-start;
        font-size: 11px;
    }
    .app-pagination {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    .app-pagination-summary {
        font-size: 13px;
        text-align: center;
    }
    .app-pagination-links { justify-content: center; }
    .app-pagination-page,
    .app-pagination-edge,
    .app-pagination-ellipsis {
        min-height: 42px;
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .login-body .application-form-grid { grid-template-columns: 1fr; }
    .login-body .application-steps span { font-size: 9px; }
    .login-body .application-steps i { margin: 0 3px; }
}
