:root {
    --app-bg: #f6f7fb;
    --panel-bg: rgba(255, 255, 255, 0.94);
    --ink: #111827;
    --muted: #6b7280;
    --line: #d9dee8;
    --brand: #111827;
    --brand-soft: #263244;
    --accent: #f5b301;
    --success: #0f766e;
    --danger: #b91c1c;
    --radius: 8px;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
}

html {
    min-height: 100%;
}

body.app-body {
    min-height: 100%;
    color: var(--ink);
    font-family: "Montserrat", Arial, sans-serif;
    background:
        linear-gradient(rgba(246, 247, 251, 0.94), rgba(246, 247, 251, 0.98)),
        url("../images/background_image.438418d7a762.jpg") center top / cover fixed;
}

a {
    color: #075985;
}

a:hover {
    color: #0f766e;
    text-decoration: none;
}

.app-navbar {
    min-height: 58px;
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.app-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--accent);
    color: #111827;
    font-size: 14px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
}

.nav-scope-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
}

.nav-register {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.dropdown-menu {
    border: 0;
    border-radius: 8px;
    background: #1f2937;
    box-shadow: var(--shadow);
}

.dropdown-menu .dropdown-item {
    color: #f9fafb;
}

.dropdown-menu .dropdown-item:hover {
    background: #374151;
}

.app-main {
    margin-top: 72px;
    margin-bottom: 34px;
}

.app-messages {
    width: min(calc(100% - 32px), 960px);
    margin: 74px auto 0;
}

.app-messages + .push-activation-gate + .app-main,
.app-messages + .app-main {
    margin-top: 16px;
}

.app-messages .alert {
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: var(--shadow);
}

.page-header h1 {
    margin: 0;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 700;
}

.page-header p:not(.eyebrow) {
    margin: 7px 0 0;
    color: var(--muted);
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.footer {
    border-top: 1px solid var(--line);
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: var(--shadow);
}

.customer-dashboard-hero {
    min-height: 280px;
    align-items: flex-end;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.36)),
        url("../images/background_image.438418d7a762.jpg") center / cover;
}

.customer-dashboard-hero .eyebrow,
.customer-dashboard-hero .dashboard-subtitle {
    color: rgba(255, 255, 255, 0.86);
}

.customer-dashboard-hero .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.72);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.customer-dashboard-hero .btn-outline-dark:hover,
.customer-dashboard-hero .btn-outline-dark:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.06;
    font-weight: 700;
}

.dashboard-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

.workspace-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.workspace-meta span,
.module-state {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.customer-dashboard-hero .workspace-meta span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
}

.workspace-module-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.workspace-module {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.workspace-module:hover,
.workspace-module:focus {
    transform: translateY(-1px);
    color: var(--ink);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.10);
}

.workspace-module h2 {
    margin: 10px 0 6px;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
}

.workspace-module p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.workspace-module > strong {
    font-size: 20px;
    line-height: 1;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.metric-card {
    display: flex;
    flex-direction: column;
    min-height: 118px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.metric-card strong {
    margin: 8px 0 2px;
    font-size: 34px;
    line-height: 1;
}

.metric-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-card span:last-child {
    color: var(--muted);
    font-size: 13px;
}

.saas-insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.saas-insight {
    min-height: 102px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.saas-insight strong {
    display: block;
    margin: 7px 0 2px;
    font-size: 27px;
    line-height: 1;
}

.saas-insight small {
    color: var(--muted);
    font-weight: 700;
}

.workspace-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 16px;
    margin-bottom: 16px;
}

.permission-list {
    display: grid;
    gap: 10px;
}

.permission-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(185, 28, 28, 0.22);
    border-radius: var(--radius);
    background: #fff7f7;
}

.permission-item.is-allowed {
    border-color: rgba(15, 118, 110, 0.24);
    background: #f0fdfa;
}

.permission-item > span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fee2e2;
    color: var(--danger);
    font-size: 12px;
    font-weight: 800;
}

.permission-item.is-allowed > span {
    background: #ccfbf1;
    color: var(--success);
}

.permission-item strong,
.permission-item small {
    display: block;
}

.permission-item small {
    color: var(--muted);
}

.app-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.app-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.legal-page {
    width: min(100%, 980px);
    margin: 0 auto;
}

.legal-hero {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.44)),
        url("../images/background_image.438418d7a762.jpg") center / cover;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.legal-hero .eyebrow,
.legal-hero p {
    color: rgba(255, 255, 255, 0.86);
}

.legal-hero h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
    font-weight: 800;
}

.legal-layout {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.legal-section {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.legal-section h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.legal-section p {
    margin: 0;
    color: #374151;
    line-height: 1.65;
}

.legal-section p + p {
    margin-top: 10px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
}

.panel-caption {
    color: var(--muted);
    font-size: 13px;
}

.auth-layout {
    min-height: calc(100vh - 210px);
    display: grid;
    place-items: center;
}

.auth-panel {
    width: min(100%, 440px);
}

.auth-panel h1,
.auth-panel h2 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
}

.auth-panel form {
    display: grid;
    gap: 10px;
}

.auth-panel .btn,
.auth-panel button[type="submit"],
.auth-panel input[type="submit"] {
    width: 100%;
    min-height: 44px;
}

.auth-alt-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.social-login-button {
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 800;
}

.form-panel {
    width: min(100%, 720px);
    margin: 0 auto;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-actions .btn,
.form-actions input[type="submit"],
.form-actions button[type="submit"] {
    min-height: 44px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-item {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.detail-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-value {
    display: block;
    margin-top: 4px;
    font-weight: 700;
}

.danger-panel {
    border-color: rgba(185, 28, 28, 0.28);
}

.customer-booking-panel {
    margin-bottom: 16px;
}

.manual-booking-form {
    display: grid;
    gap: 12px;
}

.booking-preset-row,
.manual-option-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.booking-preset,
.manual-option-card {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.booking-preset:hover,
.manual-option-card:hover,
.booking-preset.is-active,
.manual-option-card.is-selected {
    border-color: rgba(14, 165, 233, 0.46);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

.booking-preset span,
.manual-option-card strong {
    font-weight: 800;
}

.booking-preset small,
.manual-option-card span,
.manual-option-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.manual-booking-grid,
.manual-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.manual-selection-summary,
.manual-booking-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.manual-booking-status a {
    font-weight: 800;
}

.profile-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
    margin-bottom: 14px;
}

.profile-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--success);
}

.checklist-list {
    display: grid;
    gap: 10px;
}

.checklist-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(185, 28, 28, 0.22);
    border-radius: var(--radius);
    background: #ffffff;
}

.checklist-item.is-ok {
    border-color: rgba(15, 118, 110, 0.24);
}

.check-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fee2e2;
    color: var(--danger);
    font-size: 12px;
    font-weight: 800;
}

.checklist-item.is-ok .check-status {
    background: #ccfbf1;
    color: var(--success);
}

.checklist-item strong,
.checklist-item small {
    display: block;
}

.checklist-item small {
    color: var(--muted);
}

.company-switcher {
    display: grid;
    grid-template-columns: 120px minmax(220px, 360px);
    gap: 10px;
    align-items: center;
}

.company-switcher label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.finance-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.finance-table th,
.finance-table td {
    vertical-align: middle;
}

.alert-row {
    border-color: rgba(245, 179, 1, 0.38);
    background: #fffbeb;
}

.dispatch-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.dispatch-column {
    min-height: 260px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.dispatch-card {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
}

.dispatch-card.active {
    border-left-color: var(--success);
}

.dispatch-card.priority {
    border-left-color: var(--accent);
}

.dispatch-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.dispatch-card-head strong,
.dispatch-card-body span {
    font-weight: 800;
}

.dispatch-card-head span,
.dispatch-card-body small,
.dispatch-card-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.dispatch-card-body {
    display: grid;
    gap: 4px;
}

.dispatch-assign-form {
    display: grid;
    gap: 8px;
}

.dispatch-assign-form label {
    display: grid;
    gap: 4px;
    margin: 0;
}

.dispatch-assign-form label span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.driver-ride-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.review-inline-form {
    display: grid;
    grid-template-columns: 70px minmax(150px, 1fr) auto;
    gap: 6px;
    min-width: 320px;
}

.action-list,
.ride-list {
    display: grid;
    gap: 10px;
}

.action-row,
.ride-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
}

.action-row {
    flex-direction: column;
}

.action-row span,
.ride-row strong {
    font-weight: 700;
}

.action-row small,
.ride-row small {
    color: var(--muted);
}

.app-empty-state {
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.app-empty-state.compact {
    padding: 18px;
}

.install-app-button {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 1070;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #111827;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.push-gate-open {
    overflow: hidden;
}

.push-activation-gate {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.push-activation-panel {
    width: min(460px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.32);
}

.push-activation-panel h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 800;
}

.push-activation-panel p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.push-activation-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.mobile-bottom-nav {
    display: none;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
}

.table {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
}

.table th,
.table td {
    vertical-align: middle;
    white-space: nowrap;
}

.table th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
}

.pagination {
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.page-link {
    border-radius: 8px;
}

form {
    max-width: 100%;
}

input,
select,
textarea,
.form-control {
    max-width: 100%;
    min-height: 42px;
    border-radius: 8px;
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.map-shell {
    position: relative;
    overflow: hidden;
}

.map-shell #map,
#map.map-canvas {
    min-height: calc(100vh - 220px);
}

.map-status {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.leaflet-popup-content button {
    min-height: 36px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 700;
}

.request-taxi-button {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 1070;
    width: min(calc(100% - 32px), 420px);
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    background: var(--danger);
    color: #ffffff;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.search-form,
.form-inline {
    gap: 10px;
}

#map {
    min-height: 58vh;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .workspace-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .saas-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .workspace-support-grid {
        grid-template-columns: 1fr;
    }

    .dispatch-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.app-body {
        background-attachment: scroll;
    }

    .app-main {
        margin-top: 68px;
        margin-bottom: 88px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .app-messages {
        width: calc(100% - 20px);
        margin-top: 68px;
    }

    .navbar-collapse {
        padding-top: 10px;
    }

    .navbar-nav .nav-item {
        margin: 2px 0;
    }

    .dashboard-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .customer-dashboard-hero {
        min-height: 320px;
        justify-content: flex-end;
        background:
            linear-gradient(180deg, rgba(17, 24, 39, 0.34), rgba(17, 24, 39, 0.88)),
            url("../images/background_image.438418d7a762.jpg") center / cover;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .page-actions,
    .page-actions .btn {
        width: 100%;
    }

    .dashboard-actions {
        justify-content: stretch;
    }

    .dashboard-actions .btn {
        flex: 1 1 140px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .metric-card {
        min-height: 104px;
        padding: 13px;
    }

    .metric-card strong {
        font-size: 28px;
    }

    .saas-insight strong {
        font-size: 24px;
    }

    .app-panel {
        padding: 14px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .manual-booking-grid,
    .manual-location-grid {
        grid-template-columns: 1fr;
    }

    .booking-preset-row,
    .manual-option-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-module {
        min-height: 150px;
    }

    .permission-item {
        grid-template-columns: 1fr;
    }

    .form-actions,
    .form-actions .btn,
    .form-actions input[type="submit"],
    .form-actions button[type="submit"] {
        width: 100%;
    }

    .table th,
    .table td {
        font-size: 13px;
        padding: 7px;
    }

    .review-inline-form {
        grid-template-columns: 1fr;
        min-width: 220px;
    }

    .search-form .col-6,
    .search-form .col-12,
    .search-form .col-md-2,
    .form-inline .form-group {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .search-button,
    .form-inline .btn,
    form .btn,
    form input[type="submit"] {
        width: 100%;
        min-height: 44px;
    }

    #map {
        min-height: calc(100vh - 190px);
    }

    .map-shell #map,
    #map.map-canvas {
        min-height: calc(100vh - 230px);
    }

    .install-app-button {
        right: 12px;
        bottom: 136px;
    }

    .push-activation-gate {
        align-items: flex-end;
        padding: 12px 12px 86px;
    }

    .push-activation-panel {
        padding: 18px;
    }

    .push-activation-actions {
        grid-template-columns: 1fr;
    }

    .company-switcher {
        grid-template-columns: 1fr;
    }

    .finance-filter-grid {
        grid-template-columns: 1fr;
    }

    .checklist-item {
        grid-template-columns: 1fr;
    }

    .request-taxi-button {
        bottom: 76px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        border-top: 1px solid rgba(217, 222, 232, 0.92);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.10);
    }

    .mobile-nav-item {
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        color: var(--ink);
        font-size: 12px;
        font-weight: 800;
    }

    .footer {
        display: none;
    }
}

@media (max-width: 420px) {
    .workspace-module-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .saas-insight-grid {
        grid-template-columns: 1fr;
    }

    .booking-preset-row,
    .manual-option-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-hero h1 {
        font-size: 30px;
    }
}
