/* TMVC mint theme. Bootstrap 5 overrides and responsive layout live here. */
:root {
    --mint: #16856b;
    --mint-dark: #106c55;
    --mint-soft: #e5f4ed;
    --ink: #243b35;
    --muted: #65756f;
    --canvas: #f6f8f7;
    --line: #e5ebe7;
    --sidebar-width: 248px;
    --bs-body-font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--canvas);
    --bs-primary: var(--mint);
    --bs-primary-rgb: 22, 133, 107;
    --bs-link-color: var(--mint-dark);
    --bs-link-hover-color: #094c3b;
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--muted);
}
body { font-size: .925rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #16856b; outline-offset: 4px; }
.ui-icon { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.btn { min-height: 44px; border-radius: 9px; font-size: .875rem; font-weight: 600; padding: .65rem 1.05rem; }
.btn-primary { --bs-btn-bg: var(--mint); --bs-btn-border-color: var(--mint); --bs-btn-hover-bg: var(--mint-dark); --bs-btn-hover-border-color: var(--mint-dark); --bs-btn-active-bg: #095740; --bs-btn-active-border-color: #095740; --bs-btn-disabled-bg: var(--mint); --bs-btn-disabled-border-color: var(--mint); --bs-btn-focus-shadow-rgb: 22,133,107; }
.btn .ui-icon { width: 18px; height: 18px; margin-right: 5px; }
.text-secondary { color: var(--muted) !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 2000; padding: 12px 18px; background: white; border: 2px solid var(--mint); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.admin-sidebar { --bs-offcanvas-width: 280px; background: #fff !important; border-right: 1px solid var(--line); }
.sidebar-brand { height: 88px; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--mint-dark); font-size: 1.4rem; font-weight: 750; letter-spacing: -.8px; }
.sidebar-body { display: flex !important; flex-direction: column; padding: 24px 17px 16px !important; }
.nav-caption { margin: 0 13px 18px; font-size: .65rem; font-weight: 700; letter-spacing: 1.3px; color: #83928b; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 48px; border: 0; border-radius: 9px; padding: 12px 14px; background: transparent; color: #56675f; font-size: .88rem; text-align: left; }
.sidebar-link:hover { background: #f2f7f4; color: var(--mint-dark); }
.sidebar-link.active { background: var(--mint-soft); color: var(--mint-dark); font-weight: 650; }
.nav-soon { margin-left: auto; font-size: .57rem; color: #697b72; background: #f4f6f4; border-radius: 4px; padding: 3px 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 42px; }
.sidebar-note { margin: 0 5px 25px; padding: 19px 15px; background: #f3f8f5; border: 1px solid #e9f1eb; border-radius: 12px; }
.sidebar-note > .ui-icon { display: block; color: var(--mint); margin-bottom: 13px; }
.sidebar-note strong { display: block; font-size: .82rem; }
.sidebar-note p { color: var(--muted); font-size: .74rem; line-height: 1.7; margin: 7px 0 0; }
.sidebar-account { display: flex; gap: 11px; align-items: center; border-top: 1px solid var(--line); padding: 21px 6px 0; margin-top: 14px; }
.sidebar-account > div { min-width: 0; }
.sidebar-account strong { display: block; font-size: .75rem; overflow-wrap: anywhere; }
.sidebar-account small { display: block; color: var(--muted); font-size: .66rem; margin-top: 3px; }
.avatar { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dfede6; color: #39725b; font-weight: 650; font-size: .75rem; flex-shrink: 0; }
.avatar-small { width: 33px; height: 33px; font-size: .63rem; }
.admin-workspace { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 88px; padding: 16px 36px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.breadcrumb { font-size: .78rem; --bs-breadcrumb-divider-color: #adbbb3; }
.breadcrumb-item:first-child { color: var(--mint-dark); }
.workspace-label { color: var(--muted); font-size: .73rem; display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; flex-shrink: 0; }
.profile-toggle { display: flex; align-items: center; gap: 10px; padding: 0; border: none; }
.profile-name { font-size: .76rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.dropdown-menu { --bs-dropdown-bg: white; --bs-dropdown-link-active-bg: var(--mint); border-radius: 12px; box-shadow: 0 12px 35px #243b3510; padding: 8px; max-width: calc(100vw - 24px); }
.dropdown-item, .dropdown-item-text { white-space: normal; overflow-wrap: anywhere; }
.dropdown-item { min-height: 44px; border-radius: 6px; display: flex; align-items: center; }
.dashboard-content { padding: 35px 36px 25px; max-width: 1600px; width: 100%; margin: 0 auto; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.eyebrow { font-size: .64rem; letter-spacing: 1.7px; font-weight: 700; color: var(--mint-dark); margin-bottom: 9px; }
h1 { font-size: clamp(1.55rem, 2.2vw, 2rem); font-weight: 680; letter-spacing: -.8px; margin-bottom: 9px; }
.page-heading .text-secondary { font-size: .84rem; }
.demo-notice { display: flex; align-items: center; gap: 9px; color: #61786c; font-size: .73rem; margin-bottom: 23px; }
.demo-notice .ui-icon { width: 16px; height: 16px; }
.demo-notice strong { font-weight: 600; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 22px 19px 16px; height: 100%; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; box-shadow: 0 3px 5px #243b3502; }
.metric-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--mint-soft); color: var(--mint); flex-shrink: 0; }
.metric-icon.amber { background: #fff4df; color: #a56b0e; }
.metric-card h2 { font-size: .73rem; color: var(--muted); font-weight: 500; margin: 0 0 6px; }
.metric-value { font-size: clamp(1.35rem, 1.9vw, 1.8rem); font-weight: 700; letter-spacing: -.6px; color: var(--mint-dark); line-height: 1.1; margin: 0; }
.metric-detail { flex-basis: 100%; color: #7a8981; font-size: .65rem; border-top: 1px solid #f0f3f1; padding-top: 12px; margin: 0; }
.dashboard-middle { margin-top: 0; margin-bottom: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.chart-panel, .shortcuts-panel { height: 100%; padding: 23px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 1rem; font-weight: 650; margin: 0; letter-spacing: -.2px; }
.panel-heading p { font-size: .73rem; color: var(--muted); margin: 7px 0 0; }
.period-label { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: .67rem; white-space: nowrap; color: var(--muted); }
.chart-legend { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .63rem; margin-bottom: 8px; }
.activity-chart { display: block; width: 100%; height: auto; min-height: 185px; }
.chart-grid { stroke: #edf1ee; stroke-width: 1; }
.chart-label, .chart-month { fill: #718078; font-size: 11px; }
.chart-month { text-anchor: middle; }
.chart-area { fill: #e8f4ee; }
.chart-line { stroke: var(--mint); stroke-width: 2.5; fill: none; stroke-linejoin: round; }
.chart-point { fill: var(--mint); stroke: #fff; stroke-width: 1.5; }
.shortcut { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 12px; margin-top: 12px; min-height: 66px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-align: left; font-size: .79rem; transition: background .15s, border-color .15s; }
.shortcut:hover { background: #f4faf6; border-color: #badbca; }
.shortcut > .ui-icon { margin-left: auto; width: 16px; color: #8c9a92; }
.shortcut small { display: block; color: #77867d; font-size: .62rem; margin-top: 4px; }
.shortcut-icon { padding: 8px; background: #eff7f2; color: var(--mint); border-radius: 8px; }
.activity-panel > .panel-heading { padding: 23px 23px 0; }
.soft-badge, .state-badge { display: inline-block; padding: 5px 9px; border-radius: 5px; font-size: .64rem; color: #247254; background: #eaf6ee; white-space: nowrap; }
.soft-badge { color: var(--muted); background: #f1f5f2; }
.state-pending { color: #936008; background: #fff4df; }
.activity-table { --bs-table-bg: white; font-size: .75rem; }
.activity-table th { background: #fafcfb; color: var(--muted); font-size: .65rem; font-weight: 500; padding: 11px 23px; border-bottom-color: var(--line); }
.activity-table td { padding: 15px 23px; border-color: #f0f3f1; }
.activity-table tr:last-child td { border-bottom: 0; }
.person { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.person strong { font-weight: 500; }
.activity-date { color: var(--muted); white-space: nowrap; font-size: .7rem; }
.activity-mobile { display: none; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #7b8b81; font-size: .65rem; padding: 10px 36px 24px; }
.footer-dot { padding: 0 5px; }
.modal-content { background: white; border-radius: 16px; border: none; }
.modal-header, .modal-footer { padding: 18px 24px; }
.modal-body { padding: 24px; color: var(--muted); line-height: 1.7; }
.icon-button { padding: 8px; color: var(--ink); }
.icon-button .ui-icon { margin: 0; width: 22px; height: 22px; }

/* Authentication pages share the same theme and never embed CSS in views. */
.auth-page { min-height: 100vh; padding: 32px; display: flex; align-items: center; justify-content: center; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; width: min(1080px, 100%); min-height: 680px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 70px #254d3610; overflow: hidden; }
.auth-story { padding: 45px; background: #eaf5ee; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-story h2 { max-width: 360px; font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 650; letter-spacing: -1.6px; line-height: 1.2; margin: 62px 0 20px; }
.auth-story > p { max-width: 310px; color: #5f7a6c; line-height: 1.8; font-size: .9rem; }
.auth-illustration { border: 1px solid #cfe6d8; border-radius: 13px; background: #ffffffb3; padding: 22px; margin: 28px 0; transform: rotate(-3deg); box-shadow: 0 10px 30px #2e5c4210; }
.illustration-title { display: flex; align-items: center; gap: 10px; color: var(--mint-dark); font-weight: 600; font-size: .83rem; }
.illustration-bars { height: 85px; display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; }
.illustration-bars span { flex: 1; border-radius: 5px 5px 0 0; background: #acd7be; height: 42%; }
.illustration-bars span:nth-child(2) { height: 66%; }
.illustration-bars span:nth-child(3) { height: 52%; }
.illustration-bars span:nth-child(4) { height: 80%; }
.illustration-bars span:nth-child(5) { height: 100%; background: var(--mint); }
.illustration-bars span:nth-child(6) { height: 72%; }
.auth-story-footer { margin-top: auto; font-size: .7rem; color: #668472; display: flex; align-items: center; gap: 7px; }
.auth-content { display: flex; justify-content: center; flex-direction: column; padding: 50px; min-width: 0; }
.auth-content h1 { font-size: 1.9rem; }
.auth-intro { color: var(--muted); line-height: 1.7; margin: 0 0 30px; font-size: .84rem; }
.auth-content .form-label { font-size: .79rem; font-weight: 600; margin-bottom: 8px; }
.form-control { min-height: 48px; background-color: #fff; border-radius: 9px; font-size: .88rem; border-color: #dfe7e1; padding: 11px 14px; }
.form-control:focus { border-color: #62ab8e; box-shadow: 0 0 0 .2rem #16856b1a; }
.form-control::placeholder { color: #94a198; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-toggle { position: absolute; right: 3px; top: 2px; padding: 10px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; min-height: 44px; }
.auth-link { font-size: .79rem; padding: 0; border: 0; background: none; color: var(--mint-dark); min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.auth-help { text-align: center; font-size: .7rem; color: var(--muted); line-height: 1.8; margin: 26px 0 0; }
.auth-mark { width: 48px; height: 48px; border-radius: 14px; color: var(--mint); background: var(--mint-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 23px; }
.auth-notice { font-size: .79rem; line-height: 1.6; margin-top: 18px; }
.form-text { font-size: .71rem; }
.error-content { padding: 80px 24px; text-align: center; }

/* Users module */
.users-page .page-heading { margin-bottom: 26px; }
.user-summary { margin-bottom: 24px; }
.user-metric { flex-wrap: nowrap; min-height: 132px; padding: 23px 20px; }
.user-metric .metric-icon { width: 52px; height: 52px; }
.user-metric .metric-icon .ui-icon { width: 26px; height: 26px; }
.user-metric > div:last-child { min-width: 0; }
.user-metric h2 { color: var(--ink); font-size: .79rem; font-weight: 650; }
.user-metric .metric-value { font-size: 1.65rem; }
.metric-caption { color: var(--muted); font-size: .68rem; margin: 6px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-date { color: var(--mint-dark); font-size: 1rem; font-weight: 700; line-height: 1.25; margin: 0; }
.metric-success { background: #e3f5e9; color: #248351; }
.metric-warm { background: #fff1d7; color: #a26b10; }
.metric-blue { background: #e9eefc; color: #4e68a9; }
.users-table-panel { padding: 0 24px 22px; overflow: visible; }
.users-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 0 19px; border-bottom: 1px solid var(--line); }
.users-panel-heading h2 { font-size: 1rem; font-weight: 650; margin: 0; }
.users-panel-heading p { color: var(--muted); font-size: .72rem; margin: 7px 0 0; }
.users-table-wrap { padding-top: 18px; }
.users-table-tools, .users-table-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.users-table-footer { margin: 18px 0 0; }
.dt-buttons { display: flex; gap: 7px; }
.dt-buttons .btn { min-height: 37px; padding: 7px 13px; border: 1px solid var(--line); color: #506159; background: #fff; }
.dataTables_filter label { display: flex; align-items: center; margin: 0; }
.dataTables_filter input { width: 220px; min-height: 40px; border: 1px solid #dfe7e1 !important; border-radius: 8px; padding: 8px 12px; margin: 0 !important; color: var(--ink); outline: none; }
.dataTables_filter input:focus { border-color: #62ab8e !important; box-shadow: 0 0 0 .2rem #16856b1a; }
.dataTables_wrapper .dataTables_processing { top: 115px; padding: 13px; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--mint-dark); box-shadow: 0 8px 25px #243b3512; }
#tableUsers { margin: 0 !important; border-collapse: collapse !important; }
#tableUsers thead th { color: #66776e; font-size: .68rem; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
#tableUsers tbody td { font-size: .75rem; padding: 14px; border-bottom: 1px solid #edf1ee; vertical-align: middle; }
#tableUsers tbody tr:hover { background: #f8fbf9; }
.user-cell { display: inline-flex; align-items: center; gap: 11px; min-width: 190px; }
.user-cell strong, .user-cell small { display: block; }
.user-cell strong { color: var(--ink); font-size: .75rem; font-weight: 600; margin-bottom: 4px; }
.user-cell small { color: var(--muted); font-size: .66rem; }
.role-badge { display: inline-block; padding: 5px 9px; border-radius: 6px; background: var(--mint-soft); color: var(--mint-dark); font-size: .66rem; font-weight: 600; }
.permission-copy { color: #5f7068; }
.state-inactive { background: #f2f3f2; color: #6e7772; }
.user-action { width: 38px; min-height: 38px; padding: 7px; border: 1px solid #dce9e2; background: #f3f9f5; color: var(--mint); }
.user-action:hover { background: var(--mint); color: #fff; }
.user-action .ui-icon { width: 18px; height: 18px; margin: 0; }
.dataTables_info { color: var(--muted) !important; font-size: .68rem; padding: 0 !important; }
.dataTables_paginate { padding: 0 !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 36px; margin: 0 2px; padding: 7px 10px !important; border: 1px solid transparent !important; border-radius: 7px; color: var(--muted) !important; background: transparent !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { color: var(--mint-dark) !important; border-color: #cfe2d8 !important; background: var(--mint-soft) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { color: #fff !important; border-color: var(--mint) !important; background: var(--mint) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .45; }
.user-modal-content .modal-header { align-items: flex-start; }
.user-modal-content .modal-title { color: var(--ink); font-size: 1.4rem; font-weight: 650; }
.user-modal-content .modal-body { padding-top: 20px; }
.user-modal-intro { color: var(--muted); font-size: .8rem; margin: 0 0 21px; }
.user-modal-content .form-label { font-size: .75rem; font-weight: 600; }
.form-select { min-height: 48px; border-color: #dfe7e1; border-radius: 9px; font-size: .88rem; }
.form-select:focus { border-color: #62ab8e; box-shadow: 0 0 0 .2rem #16856b1a; }
.user-access-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfa; }
.user-access-switch strong, .user-access-switch span { display: block; }
.user-access-switch strong { font-size: .78rem; margin-bottom: 4px; }
.user-access-switch span { color: var(--muted); font-size: .69rem; }
.form-switch .form-check-input { width: 2.5em; height: 1.35em; cursor: pointer; }
.form-check-input:checked { background-color: var(--mint); border-color: var(--mint); }
.user-form-message { margin: 18px 0 0; font-size: .76rem; }

@media (min-width: 768px) {
    .admin-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-width); z-index: 1030; display: flex; flex-direction: column; }
    .admin-sidebar .sidebar-body { overflow-y: auto; flex-grow: 1; }
    .admin-workspace { margin-left: var(--sidebar-width); }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    :root { --sidebar-width: 84px; }
    .sidebar-brand { padding: 20px; }
    .sidebar-brand .brand > span, .nav-caption, .sidebar-link > span, .sidebar-account, .sidebar-note { display: none; }
    .sidebar-body { padding: 18px 12px !important; }
    .sidebar-link { justify-content: center; padding: 13px; }
    .sidebar-brand .brand img { width: 40px; height: 40px; }
    .metric-card { flex-wrap: nowrap; }
    .metric-detail { display: none; }
    .dashboard-content { padding: 28px; }
    .topbar { padding: 16px 28px; }
    .shortcuts-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .shortcuts-panel .panel-heading { grid-column: 1 / -1; margin-bottom: 0; }
    .shortcut { margin: 0; padding: 10px; gap: 8px; }
}
@media (max-width: 991.98px) {
    .workspace-label, .profile-name { display: none; }
    .auth-page { padding: 24px; }
    .auth-layout { grid-template-columns: .85fr 1fr; min-height: 620px; }
    .auth-story { padding: 30px; }
    .auth-content { padding: 35px; }
    .auth-story h2 { font-size: 2rem; }
    .activity-table td, .activity-table th { padding-left: 14px; padding-right: 14px; }
    .user-metric { min-height: 114px; }
}
@media (max-width: 767.98px) {
    .topbar { padding: 12px 18px; min-height: 72px; }
    .dashboard-content { padding: 25px 18px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
    .page-heading .btn { font-size: .8rem; }
    .eyebrow { font-size: .58rem; }
    .demo-notice { align-items: flex-start; line-height: 1.6; font-size: .69rem; }
    .demo-notice .ui-icon { margin-top: 3px; }
    .metric-card { padding: 17px 14px; gap: 12px; }
    .metric-icon { width: 35px; height: 35px; border-radius: 10px; }
    .metric-icon .ui-icon { width: 20px; }
    .metric-card h2 { font-size: .7rem; }
    .metric-value { font-size: 1.4rem; }
    .metric-detail { display: none; }
    .chart-panel, .shortcuts-panel { padding: 18px; }
    .panel-heading { align-items: flex-start; }
    .panel-heading p { font-size: .68rem; line-height: 1.6; }
    .period-label { font-size: .59rem; padding: 6px; }
    .activity-chart { min-height: 0; }
    .activity-panel > .panel-heading { padding: 20px 18px 0; }
    .activity-panel .table-responsive { display: none; }
    .activity-mobile { display: block; }
    .activity-item { display: grid; grid-template-columns: 33px 1fr auto; align-items: start; gap: 10px; padding: 18px; border-top: 1px solid var(--line); }
    .activity-item h3 { font-size: .74rem; margin: 2px 0 5px; }
    .activity-item p { font-size: .71rem; margin-bottom: 6px; line-height: 1.6; }
    .activity-item small { font-size: .63rem; color: var(--muted); }
    .activity-item .state-badge { font-size: .56rem; padding: 4px 5px; }
    .workspace-footer { padding: 0 18px 22px; font-size: .61rem; }
    .workspace-footer > span:last-child { display: none; }
    .user-metric { display: block; min-height: 154px; }
    .user-metric .metric-icon { width: 38px; height: 38px; margin-bottom: 13px; }
    .user-metric .metric-icon .ui-icon { width: 20px; height: 20px; }
    .user-metric h2 { font-size: .7rem; }
    .user-metric .metric-value { font-size: 1.4rem; }
    .metric-date { font-size: .86rem; }
    .metric-caption { font-size: .61rem; white-space: normal; line-height: 1.45; }
    .users-table-panel { padding: 0 14px 18px; }
    .users-panel-heading { align-items: flex-start; }
    .users-panel-heading .soft-badge { display: none; }
    .users-table-tools, .users-table-footer { align-items: stretch; flex-direction: column; }
    .users-table-tools .dataTables_filter { order: -1; }
    .dataTables_filter input { width: 100%; }
    .dataTables_filter label { width: 100%; }
    .dt-buttons { overflow-x: auto; }
    .users-table-footer .dataTables_paginate { text-align: left; overflow-x: auto; white-space: nowrap; }
    .user-modal-content .modal-body, .user-modal-content .modal-header, .user-modal-content .modal-footer { padding-left: 18px; padding-right: 18px; }
    .auth-page { padding: 16px; }
    .auth-layout { display: block; min-height: 0; border-radius: 18px; max-width: 460px; }
    .auth-story { padding: 22px 26px; }
    .auth-story h2, .auth-story > p, .auth-illustration, .auth-story-footer { display: none; }
    .auth-content { padding: 30px 26px; }
    .auth-content h1 { font-size: 1.65rem; }
    .auth-mark { display: none; }
    .auth-intro { margin-bottom: 23px; }
}
@media (max-width: 374.98px) {
    .dashboard-content { padding-left: 12px; padding-right: 12px; }
    .metric-card { display: block; }
    .metric-icon { margin-bottom: 10px; }
    .activity-item { grid-template-columns: 28px 1fr; }
    .activity-item .state-badge { grid-column: 2; justify-self: start; }
    .auth-content { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
