@font-face {
    font-family: "BaarchSans";
    src: url("fonts/Noto_Sans_SC/static/NotoSansSC-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "BaarchSans";
    src: url("fonts/Noto_Sans_SC/static/NotoSansSC-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

:root {
    --bg: #f7f8f7;
    --surface: #ffffff;
    --surface-muted: #f4f8f6;
    --surface-elevated: #fcfdfc;
    --text: #1e272f;
    --text-muted: #5f6d76;
    --text-soft: #738189;
    --brand: #0f7f58;
    --brand-strong: #0b6647;
    --brand-soft: #d8efe4;
    --danger: #b9352b;
    --danger-soft: #fff3f1;
    --danger-border: #e6b8b3;
    --line: #d8e3df;
    --line-strong: #bfcec8;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 16px;
    --shadow: 0 14px 32px rgba(17, 34, 42, 0.08);
    --shadow-soft: 0 6px 16px rgba(17, 34, 42, 0.06);
    --container-max: 1240px;
    --control-height: 40px;
    --baarch-arch-green: rgb(18, 111, 66);
    --baarch-ba-black: #0f1214;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 127, 88, 0.07), transparent 38%),
        radial-gradient(circle at 100% 0%, rgba(15, 127, 88, 0.05), transparent 34%),
        var(--bg);
    color: var(--text);
    font-family: "BaarchSans", "Source Sans 3", "Trebuchet MS", sans-serif;
    line-height: 1.5;
    font-size: 15px;
}

h1,
h2,
h3 {
    margin: 0 0 8px;
    line-height: 1.24;
    letter-spacing: 0.01em;
    color: #0f3b2d;
    font-weight: 600;
}

h1 {
    font-size: clamp(1.75rem, 2.1vw, 2rem);
}

h2 {
    font-size: clamp(1.125rem, 1.2vw, 1.28rem);
}

h3 {
    font-size: 1.02rem;
    color: #2a5648;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.brand-logo {
    width: clamp(140px, 15vw, 200px);
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    font-size: 1.38rem;
    letter-spacing: 0.01em;
}

.brand-wordmark .ba {
    font-weight: 800;
    color: var(--baarch-ba-black);
}

.brand-wordmark .arch {
    font-weight: 700;
    color: var(--baarch-arch-green);
}

.baarch-text {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    letter-spacing: 0.01em;
}

.baarch-text .ba {
    font-weight: 800;
    color: var(--baarch-ba-black);
}

.baarch-text .arch {
    font-weight: 700;
    color: var(--baarch-arch-green);
}

.site-footer {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #d8e3df;
    text-align: center;
}

.site-footer.compact {
    margin-top: 14px;
    padding-top: 0;
    border-top: 0;
}

.site-footer .copyright-line {
    margin: 0;
    font-size: 12.5px;
    color: #667681;
}

.site-footer .legal-line {
    margin: 4px 0 0;
    font-size: 11.5px;
    color: #7b8a92;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-subline {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-soft);
}

p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

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

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

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
input[type="search"],
select,
textarea {
    min-height: var(--control-height);
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
    min-height: 96px;
    padding: 10px 12px;
    line-height: 1.45;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 127, 88, 0.16);
}

:focus-visible {
    outline: 3px solid rgba(15, 127, 88, 0.32);
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary,
.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 3px 9px rgba(15, 127, 88, 0.2);
}

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

.btn.outline,
.btn.secondary,
.btn-outline {
    background: #fff;
    color: #19483b;
    border-color: var(--line-strong);
}

.btn.outline:hover,
.btn.secondary:hover,
.btn-outline:hover {
    background: var(--surface-muted);
    border-color: #95b8ab;
}

.btn.danger,
.btn-danger {
    background: var(--danger-soft);
    color: #9d2f26;
    border-color: var(--danger-border);
    box-shadow: none;
}

.btn.danger:hover,
.btn-danger:hover {
    background: #fee8e4;
    border-color: #dca6a0;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid #d5dfdb;
    background: #fff;
    color: #39534c;
    font-size: 12px;
    font-weight: 600;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.inline-help {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--text-soft);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.table-toolbar-left {
    flex: 1 1 320px;
    min-width: min(360px, 100%);
}

.table-toolbar input[type="search"] {
    width: 100%;
    max-width: 420px;
    min-height: var(--control-height);
    padding: 0 12px;
    background: #fff;
}

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

.table-status {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.4;
}

.inline-form {
    display: inline;
    margin: 0;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: #21473c;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.action-link:hover {
    background: var(--surface-muted);
    border-color: #98bbb0;
}

.action-link.danger {
    color: #9d2f26;
    border-color: var(--danger-border);
    background: var(--danger-soft);
}

.action-link.danger:hover {
    background: #fee8e4;
}

.btn:disabled,
button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.bulk-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 10px 11px;
    text-align: left;
    border-bottom: 1px solid #e7eeeb;
    vertical-align: top;
    font-size: 14px;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f2f5f3;
    color: #4a5f58;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 600;
}

tbody tr:nth-child(even) td {
    background: #fcfdfc;
}

tbody tr:hover td {
    background: #f4f9f7;
}

tr:last-child td {
    border-bottom: none;
}

.tenant-select-page {
    padding: 20px 14px 30px;
}

.tenant-select-page .wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.tenant-select-page .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 6px;
    padding: 16px 18px;
    border: 1px solid #d6e4de;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 127, 88, 0.08) 0%, rgba(255, 255, 255, 0.96) 62%);
    box-shadow: var(--shadow-soft);
}

.tenant-select-page .header-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 860px;
}

.tenant-select-page .header .brand-logo {
    width: min(208px, 42vw);
    height: auto;
}

.tenant-select-page h1 {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.12;
}

.tenant-select-page .lead {
    margin: 0;
    max-width: 900px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-muted);
}

.tenant-select-page .top-page-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tenant-select-page .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.tenant-select-page .card {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 15px;
    background: #fff;
    color: #143d32;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.tenant-select-page .card:hover {
    transform: translateY(-1px);
    border-color: #96b9ad;
    box-shadow: 0 10px 18px rgba(17, 34, 42, 0.1);
}

.tenant-select-page .card span {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--text-soft);
    font-weight: 500;
    line-height: 1.3;
}

.tenant-select-page .logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    color: #19483b;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.tenant-select-page .logout:hover {
    background: var(--surface-muted);
    border-color: #95b8ab;
}

.admin-page {
    padding: 18px 14px 28px;
}

.admin-page .container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.admin-page .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid #d6e4de;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 127, 88, 0.08) 0%, rgba(255, 255, 255, 0.96) 62%);
    box-shadow: var(--shadow-soft);
}

.admin-page .top-bar-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 860px;
}

.admin-page .top-bar .brand-logo {
    width: min(198px, 34vw);
    height: auto;
}

.admin-page .top-bar h1 {
    margin: 0;
    font-size: clamp(2rem, 3.1vw, 2.7rem);
    line-height: 1.12;
}

.admin-page .top-bar p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

.admin-page .top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    align-self: flex-start;
    padding-top: 2px;
}

.admin-page .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 16px 0 20px;
}

.admin-page .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 15px;
    box-shadow: var(--shadow-soft);
}

.admin-page .card h3 {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #49675d;
}

.admin-page .card p {
    margin: 5px 0 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 600;
    color: #15242a;
}

.admin-page h2 {
    margin: 22px 0 10px;
}

.admin-page .export-pack-hero {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(240px, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid #cde3d9;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 127, 88, 0.08) 0%, rgba(255, 255, 255, 0.98) 72%);
}

.admin-page .export-pack-btn {
    min-height: 44px;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.admin-page .export-pack-caption {
    font-size: 12.5px;
    color: #355c50;
    line-height: 1.35;
}

.admin-page .export-quick-wrap {
    margin-bottom: 8px;
}

.admin-page .export-quick-title {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #55766b;
}

.admin-page .export-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.admin-page .export-quick .btn {
    width: 100%;
    justify-content: center;
}

.admin-page .export-legacy-btn {
    color: #5a6c65;
}

.admin-page .export-contract-note {
    margin: 0 0 12px;
    padding: 8px 10px;
    border: 1px solid #d6e7df;
    border-radius: 10px;
    background: #f4faf7;
    font-size: 12.5px;
    color: #355c50;
}

.admin-page .export-panel {
    padding: 16px;
}

.admin-page .filter-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.admin-page .filter-field {
    grid-column: span 4;
    min-width: 0;
    background: #fcfdfc;
    border: 1px solid #d9e5e0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.admin-page .filter-mode-card {
    background: linear-gradient(135deg, rgba(15, 127, 88, 0.06) 0%, rgba(255, 255, 255, 0.98) 70%);
    border-color: #cde3d9;
}

.admin-page .filter-field.is-mode-hidden {
    display: none;
}

.admin-page .filter-field-wide {
    grid-column: span 8;
}

.admin-page .filter-actions {
    grid-column: 1 / -1;
    background: transparent;
    border: 0;
    padding: 0;
}

.admin-page .filter-field-xlarge {
    grid-column: span 6;
}

.admin-page .filter-field-large {
    grid-column: span 6;
}

.admin-page .filter-field-medium {
    grid-column: span 4;
}

.admin-page .filter-field-small {
    grid-column: span 4;
}

.admin-page .filter-grid > div {
    min-width: 0;
}

.admin-page .filter-grid label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c4f45;
    margin: 0 0 5px;
}

.admin-page .filter-grid .btn {
    width: 100%;
}

.admin-page .multi-filter {
    display: grid;
    gap: 6px;
}

.admin-page .multi-filter-search {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
}

.admin-page .multi-filter-meta {
    font-size: 12px;
    color: #5e6f78;
    line-height: 1.3;
}

.admin-page .field-hint {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-soft);
}

.admin-page .asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}

.admin-page .asset-grid label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #30454d;
    line-height: 1.35;
}

.admin-page .asset-grid input[type="checkbox"] {
    margin-top: 2px;
}

.admin-page .category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-page .category-grid label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #30454d;
    line-height: 1.35;
}

.admin-page .category-grid input[type="checkbox"] {
    margin-top: 2px;
}

.admin-page .filter-grid input[type="text"],
.admin-page .filter-grid select {
    width: 100%;
}

.admin-page .filter-multiselect {
    min-height: 136px;
    max-height: 184px;
    padding: 6px 8px;
    line-height: 1.25;
}

.admin-page .filter-multiselect option {
    padding: 4px 6px;
}

.admin-page .filter-actions-wide {
    grid-column: 1 / -1;
}

.admin-page .filter-submit-row {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(170px, 220px) minmax(280px, 1fr);
    align-items: stretch;
    gap: 10px;
}

.admin-page .filter-actions-wide .btn {
    width: 100%;
    min-width: 0;
}

.admin-page .filter-recap {
    width: 100%;
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid #d2ded9;
    border-radius: 10px;
    background: #f7fbf9;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.admin-page .filter-recap.is-empty {
    color: var(--text-soft);
    font-size: 12px;
}

.admin-page .recap-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #c8dbd3;
    background: #ffffff;
    color: #24483d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.admin-page .auditor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 4px;
}

.admin-page .auditor-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    color: #2b3f48;
    line-height: 1.4;
}

.admin-page .table-wrap {
    margin-top: 8px;
}

.admin-page table {
    min-width: 920px;
}

.admin-page .actions {
    min-width: 320px;
}

.admin-page .bulk-actions .btn {
    min-width: 146px;
}

.admin-page .bulk-actions {
    margin-top: 0;
    padding: 16px 18px;
    border-top: 1px solid #e7eeeb;
    background: #fff;
    gap: 14px;
}

.users-page {
    padding: 18px 14px 28px;
}

.users-page .container {
    max-width: var(--container-max);
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.users-page h1 {
    margin-top: 0;
    margin-bottom: 8px;
}

.users-page .users-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid #d6e4de;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 127, 88, 0.08) 0%, rgba(255, 255, 255, 0.96) 62%);
    box-shadow: var(--shadow-soft);
}

.users-page .users-title .brand-logo {
    width: min(198px, 36vw);
    height: auto;
}

.users-page .users-title h1 {
    margin: 0;
    font-size: clamp(2rem, 3.1vw, 2.7rem);
    line-height: 1.12;
}

.users-page .users-title p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

.users-page > .container > p {
    margin-bottom: 20px;
    max-width: 980px;
}

.users-page h2 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.users-page label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2b4e44;
}

.users-page .messages {
    background: #eaf7ef;
    border: 1px solid #b8dfc8;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #1f5e2e;
    margin-bottom: 12px;
}

.users-page .errors {
    background: #fff1ef;
    border: 1px solid #f1c3be;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #962a2a;
    margin-bottom: 12px;
}

.users-page .card {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #dbe6e1;
    border-radius: var(--radius);
    background: #fbfdfc;
    box-shadow: var(--shadow-soft);
}

.users-page .card h3 {
    margin-bottom: 8px;
}

.users-page .card p:last-child {
    margin-bottom: 0;
}

.users-page .create-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(160px, 200px);
    gap: 12px 16px;
    align-items: end;
    margin-bottom: 26px;
}

.users-page .create-form > div {
    min-width: 0;
}

.users-page .create-form > div:last-child {
    display: flex;
    align-items: flex-end;
}

.users-page .create-form .btn {
    width: 100%;
}

.users-page .create-form textarea {
    min-height: 150px;
    resize: vertical;
}

.users-page .table-wrap {
    margin-top: 12px;
}

.users-page table {
    min-width: 920px;
}

.users-page tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.users-page .pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid #cad8d2;
}

.users-page .pill.admin {
    background: #d8efe4;
    color: #19483b;
    border-color: #abd2c1;
}

.users-page .pill.inactive {
    background: #eceff2;
    color: #344750;
    border-color: #d4dde4;
}

.users-page .status-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #19282f;
    margin: 0;
}

.users-page .status-label input[type="checkbox"] {
    margin: 0;
}

.users-page .date-meta {
    display: block;
    margin-top: 6px;
    color: #5f727c;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.users-page .row-form-proxy {
    display: none;
}

.users-page .role-input {
    width: 100%;
    min-width: 0;
}

.users-page .pw-input {
    width: 100%;
    min-width: 0;
}

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

.users-page .table-actions .action-link {
    min-width: 76px;
}

.users-page .footer-actions {
    margin-top: 18px;
}

.users-page .table-toolbar {
    margin: 16px 0 14px;
}

.users-page .table-toolbar-left {
    max-width: 560px;
}

@media (max-width: 1180px) {
    .users-page .create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        background: var(--bg);
    }

    .tenant-select-page,
    .admin-page,
    .users-page {
        padding: 12px 10px 20px;
    }

    .tenant-select-page .wrap,
    .users-page .container {
        padding: 16px 14px;
        border-radius: var(--radius);
    }

    .admin-page .container {
        padding: 0;
    }

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

    .admin-page .export-pack-hero {
        grid-template-columns: 1fr;
    }

    .tenant-select-page .header,
    .admin-page .top-bar,
    .users-page .users-title {
        padding: 12px;
        border-radius: var(--radius);
    }

    .tenant-select-page .header .brand-logo,
    .admin-page .top-bar .brand-logo,
    .users-page .users-title .brand-logo {
        width: min(176px, 56vw);
    }

    .tenant-select-page h1,
    .admin-page .top-bar h1,
    .users-page .users-title h1 {
        font-size: clamp(1.62rem, 7vw, 2.05rem);
    }

    .brand-logo {
        width: clamp(116px, 34vw, 168px);
        height: auto;
    }

    .brand-wordmark {
        font-size: 1.22rem;
    }

    .admin-page .filter-field,
    .admin-page .filter-field-wide,
    .admin-page .filter-field-xlarge,
    .admin-page .filter-field-large,
    .admin-page .filter-field-medium,
    .admin-page .filter-field-small,
    .admin-page .filter-actions {
        grid-column: 1 / -1;
    }

    .admin-page .category-grid {
        grid-template-columns: 1fr;
    }

    .admin-page .filter-multiselect {
        min-height: 112px;
    }

    .admin-page .filter-actions-wide .btn {
        width: 100%;
        min-width: 0;
    }

    .admin-page .filter-submit-row {
        grid-template-columns: 1fr;
    }

    .admin-page .filter-recap {
        width: 100%;
    }

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

    .table-toolbar input[type="search"] {
        max-width: none;
    }

    .users-page .create-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .users-page .create-form > div:last-child {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0;
        max-width: none;
    }

    .users-page .table-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 560px) {
    .admin-page .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1140px) and (min-width: 769px) {
    .admin-page .filter-field,
    .admin-page .filter-field-large,
    .admin-page .filter-field-medium,
    .admin-page .filter-field-small,
    .admin-page .filter-actions {
        grid-column: span 6;
    }

    .admin-page .filter-field-wide {
        grid-column: 1 / -1;
    }

    .admin-page .filter-field-xlarge {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1360px) and (min-width: 1141px) {
    .admin-page .filter-field-small {
        grid-column: span 4;
    }

    .admin-page .filter-field-large {
        grid-column: span 6;
    }
}
