:root {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --surface-2: #e5e7eb;
    --line: #d1d5db;
    --text: #1f2937;
    --muted: #6b7280;
    --dark: #111827;
    --accent: #374151;
    --accent-2: #4b5563;
    --ok: #166534;
    --stop: #991b1b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

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

h1, h2, p { margin-top: 0; }

h1 { font-size: clamp(1.75rem, 2.2vw, 2.35rem); margin-bottom: .35rem; }
h2 { font-size: 1.05rem; margin-bottom: 1rem; }
p { color: var(--muted); line-height: 1.55; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 238px;
    background: var(--dark);
    color: #f9fafb;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #6b7280;
    background: #374151;
    font-weight: 800;
}

.brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #6b7280;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

.default-logo-image {
    object-fit: contain !important;
    background: #fff;
}

.brand strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.company-logo-current {
    display: flex;
    align-items: center;
    min-height: 96px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f9fafb;
}

.company-logo-current img {
    width: min(240px, 100%);
    max-height: 84px;
    object-fit: contain;
    object-position: left center;
}

.sidebar nav { display: grid; gap: 5px; }

.sidebar nav a {
    padding: 8px 10px;
    border-radius: 6px;
    color: #d1d5db;
    font-size: .9rem;
    line-height: 1.2;
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: #374151;
    color: #fff;
}

.userbox {
    margin-top: auto;
    display: grid;
    gap: 8px;
    color: #d1d5db;
    font-size: .92rem;
}

.userbox a { color: #fff; font-weight: 700; }

.app {
    margin-left: 238px;
    padding: 28px;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #111827, #4b5563);
}

.login-panel {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .24);
}

.login-brand-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.login-brand-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.login-brand-heading h1 {
    margin: 3px 0 4px;
    letter-spacing: 0;
}

.login-brand-heading p {
    margin: 0;
}

.login-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 6px;
    font-size: .82rem;
    color: var(--muted);
}

.login-powered img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid var(--line);
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
}

.login-powered a {
    color: #374151;
    font-weight: 700;
    text-decoration: none;
}

.login-powered a:hover {
    text-decoration: underline;
}

.captcha-box {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 6px 0 8px;
}

.captcha-box img {
    width: 190px;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #eef0f3;
}

.captcha-refresh {
    min-height: 56px;
    white-space: nowrap;
}

.installer-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background: #eef0f3;
}

.installer-panel {
    width: min(820px, 100%);
    display: grid;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.installer-panel h1,
.installer-panel p {
    margin-bottom: 6px;
}

.eyebrow {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

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

.cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.panel,
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
}

.card { padding: 18px; }
.panel { padding: 22px; margin-bottom: 24px; }
.table-wrap { overflow-x: auto; margin-bottom: 24px; }

.row { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    background: var(--surface-2);
}

.badge.ok { color: var(--ok); }
.badge.stop { color: var(--stop); }

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

.meta > div {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
}

.company-cards {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.company-breakdown {
    margin-top: 8px;
}

dt { color: var(--muted); font-size: .78rem; }
dd { margin: 4px 0 0; font-weight: 800; }

.stat {
    display: grid;
    gap: 8px;
    align-content: start;
    grid-auto-rows: max-content;
}

.stat span { color: var(--muted); }
.stat strong { font-size: 1.65rem; }

.stat-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.stat-breakdown span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f9fafb;
    color: var(--text);
    font-size: .8rem;
}

.stat-breakdown span[hidden] {
    display: none;
}

.stat-expand-toggle {
    justify-self: start;
    margin-top: 2px;
}

.dashboard-stat-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.dashboard-stat-cards .card {
    height: 100%;
    padding: 14px;
}

.dashboard-stat-cards .stat > span {
    font-size: .82rem;
}

.dashboard-stat-cards .stat > strong {
    font-size: 1.35rem;
}

.dashboard-stat-cards .stat-breakdown span {
    padding: 3px 6px;
    font-size: .72rem;
}

.dashboard-stat-cards .supplier-invoice-card {
    grid-column: span 2;
}

.supplier-invoice-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.dashboard-stat-cards .supplier-invoice-breakdown span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    width: 100%;
    gap: 10px;
}

.supplier-invoice-breakdown b {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.supplier-invoice-breakdown em {
    align-self: center;
    color: var(--text);
    font-style: normal;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.aligned-stat-breakdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.dashboard-stat-cards .aligned-stat-breakdown span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    width: 100%;
    align-items: start;
    gap: 8px;
}

.aligned-stat-breakdown b {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.aligned-stat-breakdown em {
    color: var(--text);
    font-style: normal;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.job-financials {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.job-financials small {
    color: #b91c1c;
    font-size: .6rem;
    font-weight: 800;
}

.jobs-stat-card .dashboard-pie-legend span,
.dashboard-stat-cards .jobs-stat-card .aligned-stat-breakdown span {
    font-size: .64rem;
}

.jobs-stat-card .dashboard-pie {
    width: 104px;
}

.jobs-stat-card .dashboard-pie-legend {
    max-height: 118px;
}

.jobs-stat-card .aligned-stat-breakdown {
    gap: 4px;
    max-height: 166px;
    padding-right: 3px;
    overflow-y: auto;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

.dashboard-year-nav {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 5px;
}

.dashboard-year-nav a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f9fafb;
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
    text-decoration: none;
}

.dashboard-year-nav a:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.dashboard-year-nav b {
    text-align: center;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.dashboard-pie-wrap {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.dashboard-pie {
    width: 112px;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.dashboard-pie-legend {
    display: grid;
    width: 100%;
    max-height: 138px;
    gap: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dashboard-pie-legend span {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 5px;
    color: var(--text);
    font-size: .7rem;
}

.dashboard-pie-legend i,
.status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 2px;
}

.quote-status-breakdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-stat-cards .quote-status-breakdown span {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) max-content;
    width: 100%;
    align-items: center;
    gap: 6px;
}

.quote-status-breakdown b {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.quote-status-breakdown em {
    color: var(--text);
    font-style: normal;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.dashboard-pie-legend b {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-pie-legend em {
    font-style: normal;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.empty-card-note {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .75rem;
}

@media (max-width: 1100px) {
    .dashboard-stat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .dashboard-stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-stat-cards .supplier-invoice-card { grid-column: span 2; }
    .supplier-invoice-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
    .dashboard-stat-cards { grid-template-columns: minmax(0, 1fr); }
    .dashboard-stat-cards .supplier-invoice-card { grid-column: span 1; }
    .supplier-invoice-breakdown { grid-template-columns: minmax(0, 1fr); }
}

.table-subline {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .74rem;
}

.quote-editor {
    padding: 0;
    overflow: hidden;
}

.quote-editor-heading {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.quote-editor-heading h2,
.quote-section h3,
.quote-items-heading h3 {
    margin: 0;
}

.quote-section {
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.quote-section > h3,
.quote-items-heading {
    margin-bottom: 14px;
}

.quote-items-wrap {
    margin-bottom: 14px;
    box-shadow: none;
}

.quote-items-table {
    min-width: 850px;
}

.quote-items-table th:nth-child(1) { width: 16%; }
.quote-items-table th:nth-child(2) { width: 24%; }
.quote-items-table th:nth-child(3) { width: 10%; }
.quote-items-table th:nth-child(4) { width: 12%; }
.quote-items-table th:nth-child(5) { width: 13%; }
.quote-items-table th:nth-child(6) { width: 15%; }
.quote-items-table th:nth-child(7) { width: 5%; }

.quote-items-table input,
.quote-items-table textarea {
    width: 100%;
    min-width: 0;
}

.quote-items-table textarea {
    min-height: 58px;
    resize: vertical;
}

.quote-line-total {
    display: block;
    min-width: 105px;
    font-weight: 900;
    text-align: right;
}

.input-suffix {
    margin-left: 4px;
    color: var(--muted);
    font-weight: 800;
}

.quote-totals {
    display: grid;
    width: min(430px, 100%);
    margin: 0 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.quote-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.quote-totals > div:last-child {
    border-bottom: 0;
}

.quote-totals dd {
    margin: 0;
    white-space: nowrap;
}

.quote-grand-total {
    background: #dcfce7;
    color: #14532d;
}

.quote-grand-total dt {
    color: inherit;
    font-weight: 900;
}

.quote-form-actions {
    padding: 18px 20px;
}

.quote-history .table-wrap {
    margin: 14px 0 0;
    box-shadow: none;
}

.quote-files-upload {
    display: flex;
    align-items: end;
    gap: 10px;
    margin: 14px 0;
}

.quote-files-upload label {
    flex: 1 1 320px;
}

@media (max-width: 620px) {
    .quote-files-upload {
        align-items: stretch;
        flex-direction: column;
    }
}

.quote-files-panel h2 {
    margin: 0;
}

.quote-file-list {
    margin-top: 14px;
}

.quote-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.quote-file-item:last-child {
    border-bottom: 0;
}

.quote-file-item a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.quote-version-detail summary {
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.quote-version-detail > div {
    width: min(520px, 75vw);
    padding: 10px 0 2px;
    color: var(--text);
}

.quote-version-detail p {
    margin: 0 0 8px;
}

.quote-version-detail ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 700px) {
    .quote-editor-heading,
    .quote-items-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-section {
        padding: 16px;
    }

    .quote-form-actions {
        padding: 16px;
    }
}

.dashboard-map-panel {
    margin-top: 24px;
}

.dashboard-map-heading {
    margin-bottom: 16px;
}

.dashboard-map-heading h2,
.dashboard-map-heading p {
    margin-bottom: 4px;
}

.dashboard-jobs-map {
    width: 100%;
    height: 460px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.map-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    margin: 0;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #f9fafb;
}

.map-popup {
    display: grid;
    gap: 5px;
    min-width: 180px;
}

.map-popup span {
    color: var(--muted);
}

.map-popup a {
    margin-top: 4px;
    color: var(--accent);
    font-weight: 800;
    text-decoration: underline;
}

.job-finance-panel {
    margin-top: 18px;
    padding: 16px;
}

.job-finance-heading {
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-finance-heading h2,
.job-finance-heading p {
    margin-bottom: 2px;
}

.job-finance-heading h2 {
    font-size: 1rem;
}

.job-finance-heading p {
    font-size: .78rem;
}

.cost-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 10px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
}

.cost-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cost-legend i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.job-finance-list {
    display: grid;
    gap: 12px;
}

.job-finance-row {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.job-finance-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.job-finance-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .84rem;
}

.job-finance-title span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.cost-bar {
    position: relative;
    display: flex;
    width: 100%;
    height: 22px;
    overflow: hidden;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    background: #f9fafb;
}

.cost-bar > span {
    height: 100%;
    min-width: 0;
}

.cost-bar .materials,
.cost-legend .materials { background: #b38a3b; }
.cost-bar .invoices,
.cost-legend .invoices { background: #374151; }
.cost-bar .labor,
.cost-legend .labor { background: #6b7280; }
.cost-bar .vehicles,
.cost-legend .vehicles { background: #9ca3af; }
.cost-legend .active-paid { background: #15803d; }
.cost-bar .remaining,
.cost-legend .remaining { background: #bbf7d0; }

.active-paid-bar {
    width: 100%;
    height: 7px;
    margin-top: -4px;
    overflow: hidden;
    border: 1px solid #9ca3af;
    border-top: 0;
    border-radius: 0 0 5px 5px;
    background: #f9fafb;
}

.active-paid-bar span {
    display: block;
    height: 100%;
    background: #15803d;
}

.budget-marker {
    position: absolute;
    top: -1px;
    bottom: -1px;
    width: 3px;
    background: #991b1b;
}

.job-finance-values {
    display: grid;
    grid-template-columns: repeat(7, minmax(92px, 1fr));
    gap: 4px;
    margin: 0;
}

.job-finance-values div {
    padding: 5px 7px;
    border-left: 2px solid var(--line);
}

.job-finance-values dt {
    font-size: .66rem;
}

.job-finance-values dd {
    margin-top: 2px;
    font-size: .78rem;
}

.job-finance-row.over-budget .job-finance-title,
.job-finance-row.over-budget .job-finance-values div:last-child dd {
    color: var(--stop);
}

.person-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.presence-entity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 150px;
}

.presence-thumb {
    width: 1.2cm;
    height: 1.2cm;
    flex: 0 0 1.2cm;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    object-fit: cover;
}

.presence-thumb.placeholder {
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 900;
}

.avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.avatar.placeholder {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 900;
}

.supplier-invoice-logo {
    object-fit: contain;
    background: #fff;
}

.job-cards {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 24px;
}

.job-card {
    display: block;
    padding: 0;
    overflow: hidden;
}

.job-card-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 9px 12px;
    cursor: pointer;
    list-style: none;
}

.job-card-summary::-webkit-details-marker {
    display: none;
}

.job-card-summary:focus-visible {
    outline: 3px solid #9ca3af;
    outline-offset: -3px;
}

.job-summary-identity,
.job-summary-side {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.job-summary-identity {
    flex: 1 1 auto;
}

.job-summary-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.job-summary-text strong,
.job-summary-text span {
    overflow-wrap: anywhere;
}

.job-summary-text strong {
    font-size: 1rem;
}

.job-summary-text span {
    color: var(--muted);
    font-size: .84rem;
}

.job-summary-amount {
    white-space: nowrap;
}

.job-summary-totals {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.job-summary-paid {
    display: block;
    color: var(--ok);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

.job-toggle-label::before {
    content: "Apri";
}

.job-card[open] .job-toggle-label::before {
    content: "Chiudi";
}

.job-card-details {
    display: grid;
    gap: 10px;
    padding: 4px 12px 12px;
    border-top: 1px solid var(--line);
}

@media (max-width: 620px) {
    .job-card-summary {
        align-items: flex-start;
        gap: 10px;
    }

    .job-summary-side {
        display: grid;
        justify-items: end;
        gap: 7px;
    }

    .job-summary-amount {
        font-size: .82rem;
    }
}

.job-cover-image {
    width: 1.5cm;
    height: 1.5cm;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
    object-fit: cover;
}

.job-cover-preview {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f9fafb;
}

.job-cover-preview img {
    display: block;
    width: min(520px, 100%);
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: cover;
}

.job-card h2 {
    margin-bottom: 0;
}

.job-card p {
    margin-bottom: 0;
}

.job-card-finances {
    margin: 2px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.job-card-finances > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 2px;
    border-bottom: 1px solid #e5e7eb;
}

.job-card-finances > div:last-child {
    border-bottom: 0;
}

.job-card-finances dt {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.job-card-finances dt small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 600;
}

.job-card-finances dd {
    margin: 0;
    white-space: nowrap;
    font-weight: 900;
}

.job-card-finances .job-margin {
    margin: 0 -2px;
    padding: 10px 8px;
}

.job-card-finances .job-margin.positive {
    background: #dcfce7;
    color: #14532d;
}

.job-card-finances .job-margin.negative {
    background: #fee2e2;
    color: #991b1b;
}

.job-card-finances .job-margin dt {
    color: inherit;
}

.job-description {
    color: var(--text);
}

.job-client-share {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-left: 4px solid #16a34a;
    border-radius: 6px;
    background: #f8fafc;
}

.job-client-share.disabled {
    border-left-color: #9ca3af;
}

.job-client-qr {
    justify-self: start;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.job-client-qr img {
    display: block;
    width: 112px;
    height: 112px;
}

.client-share-url {
    min-height: 36px;
    padding: 7px 9px;
    font-size: .75rem;
    background: #fff;
}

.client-portal-body {
    min-height: 100vh;
    margin: 0;
    background: #eef0f3;
    color: #111827;
}

.client-portal {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.client-portal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #cbd5e1;
}

.client-portal-header img,
.client-portal-header .brand-mark {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.client-job-heading {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 28px 0;
}

.client-job-heading > img {
    width: 180px;
    aspect-ratio: 4 / 3;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    object-fit: cover;
}

.client-job-heading h1 {
    margin: 4px 0 7px;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.client-job-heading p,
.client-section-heading p {
    margin: 0;
    color: #64748b;
}

.client-description,
.client-files-section {
    padding: 22px 0;
    border-top: 1px solid #cbd5e1;
}

.client-description h2,
.client-files-section h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.client-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.client-file {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 76px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.client-file:hover {
    border-color: #64748b;
}

.client-file img,
.client-file-type {
    width: 54px;
    height: 54px;
    border-radius: 4px;
    object-fit: cover;
    background: #e5e7eb;
}

.client-file-type {
    display: grid;
    place-items: center;
    color: #374151;
    font-size: .72rem;
    font-weight: 900;
}

.client-file strong,
.client-file small {
    display: block;
    overflow-wrap: anywhere;
}

.client-file small {
    margin-top: 4px;
    color: #64748b;
}

.client-empty {
    padding: 80px 0;
    text-align: center;
}

.job-mini-map {
    width: 100%;
    height: 240px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-2);
}

.map-link,
.file-list a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.file-list a {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 9px;
    background: #f9fafb;
    text-decoration: none;
    font-size: .86rem;
}

.map-field {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: #f9fafb;
}

.map-status {
    margin-left: auto;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.map-picker {
    position: relative;
    height: 480px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    cursor: crosshair;
    background:
        linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
        linear-gradient(135deg, #cbd5e1, #9ca3af 45%, #e5e7eb);
    background-size: 42px 42px, 42px 42px, cover;
}

.leaflet-map {
    height: 480px;
    background: #e5e7eb;
    cursor: grab;
}

.leaflet-map:active {
    cursor: grabbing;
}

.leaflet-container {
    position: relative;
    overflow: hidden;
    font: inherit;
    outline: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Leaflet layout fallback: keeps maps correct if the CDN stylesheet is unavailable. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    top: 0;
    left: 0;
}

.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
    position: absolute;
    inset: 0;
}

.leaflet-map-pane { z-index: 2; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }

.leaflet-tile-container {
    pointer-events: none;
    white-space: nowrap;
}

.leaflet-tile {
    visibility: hidden;
    max-width: none !important;
    max-height: none !important;
    user-select: none;
    -webkit-user-drag: none;
}

.leaflet-tile-loaded { visibility: inherit; }

.leaflet-marker-icon,
.leaflet-marker-shadow {
    display: block;
    max-width: none !important;
    user-select: none;
    -webkit-user-drag: none;
}

.leaflet-zoom-animated {
    transform-origin: 0 0;
}

.leaflet-top,
.leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }

.leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: auto;
}

.leaflet-left .leaflet-control { float: left; clear: both; margin-left: 10px; }
.leaflet-right .leaflet-control { float: right; clear: both; margin-right: 10px; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }

.leaflet-bar {
    border: 1px solid #9ca3af;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(17, 24, 39, .14);
}

.leaflet-bar a {
    display: block;
    width: 32px;
    height: 32px;
    border-bottom: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font: 700 21px/32px Arial, sans-serif;
    text-align: center;
}

.leaflet-bar a:last-child { border-bottom: 0; }
.leaflet-bar a:hover { background: #f3f4f6; }

.leaflet-control-attribution,
.leaflet-control-scale-line {
    padding: 3px 6px;
    border: 1px solid rgba(107, 114, 128, .55);
    background: rgba(255, 255, 255, .9);
    color: #374151;
    font-size: 10px;
}

.leaflet-control-attribution a { color: #374151; text-decoration: underline; }
.leaflet-control-scale-line { border-top: 0; line-height: 1.1; }

.leaflet-popup {
    position: absolute;
    margin-bottom: 20px;
    text-align: center;
}

.leaflet-popup-content-wrapper {
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .2);
}

.leaflet-popup-content {
    margin: 13px 18px;
    line-height: 1.4;
}

.leaflet-popup-tip-container {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 12px;
    margin-left: -12px;
    overflow: hidden;
}

.leaflet-popup-tip {
    width: 16px;
    height: 16px;
    margin: -9px auto 0;
    transform: rotate(45deg);
    background: #fff;
    box-shadow: 2px 2px 4px rgba(17, 24, 39, .12);
}

.leaflet-popup-close-button {
    position: absolute;
    top: 3px;
    right: 5px;
    z-index: 1;
    width: 24px;
    height: 24px;
    color: #4b5563;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

.site-map-marker {
    border: 0;
    background: transparent;
}

.site-map-marker span {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 22px;
    height: 22px;
    transform: rotate(-45deg);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: #111827;
    box-shadow: 0 3px 9px rgba(17, 24, 39, .38);
}

.site-map-marker span::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

.map-field:fullscreen {
    display: grid;
    grid-template-rows: auto 1fr;
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
}

.map-field:fullscreen .leaflet-map {
    height: 100%;
}

.map-grid {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 35%, rgba(17,24,39,.18), transparent 9%),
        radial-gradient(circle at 68% 48%, rgba(17,24,39,.16), transparent 11%),
        linear-gradient(25deg, transparent 47%, rgba(17,24,39,.22) 48%, rgba(17,24,39,.22) 52%, transparent 53%),
        linear-gradient(145deg, transparent 40%, rgba(255,255,255,.35) 41%, rgba(255,255,255,.35) 44%, transparent 45%);
}

.map-crosshair {
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(17, 24, 39, .35);
    pointer-events: none;
}

.map-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -100%) rotate(45deg);
    border-radius: 50% 50% 50% 0;
    background: var(--dark);
    box-shadow: 0 8px 20px rgba(17, 24, 39, .28);
}

.map-marker::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    inset: 8px;
    border-radius: 50%;
    background: #fff;
}

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

.stack { display: grid; gap: 14px; }

label {
    display: grid;
    gap: 7px;
    color: var(--accent);
    font-weight: 700;
    font-size: .9rem;
}

.wide { grid-column: 1 / -1; }

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 11px;
    color: var(--text);
    background: #fff;
    font: inherit;
}

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

.formatted-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
}

.check input { width: 18px; min-height: 18px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--dark);
    font-weight: 800;
    cursor: pointer;
}

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn.danger {
    color: #fff;
    background: var(--stop);
    border-color: var(--stop);
}

.btn.close-btn {
    border-color: #4b5563;
    background: #4b5563;
    color: #fff;
}

.btn.restore-btn {
    border-color: #15803d;
    background: #15803d;
    color: #fff;
}

.small-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: .82rem;
}

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

.actions form {
    margin: 0;
}

.month-picker-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-picker-form input[type="month"] {
    width: auto;
    min-height: 42px;
}

.attendance-detail-table {
    min-width: 1180px;
}

.attendance-detail-table th,
.attendance-detail-table td {
    padding: 7px 8px;
    font-size: .78rem;
}

.attendance-matrix-panel {
    overflow: hidden;
    padding: 16px;
}

.attendance-matrix-panel > h2 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.attendance-employee-name {
    margin: 12px 0 6px;
    font-size: .84rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendance-employee-photo {
    width: 1cm;
    height: 1cm;
    flex: 0 0 1cm;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    object-fit: cover;
    background: #e5e7eb;
}

.attendance-employee-photo.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: .8rem;
    font-weight: 800;
}

.attendance-matrix-wrap {
    margin: 0;
    box-shadow: none;
}

.attendance-matrix {
    min-width: 1820px;
    table-layout: fixed;
    font-size: .76rem;
}

.attendance-matrix th:first-child,
.attendance-matrix td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 132px;
    background: #f9fafb;
}

.attendance-matrix td,
.attendance-matrix thead th:not(:first-child) {
    width: 54px;
    min-width: 54px;
    padding: 6px 4px;
    text-align: center;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
}

.attendance-matrix tbody th {
    padding: 7px 8px;
    font-size: .72rem;
    line-height: 1.2;
}

.attendance-row-jobs td,
.attendance-row-vehicles td {
    padding: 5px 4px;
    font-size: .66rem;
    vertical-align: top;
}

.attendance-entity-value {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.attendance-row-vehicles .attendance-entity-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-matrix .day-weekday {
    background: #ecfdf5;
}

.attendance-matrix .day-weekend {
    background: #fee2e2;
    color: #7f1d1d;
}

.attendance-matrix thead .day-weekday {
    background: #bbf7d0;
    color: #14532d;
}

.attendance-matrix thead .day-weekend {
    background: #fecaca;
}

.attendance-day-number,
.attendance-day-initial {
    display: block;
}

.attendance-day-initial {
    margin-top: 2px;
    font-size: .72rem;
    font-weight: 800;
}

.due-row.soon td {
    background: #fef3c7;
}

.due-row.overdue td {
    background: #fee2e2;
    color: #7f1d1d;
}

.due-row.paid td {
    background: #dcfce7;
    color: #14532d;
}

.paid-row td {
    background: #dcfce7;
    color: #14532d;
}

.payment-form {
    margin: 0;
}

.payment-date {
    display: block;
    margin-top: 3px;
    color: #166534;
    font-weight: 700;
    white-space: nowrap;
}

.btn.pay-btn {
    border-color: #15803d;
    background: #15803d;
    color: #fff;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-axis {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
}

.timeline-track {
    position: relative;
    min-height: 210px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        repeating-linear-gradient(90deg, #f9fafb 0, #f9fafb 32px, #eef0f3 33px),
        #fff;
    overflow-x: auto;
}

.timeline-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--line);
}

.timeline-item {
    position: absolute;
    top: 50%;
    width: min(230px, 48vw);
    transform: translate(-12px, -50%);
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .08);
    font-size: .82rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 9px;
    top: calc(50% - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(62px);
}

.timeline-item:nth-child(even) {
    transform: translate(-12px, -118%);
}

.timeline-item:nth-child(even)::before {
    transform: translateY(108px);
}

.timeline-item.soon {
    background: #fef3c7;
    border-color: #f59e0b;
}

.timeline-item.overdue {
    background: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
}

.timeline-item span {
    color: var(--muted);
    font-weight: 900;
}

.timeline-item strong,
.timeline-item em {
    font-style: normal;
}

.timeline-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.schedule-chart {
    display: grid;
    grid-template-columns: 86px minmax(620px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.chart-y-axis {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    min-height: 340px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-align: right;
    padding: 7px 0 42px;
}

.chart-y-axis span {
    align-self: start;
}

.chart-y-axis span:nth-child(2) {
    align-self: center;
}

.chart-y-axis span:nth-child(3) {
    align-self: end;
}

.chart-plot {
    position: relative;
    min-width: 620px;
    min-height: 340px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(#e5e7eb 1px, transparent 1px),
        repeating-linear-gradient(90deg, transparent 0, transparent calc((100% / 31) - 1px), #eef0f3 calc(100% / 31)),
        #fff;
    background-size: 100% 33.333%, auto, auto;
    margin-bottom: 20px;
    overflow: hidden;
}

.chart-x-axis {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    border-top: 1px solid var(--line);
    background: #f9fafb;
}

.chart-x-axis span {
    position: absolute;
    top: 9px;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}

.chart-point {
    position: absolute;
    width: 190px;
    transform: translate(-50%, 50%);
    display: grid;
    gap: 2px;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .08);
    font-size: .78rem;
    z-index: 3;
}

.chart-point::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -17px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
}

.chart-point.soon {
    background: #fef3c7;
    border-color: #f59e0b;
}

.chart-point.overdue {
    background: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
}

.chart-point.paid {
    border-color: #16a34a;
    background: #dcfce7;
    color: #14532d;
}

.chart-point.paid::before {
    background: #16a34a;
}

.chart-point.no-amount {
    width: 170px;
    opacity: .92;
}

.chart-point span {
    color: var(--muted);
    font-weight: 900;
}

.chart-point em {
    font-style: normal;
    font-weight: 800;
}

.today-line {
    position: absolute;
    top: 0;
    bottom: 34px;
    width: 2px;
    background: #111827;
    z-index: 2;
}

.today-line span {
    position: absolute;
    top: 8px;
    left: 8px;
    white-space: nowrap;
    border-radius: 6px;
    padding: 5px 7px;
    background: #111827;
    color: #fff;
    font-size: .76rem;
    font-weight: 900;
}

.today-outside {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, .92);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.btn:hover { border-color: var(--accent-2); }

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    text-align: left;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    background: #f9fafb;
    color: var(--accent);
    font-size: .8rem;
    text-transform: uppercase;
}

.empty,
.muted { color: var(--muted); }

.small { font-size: .85rem; }

.alert {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.notice {
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid;
    border-radius: 6px;
    font-weight: 700;
}

.notice.error {
    border-color: #fecaca;
    background: #fee2e2;
    color: #7f1d1d;
}

.notice.success {
    border-color: #bbf7d0;
    background: #dcfce7;
    color: #14532d;
}

@media (max-width: 860px) {
    .client-portal {
        width: min(100% - 24px, 1100px);
        padding-top: 14px;
    }

    .client-job-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .client-job-heading > img {
        width: 100%;
        max-height: 240px;
    }

    .client-files-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: auto;
        min-height: auto;
        padding: 16px;
    }

    .sidebar nav {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .app {
        margin-left: 0;
        padding: 18px;
    }

    .toolbar,
    .row.between {
        flex-direction: column;
        align-items: stretch;
    }

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

    .job-finance-title {
        flex-direction: column;
        gap: 4px;
    }

    .cost-legend {
        justify-content: flex-start;
    }

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

    .job-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .company-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-toolbar {
        align-items: stretch;
    }

    .map-status {
        width: 100%;
        margin-left: 0;
    }

    .map-picker,
    .leaflet-map {
        height: 380px;
    }

    .dashboard-jobs-map {
        height: 380px;
    }
}
