:root  {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color-scheme: light;
    --page: #f3f6fa;
    --surface: #ffffff;
    --subtle: #f5f8fb;
    --text: #17293d;
    --muted: #52677b;
    --border: #d7e0e9;
    --input-border: #a9bacb;
    --accent: #0b647b;
    --button: #0d7187;
    --button-text: #ffffff;
    --tint: #e8f2f5;
    --tint-text: #285d6e;
    --positive-text: #187044;
    --positive-surface: #e1f3e8;
    --positive-border: #9bc9ad;
    --warning-text: #805000;
    --warning-surface: #fff2c6;
    --warning-border: #ddc56d;
    --error-text: #b42637;
    --error-surface: #fde5e8;
    --error-border: #e0a2aa;
    --nav-hover: #e9f1f6;
    --focus: #168299;
    --brand-filter: none;
    --sidebar-width:216px;
    --header-height:64px;
    --shadow:0 2px 10px rgba(15,35,55,.035);
    color: var(--text);
    background: var(--page);
}
@media (prefers-color-scheme: dark)  {
    :root:not([data-theme="light"])  {
        color-scheme: dark;
        --page: #101820;
        --surface: #19242f;
        --subtle: #1e2c39;
        --text: #e5edf5;
        --muted: #acbfd0;
        --border: #354657;
        --input-border: #60778b;
        --accent: #8cd8e8;
        --button: #87d3e3;
        --button-text: #102b35;
        --tint: #223e4a;
        --tint-text: #b9e6f0;
        --positive-text: #9be6b8;
        --positive-surface: #173d2b;
        --positive-border: #3e7456;
        --warning-text: #ffdc7c;
        --warning-surface: #493817;
        --warning-border: #7f672e;
        --error-text: #ffafb8;
        --error-surface: #4c2029;
        --error-border: #7f4450;
        --nav-hover: #263b4c;
        --focus: #8cd8e8;
        --brand-filter: url(#brand-dark);
    }
}
:root[data-theme="dark"]  {
    color-scheme: dark;
    --page: #101820;
    --surface: #19242f;
    --subtle: #1e2c39;
    --text: #e5edf5;
    --muted: #acbfd0;
    --border: #354657;
    --input-border: #60778b;
    --accent: #8cd8e8;
    --button: #87d3e3;
    --button-text: #102b35;
    --tint: #223e4a;
    --tint-text: #b9e6f0;
    --positive-text: #9be6b8;
    --positive-surface: #173d2b;
    --positive-border: #3e7456;
    --warning-text: #ffdc7c;
    --warning-surface: #493817;
    --warning-border: #7f672e;
    --error-text: #ffafb8;
    --error-surface: #4c2029;
    --error-border: #7f4450;
    --nav-hover: #263b4c;
    --focus: #8cd8e8;
    --brand-filter: url(#brand-dark);
}
* {
    box-sizing:border-box
}
body {
    margin:0;
    min-height:100vh;
    line-height:1.45
}
button,input,select,textarea {
    font-family:inherit
}
a {
    color:var(--accent);
    text-decoration:none
}
a:hover {
    text-decoration:underline
}
button,a,input,select,textarea,summary {
    -webkit-tap-highlight-color:transparent
}
svg {
    display:inline-block;
    width:18px;
    height:18px;
    vertical-align:middle;
    flex-shrink:0
}
:focus-visible {
    outline:2px solid var(--focus);
    outline-offset:3px
}
[hidden] {
    display:none!important
}
.skip-link {
    position:fixed;
    top:-60px;
    left:16px;
    z-index:100;
    background:var(--surface);
    padding:10px
}
.skip-link:focus {
    top:8px
}
:root[data-sidebar="collapsed"] {
    --sidebar-width:68px
}
.sidebar {
    position:fixed;
    inset:0 auto 0 0;
    width:var(--sidebar-width);
    display:flex;
    flex-direction:column;
    background:var(--surface);
    border-right:1px solid var(--border);
    z-index:40;
    transition:width .16s ease
}
.brand {
    height:98px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    border-bottom:1px solid var(--border)
}
.brand-plate {
    display:block;
    position:relative;
    overflow:hidden;
    width:160px;
    height:80px;
    flex-shrink:0;
    background:transparent;
    border-radius:7px
}
.brand-image {
    filter:var(--brand-filter);
    position:absolute;
    width:193px;
    height:auto;
    max-width:none;
    left:-22px;
    top:-24px
}
.sidebar-nav {
    padding:6px 10px;
    overflow-y:auto;
    scrollbar-width:thin;
    flex:1
}
.nav-link {
    display:flex;
    gap:11px;
    align-items:center;
    min-height:26px;
    padding:3px 10px;
    border-radius:6px;
    font-size:13px;
    font-weight:400;
    color:var(--muted);
    white-space:nowrap;
    margin:1px 0
}
.nav-link svg,.theme-toggle svg {
    width:17px;
    height:17px
}
.nav-link:hover {
    background:var(--nav-hover);
    color:var(--text);
    text-decoration:none
}
.nav-link.is-active {
    background:var(--tint);
    color:var(--accent);
    font-weight:600
}
.nav-group-title {
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    border:0;
    border-radius:0;
    min-height:0;
    background:transparent;
    font:inherit;
    font-size:10px;
    font-weight:600;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--muted);
    padding:7px 10px 3px;
    text-align:left;
    cursor:pointer
}
.nav-group-title:hover {
    color:var(--text);
    filter:none
}
.nav-group-title svg {
    width:13px;
    height:13px;
    transition:transform .16s ease
}
.nav-group.is-collapsed .nav-group-title svg {
    transform:rotate(-90deg)
}
.nav-group.is-collapsed .nav-group-links {
    display:none
}
.nav-label {
    overflow:hidden;
    text-overflow:ellipsis
}
.workspace {
    margin-left:var(--sidebar-width);
    width:calc(100% - var(--sidebar-width));
    min-height:100vh;
    transition:margin-left .16s ease,width .16s ease
}
.topbar {
    height:var(--header-height);
    position:sticky;
    top:0;
    z-index:30;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:0 24px;
    border-bottom:1px solid var(--border);
    background:var(--surface)
}
.topbar-heading {
    display:flex;
    align-items:center;
    gap:13px;
    min-width:0
}
.topbar h1 {
    margin:0;
    font-size:18px;
    font-weight:600;
    line-height:1.25;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}
.topbar-actions {
    display:flex;
    align-items:center;
    gap:17px;
    flex-shrink:0
}
.topbar-separator {
    height:25px;
    border-left:1px solid var(--border)
}
.page-content {
    padding:20px;
    min-width:0
}
h1 {
    font-size:24px;
    line-height:1.25
}
h2 {
    font-size:14px;
    font-weight:600;
    line-height:1.3;
    margin:0 0 12px
}
h3 {
    font-size:13px;
    font-weight:500;
    margin:16px 0 10px
}
p {
    line-height:1.6
}
.muted,.profile-dropdown svg,dt {
    color:var(--muted)
}
button,.button,details:where(:not(.profile-menu,.record-health,.credit-history-gaps))>summary {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:32px;
    border:1px solid transparent;
    border-radius:6px;
    padding:5px 10px;
    font-size:13px;
    font-weight:400;
    line-height:1.4;
    cursor:pointer;
    background:var(--button);
    color:var(--button-text);
    text-decoration:none
}
button:hover,.button:hover,details:where(:not(.profile-menu,.record-health,.credit-history-gaps))>summary:hover {
    filter:brightness(.96);
    text-decoration:none
}
button:disabled {
    opacity:.55;
    cursor:default
}
.button svg,button svg {
    width:16px;
    height:16px
}
.secondary,details:where(:not(.profile-menu,.record-health,.credit-history-gaps))>summary {
    color:var(--text);
    border-color:var(--input-border);
    background:var(--surface)
}
.icon-button {
    width:32px;
    min-height:32px;
    padding:5px;
    background:transparent;
    color:var(--muted);
    border:1px solid transparent;
    border-radius:6px
}
.icon-button:hover,input[type="file"]::file-selector-button:hover {
    background:var(--nav-hover)
}
.icon-button svg {
    width:21px;
    height:21px
}
.record-state-cell .icon-button {
    width:32px;
    height:32px;
    border-radius:50%;
    border-color:var(--input-border)
}
.theme-toggle {
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:32px;
    padding:3px;
    background:transparent;
    color:var(--muted);
    border:0
}

.theme-track {
    position:relative;
    display:block;
    width:34px;
    height:20px;
    border:1px solid var(--accent);
    border-radius:20px;
    background:var(--accent)
}
.theme-thumb {
    position:absolute;
    width:16px;
    height:16px;
    left:1px;
    top:1px;
    border-radius:50%;
    background:#fff;
    transition:transform .16s ease
}
.theme-toggle[aria-pressed="true"] .theme-thumb {
    transform:translateX(14px)
}
.theme-toggle[aria-pressed="true"] svg:last-child,.theme-toggle[aria-pressed="false"] svg:first-child {
    color:var(--accent)
}
.profile-menu {
    position:relative
}
.profile-menu>summary {
    display:flex;
    align-items:center;
    gap:9px;
    cursor:pointer;
    list-style:none;
    font-size:13px;
    min-height:36px
}
.profile-menu>summary::-webkit-details-marker {
    display:none
}
.profile-menu>summary>svg {
    width:14px;
    height:14px;
    color:var(--muted)
}
.user-avatar {
    display:grid;
    place-items:center;
    width:32px;
    height:32px;
    border-radius:50%;
    color:var(--accent);
    background:var(--tint);
    font-weight:600
}
.user-name {
    max-width:190px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}
.profile-dropdown {
    position:absolute;
    right:0;
    top:calc(100% + 12px);
    width:260px;
    padding:6px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--surface);
    box-shadow:0 12px 40px rgba(10,25,45,.12)
}
.profile-identity {
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:10px 12px 12px;
    border-bottom:1px solid var(--border);
    margin-bottom:5px;
    overflow-wrap:anywhere
}
.profile-identity strong {
    font-size:13px;
    font-weight:600
}
.profile-identity span {
    font-size:12px;
    color:var(--muted)
}
.profile-dropdown>a,.profile-dropdown button {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    width:100%;
    gap:10px;
    padding:9px 12px;
    font-size:13px;
    font-weight:400;
    color:var(--text);
    background:transparent;
    border-radius:5px
}
.profile-dropdown>a:hover,.profile-dropdown button:hover {
    background:var(--nav-hover);
    text-decoration:none
}
.profile-dropdown form,.toolbar h2 {
    margin:0
}

.panel {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:8px;
    padding:16px;
    margin-bottom:16px;
    box-shadow:var(--shadow)
}
.panel>h2:first-child,.panel>.toolbar:first-child {
    margin:-16px -16px 16px;
    padding:10px 14px;
    min-height:38px;
    border-bottom:1px solid var(--border);
    border-radius:8px 8px 0 0;
    background:var(--subtle)
}
.panel>.toolbar:first-child {
    align-items:center
}
.panel>.toolbar:first-child h2,.panel>.toolbar:first-child p {
    margin:0
}
.panel>.toolbar:first-child .form-actions {
    margin:0 0 0 auto
}
.cards {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px
}
.narrow {
    max-width:440px;
    margin:36px auto
}
.auth-page .workspace {
    margin-left:0;
    width:100%
}
.auth-page .topbar {
    height:90px
}
.auth-brand .brand-plate {
    height:78px
}
.auth-title {
    display:none
}
.auth-page .narrow {
    margin-top:64px;
    padding:26px
}
.auth-page .page-content {
    max-width:1040px;
    margin:auto
}
.auth-page .brand-plate {
    border:0
}
.auth-page .topbar-heading {
    flex:1
}
label {
    display:block;
    font-size:13px;
    font-weight:400;
    margin-bottom:16px
}
fieldset {
    min-width:0;
    border:1px solid var(--border);
    border-radius:7px;
    margin:0 0 14px;
    padding:14px
}
legend {
    padding:0 6px;
    color:var(--text);
    font-size:13px;
    font-weight:600
}
legend label,.toolbar label {
    margin-bottom:0
}
input,select,textarea {
    display:block;
    width:100%;
    min-height:32px;
    border:1px solid var(--input-border);
    border-radius:5px;
    padding:5px 10px;
    margin-top:6px;
    font:inherit;
    font-size:13px;
    color:var(--text);
    background:var(--surface)
}
textarea {
    min-height:90px;
    resize:vertical
}
input[readonly],select:disabled {
    background:var(--subtle);
    color:var(--muted);
    opacity:1
}
input[type="checkbox"],input[type="radio"] {
    min-height:0;
    width:auto;
    accent-color:var(--button)
}
.inline-check {
    display:inline;
    width:auto;
    margin-right:8px
}
.form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 16px
}
.form-grid-span-all {
    grid-column:1 / -1
}
.toolbar {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
    gap:10px
}
.toolbar .form-actions {
    margin:0 0 0 auto
}
.toolbar>.tabs {
    flex:1 1 auto;
    margin-bottom:0
}

.toolbar input {
    margin-top:4px
}
.table-wrap {
    padding:0;
    overflow:auto;
    margin-bottom:18px
}
.table-wrap.table-scroll-y {
    max-height:var(--table-viewport-height);
    overflow:auto;
    scrollbar-gutter:stable
}
.table-scroll-y>table>thead>tr>th {
    position:sticky;
    top:var(--table-head-top,0);
    z-index:3;
    background:var(--subtle);
    box-shadow:inset 0 -1px var(--border)
}
.table-scroll-x .table-scroll-key {
    position:sticky;
    left:0;
    z-index:2;
    background:var(--surface);
    box-shadow:1px 0 var(--border)
}
.table-scroll-x thead .table-scroll-key {
    z-index:4;
    background:var(--subtle)
}
.table-scroll-y>.portfolio-report-table>thead>tr>th:nth-child(-n+2) {z-index:5}
.table-scroll-x tbody tr:hover .table-scroll-key {
    background:var(--subtle)
}
@media print {
    .table-wrap.table-scroll-y {max-height:none;overflow:visible}
    .table-scroll-y>table>thead>tr>th,.table-scroll-x .table-scroll-key {position:static;box-shadow:none}
}
table {
    border-collapse:collapse;
    width:100%;
    text-align:left;
    font-size:13px
}
th {
    font-size:12px;
    font-weight:500;
    background:var(--subtle);
    color:var(--muted)
}
tbody th {
    color:var(--text);
    font-weight:500
}
.table-sort {
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:inherit;
    font:inherit;
    white-space:nowrap
}
.table-sort::after {
    content:"↕";
    color:var(--muted);
    font-size:12px;
    font-weight:400;
    line-height:1;
    opacity:.65
}
th[aria-sort="ascending"] .table-sort::after {
    content:"↑";
    color:var(--accent);
    opacity:1
}
th[aria-sort="descending"] .table-sort::after {
    content:"↓";
    color:var(--accent);
    opacity:1
}
td,th {
    padding:9px 12px;
    border-bottom:1px solid var(--border);
    vertical-align:middle
}
tbody tr:last-child td {
    border-bottom:0
}
tbody tr:hover {
    background:var(--subtle)
}
td {
    font-variant-numeric:tabular-nums
}
dl {
    display:grid;
    grid-template-columns:minmax(150px,220px) minmax(0,1fr);
    gap:12px;
    font-size:13px
}

dd {
    margin:0;
    overflow-wrap:anywhere
}
.empty {
    text-align:center;
    color:var(--muted);
    padding:38px 20px
}
.notice {
    padding:14px 16px;
    background:var(--tint);
    color:var(--tint-text);
    border-radius:7px;
    font-size:13px
}
.error {
    color:var(--error-text)
}
.notice.error {
    background:var(--error-surface)
}
.nowrap {
    white-space:nowrap
}
.menu-scrim {
    display:none
}
:root[data-sidebar="collapsed"] .sidebar .brand-plate {
    width:56px;
    height:56px
}
:root[data-sidebar="collapsed"] .sidebar .brand-image {
    width:78px;
    left:-12px;
    top:-3px
}
:root[data-sidebar="collapsed"] .sidebar .brand {
    height:80px
}
:root[data-sidebar="collapsed"] .sidebar .nav-label,:root[data-sidebar="collapsed"] .sidebar .nav-group-title {
    display:none
}
:root[data-sidebar="collapsed"] .nav-link {
    justify-content:center;
    padding:5px 0;
    min-height:28px
}
:root[data-sidebar="collapsed"] .nav-group {
    margin-top:4px
}
:root[data-sidebar="collapsed"] .nav-group.is-collapsed .nav-group-links {
    display:block
}
@media(max-width:1100px) {
    .page-content {
        padding:20px
    }
    .topbar {
        padding:0 20px
    }
    .user-name {
        max-width:150px
    }
}
@media(max-width:760px) {
    .workspace,:root[data-sidebar="collapsed"] .workspace {
        margin-left:0;
        width:100%
    }
    .sidebar,:root[data-sidebar="collapsed"] .sidebar {
        width:216px;
        transform:translateX(-100%);
        transition:transform .18s ease
    }
    .topbar {
        padding:0 14px;
        height:58px
    }
    .topbar h1 {
        font-size:16px
    }
    .topbar-heading {
        gap:8px
    }
    .topbar-actions {
        gap:10px
    }
    .topbar-separator,.user-name {
        display:none
    }
    .page-content {
        padding:14px
    }
    .profile-dropdown {
        width:250px
    }
    .theme-toggle {
        gap:4px
    }
    .theme-toggle svg {
        width:14px;
        height:14px
    }
    .form-grid,.cards {
        grid-template-columns:1fr
    }
    .narrow {
        margin:24px auto
    }
    .auth-page .narrow {
        margin-top:28px
    }
    .auth-page .topbar {
        height:80px
    }
    dl {
        grid-template-columns:1fr;
        gap:6px
    }
    dd {
        margin-bottom:8px
    }
    :root[data-mobile-menu="open"] {
        overflow:hidden
    }
    :root[data-mobile-menu="open"] .sidebar {
        transform:translateX(0)
    }
    :root[data-mobile-menu="open"] .menu-scrim {
        display:block;
        position:fixed;
        inset:0;
        width:100%;
        height:100%;
        background:rgba(9,20,32,.4);
        border:0;
        border-radius:0;
        z-index:35
    }
    :root[data-sidebar="collapsed"] .sidebar .nav-label,
    :root[data-sidebar="collapsed"] .sidebar .nav-group-title {
        display:block
    }
    :root[data-sidebar="collapsed"] .sidebar .brand {
        height:98px
    }
    :root[data-sidebar="collapsed"] .sidebar .brand-plate {
        width:160px;
        height:80px
    }
    :root[data-sidebar="collapsed"] .sidebar .brand-image {
        width:193px;
        left:-22px;
        top:-24px
    }
    .nav-link,
    :root[data-sidebar="collapsed"] .nav-link {
        justify-content:flex-start;
        padding:7px 10px;
        min-height:34px
    }
    :root[data-sidebar="collapsed"] .nav-group {
        margin-top:0
    }
    :root[data-sidebar="collapsed"] .nav-group.is-collapsed .nav-group-links {
        display:none
    }
}
@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        scroll-behavior:auto!important;
        transition:none!important
    }
}
.brand-definitions {
    position:absolute;
    width:0;
    height:0;
    overflow:hidden;
    pointer-events:none
}
.danger {
    background:transparent;
    color:#ae2d35;
    border-color:#c27d82
}
.danger:hover {
    background:rgba(174,45,53,.08)
}
.visually-hidden {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}
.registry-search {
    display:flex;
    align-items:flex-end;
    flex-wrap:wrap;
    gap:8px;
    flex:1 1 560px;
    min-width:0;
    max-width:none
}
.registry-search input {
    margin:0;
    min-width:160px;
    flex:1
}
.registry-toolbar {
    align-items:flex-end
}
.registry-toolbar .form-actions {
    margin:0 0 0 auto;
    flex-shrink:0
}
.record-state-heading,.record-state-cell {
    width:90px;
    text-align:center
}
.record-health {
    display:inline-block;
    vertical-align:middle;
    text-align:left
}
.record-health-trigger {
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    list-style:none;
    cursor:pointer;
    border-radius:50%
}
.record-health-trigger::-webkit-details-marker {
    display:none
}
.record-health-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:25px;
    height:25px;
    border-radius:50%;
    font-size:18px;
    line-height:1;
    font-weight:600;
    border:1px solid currentColor
}
.record-health--ok .record-health-icon,.record-status--active {
    color:var(--positive-text);
    background:var(--positive-surface)
}
.record-health--warning .record-health-icon,.record-status--warning {
    color:var(--warning-text);
    background:var(--warning-surface)
}
.record-health--error .record-health-icon,.record-status--danger {
    color:var(--error-text);
    background:var(--error-surface)
}
.record-health-panel {
    width:290px;
    max-width:70vw;
    padding:12px;
    margin-top:8px;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface);
    overflow-wrap:anywhere
}
.record-health-panel p {
    margin:0 0 8px
}
.record-health-panel ul {
    margin:6px 0 12px;
    padding-left:18px
}
.record-health-panel li+li {
    margin-top:4px
}
@media(max-width:600px) {
    .registry-search {
        width:100%;
        max-width:none;
        flex-wrap:wrap
    }
    .registry-search input {
        flex-basis:100%
    }
    .record-health-panel {
        width:240px
    }
}
:root[data-theme="dark"] .danger {
    color:#ffadb3;
    border-color:#b76f78
}
@media(prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) .danger {
        color:#ffadb3;
        border-color:#b76f78
    }
}
input[type="file"] {
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    line-height:32px;
    max-width:100%
}
input[type="file"]::file-selector-button {
    min-height:32px;
    margin-right:10px;
    padding:5px 10px;
    border:1px solid var(--input-border);
    border-radius:6px;
    background:var(--surface);
    color:var(--text);
    font-family:inherit;
    font-size:13px;
    font-weight:400;
    line-height:1.4;
    cursor:pointer
}

#document-import-upload label {
    max-width:100%;
    margin-bottom:0
}
#document-import-folder+label {
    display:inline-block;
    min-height:32px;
    padding:6px 4px;
    color:var(--accent);
    cursor:pointer;
    text-decoration:underline
}
#document-import-upload input[type="file"]:focus-visible+label {
    outline:2px solid var(--focus);
    outline-offset:3px
}
#document-import-selection {
    overflow-wrap:anywhere
}
.filter-toolbar {
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    justify-content:flex-start;
    gap:10px;
    margin-bottom:14px
}
.filter-toolbar label {
    margin-bottom:0;
    max-width:100%
}
.filter-toolbar input,.filter-toolbar select {
    margin-top:6px
}
.filter-toolbar input:not([type="date"]) {
    width:240px;
    max-width:100%
}
.filter-toolbar input[type="date"] {
    width:160px
}
.filter-toolbar select {
    width:220px;
    max-width:100%
}
.filter-toolbar>button {
    flex-shrink:0
}
.catalog-advanced-filters[open] {
    flex-basis:100%
}
.action-row,.pagination,.form-actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin:0 0 14px
}
.form-actions {
    justify-content:flex-end;
    margin-top:14px
}
.pagination {
    justify-content:space-between;
    padding:12px 0;
    border-top:1px solid var(--border)
}
.pagination .form-actions,.pagination label {
    display:flex;
    align-items:center;
    gap:10px;
    margin:0
}
.pagination>div {
    margin-left:auto
}
.pagination select {
    width:auto;
    min-width:70px;
    margin:0
}
.pagination [role="group"] {
    display:flex;
    align-items:stretch
}
.pagination [role="group"]>* {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    min-height:34px;
    padding:6px 9px;
    margin:0 0 0 -1px;
    border:1px solid var(--border);
    border-radius:0;
    font-weight:400
}
.pagination [role="group"]>:first-child {
    border-radius:6px 0 0 6px;
    margin-left:0
}
.pagination [role="group"]>:last-child {
    border-radius:0 6px 6px 0
}
.pagination [aria-current="page"] {
    background:var(--button);
    color:var(--button-text);
    border-color:var(--button);
    position:relative
}
.pagination [aria-disabled="true"],.pagination button:disabled {
    color:var(--muted);
    opacity:.45;
    cursor:default
}
.pagination [aria-live],.pagination .form-actions>span {
    white-space:nowrap
}

.registry-search>input[type="search"] {
    flex:1 1 200px;
    max-width:none
}
.registry-search>label:not(.visually-hidden) {
    display:flex;
    flex-direction:column;
    gap:5px;
    flex:1 1 160px;
    min-width:140px;
    margin:0
}
.registry-search select {
    width:100%;
    min-width:0;
    margin:0
}
@media(max-width:600px) {
    .registry-search>input[type="search"] {
        flex-basis:100%
    }
    .registry-search>label:not(.visually-hidden) {
        flex-basis:calc(50% - 4px);
        min-width:0
    }
}
label small {
    display:block;
    margin-top:5px;
    color:var(--muted);
    font-weight:400
}
:where(details)>summary {
    cursor:pointer;
    font-weight:600;
    list-style:none
}
details>summary::-webkit-details-marker {
    display:none
}
/* Menus and the compact controls in registry tables have their own indicators. */
details:where(:not(.profile-menu,.record-health,.credit-history-gaps))>summary {
    max-width:100%;
    text-align:left;
    overflow-wrap:anywhere
}
details:where(:not(.profile-menu,.record-health,.credit-history-gaps))>summary::after {
    content:"";
    box-sizing:border-box;
    flex:0 0 7px;
    height:7px;
    margin:0 2px 3px 3px;
    border:solid currentColor;
    border-width:0 1.5px 1.5px 0;
    transform:rotate(45deg)
}
details:where(:not(.profile-menu,.record-health,.credit-history-gaps))[open]>summary {
    margin-bottom:10px
}
details:where(:not(.profile-menu,.record-health,.credit-history-gaps))[open]>summary::after {
    margin:3px 2px 0 3px;
    transform:rotate(225deg)
}
.numeric,
.numeric input {
    text-align:right;
    font-variant-numeric:tabular-nums;
    white-space:nowrap
}
@media(pointer:coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select {
        min-height:44px
    }
}

.gps-progress-backdrop {
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(10,22,34,.34)
}
.gps-progress-dialog {
    width:min(520px,calc(100vw - 32px));
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    box-shadow:0 18px 55px rgba(10,22,34,.24);
    padding:18px
}
.gps-progress-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:12px
}
.gps-progress-heading h3 {
    margin:0;
    font-size:17px
}
.gps-progress-percent {
    color:var(--muted);
    font-variant-numeric:tabular-nums
}
.gps-progress-track {
    height:10px;
    border-radius:999px;
    background:var(--border);
    overflow:hidden;
    margin-bottom:14px
}
.gps-progress-bar {
    width:0;
    height:100%;
    border-radius:inherit;
    background:var(--button);
    transition:width .2s ease
}
.gps-progress-table {
    margin:0;
    font-size:13px
}
.gps-progress-table th,
.gps-progress-table td {
    padding:8px 6px;
    background:transparent
}
.gps-progress-table th {
    width:145px;
    color:var(--muted);
    font-weight:500
}
.gps-progress-table tr:last-child th,
.gps-progress-table tr:last-child td {
    border-bottom:0
}
.gps-progress-error {
    margin:12px 0 0;
    padding:10px 12px;
    border-radius:6px;
    background:var(--tint);
    color:var(--tint-text)
}

/* Contract lifecycle visibility */
.record-state-cell--status {
    width:140px;
    min-width:140px
}
.record-status {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:4px 10px;
    border:1px solid var(--border);
    border-radius:999px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap
}
.record-status--active {
    border-color:var(--positive-border)
}
.record-status--completed {
    color:#365c7d;
    background:#e8f0f7;
    border-color:#b9ccdc
}
.record-status--warning {
    border-color:var(--warning-border)
}
.record-status--danger {
    border-color:var(--error-border)
}
.record-status--neutral {
    color:var(--muted);
    background:var(--surface);
    border-color:var(--border)
}
.contract-status-panel h2 {
    margin:2px 0 0
}
.contract-status-panel h2 small {
    font-size:.62em;
    font-weight:500;
    color:var(--muted)
}
.contract-status-actions {
    display:flex;
    align-items:flex-end;
    gap:12px;
    flex-wrap:wrap;
    margin-top:12px
}
.contract-status-complete {
    display:flex;
    align-items:flex-end;
    gap:12px;
    flex-wrap:wrap;
    margin:0
}
.contract-status-actions label {
    width:auto;
    min-width:180px;
    margin-bottom:0
}
.contract-status-actions .form-actions,.contract-status-complete .form-actions,.contract-court-actions {
    margin:0
}
:root[data-theme="dark"] .record-status--completed {
    color:#b9d8f3;
    background:#20384d;
    border-color:#4f6f88
}
@media(prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) .record-status--completed {color:#b9d8f3;background:#20384d;border-color:#4f6f88}
}

/* Vehicle history uses the same table controls without widening desktop cards. */
.vehicle-history-panel { min-width:0 }
.vehicle-history-table { width:100%; table-layout:fixed }
.vehicle-history-table .history-contract { width:16% }
.vehicle-history-table .history-client { width:30% }
.vehicle-history-table .history-date { width:16% }
.vehicle-history-table .history-status { width:12% }
.vehicle-history-table .history-actions { width:10% }
.vehicle-history-table th,.vehicle-history-table td { white-space:normal; overflow-wrap:anywhere; padding:10px 8px }
@media(min-width:1100px) {
    .vehicle-history-table td:nth-child(3),.vehicle-history-table td:nth-child(4) { white-space:nowrap; overflow-wrap:normal }
}
@media(max-width:600px) {
    .vehicle-history-panel .table-wrap { overflow-x:auto }
    .vehicle-history-table { min-width:660px }
}

/* Compact totals for the obligations report. */
.debt-page-tools {
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}
.debt-page-tools .filter-toolbar {
    flex:1 1 auto;
    min-width:0;
    margin-bottom:0;
}
.debt-page-tools>.button {
    flex-shrink:0;
    margin-left:auto;
}
.debt-summary {
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:10px 32px;
    margin:0 0 16px;
    padding:0;
}
.debt-summary>div {
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:4px 8px;
    min-width:0;
    max-width:100%;
}
.debt-summary dt {
    font-size:13px;
}
.debt-summary dd {
    margin:0;
    color:var(--text);
    font-size:15px;
    font-weight:600;
    font-variant-numeric:tabular-nums;
}
.debt-row-status {
    display:block;
    max-width:28ch;
    margin-top:3px;
    color:var(--muted);
    font-size:12px;
    line-height:1.35;
}
@media(max-width:640px) {
    .debt-summary {
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }
}

/* Direct employee permissions. */
.user-permissions-table { width:100%; min-width:620px; table-layout:fixed }
.user-permissions-table th:first-child { width:44%; text-align:left }
.user-permissions-table td,.user-permissions-table thead th:not(:first-child) { text-align:center }
.user-permissions-table .permission-group th { background:var(--subtle); font-weight:600; padding-top:13px; padding-bottom:9px }
.user-permissions-table .inline-check { width:18px; height:18px; margin:0; vertical-align:middle; accent-color:var(--accent) }
.user-permissions-table .inline-check:disabled { opacity:.55 }
.user-permissions-wrap { margin-top:12px }
