:root {
    --bg: #f7f1eb;
    --panel: #ffffff;
    --sidebar: #34253f;
    --sidebar-soft: #483456;
    --accent: #a36989;
    --accent-deep: #861b55;
    --text: #2a2340;
    --muted: #7a6f84;
    --line: #e4d9d5;
    --success: #2f7f5b;
    --danger: #b0465e;
    --shadow: 0 18px 44px rgba(54, 39, 63, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background-color: #f8f3ee;
    background:
        radial-gradient(circle at top right, rgba(163, 105, 137, 0.16), transparent 24rem),
        linear-gradient(180deg, #fcf7f3 0%, #f4ebe8 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;
}

body.modal-open {
    overflow: hidden;
}

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

body.app-shell {
    height: 100vh;
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }

.shell {
    display: grid;
    grid-template-columns: 268px 1fr;
    height: 100vh;
    width: 100%;
}

.mobile-topbar,
.mobile-nav-toggle,
.sidebar-overlay {
    display: none;
}

.mobile-refresh-button,
.floating-refresh-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid rgba(163, 105, 137, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 228, 237, 0.98) 0%, rgba(230, 200, 216, 0.98) 100%);
    color: var(--accent-deep);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 14px 30px rgba(46, 29, 51, 0.18);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.mobile-refresh-button span,
.floating-refresh-button span {
    display: inline-grid;
    place-items: center;
    transform-origin: 50% 50%;
    width: 22px;
    height: 22px;
    transform: none;
}

.mobile-refresh-button svg,
.floating-refresh-button svg {
    width: 22px;
    height: 22px;
    display: block;
    transform: translate(-0.5px, -1px);
}

.mobile-refresh-button path,
.floating-refresh-button path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-refresh-button.is-spinning span,
.floating-refresh-button.is-spinning span {
    animation: refresh-spin 0.85s linear infinite;
}

.mobile-refresh-button:hover,
.floating-refresh-button:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 18px 34px rgba(46, 29, 51, 0.22);
}

.mobile-refresh-button:active,
.floating-refresh-button:active {
    transform: translateY(0);
}

.mobile-refresh-button {
    display: none;
}

.floating-refresh-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 20px 38px rgba(46, 29, 51, 0.24);
}

@keyframes refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sidebar {
    background: var(--sidebar);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100vh;
    overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand {
    padding-bottom: 14px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #d08bb0 0%, #a33d74 55%, #861b55 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 28px rgba(134, 27, 85, 0.24);
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 700;
}

.brand-copy small {
    display: block;
    color: #d9a8c0;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-size: 11px;
}

.brand-copy h1 { margin: 0; font-size: 16px; line-height: 1.2; }

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

.owner-scope-form {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.owner-scope-form label {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.owner-scope-form label span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d9a8c0;
}

.owner-scope-trigger {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    text-align: left;
    box-shadow: none;
    overflow: hidden;
}

.owner-scope-trigger:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: none;
    box-shadow: none;
}

.owner-scope-trigger:focus {
    outline: none;
    border-color: rgba(214, 220, 238, 0.4);
    box-shadow: 0 0 0 3px rgba(214, 220, 238, 0.08);
}

.owner-scope-trigger-text {
    display: block;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    font-size: 15px;
    color: #f7e6ee;
    text-align: center;
}

.owner-scope-trigger-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f6d4e3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.owner-company-modal-card {
    width: min(640px, calc(100vw - 32px));
}

.owner-company-picker {
    display: grid;
    gap: 14px;
}

.owner-company-picker input[type="search"] {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(163, 105, 137, 0.18);
    background: linear-gradient(180deg, #fff 0%, #fdf8f4 100%);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.owner-company-picker input[type="search"]::placeholder {
    color: var(--muted);
}

.owner-company-picker input[type="search"]:focus {
    outline: none;
    border-color: rgba(127, 49, 94, 0.6);
    box-shadow: 0 0 0 4px rgba(197, 145, 171, 0.14);
    background: #fff;
}

.owner-company-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.owner-company-pagination {
    margin-top: 4px;
    padding-top: 12px;
}

.owner-company-option {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(163, 105, 137, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 244, 241, 0.94) 100%);
    text-align: left;
    box-shadow: none;
}

.owner-company-option:hover {
    transform: none;
    border-color: rgba(163, 105, 137, 0.28);
    box-shadow: 0 10px 20px rgba(54, 39, 63, 0.08);
}

.owner-company-option.is-active {
    border-color: rgba(163, 105, 137, 0.32);
    background: linear-gradient(180deg, rgba(244, 229, 237, 0.92) 0%, rgba(238, 217, 228, 0.9) 100%);
}

.owner-company-option.hidden {
    display: none;
}

.owner-company-option-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.owner-company-option-code {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav a {
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 600;
}

.nav a.active,
.nav a:hover { background: var(--sidebar-soft); }

.sidebar-card {
    margin-top: auto;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 10px;
}

.sidebar-card h2 { margin: 0; font-size: 16px; line-height: 1.2; }
.sidebar-card .muted { color: #cfd8ec; }
.sidebar-card .button { width: 100%; margin-top: 0; display: inline-flex; justify-content: center; }

.account-actions-card {
    align-self: start;
}

.account-actions-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.account-actions-list form {
    margin: 0;
}

.account-actions-list .button {
    width: 100%;
    justify-content: center;
}

.content {
    width: 100%;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 30px 36px 40px;
}

.content-shell {
    display: grid;
    gap: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header .button.primary {
    align-self: center;
}

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

.page-actions .page-actions {
    display: contents;
}

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

.import-button {
    position: relative;
    overflow: hidden;
    justify-content: center;
    text-align: center;
}

.import-button input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.bundle-actions {
    gap: 12px;
}

.page-actions .bundle-button {
    min-width: 148px;
    padding: 14px 18px;
    border-radius: 18px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: 0 12px 28px rgba(84, 49, 77, 0.12);
}

.page-actions .bundle-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(84, 49, 77, 0.16);
}

.page-actions .bundle-button-restore {
    background: linear-gradient(135deg, #f2dde8 0%, #e7c7d7 100%);
    color: var(--accent-deep);
    border-color: rgba(163, 105, 137, 0.22);
}

.page-actions .bundle-button-backup {
    background: linear-gradient(135deg, #a36989 0%, #861b55 100%);
    color: #fff;
}

.page-actions .bundle-button-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.page-header h2 { margin: 6px 0 0; font-size: 48px; }

.page-header small {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
}

.grid { display: grid; gap: 20px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panels { grid-template-columns: 1.6fr 1fr; }
.content-split { grid-template-columns: 1.05fr 1.4fr; align-items: start; }

.card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(228, 217, 213, 0.9);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-head h3 {
    margin-bottom: 0;
}

.card-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.card-link:hover {
    color: var(--accent-deep);
}

.card p {
    margin-top: 0;
}

.metric-value { font-size: 54px; font-weight: 700; margin-top: 12px; }

.button,
button {
    border: 0;
    border-radius: 18px;
    padding: 12px 18px;
    background: #e5dfd5;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
    box-shadow: 0 6px 14px rgba(54, 39, 63, 0.06);
}

.button.primary,
button.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
}

.button.danger,
button.danger {
    background: var(--danger);
    color: #fff;
}

.button:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(54, 39, 63, 0.1);
}

.button.slim,
button.slim {
    padding: 10px 14px;
    border-radius: 14px;
}

.icon-button {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
}

.icon-button.danger {
    font-size: 16px;
}

.action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

.table-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.table-tools-toggle {
    display: none;
}

.table-tools input,
.table-tools select {
    min-width: 180px;
    flex: 1 1 180px;
}

.bulk-selection-form {
    display: grid;
    gap: 14px;
}

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

.bulk-actions-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-select-all {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.bulk-select-all input,
.checkbox-cell input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkbox-cell {
    width: 44px;
    padding-right: 6px;
}

.form-grid { display: grid; gap: 14px; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.section-stack { display: grid; gap: 22px; }

.form-grid label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.checkbox-field {
    min-height: 46px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    align-self: end;
    display: flex !important;
    align-items: center;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
    flex: 0 0 18px;
    background: #fff;
}

.login-pane .checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
    background: #fff;
}

.field-with-action {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
    align-items: end;
}

.field-with-action > div {
    display: grid;
    gap: 7px;
}

.toolbar input,
.table-tools input,
.table-tools select,
.toolbar select,
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.table-tools select,
.toolbar select,
.form-grid select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(134, 27, 85, 0.88) 50%),
        linear-gradient(135deg, rgba(134, 27, 85, 0.88) 50%, transparent 50%),
        linear-gradient(180deg, #fff 0%, #faf6f2 100%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px),
        0 0;
    background-size:
        6px 6px,
        6px 6px,
        100% 100%;
    background-repeat: no-repeat;
}

.table-tools select:hover,
.toolbar select:hover,
.form-grid select:hover {
    border-color: rgba(163, 105, 137, 0.42);
}

.table-tools select:focus,
.toolbar select:focus,
.form-grid select:focus {
    outline: none;
    border-color: rgba(127, 49, 94, 0.68);
    box-shadow: 0 0 0 4px rgba(197, 145, 171, 0.16);
}

.form-grid textarea { min-height: 110px; resize: vertical; }

.password-field {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
    align-items: end;
}

.password-field input {
    padding-right: 14px !important;
}

.password-toggle {
    display: grid;
    place-items: center;
    width: 42px !important;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #efe6d9;
    color: var(--muted);
    font-size: 0;
    box-shadow: none;
}

.password-toggle:hover {
    background: #eadfcf;
    color: var(--text);
}

.password-eye {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
    box-sizing: border-box;
    margin: 0 auto;
    background: transparent;
}

.password-eye::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid currentColor;
    border-radius: 14px / 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.password-eye::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.password-toggle.is-active .password-eye {
    opacity: 0.95;
    background:
        linear-gradient(42deg,
            transparent 43%,
            currentColor 43%,
            currentColor 57%,
            transparent 57%);
}

.password-toggle.is-active .password-eye::before {
    border-color: currentColor;
}

.password-toggle.is-active {
    color: var(--accent-deep);
    background: #eadfcf;
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.pagination-size-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(163, 105, 137, 0.08);
    border: 1px solid rgba(163, 105, 137, 0.14);
}

.pagination-size-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.pagination-size-options {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-size-options .button {
    min-width: 52px;
    padding-inline: 12px;
}

.pagination-summary,
.pagination-status {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.pagination-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.lookup-tools {
    margin-top: 8px;
}

.lookup-edit-shell {
    display: grid;
    gap: 10px;
    flex: 1 1 320px;
    min-width: min(100%, 320px);
}

.lookup-edit-state {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    overflow: hidden;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(163, 105, 137, 0.1);
    border: 1px solid rgba(163, 105, 137, 0.16);
}

.lookup-edit-state.hidden {
    display: none;
}

.lookup-edit-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f2dde8 0%, #e7c7d7 100%);
    color: var(--accent-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lookup-edit-text {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.lookup-edit-shell input {
    min-width: 0;
}

#lookup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 166px;
    align-items: flex-end;
    gap: 12px;
}

#lookup-form .lookup-edit-shell,
#lookup-form .lookup-form-actions {
    min-width: 0;
}

#lookup-value {
    min-height: 56px;
    max-height: 170px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(163, 105, 137, 0.18);
    background: linear-gradient(180deg, #fff 0%, #fdf8f4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    resize: vertical;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-x: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, min-height 0.16s ease;
}

#lookup-value.is-compact {
    min-height: 56px;
}

#lookup-value:focus {
    outline: none;
    border-color: rgba(127, 49, 94, 0.55);
    box-shadow: 0 0 0 4px rgba(197, 145, 171, 0.14);
    background: #fff;
}

.lookup-form-actions {
    display: grid;
    gap: 10px;
    align-self: stretch;
    grid-auto-rows: min-content;
    align-content: start;
}

#lookup-submit-button {
    align-self: stretch;
    width: 100%;
    min-width: 0;
}

#lookup-cancel-edit {
    width: 100%;
}

.lookup-edit-state.hidden,
#lookup-cancel-edit.hidden {
    display: none;
}

.lookup-edit-state > * {
    min-width: 0;
}

.lookup-edit-state .button {
    width: auto;
}

.lookup-edit-text {
    flex: 1 1 220px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lookup-pagination {
    margin-top: 12px;
    padding-top: 12px;
}

#lookup-form {
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(251, 246, 242, 0.98) 0%, rgba(247, 239, 235, 0.96) 100%);
    border: 1px solid rgba(228, 217, 213, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.lookup-pagination,
.lookup-tools,
#lookup-form,
#lookup-modal .table-wrap,
#lookup-modal table,
#lookup-modal tbody,
#lookup-modal tr,
#lookup-modal td {
    min-width: 0;
}

#lookup-modal table {
    table-layout: fixed;
    width: 100%;
}

#lookup-modal th:nth-child(1),
#lookup-modal td:nth-child(1) {
    width: auto;
    min-width: 0;
    overflow: hidden;
}

#lookup-modal th:nth-child(2),
#lookup-modal td:nth-child(2) {
    width: 52px;
    text-align: center;
    overflow: hidden;
}

#lookup-modal th:nth-child(3),
#lookup-modal td:nth-child(3) {
    width: 176px;
    text-align: right;
}

#lookup-modal th,
#lookup-modal td {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 15px;
}

.lookup-value-text {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
}

#lookup-modal .action-group {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
}

#lookup-modal .button.slim,
#lookup-modal button.slim {
    padding: 8px 12px;
    border-radius: 12px;
}

#lookup-modal .icon-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 12px;
}

th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

tbody tr:hover {
    background: rgba(241, 232, 220, 0.55);
}

th {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6e7ee 0%, #f0dce7 100%);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.flash {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2200;
    width: min(420px, calc(100vw - 24px));
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 0;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 10px 22px rgba(54, 39, 63, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.flash::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: currentColor;
    opacity: 0.22;
    transform-origin: left center;
    transform: scaleX(1);
}

.flash.flash-active {
    opacity: 1;
    transform: translateY(0);
}

.flash.flash-active::after {
    animation: flash-progress 3s linear forwards;
}

.flash.flash-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.flash.success {
    background: linear-gradient(180deg, #ebf8f0 0%, #e2f2e8 100%);
    color: var(--success);
    border-color: rgba(47, 127, 91, 0.16);
}

.flash.error {
    background: linear-gradient(180deg, #fbecf1 0%, #f7e3ea 100%);
    color: var(--danger);
    border-color: rgba(176, 70, 94, 0.16);
}

@keyframes flash-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.login-page {
    min-height: 100vh;
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 18px 24px;
    background:
        radial-gradient(circle at top left, rgba(194, 105, 144, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(124, 32, 84, 0.1), transparent 32%);
}

.login-card {
    width: min(920px, 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 247, 244, 0.94) 100%);
    border: 1px solid rgba(210, 190, 198, 0.62);
    box-shadow: 0 26px 64px rgba(89, 53, 79, 0.12);
    border-radius: 32px;
    padding: 24px 30px;
}

.login-card h1 {
    margin: 6px 0 6px;
    font-size: clamp(32px, 3vw, 48px);
    letter-spacing: -0.04em;
    line-height: 1;
}

.login-card p,
.muted {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.login-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.login-pane {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding-right: 4px;
}

.login-kicker,
.login-support-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.login-kicker {
    color: #7f315e;
    background: rgba(237, 219, 230, 0.76);
}

.login-support-column {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    padding-left: 24px;
    border-left: 1px solid rgba(163, 105, 137, 0.18);
}

.login-support-card {
    width: 100%;
    min-height: 100%;
    padding: 20px;
    border-radius: 26px;
    border: 1px solid rgba(163, 105, 137, 0.18);
    background: linear-gradient(180deg, rgba(253, 248, 245, 0.96) 0%, rgba(245, 234, 240, 0.94) 100%);
    display: grid;
    gap: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    text-align: center;
    justify-items: center;
}

.login-support-kicker {
    margin-bottom: 12px;
    color: #8f426c;
    background: rgba(230, 207, 220, 0.72);
}

.login-support-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.login-support-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.login-support-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f2dde8 0%, #e3c0d4 100%);
    border: 1px solid rgba(163, 105, 137, 0.24);
    color: var(--accent-deep);
    font-weight: 700;
    box-shadow: 0 14px 26px rgba(113, 53, 89, 0.08);
}

.login-support-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(84, 49, 77, 0.1);
}

.login-support-button-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.82;
}

.login-support-button-mail {
    font-size: 15px;
    letter-spacing: 0.01em;
}

.login-pane .form-grid {
    margin-top: 2px;
    gap: 10px;
}

.login-pane .form-grid label {
    gap: 7px;
    font-size: 14px;
}

.login-pane .form-grid input {
    min-height: 44px;
    border-radius: 16px;
    border-color: rgba(194, 178, 184, 0.8);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.login-pane .form-grid input:focus {
    border-color: rgba(127, 49, 94, 0.7);
    box-shadow: 0 0 0 4px rgba(197, 145, 171, 0.18);
}

.login-pane .form-grid .primary {
    margin-top: 2px;
    min-height: 46px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form input {
    min-width: 180px;
}

.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 31, 54, 0.38);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    margin: 20px auto;
    background: #fcf8f4;
    border: 1px solid rgba(228, 217, 213, 0.95);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(54, 39, 63, 0.18);
    padding: 26px;
}

.modal-card-narrow {
    width: min(720px, calc(100vw - 32px));
}

.modal-card .form-grid {
    margin-top: 6px;
}

.modal-card .toolbar {
    margin-top: 4px;
    margin-bottom: 0;
}

.modal-card .table-wrap {
    margin-top: 12px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(228, 217, 213, 0.7);
}

.modal-header h3 {
    margin: 6px 0 0;
    font-size: 30px;
}

.modal-kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
}

@media (max-width: 1100px) {
    body.app-shell {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .panels,
    .form-columns,
    .content-split {
        grid-template-columns: 1fr;
    }

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

    .shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        width: 100%;
    }

    .mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1300;
        display: grid;
        grid-template-columns: 52px 1fr 40px;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 0;
        background: rgba(52, 37, 63, 0.97);
        box-shadow: 0 16px 30px rgba(52, 37, 63, 0.22);
    }

    .mobile-topbar-title {
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-refresh-button {
        display: inline-grid;
        justify-self: end;
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 20px;
    }

    .floating-refresh-button {
        display: none;
    }

    .mobile-nav-toggle {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transform: none;
    }

    .mobile-nav-toggle span {
        position: absolute;
        display: block;
        width: 18px;
        height: 2.5px;
        border-radius: 999px;
        background: #fff;
        transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
        transform-origin: center;
    }

    .mobile-nav-toggle span:nth-child(1) {
        top: 18px;
    }

    .mobile-nav-toggle span:nth-child(2) {
        top: 24px;
    }

    .mobile-nav-toggle span:nth-child(3) {
        top: 30px;
    }

    body.sidebar-open .mobile-nav-toggle span:nth-child(1) {
        top: 24px;
        transform: rotate(45deg);
    }

    body.sidebar-open .mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.sidebar-open .mobile-nav-toggle span:nth-child(3) {
        top: 24px;
        transform: rotate(-45deg);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1190;
        display: block;
        background: rgba(40, 26, 49, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-open::before {
        content: "";
        position: fixed;
        left: 0;
        right: auto;
        top: 0;
        bottom: 0;
        width: min(320px, calc(100vw - 56px));
        background: linear-gradient(180deg, rgba(55, 39, 66, 0.98) 0%, rgba(49, 35, 60, 0.94) 100%);
        border-radius: 0 22px 22px 0;
        box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
        z-index: 1195;
        pointer-events: none;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1200;
        width: min(320px, calc(100vw - 56px));
        height: auto;
        min-height: 0;
        padding: 84px 18px 24px;
        background: linear-gradient(180deg, rgba(58, 41, 70, 0.98) 0%, rgba(53, 38, 65, 0.97) 100%);
        box-shadow: 0 18px 40px rgba(16, 23, 39, 0.24);
        overflow-y: auto;
        border-bottom-right-radius: 22px;
        transform: translateX(calc(-100% - 24px));
        transition: transform 0.24s ease;
    }

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

    .brand {
        align-items: center;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 24px;
    }

    .nav {
        display: grid;
        gap: 10px;
    }

    .nav a {
        white-space: normal;
        padding: 13px 16px;
    }

    .sidebar-card {
        margin-top: auto;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
        position: static;
    }

    .owner-scope-form {
        padding: 12px 14px;
    }

    .sidebar-card .button {
        width: 100%;
    }

    .content {
        height: auto;
        overflow: visible;
        padding: 102px 20px 32px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header .button.primary {
        align-self: flex-start;
    }

    .page-actions {
        align-self: flex-start;
    }

    .page-header h2 {
        font-size: 40px;
    }

    .metric-value {
        font-size: 44px;
    }

    .card,
    .modal-card {
        border-radius: 24px;
        padding: 22px;
    }

    .modal-card {
        margin: 16px auto;
        width: min(920px, calc(100vw - 24px));
        max-height: calc(100vh - 32px);
    }

    .table-wrap {
        margin-inline: -6px;
        padding-inline: 6px;
    }
}

@media (max-width: 760px) {
    body {
        background: #f7f1eb;
    }

    .mobile-topbar {
        top: 0;
        left: 0;
        right: 0;
        grid-template-columns: 48px 1fr 38px;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 0;
    }

    .mobile-topbar-title {
        font-size: 13px;
    }

    .mobile-refresh-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 18px;
    }

    .mobile-nav-toggle {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .mobile-nav-toggle span:nth-child(1) {
        top: 16px;
    }

    .mobile-nav-toggle span:nth-child(2) {
        top: 22px;
    }

    .mobile-nav-toggle span:nth-child(3) {
        top: 28px;
    }

    body.sidebar-open .mobile-nav-toggle span:nth-child(1),
    body.sidebar-open .mobile-nav-toggle span:nth-child(3) {
        top: 22px;
    }

    body.sidebar-open::before {
        left: 0;
        top: 0;
        bottom: 0;
        width: min(300px, calc(100vw - 32px));
        border-radius: 0 20px 20px 0;
    }

    .sidebar {
        width: min(300px, calc(100vw - 32px));
        inset: 0 auto 0 0;
        padding: 78px 14px 20px;
        border-bottom-right-radius: 20px;
    }

    .brand-copy small {
        letter-spacing: 0.18em;
        font-size: 11px;
    }

    .brand-copy h1 {
        font-size: 16px;
    }

    .content {
        padding: 88px 14px 24px;
    }

    .content-shell,
    .grid,
    .card,
    .page-header,
    .toolbar,
    .table-wrap {
        width: 100%;
        min-width: 0;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        min-width: 640px;
    }

    .page-header {
        margin-bottom: 18px;
    }

    .page-header h2 {
        font-size: 34px;
        line-height: 1.04;
    }

    .page-header small {
        letter-spacing: 0.16em;
        font-size: 11px;
    }

    .card {
        padding: 18px;
        border-radius: 22px;
        overflow: hidden;
    }

    .card h3 {
        font-size: 22px;
    }

    .card-head {
        align-items: flex-start;
    }

    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .metrics .card {
        padding: 16px;
        border-radius: 20px;
        min-height: 148px;
    }

    .metrics .card small {
        font-size: 13px;
    }

    .metric-value {
        font-size: 32px;
        margin-top: 10px;
    }

    th,
    td {
        padding: 12px 10px;
    }

    .table-wrap th:last-child,
    .table-wrap td:last-child {
        white-space: nowrap;
    }

    .table-wrap .action-group {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .toolbar {
        gap: 10px;
    }

    .table-tools {
        gap: 10px;
    }

    .page-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        justify-content: stretch;
    }

    .bundle-actions {
        justify-content: stretch;
    }

    .page-actions .import-inline-form,
    .page-actions > .button,
    .page-actions .bundle-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
        text-align: center;
    }

    .bulk-actions,
    .bulk-actions-right {
        align-items: stretch;
    }

    .pagination-bar,
    .pagination-size-form {
        align-items: stretch;
    }

    .pagination-bar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pagination-summary,
    .pagination-status {
        font-size: 13px;
    }

    .pagination-size-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pagination-size-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .pagination-links {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
    }

    .button,
    button {
        width: 100%;
        justify-content: center;
    }

    .toolbar .button,
    .toolbar button,
    .bulk-actions .button,
    .pagination-links .button,
    .pagination-size-options .button,
    .action-group .button,
    .action-group button,
    .inline-form button,
    .password-toggle {
        width: auto;
    }

    .inline-form {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .inline-form input {
        min-width: 0;
        width: 100%;
    }

    .modal-card,
    .modal-card-narrow {
        width: calc(100vw - 16px);
        margin: 8px auto;
        max-height: calc(100vh - 16px);
        border-radius: 20px;
        padding: 16px;
    }

    .modal-header {
        margin-bottom: 14px;
    }

    .modal-header h3 {
        font-size: 24px;
    }

    input,
    select,
    textarea,
    .table-tools input,
    .table-tools select,
    .form-grid input,
    .form-grid select,
    .form-grid textarea,
    .inline-form input {
        font-size: 16px;
    }

    .field-with-action {
        grid-template-columns: 1fr 38px;
    }

    .icon-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
    }

    .password-field {
        grid-template-columns: 1fr 38px;
    }

    .password-toggle {
        width: 38px !important;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
    }

    .login-page {
        padding: 18px;
    }

    .flash {
        top: 12px;
        right: 12px;
        width: min(280px, calc(100vw - 20px));
        padding: 12px 14px;
        border-radius: 16px;
        font-size: 14px;
    }

    .login-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .login-card h1 {
        font-size: 38px;
    }

    .login-support-button {
        width: 100%;
    }

    .login-split {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .login-support-column {
        display: block;
        padding-left: 0;
        border-left: 0;
        padding-top: 18px;
        border-top: 1px solid rgba(163, 105, 137, 0.18);
    }

    .login-support-card strong {
        font-size: 20px;
    }

    .login-pane .form-grid input {
        min-height: 46px;
    }

    .login-pane .form-grid .primary {
        min-height: 48px;
        font-size: 16px;
    }

    #lookup-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .lookup-form-actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    #lookup-submit-button {
        width: 100%;
        min-width: 0;
    }

    .lookup-edit-state {
        padding: 8px 10px;
        gap: 8px;
    }

    .lookup-edit-text {
        font-size: 13px;
    }

    .lookup-edit-state .button {
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .login-card h1 {
        font-size: 30px;
    }

    .login-kicker,
    .login-support-kicker {
        font-size: 10px;
        letter-spacing: 0.15em;
    }

    .login-card {
        padding: 20px 16px;
    }

    .login-pane .form-grid input {
        min-height: 44px;
        border-radius: 14px;
    }

    .login-pane .form-grid .primary {
        min-height: 46px;
        border-radius: 16px;
    }

    .mobile-topbar-title {
        font-size: 12px;
    }

    .page-header .button.primary {
        width: 100%;
    }

    .page-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .page-actions .import-inline-form {
        display: flex;
        width: auto;
        flex: 1 1 180px;
    }

    .page-actions > .button,
    .page-actions .bundle-button {
        width: auto;
        flex: 1 1 180px;
        align-items: center;
    }

    .card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-columns {
        grid-template-columns: 1fr;
    }

    .field-with-action {
        grid-template-columns: 1fr 36px;
    }

    .password-field {
        grid-template-columns: 1fr 36px;
    }

    .password-toggle {
        width: 36px !important;
        height: 36px;
        min-width: 36px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .table-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .card.has-table-tools .table-wrap {
        min-height: 340px;
    }

    .table-tools-toggle {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }

    .table-tools > [data-table-search] {
        display: block;
        width: 100%;
        background: #fff;
        box-shadow: none;
    }

    .table-tools > select,
    .table-tools > [data-table-filter-value] {
        display: none;
    }

    .table-tools.is-expanded > select,
    .table-tools.is-expanded > [data-table-filter-value] {
        display: block;
    }

    .bulk-actions,
    .bulk-actions-right {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-size-form,
    .pagination-links {
        flex-direction: row;
        align-items: center;
    }

    .pagination-size-form {
        padding: 12px;
        width: 100%;
    }

    .toolbar .button,
    .toolbar button,
    .table-tools input,
    .table-tools select,
    .bulk-actions .button,
    .bulk-actions button,
    .pagination-size-options .button {
        width: 100%;
    }

    .pagination-links .button {
        width: auto;
        min-width: 132px;
        align-self: center;
        justify-content: center;
        text-align: center;
    }

    .table-tools input,
    .table-tools select {
        flex: 0 0 auto;
        min-width: 0;
    }

    .pagination-summary,
    .pagination-status {
        text-align: center;
    }

    .pagination-links {
        display: flex;
        gap: 12px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .pagination-bar {
        justify-items: center;
    }

    .metrics .card {
        min-height: 132px;
    }

    .lookup-edit-state {
        justify-content: flex-start;
        padding: 8px 10px;
    }

    .lookup-edit-text {
        flex-basis: 100%;
    }

    .lookup-edit-shell {
        gap: 8px;
    }

    #lookup-value {
        min-height: 78px;
        max-height: 148px;
    }

    .lookup-edit-state .button {
        width: auto;
        min-width: 0;
        padding-inline: 14px;
    }
}
