:root {
    --navy-950: #08111f;
    --navy-900: #0f1b2d;
    --navy-800: #16263d;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --green: #16a34a;
    --green-soft: #ecfdf3;
    --amber: #d97706;
    --amber-soft: #fff7ed;
    --red: #dc2626;
    --red-soft: #fef2f2;
    --border: #e2e8f0;
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), transparent 34%),
        linear-gradient(140deg, #07101e, #18273b 66%, #0e1a2d);
}

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

button {
    cursor: pointer;
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.app-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: min(1520px, calc(100% - 48px));
    margin: 24px auto;
}

.sidebar {
    position: sticky;
    top: 24px;
    width: 254px;
    min-width: 254px;
    overflow: hidden;
    color: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(8, 17, 31, 0.94);
    box-shadow: var(--shadow);
}

.sidebar-logo {
    display: block;
    width: 82px;
    margin: 24px 24px 14px;
    padding: 8px;
    border-radius: 14px;
    background: var(--white);
}

.sidebar-brand {
    display: grid;
    gap: 4px;
    padding: 0 24px 22px;
}

.sidebar-brand strong {
    font-size: 18px;
}

.sidebar-brand span {
    color: #94a3b8;
    font-size: 13px;
}

.nav-menu {
    display: grid;
    gap: 6px;
    padding: 0 12px;
}

.nav-item {
    display: grid;
    width: 100%;
    gap: 4px;
    padding: 12px;
    color: #cbd5e1;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
}

.nav-item span {
    font-weight: 750;
    font-size: 14px;
}

.nav-item small {
    color: #94a3b8;
    font-size: 11px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--white);
    border-color: rgba(96, 165, 250, 0.28);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.nav-item:hover small,
.nav-item.active small {
    color: #dbeafe;
}

.sidebar-note {
    display: grid;
    gap: 7px;
    margin: 22px 12px 12px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.sidebar-note strong {
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sidebar-note span {
    color: #e2e8f0;
    font-size: 13px;
}

.sidebar-note small {
    color: #94a3b8;
    line-height: 1.45;
    font-size: 11px;
}

.container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.header {
    padding: 32px 34px;
    color: var(--white);
    background:
        radial-gradient(circle at right, rgba(59, 130, 246, 0.42), transparent 35%),
        linear-gradient(115deg, #101c31, #0f2741);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-row img {
    width: 76px;
    padding: 7px;
    border-radius: 14px;
    background: var(--white);
}

.eyebrow {
    margin: 0 0 6px;
    color: #93c5fd;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-size: 11px;
}

.header h1 {
    margin: 0;
    font-size: clamp(25px, 3.1vw, 37px);
    line-height: 1.08;
}

.header p:not(.eyebrow) {
    max-width: 750px;
    margin: 9px 0 0;
    color: #cbd5e1;
    line-height: 1.55;
    font-size: 14px;
}

.content {
    padding: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.app-view.is-hidden,
.is-hidden {
    display: none;
}

.notice {
    display: none;
    width: min(100% - 60px, 1460px);
    margin: 18px auto 0;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
}

.notice.success,
.notice.error {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice.success {
    color: #166534;
    border-color: #bbf7d0;
    background: var(--green-soft);
}

.notice.error {
    color: #991b1b;
    border-color: #fecaca;
    background: var(--red-soft);
}

.notice-message {
    flex: 1;
}

.notice-close {
    display: inline-grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    color: currentColor;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.notice-close:hover {
    background: rgba(15, 23, 42, 0.08);
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-title.tight {
    align-items: flex-start;
    margin-bottom: 15px;
}

.section-title h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.15;
}

.section-title.tight h2 {
    font-size: 19px;
}

.section-title p {
    margin: 7px 0 0;
    color: var(--slate-500);
    line-height: 1.45;
    font-size: 13px;
}

.primary-button,
.secondary-button,
.table-action,
.icon-button {
    border: 0;
    border-radius: 10px;
    font-weight: 750;
}

.primary-button {
    padding: 13px 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.22);
}

.primary-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.secondary-button {
    padding: 12px 16px;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.secondary-button:hover {
    background: #dbeafe;
}

.secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.danger-button {
    padding: 12px 16px;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-weight: 750;
    background: #fff1f2;
    cursor: pointer;
}

.danger-button:hover:not(:disabled) {
    background: #ffe4e6;
}

.danger-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.compact-button {
    width: auto;
    min-width: 128px;
    white-space: nowrap;
}

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

.backup-status {
    display: grid;
    gap: 5px;
    color: var(--slate-500);
}

.backup-status strong {
    color: var(--slate-700);
    font-size: 13px;
}

.backup-status strong.ready {
    color: #1d4ed8;
}

.backup-status strong.success {
    color: #166534;
}

.backup-status strong.error {
    color: #b91c1c;
}

.backup-status small {
    line-height: 1.45;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.metric-card {
    min-height: 132px;
    padding: 18px;
    color: var(--white);
    border: 1px solid #1e3a5f;
    border-radius: 15px;
    background: linear-gradient(145deg, #10203a, #172f51);
}

.metric-card.accent-card {
    border-color: #15803d;
    background: linear-gradient(145deg, #14532d, #166534);
}

.metric-card small,
.metric-card span {
    display: block;
}

.metric-card small {
    color: #bfdbfe;
    font-size: 12px;
}

.accent-card small {
    color: #bbf7d0;
}

.metric-card strong {
    display: block;
    margin: 13px 0 8px;
    font-size: clamp(22px, 2.1vw, 29px);
    line-height: 1;
}

.metric-card span {
    color: #cbd5e1;
    line-height: 1.35;
    font-size: 11px;
}

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

.full-dashboard {
    grid-column: 1 / -1;
}

.panel {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
}

.dark-summary {
    color: var(--white);
    border-color: #1e3a5f;
    background: linear-gradient(160deg, #10203a, #0d1b2f);
}

.dark-summary .section-title p {
    color: #cbd5e1;
}

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

.fleet-summary div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.fleet-summary strong {
    font-size: 23px;
}

.fleet-summary span:last-child {
    grid-column: 2;
    color: var(--slate-500);
    font-size: 12px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-dot.available {
    background: #22c55e;
}

.status-dot.on-route {
    background: #2563eb;
}

.status-dot.maintenance {
    background: #f59e0b;
}

.route-insight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 122px;
    padding: 3px 0;
}

.route-insight span {
    color: var(--slate-500);
    font-size: 12px;
}

.route-insight strong {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 16px;
}

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

.tour-cards.empty-state,
.vehicle-status-list.empty-state {
    display: block;
    padding: 22px;
    color: var(--slate-500);
    text-align: center;
    border: 1px dashed var(--slate-300);
    border-radius: 12px;
    background: #f8fafc;
}

.tour-card {
    display: grid;
    gap: 8px;
    min-height: 148px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.tour-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tour-card span {
    color: var(--slate-600);
    font-size: 12px;
}

.tour-card > strong:last-child {
    align-self: end;
    font-size: 17px;
}

.formula-note {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 18px;
    padding: 14px 16px;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    font-size: 13px;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
    align-items: start;
    gap: 18px;
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

.form-group-title {
    grid-column: 1 / -1;
    margin-top: 3px;
    padding-top: 17px;
    color: var(--slate-700);
    border-top: 1px solid var(--border);
    font-weight: 800;
    font-size: 13px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--slate-700);
    font-weight: 750;
    font-size: 12px;
}

input,
select,
textarea,
.readonly-value {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: var(--white);
    color: #0f172a;
    font-size: 14px;
}

input,
select,
textarea {
    padding: 11px 12px;
}

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

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(37, 99, 235, 0.14);
}

.readonly-value {
    padding: 11px 12px;
    color: var(--slate-600);
    background: #f8fafc;
}

.input-help {
    display: block;
    margin-top: 6px;
    color: var(--slate-500);
    line-height: 1.35;
    font-size: 11px;
}

.inline-input-action,
.expense-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.inline-input-action input {
    min-width: 0;
}

.icon-button {
    padding: 0 12px;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    white-space: nowrap;
    font-size: 12px;
}

.icon-button:hover {
    background: #dbeafe;
}

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

.expense-line {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafc;
}

.expense-line label {
    margin-bottom: 6px;
}

.expense-entry select {
    width: 94px;
    padding: 10px 6px;
    font-size: 12px;
}

.expense-description {
    margin-top: 8px;
}

.expense-description input {
    padding: 9px 10px;
    font-size: 12px;
}

.profit-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 11px;
    padding: 13px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #eff6ff;
}

.profit-preview div {
    display: grid;
    gap: 5px;
}

.profit-preview span {
    color: var(--slate-600);
    font-size: 11px;
}

.profit-preview strong {
    font-size: 17px;
}

.profit-preview small {
    color: var(--slate-500);
    font-size: 10px;
}

.profit-preview .profit-result strong {
    color: #15803d;
}

.guide-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
    color: #e2e8f0;
    line-height: 1.45;
    font-size: 13px;
}

.dark-kpi {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(203, 213, 225, 0.16);
}

.dark-kpi span {
    color: #94a3b8;
    font-size: 12px;
}

.dark-kpi strong {
    color: var(--white);
    text-align: right;
    font-size: 15px;
}

.tours-list-panel {
    margin-top: 18px;
}

.company-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.receivable-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.receivable-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: min(520px, 100%);
}

.receivable-controls input {
    flex: 1 1 220px;
}

.receivable-controls select {
    flex: 1 1 160px;
}

.receivable-table {
    min-width: 1180px;
}

.receivable-form {
    margin-top: 6px;
}

.profit-hero {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
    padding: 26px;
    color: var(--white);
    border: 1px solid #15803d;
    border-radius: 16px;
    background:
        radial-gradient(circle at right, rgba(74, 222, 128, 0.28), transparent 38%),
        linear-gradient(135deg, #14532d, #166534);
}

.profit-hero.is-loss {
    border-color: #b91c1c;
    background:
        radial-gradient(circle at right, rgba(248, 113, 113, 0.26), transparent 38%),
        linear-gradient(135deg, #7f1d1d, #b91c1c);
}

.profit-hero > span {
    color: #bbf7d0;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.profit-hero.is-loss > span,
.profit-hero.is-loss small {
    color: #fee2e2;
}

.profit-hero > strong {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
}

.profit-hero small {
    color: #dcfce7;
    font-size: 12px;
}

.profit-hero .positive-money,
.profit-hero .negative-money {
    color: var(--white);
}

.profit-loss-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.profit-loss-kpi {
    display: grid;
    gap: 7px;
    min-height: 120px;
}

.profit-loss-kpi small,
.profit-loss-kpi span {
    color: var(--slate-500);
    font-size: 12px;
}

.profit-loss-kpi strong {
    font-size: 25px;
}

.profit-loss-selector {
    width: min(300px, 100%);
}

.profit-loss-vehicle-detail {
    margin-top: 18px;
}

.company-kpi {
    display: grid;
    gap: 7px;
    min-height: 114px;
}

.company-kpi small,
.company-kpi span {
    color: var(--slate-500);
    font-size: 12px;
}

.company-kpi strong {
    font-size: 27px;
}

.company-search {
    width: min(280px, 100%);
}

.detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.detail-summary-item {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafc;
}

.detail-summary-item span {
    color: var(--slate-500);
    font-size: 11px;
}

.detail-expense-list,
.company-tour-list {
    display: grid;
    gap: 9px;
}

.detail-expense-row,
.company-tour-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafc;
}

.detail-expense-row > div,
.company-tour-row > div {
    display: grid;
    gap: 4px;
}

.detail-expense-row span,
.company-tour-row span {
    color: var(--slate-500);
    font-size: 11px;
}

.detail-expense-row > strong,
.company-tour-row > strong {
    text-align: right;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.data-table th {
    padding: 0 12px 11px;
    color: var(--slate-500);
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.data-table td {
    padding: 14px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--slate-100);
    font-size: 13px;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table strong {
    display: block;
}

.table-subline {
    display: block;
    margin-top: 4px;
    color: var(--slate-500);
    line-height: 1.3;
    font-size: 11px;
}

.status-badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    font-weight: 750;
    font-size: 11px;
    white-space: nowrap;
}

.status-planned {
    color: #92400e;
    background: #fef3c7;
}

.status-outbound {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-returning {
    color: #6d28d9;
    background: #ede9fe;
}

.status-completed,
.vehicle-available {
    color: #166534;
    background: #dcfce7;
}

.status-cancelled {
    color: #991b1b;
    background: #fee2e2;
}

.receivable-open {
    color: #1d4ed8;
    background: #dbeafe;
}

.receivable-partial {
    color: #92400e;
    background: #fef3c7;
}

.receivable-overdue {
    color: #991b1b;
    background: #fee2e2;
}

.receivable-paid {
    color: #166534;
    background: #dcfce7;
}

.vehicle-on_route {
    color: #1d4ed8;
    background: #dbeafe;
}

.vehicle-maintenance {
    color: #92400e;
    background: #fef3c7;
}

.table-action {
    padding: 8px 10px;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    font-size: 11px;
    white-space: nowrap;
}

.table-action:hover {
    background: #dbeafe;
}

.action-cell {
    min-width: 110px;
}

.table-actions {
    display: grid;
    gap: 7px;
}

.empty-table {
    padding: 30px !important;
    color: var(--slate-500);
    text-align: center;
}

.positive-money {
    color: #15803d;
    font-weight: 800;
}

.negative-money {
    color: #b91c1c;
    font-weight: 800;
}

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

.vehicle-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.vehicle-status-card > div {
    display: grid;
    gap: 5px;
}

.vehicle-status-card > div:last-child {
    justify-items: end;
}

.vehicle-status-card span:not(.status-badge) {
    color: var(--slate-500);
    font-size: 11px;
}

.quote-empty {
    padding: 18px;
    color: #cbd5e1;
    border: 1px dashed rgba(226, 232, 240, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.quote-summary {
    display: none;
}

.quote-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.quote-pill {
    padding: 12px;
    border: 1px solid rgba(203, 213, 225, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.quote-pill small {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 11px;
}

.price-box {
    margin: 16px 0;
    padding: 16px;
    color: #0f172a;
    border-radius: 13px;
    background: var(--white);
}

.price-box small {
    display: block;
    color: var(--slate-500);
    font-size: 12px;
}

.price-box strong {
    display: block;
    margin-top: 4px;
    color: #15803d;
    font-size: 30px;
}

.summary-list {
    display: grid;
    gap: 9px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 9px;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.15);
    font-size: 13px;
}

.summary-row span {
    color: #94a3b8;
}

.quote-summary .secondary-button {
    width: 100%;
    margin-top: 16px;
}

@media (max-width: 1180px) {
    .app-layout {
        width: min(100% - 32px, 1100px);
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        min-width: 0;
    }

    .sidebar-logo {
        float: left;
        width: 60px;
        margin: 18px 14px 14px 18px;
    }

    .sidebar-brand {
        min-height: 90px;
        padding: 22px 20px;
    }

    .nav-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-bottom: 12px;
    }

    .sidebar-note {
        display: none;
    }

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

@media (max-width: 820px) {
    .content,
    .header {
        padding: 22px;
    }

    .dashboard-metrics,
    .dashboard-grid,
    .tour-cards,
    .company-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .full-dashboard {
        grid-column: 1 / -1;
    }

    .fleet-summary {
        grid-template-columns: 1fr;
    }

    .expense-lines {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .app-layout {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .sidebar {
        border-radius: 16px;
    }

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

    .nav-item small {
        display: none;
    }

    .brand-row {
        align-items: flex-start;
    }

    .brand-row img {
        width: 58px;
    }

    .header h1 {
        font-size: 25px;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .compact-button {
        width: 100%;
    }

    .form-grid,
    .dashboard-metrics,
    .dashboard-grid,
    .tour-cards,
    .profit-preview,
    .company-kpis {
        grid-template-columns: 1fr;
    }

    .full-dashboard {
        grid-column: auto;
    }

    .vehicle-status-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .vehicle-status-card > div:last-child {
        justify-items: start;
    }

    .detail-expense-row,
    .company-tour-row {
        flex-direction: column;
    }

    .detail-expense-row > strong,
    .company-tour-row > strong {
        text-align: left;
    }
}
