:root {
    --blue-900: #08245c;
    --blue-800: #0b3a91;
    --blue-700: #0755d8;
    --blue-100: #eaf2ff;
    --slate-950: #111827;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --green-600: #16a34a;
    --amber-500: #f59e0b;
    --red-600: #dc2626;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f8fafc;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--slate-950);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--blue-700);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--slate-200);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 116px;
}

.brand__logo {
    display: block;
    width: 116px;
    height: 42px;
    object-fit: contain;
}

.nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    background: var(--blue-900);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
}

.main-nav {
    position: absolute;
    top: 72px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.main-nav.is-open {
    display: flex;
}

.main-nav a,
.nav-link-button {
    display: block;
    width: 100%;
    padding: 12px 14px;
    color: var(--blue-900);
    font-weight: 700;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

.main-nav a:hover,
.nav-link-button:hover {
    background: var(--blue-100);
    text-decoration: none;
}

.nav-form {
    margin: 0;
}

.app-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 22px 16px 56px;
}

.auth-page .app-shell {
    width: min(520px, 100%);
}

.auth-panel {
    padding-top: 28px;
}

.auth-card,
.panel,
.metric,
.group-tile {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card {
    padding: 24px;
}

h1,
h2 {
    margin: 0;
    color: var(--blue-900);
    line-height: 1.2;
}

h1 {
    font-size: 30px;
}

h2 {
    margin-bottom: 18px;
    font-size: 21px;
}

.muted {
    color: var(--slate-500);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-heading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.field {
    display: grid;
    gap: 7px;
    color: var(--blue-900);
    font-weight: 700;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--slate-950);
    background: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
}

.field--wide {
    min-width: min(100%, 320px);
}

.form-grid,
.inline-form {
    display: grid;
    gap: 12px;
}

.inline-form {
    align-items: end;
    margin-bottom: 18px;
}

.compact-form {
    margin-bottom: 18px;
}

.form-panel {
    max-width: 820px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 3px solid rgba(7, 85, 216, 0.18);
    border-color: var(--blue-700);
}

.field small {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.form-hint {
    align-self: end;
    padding: 12px;
    color: var(--slate-700);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
}

.form-hint--warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
}

.button:hover {
    text-decoration: none;
}

.button--primary {
    color: var(--white);
    background: var(--blue-700);
}

.button--primary:hover {
    background: var(--blue-800);
}

.button--secondary {
    color: var(--blue-900);
    background: var(--white);
    border-color: var(--slate-200);
}

.button--secondary:hover {
    background: var(--blue-100);
}

.button--danger {
    color: var(--white);
    background: var(--red-600);
    border-color: var(--red-600);
}

.button--danger:hover {
    background: #b91c1c;
}

.button--danger-outline {
    color: var(--red-600);
    background: var(--white);
    border-color: #fecaca;
}

.button--danger-outline:hover {
    color: var(--white);
    background: var(--red-600);
    border-color: var(--red-600);
}

.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    color: var(--white);
    background: var(--blue-700);
    border: 1px solid var(--blue-700);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.small-button:hover {
    background: var(--blue-800);
    text-decoration: none;
}

.small-button--muted {
    color: var(--blue-900);
    background: var(--white);
    border-color: var(--slate-200);
}

.small-button--danger {
    background: var(--red-600);
    border-color: var(--red-600);
}

.show-extra-button {
    margin-top: 12px;
}

.form-error {
    color: var(--red-600);
    font-size: 14px;
    font-weight: 700;
}

.form-error--global {
    margin-bottom: 14px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--slate-700);
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 700;
}

.alert--success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.alert--warning {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.alert--error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.quick-groups,
.metric-grid,
.settings-grid,
.detail-grid {
    display: grid;
    gap: 14px;
}

.quick-groups {
    margin-bottom: 18px;
}

.group-tile {
    display: grid;
    gap: 6px;
    padding: 18px;
    color: var(--slate-950);
}

.group-tile:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.group-tile span {
    color: var(--blue-900);
    font-weight: 800;
}

.group-tile strong {
    font-size: 32px;
    line-height: 1;
}

.group-tile small {
    color: var(--slate-500);
    font-weight: 700;
}

.group-tile--orders {
    border-top: 4px solid var(--blue-700);
}

.group-tile--quotes {
    border-top: 4px solid var(--amber-500);
}

.group-tile--completed {
    border-top: 4px solid var(--green-600);
}

.metric {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.metric span {
    color: var(--slate-500);
    font-weight: 700;
}

.metric strong {
    color: var(--blue-900);
    font-size: 24px;
}

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

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

.section-title h2 {
    margin-bottom: 0;
}

.empty-state {
    padding: 18px;
    color: var(--slate-700);
    background: var(--slate-100);
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
}

.empty-state strong {
    display: block;
    margin-bottom: 4px;
    color: var(--blue-900);
}

.empty-state p {
    margin: 0;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: var(--white);
}

.data-table th,
.data-table td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--slate-200);
}

.data-table th {
    color: var(--blue-900);
    font-size: 14px;
    background: var(--slate-100);
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table .is-extra-row {
    display: none;
}

.panel.is-expanded .data-table .is-extra-row {
    display: table-row;
}

.data-table tfoot th {
    background: #eef6ff;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-700);
    font-weight: 700;
    white-space: nowrap;
}

.status-dot::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--status-color, #64748b);
    border-radius: 999px;
}

.table-action {
    font-weight: 800;
}

.tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.tabs a {
    flex: 0 0 auto;
    padding: 10px 14px;
    color: var(--blue-900);
    font-weight: 800;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
}

.tabs a:hover,
.tabs a.is-active {
    color: var(--white);
    background: var(--blue-700);
    text-decoration: none;
}

.definition-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.definition-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-200);
}

.definition-list dt {
    color: var(--slate-500);
    font-weight: 700;
}

.definition-list dd {
    margin: 0;
    color: var(--slate-950);
    font-weight: 800;
}

.preserved-text {
    white-space: pre-wrap;
}

.settings-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--slate-200);
}

.settings-details summary {
    color: var(--blue-900);
    font-weight: 800;
    cursor: pointer;
}

.danger-zone {
    border-color: #fecaca;
}

.danger-zone__form {
    margin-top: 14px;
}

.table-input {
    width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
}

.table-input--small {
    max-width: 92px;
}

.table-input--color {
    width: 56px;
    padding: 3px;
}

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

.inline-delete {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.tiny-password {
    width: 112px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-size: 13px;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    color: var(--blue-900);
    font-weight: 800;
}

.section-meta {
    color: var(--slate-500);
    font-weight: 800;
}

.locked-field {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
}

.locked-field span {
    color: var(--slate-500);
    font-weight: 800;
}

.locked-field strong {
    color: var(--blue-900);
    font-size: 22px;
}

.locked-field small {
    color: var(--slate-500);
}

.notes-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notes-toolbar button {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--blue-900);
    background: var(--blue-100);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
}

.notes-preview {
    margin-top: 18px;
    padding: 16px;
    background: #fbfdff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
}

.notes-table-wrap {
    overflow-x: auto;
    margin: 10px 0;
}

.notes-table {
    border-collapse: collapse;
    min-width: 360px;
}

.notes-table td {
    padding: 8px 10px;
    border: 1px solid var(--slate-200);
}

.activity-list {
    display: grid;
    gap: 10px;
    padding-left: 18px;
    color: var(--slate-700);
}

.dashboard-analytics {
    display: grid;
    gap: 14px;
}

.chart-filter-panel {
    display: grid;
    gap: 14px;
}

.chart-embedded-controls {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--slate-200);
}

.chart-embedded-controls .range-pills {
    gap: 6px;
}

.chart-embedded-controls .range-pills a {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
}

.chart-embedded-controls .chart-range-form {
    margin: 0;
}

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

.range-pills a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--blue-900);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    font-weight: 800;
}

.range-pills a:hover,
.range-pills a.is-active {
    color: var(--white);
    background: var(--blue-700);
    border-color: var(--blue-700);
    text-decoration: none;
}

.chart-range-form {
    display: grid;
    gap: 12px;
    align-items: end;
}

.chart-card {
    min-width: 0;
}

.bar-chart {
    display: grid;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    color: var(--slate-950);
    background: #fbfdff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
}

a.bar-row:hover {
    background: var(--blue-100);
    text-decoration: none;
}

.bar-row__label {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.bar-row__label strong {
    overflow: hidden;
    color: var(--blue-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-row__label small {
    color: var(--slate-500);
    font-weight: 700;
}

.bar-row__track {
    display: block;
    width: 100%;
    height: 14px;
    overflow: hidden;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 999px;
}

.bar-row__fill {
    display: block;
    width: var(--bar-width, 0%);
    height: 100%;
    min-width: 0;
    border-radius: inherit;
}

.bar-row__fill--work {
    background: var(--blue-700);
}

.bar-row__fill--materials {
    background: var(--green-600);
}

.bar-row__fill--year {
    background: var(--amber-500);
}

.bar-row__value {
    color: var(--slate-950);
    font-weight: 900;
    white-space: nowrap;
}

.dynamic-chart {
    display: grid;
    gap: 14px;
}

.chart-range-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 800;
}

.chart-range-badge strong {
    color: var(--blue-900);
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 10px;
    color: var(--slate-700);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.chart-legend__item.is-active {
    color: var(--blue-900);
    border-color: var(--series-color);
    box-shadow: inset 0 -2px 0 var(--series-color);
}

.chart-legend__swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--series-color);
    border-radius: 999px;
}

.line-chart-shell {
    position: relative;
    min-height: 260px;
    padding: 8px 0 0;
}

.line-chart-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 260px;
    overflow: visible;
}

.line-chart-grid {
    stroke: #dbe5f1;
    stroke-width: 1;
}

.line-chart-axis {
    stroke: #cbd5e1;
    stroke-width: 1.5;
}

.line-chart-date-tick {
    stroke: #cbd5e1;
    stroke-width: 1;
}

.line-chart-date-pin {
    fill: #94a3b8;
}

.line-chart-date-hit,
.line-chart-label-pin {
    cursor: pointer;
}

.line-chart-date-hit {
    fill: transparent;
}

.line-chart-label-bg {
    fill: #ffffff;
    stroke: #dbe5f1;
    stroke-width: 1;
}

.line-chart-label {
    fill: var(--slate-500);
    font-size: 11px;
    font-weight: 700;
}

.line-chart-label--compact {
    font-size: 10px;
    font-weight: 600;
}

.line-chart-path {
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: chart-line-draw 900ms ease-out forwards;
}

.line-chart-point {
    stroke: var(--white);
    stroke-width: 3;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.18));
}

.line-chart-hit {
    fill: transparent;
    cursor: pointer;
}

.line-chart-hit:focus {
    outline: none;
    stroke: var(--blue-900);
    stroke-width: 2;
}

.line-chart-tooltip {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 2px;
    min-width: 160px;
    max-width: min(220px, 80vw);
    padding: 10px 12px;
    color: var(--slate-950);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translate(-50%, calc(-100% - 12px));
    pointer-events: none;
}

.line-chart-tooltip[hidden] {
    display: none;
}

.line-chart-tooltip strong {
    color: var(--blue-900);
}

.line-chart-tooltip span {
    font-weight: 900;
}

.line-chart-tooltip small {
    color: var(--slate-500);
    font-weight: 700;
}

@keyframes chart-line-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.settlement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.settlement-project-picker .form {
    align-items: end;
}

.project-mini-summary {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.project-mini-summary article,
.quick-entry-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.project-mini-summary article {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.project-mini-summary span {
    color: var(--slate-500);
    font-weight: 800;
}

.project-mini-summary strong {
    color: var(--blue-900);
    font-size: 20px;
}

.project-mini-summary small {
    color: var(--slate-500);
    font-weight: 700;
}

.settlement-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.settlement-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 10px;
    color: var(--blue-900);
    background: var(--blue-100);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    font-weight: 800;
    text-align: center;
}

.settlement-tabs a:hover {
    color: var(--white);
    background: var(--blue-700);
    text-decoration: none;
}

.quick-entry-grid {
    display: grid;
    gap: 14px;
}

.quick-entry-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    scroll-margin-top: 94px;
}

.quick-entry-card__header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.quick-entry-card__header > span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: var(--blue-900);
    border-radius: var(--radius);
    font-size: 20px;
    font-weight: 900;
}

.quick-entry-card h2 {
    margin-bottom: 5px;
    font-size: 20px;
}

.quick-entry-card p {
    margin: 0;
    color: var(--slate-500);
    font-weight: 700;
}

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

.quick-form .button {
    width: 100%;
}

.daily-review-grid {
    display: grid;
    gap: 14px;
}

.daily-review-grid article {
    padding: 14px;
    background: #fbfdff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
}

.daily-review-grid h3 {
    margin: 0 0 10px;
    color: var(--blue-900);
    font-size: 17px;
}

.daily-review-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.daily-review-list li {
    display: grid;
    gap: 3px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
}

.daily-review-list strong {
    color: var(--blue-900);
}

.daily-review-list span {
    color: var(--slate-950);
    font-weight: 800;
}

.daily-review-list small {
    color: var(--slate-500);
}

@media (min-width: 760px) {
    .app-header {
        padding: 14px 32px;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .main-nav a,
    .nav-link-button {
        width: auto;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .app-shell {
        padding: 32px 24px 72px;
    }

    .page-heading {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

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

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

    .settings-grid,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

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

    .inline-form {
        grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
    }

    .inline-form .field--wide {
        grid-column: span 2;
    }

    .settlement-project-picker .form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .project-mini-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .quick-entry-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

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

    .dashboard-analytics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .chart-range-form {
        grid-template-columns: repeat(2, minmax(160px, 220px)) auto;
    }

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

    .bar-row {
        grid-template-columns: minmax(150px, 1fr) minmax(180px, 2fr) auto;
        align-items: center;
    }
}
