/* ============================================================
   ELAS v2 — app.css  (SaaS / Data-Science Layout)
   ============================================================ */

/* ── Google Fonts are loaded in base.html.twig via <link> ── */

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    /* surfaces */
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface2: #edf0f4;
    --border: #e0e5ed;

    /* text */
    --text: #1a1f2e;
    --text-muted: #68748a;

    /* brand */
    --primary: #2d6a4f;
    --primary-dk: #1b4332;
    --primary-lt: #e6f4ed;
    --accent: #40916c;
    --accent-lt: #74c69d;
    --accent2: #3a7bd5;
    --sand: #b5976a;
    --warn: #e07a5f;
    --danger: #c0392b;
    --success: #27ae60;

    /* layout */
    --sidebar-w: 230px;
    --header-h: 56px;

    /* misc */
    --radius: 9px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 4px 12px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .09);
    --trans: .18s ease;
}

/* ── Dark Mode ─────────────────────────────────────────────── */
[data-theme="dark"] {
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface2: #252836;
    --border: #2e3347;
    --text: #eef0f5;
    --text-muted: #868ea8;
    --primary-lt: #1c3028;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .35);
}

/* ── Base ──────────────────────────────────────────────────── */
html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: .6rem;
    color: var(--primary);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

h5 {
    font-size: .93rem;
    font-weight: 600;
    margin: .75rem 0 .35rem;
}

p {
    margin-bottom: .65rem;
}

small,
.small {
    font-size: .82rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-end {
    text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   APP SHELL
   ══════════════════════════════════════════════════════════════ */

/* ── Header ────────────────────────────────────────────────── */
#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
    z-index: 200;
    box-shadow: var(--shadow);
}

.app-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: var(--sidebar-w);
    text-decoration: none;
    color: inherit;
}

.app-header__logo:hover {
    text-decoration: none;
}

.app-header__logo svg {
    color: var(--accent);
    flex-shrink: 0;
}

.app-header__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.app-header__title small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
}

.app-header__spacer {
    flex: 1;
}

.app-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status badges */
.status-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.status-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--accent);
}

.status-badge__dot--warn {
    background: var(--warn);
}

.status-badge__dot--blue {
    background: var(--accent2);
}

/* Header user links */
.app-header__user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-header__username {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--surface2);
    border: 1px solid var(--border);
}

/* Theme + hamburger buttons */
#theme-toggle,
#menu-toggle {
    width: 33px;
    height: 33px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background var(--trans);
    flex-shrink: 0;
    color: var(--text);
}

#theme-toggle:hover,
#menu-toggle:hover {
    background: var(--border);
}

#menu-toggle {
    display: none;
}

/* ── Sidebar ────────────────────────────────────────────────── */
#app-sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 14px 0;
    z-index: 100;
    transition: transform .24s ease;
}

.sb-section {
    padding: 4px 10px 2px;
}

.sb-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    padding: 0 8px 3px;
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    transition: background var(--trans), color var(--trans);
    margin-bottom: 1px;
    text-decoration: none;
}

.sb-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
}

.sb-item:hover {
    background: var(--surface2);
    color: var(--text);
    text-decoration: none;
}

.sb-item.is-active {
    background: var(--primary-lt);
    color: var(--primary);
    font-weight: 600;
}

.sb-item.is-active svg {
    color: var(--primary);
}

.sb-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.sb-step-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-item.is-active .sb-step-num {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.sb-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 14px;
}

/* ── Main content ───────────────────────────────────────────── */
#app-main {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    padding-top: var(--header-h);
    min-height: 100vh;
}

.page-content {
    padding: 24px 28px;
    max-width: 1300px;
    width: 100%;
}

/* Full-page variant (home, login) – no sidebar */
body.no-shell #app-header .app-header__logo {
    min-width: auto;
}

body.no-shell #app-sidebar {
    display: none;
}

body.no-shell #app-main {
    margin-left: 0;
}

/* ── Page header row ───────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    width: 100%;
}

.justify-content-between {
    justify-content: space-between;
}
.align-items-center {
    align-items: center;
}
.text-end {
    text-align: right;
}
.text-center {
    text-align: center;
}


.page-header__text h1 {
    margin-bottom: .15rem;
    font-size: 1.35rem;
}

.page-header__text p {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0;
}

.page-header__spacer {
    flex: 1;
}

/* ── Section label ─────────────────────────────────────────── */
.section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    margin: 0 0 10px;
}

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    width: 100%;
    max-width: 100%;
}

.card-header {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    font-weight: 600;
    background: var(--surface2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 16px;
}

/* centered card (auth, index) */
.card--centered {
    max-width: 480px;
    margin: 0 auto;
}

.card--auth {
    max-width: 420px;
}

/* ── KPI Cards ─────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.kpi-card--green::before {
    background: var(--accent);
}

.kpi-card--blue::before {
    background: var(--accent2);
}

.kpi-card--sand::before {
    background: var(--sand);
}

.kpi-card--warn::before {
    background: var(--warn);
}

.kpi-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.kpi-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 3px 0 2px;
}

.kpi-value small {
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.kpi-delta {
    font-size: 11px;
}

.kpi-delta--pos {
    color: var(--accent);
}

.kpi-delta--neg {
    color: var(--warn);
}

/* ══════════════════════════════════════════════════════════════
   ACCORDION
   ══════════════════════════════════════════════════════════════ */
.accordion {
    margin-bottom: 10px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    background: var(--surface);
    border-bottom: 1px solid transparent;
    transition: background var(--trans);
}

.acc-header:hover,
.acc-header.is-open {
    background: var(--surface2);
}

.acc-header.is-open {
    border-bottom-color: var(--border);
}

.acc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.acc-icon {
    font-size: 16px;
}

.acc-chevron {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--trans);
}

.acc-header.is-open .acc-chevron {
    transform: rotate(180deg);
}

.acc-body {
    padding: 16px;
    display: none;
    background: var(--surface);
}

.acc-header.is-open+.acc-body {
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════ */

/* Hide intermediate submit buttons when auto-save is active */
body.js-auto-save .no-js-submit {
    display: none !important;
}

label,
.form-label {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: .28rem;
    color: var(--text-muted);
}

.col-form-label {
    display: flex;
    align-items: center;
    font-weight: 500;
}

input[type="number"] {
    text-align: right;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
select,
.form-control,
.form-select {
    width: 100%;
    padding: .42rem .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .87rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--trans), box-shadow var(--trans);
    outline: none;
    appearance: auto;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(64, 145, 108, .15);
}

.form-group {
    margin-bottom: .9rem;
}

.form-group small {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .2rem;
    display: block;
}

.form-group--inline {
    display: flex;
    gap: .75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group--inline input {
    flex: 1;
    min-width: 180px;
}

.form-group--inline .btn {
    flex-shrink: 0;
}

.form-row,
.row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
    width: 100%;
}

.form-row label {
    flex: 1;
    min-width: 130px;
}

.row .col {
    flex: 1;
    min-width: 130px;
}

.col-md-3 {
    flex: 0 0 calc(25% - 0.75rem);
    max-width: calc(25% - 0.75rem);
}

.col-md-4, .col-sm-4 {
    flex: 0 0 calc(33.333% - 0.67rem);
    max-width: calc(33.333% - 0.67rem);
}

.col-md-6, .col-sm-6 {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}

.col-sm-3 {
    flex: 0 0 calc(25% - 0.75rem);
    max-width: calc(25% - 0.75rem);
}

.col-sm-5 {
    flex: 0 0 calc(41.666% - 0.59rem);
    max-width: calc(41.666% - 0.59rem);
}

.col-sm-7 {
    flex: 0 0 calc(58.333% - 0.41rem);
    max-width: calc(58.333% - 0.41rem);
}

.col-sm-2 {
    flex: 0 0 calc(16.666% - 0.83rem);
    max-width: calc(16.666% - 0.83rem);
}

.offset-sm-4 {
    margin-left: 33.33%;
}

.col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7,
.col-md-3, .col-md-4, .col-md-6 {
    min-width: 0;
}

.input-w-sm {
    max-width: 100px;
    min-width: 0;
}

.input-w-md {
    max-width: 160px;
    min-width: 0;
}

.selects-row {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
}

.selects-row select {
    flex: 1;
    min-width: 150px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .35rem;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-right: .9rem;
}

.form-check-input {
    width: auto;
}

.form-check-label {
    font-weight: 400;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .35rem;
    font-weight: 400;
}

.d-flex {
    display: flex;
}

.gap-3 {
    gap: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-items-end {
    align-items: flex-end;
}

.w-auto {
    width: auto;
}

.mb-2 {
    margin-bottom: .5rem;
}

.p-3 {
    padding: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: .5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Radio cards (index page) */
.radio-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: .5rem;
    transition: border-color var(--trans), background var(--trans);
    font-weight: 500;
}

.radio-card:hover {
    border-color: var(--accent);
    background: var(--primary-lt);
}

.radio-card input[type="radio"] {
    accent-color: var(--primary);
}

.radio-card span {
    font-size: .88rem;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1rem;
}

legend {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

/* Input with km suffix */
.input-km {
    width: 80px;
    min-width: 0;
    text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .46rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: .86rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--trans), transform var(--trans), box-shadow var(--trans), color var(--trans);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary,
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn--primary:hover,
.btn-primary:hover {
    background: var(--primary-dk);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.btn--secondary,
.btn-secondary {
    background: var(--surface2);
    color: var(--text);
    border-color: var(--border);
}

.btn--secondary:hover,
.btn-secondary:hover {
    background: var(--border);
    text-decoration: none;
    color: var(--text);
}

.btn-success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.btn-success:hover {
    background: #1e8449;
    color: #fff;
    text-decoration: none;
}

.btn-outline-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-outline-secondary:hover {
    background: var(--surface2);
    color: var(--text);
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.btn--outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.btn--outline:hover {
    background: var(--surface2);
    color: var(--text);
    text-decoration: none;
}

.btn--danger,
.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn--danger:hover,
.btn-danger:hover {
    background: #a93226;
    color: #fff;
    text-decoration: none;
}

.btn--sm,
.btn-sm {
    padding: .28rem .65rem;
    font-size: .78rem;
}

.btn--sm:not(.btn--primary):not(.btn--secondary):not(.btn--danger):not(.btn-danger) {
    background: transparent;
    color: var(--accent);
    border-color: transparent;
    padding: .2rem .4rem;
}

.btn--sm:hover {
    text-decoration: underline;
}

.btn--large {
    padding: .65rem 1.8rem;
    font-size: .98rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Form actions bar */
.form-actions {
    display: flex;
    gap: .7rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.nav-actions {
    margin-top: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════ */
.table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: .9rem;
    font-size: .83rem;
}

.table th,
.table td,
.data-table th,
.data-table td {
    padding: .45rem .7rem;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table thead th,
.data-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) {
    background: var(--surface2);
}

.table-sm td,
.table-sm th {
    padding: .3rem .55rem;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid var(--border);
}

.table-dark {
    background: var(--primary-dk) !important;
    color: #fff;
}

.table-dark td,
.table-dark th {
    color: #fff;
    border-color: #1b4332;
}

/* ══════════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════════ */
.alert {
    padding: .65rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: .9rem;
    font-size: .86rem;
    border-left: 4px solid;
}

.alert--error,
.alert-danger {
    background: #fde8e6;
    border-color: var(--danger);
    color: var(--danger);
}

.alert--success,
.alert-success {
    background: #e6f4ed;
    border-color: var(--success);
    color: #1e7a45;
}

.alert-warning,
.alert--warning {
    background: #fef3e2;
    border-color: #e67e22;
    color: #7d4a00;
}

[data-theme="dark"] .alert--error,
[data-theme="dark"] .alert-danger {
    background: #2d1c1a;
    border-color: var(--danger);
    color: #f1948a;
}

[data-theme="dark"] .alert--success,
[data-theme="dark"] .alert-success {
    background: #1a2e25;
    border-color: var(--success);
    color: #7dcea0;
}

/* ══════════════════════════════════════════════════════════════
   HOME PAGE  (no-shell)
   ══════════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 60%, var(--accent) 100%);
    color: #fff;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.hero__title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .6rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 2rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: .9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-section {
    padding: 3rem 1.5rem;
}

.home-section--alt {
    background: var(--surface);
}

.home-section--notice {
    padding: 1.25rem 1.5rem;
    background: #eaf4fe;
}

[data-theme="dark"] .home-section--notice {
    background: #1a2540;
}

.home-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin-bottom: 1.75rem;
}

.home-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: .97rem;
    line-height: 1.75;
    color: var(--text-muted);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
}

.feature-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    transition: transform var(--trans), box-shadow var(--trans);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    font-size: 1.8rem;
    margin-bottom: .5rem;
}

.feature-card h3 {
    font-size: .93rem;
    margin-bottom: .3rem;
    color: var(--primary);
}

.feature-card p {
    font-size: .83rem;
    color: var(--text-muted);
    margin: 0;
}

/* Mode grid */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
}

.mode-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    cursor: pointer;
    transition: border-color var(--trans), transform var(--trans);
}

.mode-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.mode-card h3 {
    color: var(--primary);
    margin-bottom: .4rem;
}

.mode-card p {
    color: var(--text-muted);
    font-size: .86rem;
    margin: 0;
}

/* Partners */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.partner-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.partner-card strong {
    display: block;
    font-size: .9rem;
    margin-bottom: .2rem;
    color: var(--text);
}

.partner-card span {
    font-size: .8rem;
    color: var(--text-muted);
}

.funding-note {
    font-size: .8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Notice box */
.notice-box {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.notice-box__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.notice-box p {
    font-size: .86rem;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

/* ══════════════════════════════════════════════════════════════
   AUTH PAGE
   ══════════════════════════════════════════════════════════════ */
.auth-wrap {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
    background: var(--surface2);
    border-radius: 8px;
    padding: 3px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: .4rem;
    border-radius: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--trans);
}

.auth-tab.is-active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.auth-tab:hover:not(.is-active) {
    color: var(--text);
    text-decoration: none;
}

.auth-form .form-group {
    margin-bottom: .9rem;
}

.auth-hint {
    font-size: .8rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   INDEX / START PAGE
   ══════════════════════════════════════════════════════════════ */
.form-start fieldset {
    margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════
   PROGRESS NAV (legacy – kept for compatibility, hidden in shell)
   ══════════════════════════════════════════════════════════════ */
.progress-nav {
    display: none;
}

/* ══════════════════════════════════════════════════════════════
   SITE FOOTER (shown on home page only)
   ══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--primary-dk);
    color: rgba(255, 255, 255, .6);
    padding: .9rem 1.5rem;
    font-size: .78rem;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .page-content {
        padding: 18px 16px;
    }
}

@media (max-width: 820px) {
    :root {
        --sidebar-w: 0px;
    }

    #app-sidebar {
        width: 230px;
        transform: translateX(-230px);
    }

    #app-sidebar.is-open {
        transform: translateX(0);
        box-shadow: var(--shadow-md);
    }

    #app-main {
        margin-left: 0;
    }

    #menu-toggle {
        display: flex;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-md-3,
    .col-md-4,
    .col-md-6 {
        flex: unset;
        max-width: 100%;
        width: 100%;
    }

    .offset-sm-4 {
        margin-left: 0;
    }
}

@media (max-width: 1350px) {
    .col-md-3,
    .col-md-4,
    .col-md-6 {
        flex: unset !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .offset-sm-4 {
        margin-left: 0 !important;
    }
}

@media (max-width: 520px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.3rem;
    }

    .hero__title {
        font-size: 1.55rem;
    }
}

/* ── Standort / Municipality Autocomplete ─────────────────────────────────── */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0 1rem;
    transition: border-color 0.2s;
    gap: 0.6rem;
}

.search-input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.search-icon {
    font-size: 1.2rem;
    user-select: none;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    padding: 0.85rem 0;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.suggestions-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    list-style: none;
    margin: 0;
    padding: 0.3rem 0;
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
}

.suggestions-list[hidden] {
    display: none;
}

.suggestion-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    transition: background 0.12s;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.suggestion-item strong {
    color: var(--text-primary);
    font-weight: 500;
}

.suggestion-item small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.suggestion-item mark {
    background: color-mix(in srgb, var(--accent) 30%, transparent);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.suggestion-empty {
    color: var(--text-muted);
    cursor: default;
    font-style: italic;
}

/* Location info grid */
.location-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem 1.5rem;
    margin-top: 0.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-mono {
    font-family: 'SF Mono', 'Cascadia Code', monospace;
    font-size: 0.9rem;
    color: var(--accent);
}

.mt-4 {
    margin-top: 1rem;
}

.page-nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}
.btn-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

/* ── Level Badge ──────────────────────────────────────────────────────────── */
.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--accent);
    color: white;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.level-0 { background: #94a3b8; }
.level-1 { background: #60a5fa; }
.level-2 { background: #34d399; }
.level-3 { background: #f59e0b; }
.level-4 { background: #f97316; }
.level-5 { background: #ef4444; }

.level-label {
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ── Search clear button ──────────────────────────────────────────────────── */
.search-clear {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 0.3rem;
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.search-clear:hover { opacity: 1; }

/* ── Suggestion item layout fix ────────────────────────────────────────────── */
.sug-name { font-weight: 500; color: var(--text-primary); }
.sug-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ── Level select dropdown ────────────────────────────────────────────────── */
.level-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.level-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm, 6px);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    padding: 0.35rem 2rem 0.35rem 0.6rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    transition: border-color 0.15s;
}

.level-select:hover,
.level-select:focus {
    border-color: var(--accent);
    outline: none;
}

.info-item--wide {
    grid-column: 1 / -1;
}

/* ── Buildings overview table ─────────────────────────────────────────────── */
.buildings-table th,
.buildings-table td { vertical-align: middle; white-space: nowrap; }

.period-header-row td {
    background: var(--surface2, #f1f5f9);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 6px 10px;
    border-top: 2px solid var(--border);
}

.sum-row td {
    background: var(--surface2, #f1f5f9);
    border-top: 1.5px solid var(--border);
}

.grand-total-row td {
    background: var(--accent-subtle, #dbeafe);
    border-top: 2px solid var(--accent, #3b82f6);
}

/* ── Sidebar Save button ─────────────────────────────────────────────────── */
.sb-item--save {
    margin-top: 4px;
    border: 1.5px solid var(--accent, #3b82f6);
    border-radius: var(--radius-sm, 6px);
    color: var(--accent, #3b82f6) !important;
    font-weight: 600;
}
.sb-item--save:hover {
    background: var(--accent);
    color: white !important;
}

/* ── Tooltips & Info Boxes (v2) ───────────────────────────────────────────── */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
}
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-muted);
    transition: all var(--trans);
}
.tooltip-wrapper:hover .tooltip-trigger {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.tooltip-popup {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    color: var(--text);
    padding: 12px;
    border-radius: var(--radius);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--trans), transform var(--trans);
    font-weight: normal;
    text-align: left;
    white-space: normal;
    font-size: 0.85rem;
    pointer-events: none;
}
.tooltip-popup h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}
.tooltip-popup p {
    margin-bottom: 6px;
}
.tooltip-popup p:last-child {
    margin-bottom: 0;
}
.tooltip-popup ul {
    margin: 0;
    padding-left: 16px;
}
.tooltip-wrapper:hover .tooltip-popup {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.info-box {
    display: flex;
    gap: 12px;
    background-color: var(--primary-lt);
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    width: 100%;
}
.info-box-icon {
    font-size: 1.3rem;
    user-select: none;
    flex-shrink: 0;
}
.info-box-content {
    flex: 1;
    min-width: 0;
}
.info-box-content p {
    margin-bottom: 8px;
}
.info-box-content p:last-child {
    margin-bottom: 0;
}

/* ── Overlay Modal ────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-md);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.is-active .modal-card {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.modal-close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 576px) {
    .modal-options-grid {
        grid-template-columns: 1fr;
    }
}
.modal-option-btn {
    background: var(--surface2);
    border: 2px solid transparent;
    border-radius: 9px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.modal-option-btn:hover {
    border-color: var(--accent);
    background: var(--primary-lt);
}
.modal-option-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.modal-option-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.modal-option-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Global Control Bar ────────────────────────────────────── */
.global-control-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    align-items: center;
    box-shadow: var(--shadow);
}
.global-control-bar__section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.global-control-bar__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.segmented-control {
    display: inline-flex;
    background: var(--surface2);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.segmented-control__btn {
    padding: 5px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: calc(var(--radius-sm) - 2px);
    transition: var(--trans);
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.segmented-control__btn:hover {
    color: var(--text);
    text-decoration: none;
}
.segmented-control__btn.is-active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.planning-info-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.banner-icon {
    font-size: 1.1rem;
}

body.is-planning-mode {
    border-top: 5px solid var(--accent-lt);
}
body.is-planning-mode #app-main {
    background: linear-gradient(180deg, var(--primary-lt) 0%, var(--bg) 200px);
}

/* ── Overlay Modal ────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-md);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.is-active .modal-card {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.modal-close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 576px) {
    .modal-options-grid {
        grid-template-columns: 1fr;
    }
}
.modal-option-btn {
    background: var(--surface2);
    border: 2px solid transparent;
    border-radius: 9px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.modal-option-btn:hover {
    border-color: var(--accent);
    background: var(--primary-lt);
}
.modal-option-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.modal-option-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.modal-option-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Global Control Bar ────────────────────────────────────── */
.global-control-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    align-items: center;
    box-shadow: var(--shadow);
}
.global-control-bar__section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.global-control-bar__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.segmented-control {
    display: inline-flex;
    background: var(--surface2);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.segmented-control__btn {
    padding: 5px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: calc(var(--radius-sm) - 2px);
    transition: var(--trans);
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.segmented-control__btn:hover {
    color: var(--text);
    text-decoration: none;
}
.segmented-control__btn.is-active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.planning-info-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.banner-icon {
    font-size: 1.1rem;
}

body.is-planning-mode {
    border-top: 5px solid var(--accent-lt);
}
body.is-planning-mode #app-main {
    background: linear-gradient(180deg, var(--primary-lt) 0%, var(--bg) 200px);
}

/* ── Print Styles ──────────────────────────────────────────────────────────── */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    #app-sidebar, #app-header, .form-actions, .info-box, button, .btn, .tooltip-wrapper {
        display: none !important;
    }
    #app-main {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .card {
        border: none;
        box-shadow: none;
        page-break-inside: avoid;
    }
    .card-header {
        background-color: transparent;
        color: #000;
        border-bottom: 2px solid #000;
    }
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Utility classes */
.m-0 {
    margin: 0 !important;
}

#floating-bug-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--warn, #e63946);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, background 0.2s;
}
#floating-bug-btn:hover {
    transform: scale(1.1);
    background: #c92a3a;
}

/* ── Input Groups and Table responsiveness (v2) ───────────────────────────── */
.input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: .42rem .7rem;
    font-size: .87rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    background-color: var(--surface2);
    border: 1px solid var(--border);
    border-left: 0;
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.input-group-sm > .form-control,
.input-group-sm > .input-group-text {
    padding: .25rem .5rem;
    font-size: .8rem;
    height: 31px;
    box-sizing: border-box;
}

.table-responsive,
.buildings-overview {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.age-distribution-table {
    max-width: 320px;
    width: 100%;
}

