:root {
    --bg: #f5f6f2;
    --ink: #202225;
    --muted: #6d7377;
    --line: #dde1dc;
    --panel: #ffffff;
    --brand: #286b57;
    --brand-strong: #1f513f;
    --amber: #c98526;
    --blue: #3e6f94;
    --danger: #a84848;
    --radius: 8px;
}

html[data-theme="dark"] {
    --bg: #111714;
    --ink: #eef4ef;
    --muted: #a6b2aa;
    --line: #2a352f;
    --panel: #18211d;
    --brand: #66bc93;
    --brand-strong: #8fd6b1;
    --amber: #d4a04a;
    --blue: #77a9cc;
    --danger: #e07a7a;
}

* {
    box-sizing: border-box;
}

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

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

a:hover {
    color: var(--brand-strong);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    transition: grid-template-columns .2s ease;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 22px;
    background: #fbfcf8;
    border-right: 1px solid var(--line);
    transition: padding .2s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    color: var(--ink);
    margin-bottom: 0;
    min-width: 0;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: .78rem;
}

.brand-copy {
    min-width: 0;
}

.sidebar-collapse-button {
    flex: 0 0 40px;
}

.nav-stack {
    display: grid;
    gap: 6px;
}

.nav-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: #3b3e42;
    font-weight: 600;
}

.nav-item svg,
.nav-group-toggle svg,
.btn svg,
.icon-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.nav-item:hover,
.nav-item.active {
    background: #e8eee8;
    color: var(--brand-strong);
}

.nav-group {
    display: grid;
    gap: 4px;
}

.nav-group-toggle {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: #3b3e42;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.nav-group-toggle:hover,
.nav-group.open > .nav-group-toggle {
    background: #edf2ed;
    color: var(--brand-strong);
}

.nav-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nav-group-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-group-chevron {
    margin-left: auto;
    transition: transform .18s ease;
}

.nav-group.open .nav-group-chevron {
    transform: rotate(180deg);
}

.nav-group-panel {
    display: none;
    gap: 4px;
    padding-left: 14px;
}

.nav-group.open .nav-group-panel {
    display: grid;
}

.nav-subitem {
    min-height: 38px;
    padding-left: 12px;
    font-size: .95rem;
    font-weight: 650;
}

.nav-subsection {
    margin: 8px 8px 2px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-section {
    margin: 18px 12px 4px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    body.sidebar-collapsed .app-shell {
        grid-template-columns: 84px 1fr;
    }

    body.sidebar-collapsed .sidebar {
        padding: 18px 12px;
    }

    body.sidebar-collapsed .sidebar-header {
        flex-direction: column;
        gap: 10px;
    }

    body.sidebar-collapsed .brand {
        justify-content: center;
    }

    body.sidebar-collapsed .brand-copy,
    body.sidebar-collapsed .nav-item span,
    body.sidebar-collapsed .nav-section,
    body.sidebar-collapsed .nav-subsection,
    body.sidebar-collapsed .nav-group-label span,
    body.sidebar-collapsed .nav-group-chevron {
        display: none;
    }

    body.sidebar-collapsed .nav-item,
    body.sidebar-collapsed .nav-group-toggle {
        justify-content: center;
        padding: 10px;
    }

    body.sidebar-collapsed .nav-group {
        gap: 6px;
    }

    body.sidebar-collapsed .nav-group-label {
        justify-content: center;
    }

    body.sidebar-collapsed .nav-group-panel {
        display: grid;
        gap: 6px;
        padding-left: 0;
    }
}

.content-area {
    min-width: 0;
}

.topbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 34px;
    background: rgba(245, 246, 242, .92);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.topbar h1 {
    margin: 2px 0 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

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

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-menu {
    flex: 0 0 auto;
}

.user-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--ink);
}

.user-button:hover {
    border-color: #c4cbc4;
    background: #fbfcf8;
}

.user-label {
    display: grid;
    text-align: left;
    line-height: 1.15;
}

.user-label small {
    max-width: 190px;
    overflow: hidden;
    color: var(--muted);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #dce9e2;
    color: var(--brand-strong);
    font-weight: 800;
    text-transform: uppercase;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 1.35rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    font-weight: 650;
}

.dropdown-item svg {
    width: 17px;
    height: 17px;
}

.page-body {
    padding: 28px 34px 44px;
}

.btn {
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    font-weight: 700;
}

.btn-sm {
    min-height: 31px;
    gap: 6px;
    padding: .25rem .5rem;
    font-size: .84rem;
}

.btn-sm svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-strong);
    --bs-btn-hover-border-color: var(--brand-strong);
}

.btn-outline-secondary {
    --bs-btn-color: #3b3e42;
    --bs-btn-border-color: #c7ccc8;
    --bs-btn-hover-bg: #eef1ed;
    --bs-btn-hover-border-color: #b8beb8;
    --bs-btn-hover-color: #1f2326;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    border-radius: var(--radius);
    display: inline-grid;
    place-items: center;
}

.theme-icon-dark {
    display: none;
}

html[data-theme="dark"] .theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-icon-dark {
    display: block;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.metric-card {
    min-height: 132px;
    display: grid;
    align-content: space-between;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: var(--radius);
    color: var(--ink);
}

.metric-card:hover {
    color: var(--ink);
    transform: translateY(-1px);
}

.metric-card span,
.metric-card small {
    color: var(--muted);
    font-weight: 700;
}

.metric-card strong {
    font-size: 2.25rem;
    line-height: 1;
}

.accent-orange {
    border-left-color: var(--amber);
}

.accent-blue {
    border-left-color: var(--blue);
}

.accent-red {
    border-left-color: #c64b4b;
}

.accent-gray {
    border-left-color: #6f7771;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.panel-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    margin: 0;
    font-size: 1rem;
}

.cash-flow-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px 4px;
}

.cash-flow-chip {
    min-height: 76px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    background: rgba(245, 246, 242, .58);
}

html[data-theme="dark"] .cash-flow-chip {
    background: rgba(17, 23, 20, .45);
}

.cash-flow-chip span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cash-flow-chip strong {
    font-size: 1.15rem;
    line-height: 1.15;
}

.cash-flow-chart-wrap {
    position: relative;
    height: 320px;
    padding: 12px 18px 18px;
}

.cash-flow-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
}

.table td,
.table th {
    padding: 9px 12px;
}

.table-sm td,
.table-sm th {
    padding: 7px 10px;
}

.dre-table .dre-section-row th {
    background: rgba(40, 107, 87, .09);
    color: var(--ink);
    font-size: .82rem;
}

.dre-table .dre-total-row th,
.dre-table .dre-total-row td,
.dre-table .dre-result-row th,
.dre-table .dre-result-row td {
    background: rgba(245, 246, 242, .72);
    color: var(--ink);
    font-weight: 800;
}

.dre-table .dre-result-row th,
.dre-table .dre-result-row td {
    border-top: 2px solid var(--line);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    background: #edf0ec;
    color: #4a504c;
}

.status-active,
.status-available {
    background: #e4f1eb;
    color: #1f6a4b;
}

.status-leased,
.status-draft {
    background: #fff0d8;
    color: #8a5a13;
}

.status-finished,
.status-sold {
    background: #e8eef3;
    color: #3a6280;
}

.status-cancelled,
.status-inactive {
    background: #f6e6e6;
    color: #974242;
}

.stack-list {
    display: grid;
}

.stack-item {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

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

.stack-item small {
    display: block;
    color: var(--muted);
}

.date-chip {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.empty-state {
    padding: 20px 18px;
    color: var(--muted);
}

.form-shell {
    max-width: 1120px;
}

.form-section {
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.form-section h2 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.form-label {
    font-weight: 700;
}

.form-control,
.form-select {
    border-radius: var(--radius);
    border-color: #cfd4d0;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(40, 107, 87, .14);
}

.money-input,
.decimal-input {
    text-align: right;
}

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

.detail-item {
    min-height: 72px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-item span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-item strong {
    display: block;
    margin-top: 5px;
}

.searchbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.searchbar .form-control {
    max-width: 420px;
}

.per-page-select {
    max-width: 150px;
}

.action-cell {
    width: 1%;
    white-space: nowrap;
}

.action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-buttons form {
    margin: 0;
}

.document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.document-row:last-child {
    border-bottom: 0;
}

.document-row small {
    display: block;
    color: var(--muted);
}

.document-preview-modal .modal-dialog {
    max-width: min(1120px, calc(100vw - 24px));
}

.document-preview-modal .modal-header,
.document-preview-modal .modal-footer {
    border-color: var(--line);
}

.document-preview-modal .modal-body {
    padding: 10px;
}

.document-preview-frame {
    width: 100%;
    min-height: 72vh;
    display: block;
    border: 0;
    border-radius: var(--radius);
    background: #f0f2ef;
}

.user-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.property-thumb {
    width: 52px;
    height: 40px;
    flex: 0 0 52px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: cover;
    background: #edf2ed;
}

.property-thumb-empty {
    display: inline-grid;
    place-items: center;
    color: var(--muted);
}

.property-thumb-empty svg {
    width: 18px;
    height: 18px;
}

.photo-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.property-photo-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.property-photo-select {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}

.property-photo-select .form-check-input {
    margin: 0;
}

.property-photo-frame {
    aspect-ratio: 4 / 3;
    background: #edf2ed;
}

.property-photo-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.property-photo-actions {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
}

.property-photo-actions form {
    margin: 0;
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f6f2 0%, #e6ece5 100%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 430px);
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(38, 45, 41, .12);
}

.auth-brand {
    margin-bottom: 28px;
}

.auth-heading {
    margin-bottom: 22px;
}

.auth-heading h1 {
    margin: 0 0 6px;
    font-size: 1.45rem;
}

.auth-heading p {
    margin: 0;
    color: var(--muted);
}

.profile-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcf8;
}

.profile-preview strong,
.profile-preview small {
    display: block;
}

.profile-preview small {
    color: var(--muted);
}

.company-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcf8;
}

.company-preview strong,
.company-preview small {
    display: block;
}

.company-preview small {
    color: var(--muted);
}

.company-logo-preview {
    width: 82px;
    height: 82px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 82px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
}

.company-logo-preview img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    background: #fff;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .topbar {
    background: var(--bg);
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .property-photo-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .user-button,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .profile-preview,
html[data-theme="dark"] .company-preview,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu {
    background: var(--panel);
    border-color: var(--line);
    color: var(--ink);
}

html[data-theme="dark"] .topbar {
    background: rgba(17, 23, 20, .92);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand:hover,
html[data-theme="dark"] .nav-item,
html[data-theme="dark"] .nav-group-toggle,
html[data-theme="dark"] .stack-item,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .user-button,
html[data-theme="dark"] .dropdown-item {
    color: var(--ink);
}

html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .nav-group-toggle:hover,
html[data-theme="dark"] .nav-group.open > .nav-group-toggle {
    background: #22322b;
    color: var(--brand-strong);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: #101613;
    border-color: var(--line);
    color: var(--ink);
}

html[data-theme="dark"] .form-control::placeholder {
    color: #7f8b84;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    background-color: #101613;
    color: var(--ink);
}

html[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-border-color: var(--line);
}

html[data-theme="dark"] .table th,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .brand small,
html[data-theme="dark"] .user-label small,
html[data-theme="dark"] .profile-preview small,
html[data-theme="dark"] .company-preview small,
html[data-theme="dark"] .document-row small,
html[data-theme="dark"] .stack-item small,
html[data-theme="dark"] .metric-card span,
html[data-theme="dark"] .metric-card small,
html[data-theme="dark"] .detail-item span {
    color: var(--muted) !important;
}

html[data-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-bg: #22322b;
    --bs-btn-hover-border-color: #35443d;
    --bs-btn-hover-color: var(--ink);
}

html[data-theme="dark"] .dropdown-item:hover {
    background: #22322b;
}

html[data-theme="dark"] .status-pill {
    background: #24332c;
    color: var(--ink);
}

html[data-theme="dark"] .dre-table .dre-section-row th {
    background: rgba(102, 188, 147, .12);
}

html[data-theme="dark"] .dre-table .dre-total-row th,
html[data-theme="dark"] .dre-table .dre-total-row td,
html[data-theme="dark"] .dre-table .dre-result-row th,
html[data-theme="dark"] .dre-table .dre-result-row td {
    background: rgba(17, 23, 20, .42);
    color: var(--ink);
}

html[data-theme="dark"] .property-thumb,
html[data-theme="dark"] .property-photo-frame,
html[data-theme="dark"] .document-preview-frame {
    background: #101613;
}

html[data-theme="dark"] .auth-page {
    background: linear-gradient(135deg, #101613 0%, #1b2822 100%);
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1100px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991.98px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 290px;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(22, 25, 28, .32);
        z-index: 40;
    }

    .topbar,
    .page-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 680px) {
    .topbar {
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .page-actions,
    .page-actions .btn,
    .searchbar .btn {
        width: 100%;
    }

    .user-menu,
    .user-button {
        width: 100%;
    }

    .user-button {
        justify-content: flex-start;
    }

    .metric-grid,
    .cash-flow-summary,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .cash-flow-chart-wrap {
        height: 280px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .searchbar {
        display: grid;
    }

    .searchbar .form-control {
        max-width: none;
    }

    .per-page-select {
        max-width: none;
    }

    .photo-upload-row {
        grid-template-columns: 1fr;
    }
}

@media print {
    .sidebar,
    .topbar,
    .print-hidden {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .content-area,
    .page-body {
        margin: 0;
        padding: 0;
    }

    body {
        background: #fff;
        color: #111;
    }

    .panel,
    .metric-card {
        break-inside: avoid;
        box-shadow: none;
    }
}
