* {
    box-sizing: border-box;
}

:root {
    --bg: #0F172A;
    --bg-soft: #111C31;
    --bg-deep: #0B1220;
    --card: #1E293B;
    --card-soft: #22324A;
    --surface: #162033;
    --surface-alt: #122036;
    --border: #334155;
    --border-strong: #475569;
    --text: #E2E8F0;
    --muted: #94A3B8;
    --blue: #3B82F6;
    --green: #10B981;
    --red: #EF4444;
    --yellow: #F59E0B;
    --shadow-lg: 0 24px 52px rgba(2, 6, 23, 0.42);
    --shadow-md: 0 16px 34px rgba(2, 6, 23, 0.28);
    --shadow-sm: 0 10px 20px rgba(2, 6, 23, 0.16);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --page-max: 1180px;
    --page-pad: 16px;
    --nav-height: 92px;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    padding:
        calc(var(--page-pad) + env(safe-area-inset-top, 0px))
        calc(var(--page-pad) + env(safe-area-inset-right, 0px))
        calc(28px + env(safe-area-inset-bottom, 0px))
        calc(var(--page-pad) + env(safe-area-inset-left, 0px));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 26%),
        radial-gradient(circle at 85% 0%, rgba(16, 185, 129, 0.14), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body.has-bottom-nav {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.page {
    width: min(100%, var(--page-max));
    margin: 0 auto;
}

.app-shell,
.stack,
.list,
.vehicle-list,
.movement-list,
.history-day-list,
.history-list {
    display: grid;
    gap: 14px;
}

.page-narrow {
    max-width: 440px;
}

.page-medium {
    max-width: 760px;
}

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

.card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(71, 85, 105, 0.68);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(18, 32, 54, 0.98) 100%);
    box-shadow: var(--shadow-lg);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.22), transparent 65%);
    pointer-events: none;
}

.hero-card {
    padding: 20px;
}

.section-card {
    padding: 18px;
}

.section-head,
.section-headline {
    display: grid;
    gap: 8px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #7DD3FC;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
}

.title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-card h2,
.card h2 {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.15;
}

.section-card h3,
.card h3 {
    margin: 0;
}

.subtitle,
.muted {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.center {
    text-align: center;
}

.topbar {
    display: grid;
    gap: 16px;
}

.topbar-main,
.topbar-copy,
.app-topbar {
    display: grid;
    gap: 16px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    background: rgba(11, 18, 32, 0.56);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
}

.menu {
    position: relative;
    justify-self: end;
}

.menu-toggle,
.btn,
.icon-btn,
.action-chip,
.action-chip-link {
    cursor: pointer;
    color: var(--text);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.66);
    background: rgba(11, 18, 32, 0.72);
    box-shadow: var(--shadow-sm);
    font-size: 1.3rem;
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: none;
    min-width: 240px;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.72);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(11, 18, 32, 0.98) 100%);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.menu-dropdown.show {
    display: block;
}

.menu-dropdown a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 600;
}

.menu-dropdown a:hover,
.menu-dropdown a:focus-visible {
    background: rgba(59, 130, 246, 0.14);
    color: #FFFFFF;
}

.quick-actions,
.actions,
.form-row,
.two-columns,
.filter-grid,
.card-action-row,
.movement-actions {
    display: grid;
    gap: 10px;
}

.btn,
.action-chip,
.action-chip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.14s ease, filter 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.btn,
.btn.primary {
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.96) 0%, rgba(29, 78, 216, 0.96) 100%);
}

.btn.secondary,
.action-chip.secondary,
.action-chip-link.history {
    border: 1px solid rgba(71, 85, 105, 0.8);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.btn.success,
.action-chip.entry {
    border: 1px solid rgba(16, 185, 129, 0.48);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.98) 0%, rgba(5, 150, 105, 0.98) 100%);
}

.btn.warning {
    color: #111827;
    border: 1px solid rgba(245, 158, 11, 0.5);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.98) 0%, rgba(217, 119, 6, 0.98) 100%);
}

.btn.danger,
.action-chip.exit {
    border: 1px solid rgba(239, 68, 68, 0.44);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.98) 0%, rgba(220, 38, 38, 0.98) 100%);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(71, 85, 105, 0.7);
    background: rgba(11, 18, 32, 0.74);
}

.btn:active,
.action-chip:active,
.action-chip-link:active,
.menu-toggle:active,
.icon-btn:active {
    transform: scale(0.98);
}

.btn:hover,
.action-chip:hover,
.action-chip-link:hover,
.menu-toggle:hover,
.icon-btn:hover {
    filter: brightness(1.03);
}

form {
    margin: 0;
}

.filter-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    background: rgba(11, 18, 32, 0.46);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.72);
    background: rgba(11, 18, 32, 0.58);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.filter-pill.active {
    border-color: rgba(59, 130, 246, 0.42);
    background: rgba(59, 130, 246, 0.18);
    color: #DBEAFE;
}

.filter-pill:active {
    transform: scale(0.98);
}

.filter-field {
    display: grid;
    gap: 6px;
}

label {
    color: #CBD5E1;
    font-size: 0.84rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.82);
    background: rgba(11, 18, 32, 0.82);
    color: var(--text);
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #64748B;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: rgba(59, 130, 246, 0.88);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

label.inline-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.68);
    background: rgba(11, 18, 32, 0.58);
}

label.inline-check input {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    accent-color: var(--blue);
}

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

.stat {
    min-height: 96px;
    padding: 14px 12px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.58);
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.88) 0%, rgba(15, 23, 42, 0.86) 100%);
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.stat strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.55rem, 5vw, 2rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat.dentro {
    border-color: rgba(16, 185, 129, 0.38);
}

.stat.dentro strong {
    color: #34D399;
}

.stat.entrada {
    border-color: rgba(59, 130, 246, 0.38);
}

.stat.entrada strong {
    color: #60A5FA;
}

.stat.salida {
    border-color: rgba(239, 68, 68, 0.34);
}

.stat.salida strong {
    color: #F87171;
}

.list {
    gap: 12px;
}

.item {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    background: rgba(11, 18, 32, 0.5);
}

.item strong {
    display: block;
    margin-bottom: 6px;
}

.vehicle-list,
.movement-list,
.history-day-list {
    gap: 12px;
}

.vehicle-card,
.movement-card,
.history-day-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.72) 100%);
    box-shadow: var(--shadow-md);
}

.vehicle-card::after,
.movement-card::after,
.history-day-card::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.16), transparent 80%);
}

.vehicle-card.active::after {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.9), transparent 80%);
}

.vehicle-card.frequent::after {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.9), transparent 80%);
}

.vehicle-card.search::after {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.84), transparent 80%);
}

.vehicle-card-header,
.history-day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.vehicle-main,
.movement-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.vehicle-main h3,
.movement-company {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.18;
}

.vehicle-main p,
.movement-driver {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.plate-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.14);
    color: #DBEAFE;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-meta-grid,
.history-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-card,
.history-summary-item {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(30, 41, 59, 0.72);
}

.meta-card span,
.history-summary-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-card strong,
.history-summary-item strong {
    font-size: 0.95rem;
    line-height: 1.3;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag,
.type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 800;
}

.status-inside,
.type-pill.entry {
    border: 1px solid rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.17);
    color: #6EE7B7;
}

.status-outside {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.12);
    color: #CBD5E1;
}

.type-pill.exit {
    border: 1px solid rgba(239, 68, 68, 0.32);
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
}

.tag.note {
    border: 1px solid rgba(59, 130, 246, 0.32);
    background: rgba(59, 130, 246, 0.14);
    color: #BFDBFE;
}

.tag.warn {
    border: 1px solid rgba(245, 158, 11, 0.36);
    background: rgba(245, 158, 11, 0.16);
    color: #FCD34D;
}

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

.card-action-row form {
    margin: 0;
}

.movement-card {
    display: grid;
    gap: 14px;
}

.movement-leading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.movement-hour {
    min-width: 54px;
    font-size: 1.16rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.movement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.52);
    background: rgba(11, 18, 32, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.movement-icon.entry {
    border-color: rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.16);
    color: #6EE7B7;
}

.movement-icon.exit {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.16);
    color: #FCA5A5;
}

.movement-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.movement-topline,
.movement-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.movement-note,
.movement-secondary {
    color: var(--muted);
    font-size: 0.84rem;
}

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

.history-day-header h3 {
    font-size: 1.03rem;
    line-height: 1.28;
}

.history-day-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.12);
    color: #BFDBFE;
    font-size: 1.15rem;
    font-weight: 800;
}

.history-list {
    margin-top: 12px;
}

.history-entry {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.44);
    background: rgba(11, 18, 32, 0.5);
}

.history-entry-time {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.89rem;
}

.vehicle-empty,
.movement-empty {
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed rgba(71, 85, 105, 0.72);
    background: rgba(11, 18, 32, 0.42);
    color: var(--muted);
    text-align: center;
}

.message,
.error {
    padding: 13px 14px;
    border-radius: 16px;
    font-weight: 700;
}

.message {
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.16);
    color: #A7F3D0;
}

.error {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.14);
    color: #FECACA;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
}

.text-link.subtle {
    color: #BFDBFE;
}

.brand-lockup {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.brand-mark,
.about-illustration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.34);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(11, 18, 32, 0.94) 100%);
    box-shadow: 0 18px 32px rgba(30, 64, 175, 0.18);
}

.brand-mark svg,
.about-illustration svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #60A5FA;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-card {
    width: 100%;
    max-width: 460px;
    padding: 24px 20px;
}

.about-body {
    display: grid;
    gap: 14px;
    text-align: center;
}

.about-block {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(11, 18, 32, 0.48);
}

.auth-card {
    width: 100%;
    padding: 24px 20px;
}

.floating-toast {
    position: fixed;
    left: 50%;
    bottom: calc(122px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(11, 18, 32, 0.96);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    text-align: center;
    transform: translate(-50%, 18px);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: var(--shadow-lg);
}

.floating-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding:
        0
        calc(var(--page-pad) + env(safe-area-inset-right, 0px))
        calc(10px + env(safe-area-inset-bottom, 0px))
        calc(var(--page-pad) + env(safe-area-inset-left, 0px));
}

.bottom-nav-inner {
    width: min(100%, 640px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    min-height: var(--nav-height);
    border-radius: 26px;
    border: 1px solid rgba(71, 85, 105, 0.58);
    background: rgba(11, 18, 32, 0.94);
    box-shadow: 0 -8px 28px rgba(2, 6, 23, 0.34), 0 14px 30px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 72px;
    padding: 8px 4px;
    border-radius: 18px;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.bottom-nav .nav-icon {
    display: block;
    min-width: 24px;
    min-height: 24px;
    font-size: 22px;
    line-height: 1;
    color: currentColor;
    opacity: 1;
}

.bottom-nav .nav-label {
    display: block;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: currentColor;
    white-space: nowrap;
}

.bottom-nav .nav-item.active {
    color: #DBEAFE;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.22) 0%, rgba(30, 64, 175, 0.16) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 20px rgba(30, 64, 175, 0.18);
}

.bottom-nav .nav-item.active .nav-icon,
.bottom-nav .nav-item.active .nav-label {
    color: #ffffff;
}

.bottom-nav .nav-item:active {
    transform: scale(0.98);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.badge.inside {
    border: 1px solid rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.16);
    color: #6EE7B7;
}

.badge.outside {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.12);
    color: #CBD5E1;
}

.search-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    text-align: center;
}

th {
    color: #BFDBFE;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 640px) {
    .topbar {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .quick-actions,
    .form-row,
    .two-columns,
    .movement-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

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

    .movement-card {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .history-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    body {
        padding-left: max(24px, calc(var(--page-pad) + env(safe-area-inset-left, 0px)));
        padding-right: max(24px, calc(var(--page-pad) + env(safe-area-inset-right, 0px)));
    }

    .hero-card,
    .section-card,
    .card {
        padding: 22px;
    }

    .vehicle-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
