/*
 * Databad admin/content layout.
 * Non-color page, form, modal, table and admin styles.
 */


/* ADMIN / CONTENT / REPORTS
 * Admin, content pages, reports and shared form/modal surfaces. Used by resources/views/system/* and resources/views/user/* through resources/views/layouts/base.blade.php.
 */

.about-page {
    min-height: calc(100vh - 58px);
    padding: 2rem 1rem 3rem;
}

.public-reports-setting-help {
    margin-top: .65rem;
    line-height: 1.45;
}

.public-reports-setting-help p {
    margin-bottom: 0;
}

/* Customer list and embedded billing */
#customers .customer-address {
    max-width: 20rem;
    overflow-wrap: anywhere;
    white-space: normal !important;
}

#customers .customer-actions {
    min-width: max-content;
    white-space: nowrap !important;
}

#customers .customer-actions .admin-table-actions {
    flex-wrap: nowrap;
}

.admin-tabs {
    border-bottom: 0;
    gap: .35rem;
}

.modal-dialog-98 {
    height: 96vh;
    margin: 2vh auto;
    max-width: 98vw;
    width: 98vw;
}

.modal-dialog-98 .modal-content {
    height: 100%;
    overflow: hidden;
}

.modal-dialog-98 .modal-body {
    min-height: 0;
}

#customer-billing-frame {
    background: var(--theme-surface-subtle-bg);
    border: 0;
    display: block;
    height: 100%;
    min-height: 0;
    width: 100%;
}

.billing-embedded .wrapper > .navbar,
.billing-embedded .helpquick-popout,
.billing-embedded .cookie-consent {
    display: none !important;
}

.billing-embedded .content-wrapper {
    min-height: 0 !important;
}

.billing-embedded .admin-page {
    padding: 1rem;
}

.billing-embedded .billing-hero {
    justify-content: flex-end;
}

.billing-embedded .billing-hero .admin-brand {
    display: none;
}

.billing-action-card {
    background: var(--theme-page-bg);
    border: 1px solid var(--theme-form-border);
    border-radius: .55rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.billing-action-card h3 {
    border-bottom: 1px solid var(--theme-form-border);
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: .65rem;
}

.billing-action-card form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.billing-action-card .billing-action-button {
    align-self: flex-start;
    margin-top: auto;
}

.billing-line-value-cell {
    width: 13rem;
}
/* SHARED ACTION BUTTONS */
.confirm-modal .modal-content {
    border-radius: 0.5rem;
    overflow: hidden;
}
.confirm-modal .modal-header {
    padding: 1rem 1.15rem;
}
.confirm-modal .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}
.confirm-modal .modal-body {
    align-items: start;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto minmax(0, 1fr);
    line-height: 1.55;
    padding: 1.15rem;
}
.confirm-modal-icon {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}
.confirm-modal-text {
    margin: 0;
    padding-top: 0.25rem;
}
.confirm-modal .modal-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0.85rem 1.15rem;
}
.confirm-modal .btn-confirm {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    min-height: 40px;
    min-width: 84px;
    width: auto;
}
/* ADMIN */
.admin-page {
    min-height: calc(100vh - 58px);
    padding: 2rem 1rem 3rem;
}
.admin-shell {
    margin: 0 auto;
    max-width: 1040px;
}
.admin-shell-wide {
    margin: 0 auto;
    max-width: 90%;
}
.agreement-acceptance-shell {
    max-width: none;
    width: 80%;
}
.agreement-legal-party-warning {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
@media (max-width: 991.98px) {
    .agreement-acceptance-shell {
        width: 100%;
    }
    .agreement-legal-party-warning {
        align-items: flex-start;
        flex-direction: column;
    }
}
.admin-hero {
    margin-bottom: 1.5rem;
}
.maintenance-mode-toggle-track {
    background: var(--theme-toggle-off);
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 22px;
    padding: 2px;
    transition: background-color .2s ease, border-color .2s ease;
    width: 40px;
}
.maintenance-mode-toggle-thumb {
    background: var(--theme-surface-bg);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(15 23 42 / 28%);
    display: block;
    height: 16px;
    transform: translateX(0);
    transition: transform .2s ease;
    width: 16px;
}
.maintenance-mode-toggle-track.is-active {
    background: var(--theme-toggle-checked);
    border-color: var(--theme-toggle-checked);
}
.maintenance-mode-toggle-track.is-active .maintenance-mode-toggle-thumb {
    transform: translateX(16px);
}
.maintenance-page-card {
    max-width: 760px;
}
.maintenance-page-logo {
    max-width: 70%;
    width: 190px;
}
.billing-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.billing-status-badge {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 600;
    gap: .25rem;
    line-height: 1;
    min-height: 1.75rem;
    padding: .45rem .7rem;
}
.billing-terms-tooltip .tooltip-inner {
    line-height: 1.55;
    max-width: 280px;
    padding: .65rem .8rem;
    text-align: left;
}
.admin-brand {
    align-items: center;
    display: inline-flex;
    gap: 1rem;
    text-decoration: none;
}
.admin-brand:hover {
    text-decoration: none;
}
.admin-brand img {
    height: 64px;
    width: auto;
}
.admin-brand h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}
.admin-panel {
    border-radius: 0.5rem;
    padding: 1.5rem;
}
.admin-subpanel {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
}
.admin-form {
    display: grid;
    gap: 1.15rem;
}
.admin-section-title {
    border-radius: 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    padding: 0.55rem 0.75rem;
}
#accepted-agreements .admin-section-title {
    margin-bottom: 0.75rem;
}
.admin-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .chemical-form-grid {
        grid-template-columns: minmax(240px, 2fr) minmax(0, 3fr);
    }

    .chemical-form-grid .admin-field label {
        white-space: nowrap;
    }
}
.admin-field {
    display: grid;
    gap: 0.4rem;
}
.admin-field-wide {
    grid-column: 1 / -1;
}
.admin-field label {
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.admin-required {
    font-size: 0.82rem;
    font-weight: 700;
}
.admin-static-value {
    align-items: center;
    border-radius: 0.375rem;
    display: flex;
    min-height: 42px;
    padding: 0.45rem 0.75rem;
}
.admin-panel .form-control {
    min-height: 42px;
}
.admin-table-panel {
    overflow-x: auto;
}
.admin-table-toolbar {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.admin-table-toolbar-end {
    justify-content: flex-end;
}
.admin-table-toolbar h2 {
    margin: 0;
}
.admin-table {
    border-collapse: collapse;
    width: 100%;
}
.admin-table thead th {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.85rem 0.9rem;
    text-transform: uppercase;
}
.admin-table tbody td {
    padding: 0.85rem 0.9rem;
    vertical-align: middle;
}
.admin-table tbody td.text-vertical-top {
    vertical-align: top;
}
.admin-table tbody tr:last-child td {
border-bottom: 0;
}
.admin-menu-access-table th:first-child,
.admin-menu-access-table td:first-child {
width: 64%;
}
.admin-menu-access-table .form-check-input {
appearance: none;
background-color: var(--theme-surface-bg);
border: 2px solid var(--theme-radio-border);
border-radius: 50%;
cursor: pointer;
height: 1.4rem;
margin: 0;
opacity: 1;
transition: border-color .15s ease, box-shadow .15s ease;
width: 1.4rem;
}
.admin-menu-access-table .form-check-input:checked {
background-color: var(--theme-primary);
border: .4rem solid var(--theme-primary);
box-shadow: inset 0 0 0 .18rem var(--theme-surface-bg);
}
.admin-menu-access-table .form-check-input:hover {
border-color: var(--theme-primary);
}
.admin-menu-access-table .form-check-input:focus-visible {
border-color: var(--theme-primary);
box-shadow: 0 0 0 .22rem var(--theme-header-focus);
outline: 0;
}
.admin-menu-radio-target {
align-items: center;
cursor: pointer;
display: flex;
justify-content: center;
min-height: 2.75rem;
width: 100%;
}
.admin-menu-access-table .admin-menu-group-row th {
background: var(--theme-header-bg);
border-bottom: 1px solid var(--theme-header-border);
border-top: 1px solid var(--theme-header-border);
color: var(--theme-header-text);
font-size: .88rem;
font-weight: 700;
letter-spacing: .02em;
padding: .6rem .9rem;
width: auto;
}
.admin-menu-access-table .admin-menu-first-group-row th {
border-top: .4rem solid var(--theme-surface-bg);
}
.admin-menu-description {
color: var(--theme-text-muted);
font-size: .9rem;
line-height: 1.45;
margin-top: .2rem;
}
.mycenter-section-grid {
align-items: start;
display: grid;
gap: 1.25rem;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mycenter-section-column {
display: flex;
flex-direction: column;
gap: 1.25rem;
min-width: 0;
}
.mycenter-form-section {
border: 1px solid var(--bs-border-color);
border-radius: .5rem;
min-width: 0;
padding: 1rem;
}
.mycenter-form-section .admin-form-grid {
grid-template-columns: minmax(0, 1fr);
}
.mycenter-form-section .admin-field-wide {
grid-column: auto;
}
.mycenter-form-section .admin-section-title {
margin-bottom: 1rem;
}
.mycenter-form-section > p {
margin-bottom: 1rem;
}
@media (max-width: 1100px) {
    .mycenter-section-grid {
        grid-template-columns: 1fr;
    }
}
.admin-table-panel .dataTables_wrapper > .row {
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem 0 !important;
}
.admin-table-panel .dataTables_wrapper > .row:first-child {
    margin-bottom: 0.25rem;
    padding-top: 0 !important;
}
.admin-table-panel .dataTables_wrapper > .row:last-child {
    margin-top: 0.25rem;
    padding-bottom: 0.9rem !important;
}
.admin-table-panel .dataTables_wrapper .dataTables_length label,
.admin-table-panel .dataTables_wrapper .dataTables_filter label,
.admin-table-panel .dataTables_wrapper .dataTables_info {
    font-size: 0.88rem;
}
.admin-table-panel .dataTables_wrapper .dataTables_length select,
.admin-table-panel .dataTables_wrapper .dataTables_filter input {
    border-radius: 0.375rem !important;
    min-height: 36px;
}
.admin-table-panel .dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5rem;
    min-width: 220px;
}
.admin-table-panel .dataTables_wrapper .dataTables_paginate {
    font-size: 0.88rem;
}

.job-period-filter {
    margin: 0 0 1rem;
}

.job-period-filter .input-group {
    min-width: 13rem;
}

.job-table-controls {
    padding: 1rem;
}

.job-table-controls-top {
    border-bottom: 1px solid var(--theme-border);
}

.job-table-controls-bottom {
    border-top: 1px solid var(--theme-border);
}

.job-monitor-missing {
    margin: 0 0 1rem;
    width: 100%;
}
.admin-table-panel .dataTables_wrapper .dataTables_paginate .pagination {
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
    margin: 0;
}
.admin-table-panel .dataTables_wrapper .dataTables_paginate .page-item .page-link,
.admin-table-panel .dataTables_wrapper .dataTables_paginate .paginate_button {
    align-items: center;
    border-radius: 0.375rem !important;
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    margin: 0 !important;
    height: 40px;
    line-height: 1;
    min-height: 40px;
    min-width: 40px;
    padding: 0 !important;
    width: 40px;
}
.admin-table-panel .dataTables_wrapper .dataTables_paginate .page-item.previous .page-link,
.admin-table-panel .dataTables_wrapper .dataTables_paginate .page-item.next .page-link {
    font-size: 0;
}
.admin-table-panel .dataTables_wrapper .dataTables_paginate .page-item.previous .page-link::before,
.admin-table-panel .dataTables_wrapper .dataTables_paginate .page-item.next .page-link::before {
    font-size: 1.1rem;
    line-height: 1;
}
.admin-table-panel .dataTables_wrapper .dataTables_paginate .page-item.previous .page-link::before {
    content: "\2039";
}
.admin-table-panel .dataTables_wrapper .dataTables_paginate .page-item.next .page-link::before {
    content: "\203A";
}
.admin-table-panel .dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,
.admin-table-panel .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    cursor: default;
}
.admin-table-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}
.admin-table-actions .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.4rem;
    justify-content: center;
    min-height: 36px;
}
.customer-modal-summary {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    margin-bottom: 1rem;
}
.customer-active-field {
    align-content: start;
}
.customer-active-field .settings-toggle-switch {
    margin: 0;
}
.customer-toggle-control {
    align-items: center;
    display: flex;
    min-height: 42px;
}
.audit-overview-row {
    cursor: pointer;
}
.audit-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: flex;
    gap: 0.75rem;
    padding: 0;
    text-align: left;
    width: 100%;
}
.audit-toggle i {
    transition: transform 0.18s ease;
}
.audit-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}
.audit-toggle span,
.audit-toggle small {
    display: block;
}
.audit-toggle:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: 4px;
}
.admin-table.audit-overview-table tbody > tr.audit-inline-detail > td {
    background: transparent;
    border: 0;
    padding: 0;
}
.admin-table.audit-overview-table tbody > tr.audit-inline-detail.is-open > td,
.admin-table.audit-overview-table tbody > tr.audit-inline-detail.is-open:hover > td {
    background: var(--theme-page-bg);
}
.audit-inline-detail:not(.is-open) {
    pointer-events: none;
}
.audit-inline-collapse {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.32s ease, opacity 0.22s ease;
}
.audit-inline-detail.is-open .audit-inline-collapse {
    grid-template-rows: 1fr;
    opacity: 1;
}
.audit-inline-content {
    min-height: 0;
    overflow: hidden;
}
.audit-inline-content > .table-responsive {
    padding: 1rem;
}
.audit-inline-detail .audit-detail-table {
    margin: 0;
}
@media (prefers-reduced-motion: reduce) {
    .audit-inline-collapse,
    .audit-toggle i {
        transition: none;
    }
}
.audit-overview-row:focus-visible {
    outline: 3px solid var(--theme-focus-primary-stronger);
    outline-offset: -3px;
}
.audit-title-link {
    display: block;
    font-weight: 700;
    text-decoration: none;
}
.audit-overview-table td small {
    display: block;
    margin-top: 0.2rem;
}
.audit-action {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
}
.audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.25rem;
}
.audit-detail-table pre {
    font: inherit;
    margin: 0;
    min-width: 120px;
    white-space: pre-wrap;
    word-break: break-word;
}
.audit-detail-table .audit-old-column,
.audit-detail-table .audit-old-value {
    background: var(--theme-audit-old-bg);
}
.audit-detail-table .audit-new-column,
.audit-detail-table .audit-new-value {
    background: var(--theme-audit-new-bg);
}
.audit-detail-table .audit-field-label {
    border-left: 4px solid transparent;
}
.audit-detail-table .audit-field-changed {
    background: var(--theme-audit-changed-bg);
    border-left-color: var(--theme-audit-changed-border);
    color: var(--theme-audit-changed-text);
    font-weight: 700;
}
.audit-detail-table .audit-field-changed i {
    font-size: 0.75rem;
    margin-right: 0.4rem;
}
.audit-detail-table .audit-field-locked {
    color: var(--theme-text-muted);
    margin-left: 0.4rem;
}
.audit-detail-table .audit-field-locked i {
    margin: 0;
}
.audit-detail-table form .btn {
    white-space: nowrap;
}
.audit-pagination {
    margin-top: 1rem;
}
@media (max-width: 767px) {
    .customer-modal-summary {
        grid-template-columns: 1fr;
    }
}
.admin-message-title {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}
.admin-message-body {
    line-height: 1.55;
}
.admin-message-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.45rem;
    justify-content: flex-end;
    min-width: max-content;
    white-space: nowrap;
}
.admin-message-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    justify-content: flex-end;
    white-space: nowrap;
}
.admin-message-meta-value {
    line-height: 1.35;
    white-space: nowrap;
}
.admin-message-meta-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.admin-message-meta .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.4rem;
    justify-content: center;
    min-height: 36px;
    white-space: nowrap;
}
.admin-modal-form {
    display: grid;
    gap: 1rem;
}
.admin-modal-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-modal-field {
    display: grid;
    gap: 0.4rem;
}
.admin-modal-field-wide {
    grid-column: 1 / -1;
}
.admin-modal-field label,
.admin-field-label {
    font-weight: 700;
    margin: 0;
}
.admin-control-shell {
    min-width: 0;
}
.admin-role-toggle {
    border-radius: 999px;
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.25rem;
}
.admin-role-toggle input {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}
.admin-role-toggle label {
    align-items: center;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    transition: background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}
.admin-role-toggle input:focus-visible + label {
    outline-offset: 2px;
}
/* EDIT DATA */
.editdata-control-panel .admin-form-grid {
    align-items: end;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}
.editdata-window-note,
.editdata-empty {
    border-radius: 0.5rem;
    line-height: 1.5;
    padding: 0.85rem 1rem;
}
.editdata-window-note {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: 42px;
    min-height: 42px;
    padding-bottom: 0;
    padding-top: 0;
}
.editdata-empty {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    min-height: 96px;
    text-align: center;
}
.editdata-table-panel {
    overflow-x: auto;
}
.editdata-modal-sections {
    display: grid;
    gap: 1rem;
}
.editdata-modal-section {
    border-radius: 0.4rem;
    overflow: hidden;
}
.editdata-modal-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    padding: 0.6rem 0.75rem;
}
.editdata-consumption-grid {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem;
}
.editdata-consumption-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.editdata-control-headings,
.editdata-control-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.editdata-control-rows {
    gap: 0.85rem 1rem;
    padding: 0.85rem;
}
.editdata-field-empty {
    visibility: hidden;
}
/* OPERATION DATA */
.operationdata-shell {
    max-width: 900px;
}
.operationdata-toolbar {
    margin-bottom: 1.25rem;
}
.operationdata-lists {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
.operationdata-list-panel {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}
.operation-sort-list {
    align-content: start;
    border-radius: 0.45rem;
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    min-height: 84px;
    padding: 0.7rem;
}
.operation-sort-item {
    align-items: center;
    border-radius: 0.4rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 54px;
    padding: 0.45rem 0.55rem 0.45rem 0.8rem;
}
.operation-sort-item.operation-sort-label {
    font-weight: 700;
}
.operation-sort-main {
    align-items: center;
    display: inline-flex;
    gap: 0.6rem;
    min-width: 0;
}
.operation-sort-name {
    overflow-wrap: anywhere;
}
.operation-sort-actions {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    gap: 0.4rem;
}
.operation-sort-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    justify-content: center;
    min-height: 36px;
    white-space: nowrap;
}
.operation-drag,
.pool-drag,
.pool-bio-drag {
    align-items: center;
    border-radius: 0.25rem;
    cursor: grab;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1rem;
    height: 36px;
    justify-content: center;
    user-select: none;
    width: 22px;
}
.operation-drag:active,
.pool-drag:active,
.pool-bio-drag:active {
    cursor: grabbing;
}
.operation-sort-placeholder {
    border-radius: 0.4rem;
    visibility: visible !important;
}
/* POOLS */
.pool-list-shell {
    max-width: 1050px;
}
.pool-list-panel {
    padding-top: 1.25rem;
}
.pool-list-head,
.pool-sort-item {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 1.35fr) minmax(210px, 1fr) 205px;
}
.pool-list-head {
    border-radius: 0.4rem 0.4rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.85rem 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.pool-sort-list {
    border-radius: 0 0 0.4rem 0.4rem;
    border-top: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pool-sort-item {
    min-height: 64px;
    padding: 0.6rem 0.9rem;
}
.pool-sort-item:last-child {
    border-bottom: 0;
}
.pool-sort-primary {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
    min-width: 0;
}
.pool-sort-primary strong {
    overflow-wrap: anywhere;
}
.pool-edit-shell {
    max-width: 1220px;
}
.pool-edit-form .admin-panel {
    display: grid;
    gap: 1rem;
}
.pool-details-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pool-edit-split {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: minmax(360px, 0.9fr) minmax(430px, 1.1fr);
    align-items: start;
}
.pool-sensor-grid {
    display: grid;
    gap: 0.7rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pool-switch {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    gap: 0.65rem;
    line-height: 1.25;
    min-height: 38px;
}
.pool-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}
.pool-switch-slider {
    border-radius: 999px;
    display: inline-block;
    flex-shrink: 0;
    height: 24px;
    position: relative;
    transition: background-color 0.15s ease;
    width: 43px;
}
.pool-switch-slider::after {
    border-radius: 50%;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 0.15s ease;
    width: 18px;
}
.pool-switch input:checked + .pool-switch-slider::after {
    transform: translateX(19px);
}
.pool-limit-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pool-filter-control {
    max-width: 210px;
}
.pool-filter-list {
    display: grid;
    gap: 0.75rem;
}
.pool-filter-panel-head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
.pool-filter-row {
    align-items: end;
    border-radius: 0.4rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 34px minmax(240px, 360px) 128px minmax(280px, 1fr) auto;
    padding: 0.75rem;
}
.pool-filter-row .admin-field > label {
    white-space: nowrap;
}
.pool-filters-panel {
    margin-bottom: 1.25rem;
}
.pool-filter-unit-action {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    justify-content: center;
    min-height: 42px;
    white-space: nowrap;
}
.pool-filter-delete-action {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
}
.pool-filter-empty {
    border-radius: 0.4rem;
    padding: 0.85rem;
}
.pool-filter-name-value {
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
}
.pool-filter-unit-dialog {
    max-width: min(1220px, calc(100vw - 2rem));
}
.pool-filter-unit-modal .modal-title {
    align-items: center;
    display: inline-flex;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
}
.pool-filter-unit-modal .filter-unit-form {
    gap: 0;
}
.xdsoft_datetimepicker {
    z-index: 20000 !important;
}
.filtermaterial-action-row {
    align-items: stretch;
    justify-content: flex-end;
}
.filtermaterial-action-row form {
    display: flex;
    margin: 0;
}
.filtermaterial-action-row .btn,
.filtermaterial-estimate-notice {
    align-items: center;
    display: inline-flex;
    min-height: 42px;
}
.filtermaterial-estimate-notice {
    border-radius: 0.375rem;
    flex: 1 1 460px;
    font-size: 0.86rem;
    line-height: 1.3;
    margin: 0 auto 0 0;
    max-width: 760px;
    padding: 0.45rem 0.75rem;
}
.filtermaterial-latest-change-card {
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 0.9rem;
}
.filtermaterial-latest-change-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
}
.filtermaterial-latest-change-card p {
    margin: 0;
}
.filtermaterial-latest-change-card dl {
    display: grid;
    gap: 0.5rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 0;
}
.filtermaterial-latest-change-card div {
    min-width: 0;
}
.filtermaterial-latest-change-card dt {
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    text-transform: uppercase;
}
.filtermaterial-latest-change-card dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.pool-filter-unit-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.pool-filter-unit-grid {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.pool-filter-unit-modal-legacy .pool-filter-unit-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.pool-filter-unit-card {
    border-radius: 0.5rem;
    min-width: 0;
    overflow: hidden;
}
.pool-filter-unit-card-head {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
}
.pool-filter-unit-card-head h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}
.pool-filter-unit-card-head span {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
.pool-filter-unit-card-head h3 .pool-filter-unit-title-number {
    font-size: inherit;
}
.pool-filter-unit-context,
.pool-filter-unit-fields {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
}
.pool-filter-unit-card > .pool-filter-unit-context {
    padding: 0.85rem 0.85rem 0;
}
.pool-filter-unit-card > .pool-filter-unit-fields {
    padding: 0.85rem;
}
.pool-filter-unit-context {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pool-filter-unit-fields-legacy {
    grid-template-columns: 1fr;
}
.pool-filter-unit-switch {
    align-items: center;
    display: flex;
    min-height: 42px;
}
.pool-filter-index {
    align-items: center;
    border-radius: 0.3rem;
    display: inline-flex;
    font-weight: 700;
    height: 42px;
    justify-content: center;
}
.pool-section-copy {
    line-height: 1.5;
    margin: 0;
}
.pool-bio-head,
.pool-bio-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 42px minmax(245px, 1fr) 155px minmax(260px, 1fr);
}
.pool-bio-head {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.75rem 0.9rem;
    text-transform: uppercase;
}
.pool-bio-list {
    border-radius: 0.4rem;
    overflow: hidden;
}
.pool-bio-head + .pool-bio-list {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.pool-bio-row {
    min-height: 55px;
    padding: 0.45rem 0.9rem;
}
.pool-bio-row:last-child {
    border-bottom: 0;
}
.pool-bio-row.is-dragging {
    opacity: 0.94;
}
.pool-bio-row > label {
    font-weight: 600;
}
.pool-bio-row > input[type="checkbox"] {
    height: 19px;
    margin: 0;
    width: 19px;
}
.pool-bio-value {
    align-items: center;
    display: inline-flex;
    gap: 0.7rem;
}
.pool-bio-value .form-control {
    max-width: 115px;
    text-align: right;
}
.pool-bio-fixed-value {
    font-weight: 500;
}
.pool-edit-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
}
.pool-sort-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
}
.pool-sort-placeholder {
    visibility: visible !important;
}
/* CHOCKING */
.chocking-shell {
    max-width: 1050px;
}
.chocking-grid {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.55fr) minmax(275px, 0.8fr);
}
.chocking-controls,
.chocking-result {
    display: grid;
    gap: 1rem;
}
.chocking-values {
    padding-top: 1rem;
}
.chocking-form-errors {
    align-items: flex-start;
    border-radius: 0.45rem;
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.8rem 0.9rem;
}
.chocking-form-errors[hidden] {
    display: none;
}
.chocking-form-errors i {
    margin-top: 0.2rem;
}
.chocking-form-errors ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}
.chocking-process-status {
    border-radius: 0.45rem;
    padding: 0.85rem 0.95rem;
}
.chocking-process-heading {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}
.chocking-process-status dl {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}
.chocking-process-status dt,
.chocking-product dt {
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}
.chocking-process-status dd {
    font-weight: 600;
    margin: 0;
}
.chocking-guidance {
    align-items: start;
    border-radius: 0.45rem;
    display: flex;
    gap: 0.7rem;
    grid-column: 1 / -1;
    padding: 0.8rem 0.9rem;
}
.chocking-guidance i {
    margin-top: 0.15rem;
}
.chocking-guidance p {
    margin: 0;
}
.chocking-workflow,
.chocking-completion {
    display: grid;
    gap: 1rem;
    grid-column: 1 / -1;
    padding-top: 1rem;
}
.chocking-workflow h3 {
    font-size: 1.05rem;
    margin: 0;
}
.chocking-checks {
    display: grid;
    gap: 0.55rem;
}
.chocking-checks label {
    align-items: start;
    display: flex;
    gap: 0.55rem;
}
.chocking-checks input {
    flex: 0 0 auto;
    height: 1rem;
    margin-top: 0.2rem;
    width: 1rem;
}
.chocking-audit-note {
    font-size: 1rem;
    margin: 0;
}
.chocking-completion p {
    margin: 0;
}
.chocking-completion small {
    display: block;
    font-weight: 400;
    margin-top: 0.15rem;
}
.chocking-safety {
    align-items: start;
    border-radius: 0.45rem;
    display: flex;
    gap: 0.7rem;
    grid-column: 1 / -1;
    padding: 0.8rem 0.9rem;
}
.chocking-safety i {
    margin-top: 0.15rem;
}
.chocking-safety p {
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}
.chocking-result {
    border-radius: 0.45rem;
    margin-top: 0.8rem;
    padding: 1rem;
}
.chocking-dose {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    min-height: 2.4rem;
}
.chocking-dose-status {
    font-size: 1.15rem;
    font-weight: 600;
}
.chocking-product {
    margin: 0;
    padding-top: 0.85rem;
}
.chocking-product dd {
    font-weight: 600;
    margin: 0;
    min-height: 1.5rem;
}
.chocking-result .btn {
    justify-self: start;
}
/* WATERFLOW */
.waterflow-shell {
    max-width: 1120px;
}
.waterflow-panel {
    display: grid;
    gap: 1.25rem;
}
.waterflow-note {
    border-radius: 0.4rem;
    line-height: 1.5;
    margin: 0;
    padding: 0.7rem 0.85rem;
}
.waterflow-calculator {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(210px, 260px) auto minmax(300px, 1fr);
}
.waterflow-calculate {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: center;
    min-height: 42px;
}
.waterflow-table {
    border-radius: 0.45rem;
    overflow: hidden;
}
.waterflow-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(170px, 1fr) minmax(180px, auto);
    min-height: 58px;
    padding: 0.7rem 1rem;
}
.waterflow-row:last-child {
    border-bottom: 0;
}
.waterflow-row-guests {
    grid-template-columns: minmax(155px, 1fr) 255px 295px;
}
.waterflow-head {
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 46px;
    text-transform: uppercase;
}
.waterflow-head span {
    white-space: nowrap;
}
.waterflow-number {
    justify-self: stretch;
    text-align: right;
}
.waterflow-value {
    font-size: 1.08rem;
    font-weight: 600;
}
.waterflow-warning {
    display: block;
    font-size: 0.83rem;
    font-weight: 500;
    margin-top: 0.2rem;
}
/* SETTINGS */
.settings-shell {
    max-width: 1360px;
}
.settings-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(440px, 1.14fr) minmax(360px, 0.86fr);
}
.settings-layout-single {
    grid-template-columns: minmax(0, 1fr);
}
.settings-main {
    display: grid;
    gap: 1.25rem;
}
.settings-side {
    display: grid;
    gap: 1.25rem;
}
.settings-alert-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}
.settings-alert-grid textarea.form-control {
    line-height: 1.45;
    min-height: 110px;
    resize: vertical;
}
.settings-side .admin-section-title {
    margin-bottom: 1rem;
}
.databad-toggle {
    align-items: center;
    display: inline-flex !important;
    flex: 0 0 auto;
    height: 20px !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
    width: 36px !important;
}
.databad-toggle input[type="checkbox"] {
    cursor: pointer;
    display: block !important;
    height: 100% !important;
    inset: 0;
    margin: 0 !important;
    opacity: 0;
    position: absolute !important;
    width: 100% !important;
    z-index: 2;
}
.databad-toggle input[type="checkbox"]::after {
    content: none !important;
}
.databad-toggle .slider {
    bottom: auto !important;
    display: block;
    height: 20px !important;
    inset: 0 !important;
    left: 0 !important;
    overflow: hidden;
    position: absolute !important;
    right: auto !important;
    top: 0 !important;
    transition: 0.25s;
    width: 36px !important;
}
.databad-toggle .slider::before {
    content: '' !important;
    height: 14px !important;
    left: 2px !important;
    position: absolute !important;
    top: 2px !important;
    transform: none !important;
    transition: 0.25s !important;
    width: 14px !important;
}
.databad-toggle input[type="checkbox"]:checked + .slider::before {
    transform: translateX(16px) !important;
}
.settings-login-toggle {
    align-items: center;
    border-radius: 0.4rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem;
}
.settings-login-toggle strong,
.settings-login-toggle small {
    display: block;
    line-height: 1.45;
}
.settings-login-toggle small {
    font-size: 0.88rem;
    font-weight: 400;
}
.settings-filter-alert-row {
    display: grid;
    gap: 3rem;
    grid-template-columns: max-content minmax(180px, 1fr);
    grid-auto-flow: column;
    align-items: start;
}
.settings-filter-alert-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.settings-toggle-label {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
.settings-filter-alert-switch {
    align-items: center;
    border-radius: 0.4rem;
    display: flex;
    gap: 0.55rem;
    min-height: auto;
    padding: 0;
}
.settings-filter-alert-days label {
    display: block;
}
.measurement-route-builder {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr);
    align-items: start;
}
.measurement-route-active-field {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}
.measurement-route-autosave-status {
    display: block;
    min-height: 1.4em;
}
.measurement-field-bank,
.measurement-route-selected-panel {
    display: grid;
    gap: 1rem;
}
.measurement-field-bank-groups {
    display: grid;
    gap: 1rem;
}
.measurement-field-bank-group {
    display: grid;
    gap: 0.55rem;
}
.measurement-field-bank-group h3 {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}
.measurement-field-bank-list {
    display: grid;
    gap: 0.45rem;
}
.measurement-field-bank-item {
    align-items: center;
    border-radius: 0.45rem;
    border-width: 1px;
    border-style: solid;
    cursor: pointer;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 42px;
    padding: 0.55rem 0.65rem;
    text-align: left;
}
.measurement-field-bank-item span {
    font-weight: 700;
    line-height: 1.25;
}
.measurement-field-bank-item small {
    font-size: 0.78rem;
    line-height: 1;
}
.measurement-field-bank-empty {
    border-radius: 0.45rem;
    margin: 0;
    padding: 0.75rem;
}
.measurement-route-heading-button {
    justify-content: center;
    width: 100%;
}
.measurement-route-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    min-height: 120px;
    padding: 0;
}
.measurement-route-item {
    align-items: center;
    border-radius: 0.55rem;
    border-width: 1px;
    border-style: solid;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: auto minmax(140px, 1fr) 46px auto;
    min-height: 54px;
    padding: 0.55rem 0.65rem;
}
.measurement-route-item-dragging {
    opacity: 0.6;
}
.measurement-route-drag {
    align-items: center;
    cursor: grab;
    display: inline-flex;
    font-size: 1.1rem;
    justify-content: center;
    min-width: 26px;
}
.measurement-route-name-input {
    min-width: 0;
}
.measurement-route-unit {
    display: inline-flex;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-width: 46px;
    padding: 0;
    white-space: nowrap;
}
.measurement-route-remove {
    align-self: center;
    height: 40px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    width: 42px;
}
.measurement-route-unit-empty {
    opacity: 0.45;
}
.measurement-route-placeholder {
    border-radius: 0.55rem;
    border-width: 2px;
    border-style: dashed;
    min-height: 92px;
}
.measurement-round-page {
    padding: 2rem 1rem 3rem;
}
.measurement-round-layout {
    display: grid;
    gap: 1rem;
}
.measurement-round-shell {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 860px;
    width: 100%;
}
.measurement-round-page-hero {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
.measurement-round-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
.measurement-round-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}
.measurement-round-kicker {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}
.measurement-round-route-list {
    display: grid;
    gap: 0.75rem;
}
.measurement-round-route-card {
    align-items: center;
    border-radius: 0.65rem;
    border-width: 1px;
    border-style: solid;
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    padding: 1rem;
    text-decoration: none;
}
.measurement-round-route-card span {
    display: grid;
    gap: 0.2rem;
}
.measurement-round-route-card strong {
    font-size: 1.1rem;
    line-height: 1.25;
}
.measurement-round-empty,
.measurement-run-date,
.measurement-run-field {
    border-radius: 0.65rem;
    border-width: 1px;
    border-style: solid;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}
.measurement-run-date {
    grid-template-columns: minmax(0, 1fr);
}
.measurement-run-date-field {
    display: grid;
    gap: 0.35rem;
}
.measurement-round-empty h2,
.measurement-round-empty p {
    margin: 0;
}
.measurement-round-run-header {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 0.75rem 0;
}
.measurement-round-progress {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.55rem 0.75rem;
}
.measurement-run-form {
    display: grid;
    gap: 1rem;
}
.measurement-run-date label,
.measurement-run-field-label {
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}
.measurement-run-list {
    display: grid;
    gap: 0.75rem;
}
.measurement-run-section {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0 0.2rem;
}
.measurement-run-section h2,
.measurement-run-section p {
    margin: 0;
}
.measurement-run-section h2 {
    font-size: 1.1rem;
    font-weight: 800;
}
.measurement-run-field-row {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(95px, 0.85fr) minmax(120px, 1fr) 56px;
}
.measurement-run-control {
    min-width: 0;
}
.measurement-run-unit {
    align-items: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 800;
    justify-content: center;
    min-height: 32px;
    min-width: 56px;
    padding: 0;
    white-space: nowrap;
}
.measurement-run-unit-empty {
    opacity: 0.45;
}
.measurement-run-segmented {
    border-radius: 1rem;
    display: flex;
    gap: 0;
    max-width: 100%;
    min-width: 0;
    padding: 2px;
    width: 100%;
}
.measurement-round-run-page .measurement-run-segmented > input[type="radio"],
.measurement-run-segmented input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: none !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
}
.measurement-round-run-page .measurement-run-segmented > label,
.measurement-run-segmented label {
    align-items: center;
    border-radius: 0.85rem;
    cursor: pointer;
    display: flex;
    flex: 1 1 0;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    min-width: 0;
    padding: 6px 10px;
    text-align: center;
    white-space: nowrap;
}
.measurement-run-help,
.measurement-run-warning {
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}
.measurement-run-field .form-control,
.measurement-run-field .form-select,
.measurement-run-date .form-control {
    font-size: 1.2rem;
    min-height: 52px;
    width: 100%;
}
.measurement-run-field textarea.form-control {
    min-height: 104px;
}
.measurement-run-checkbox {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    min-height: 52px;
}
.measurement-run-checkbox input {
    height: 26px;
    width: 26px;
}
.measurement-run-checkbox span {
    font-size: 1.05rem;
    font-weight: 800;
}
.measurement-run-actions {
    bottom: 0;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
    padding: 0.75rem 0;
    position: sticky;
    z-index: 3;
}
.measurement-run-actions .btn {
    justify-content: center;
    min-height: 48px;
}
.settings-approval-list {
    display: grid;
    gap: 0.55rem;
}
.settings-approval-help {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.75rem 0 1rem;
}
.settings-approval-option {
    align-items: center;
    border-radius: 0.4rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 46px;
    padding: 0.55rem 0.7rem;
}
.settings-approval-option label {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 0.6rem;
    line-height: 1.35;
    margin: 0;
}
.settings-approval-option input {
    flex: 0 0 auto;
}
.settings-approval-actions {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.35rem;
}
.settings-approval-icon-button {
    align-items: center;
    border-radius: 0.35rem;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    text-decoration: none;
    width: 30px;
}
button.settings-approval-icon-button {
    border: 0;
    cursor: pointer;
    padding: 0;
}
.regulation-info-modal .modal-title {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
    line-height: 1.25;
}
.regulation-apply-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}
.regulation-apply-form .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.regulation-apply-form .modal-footer {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}
.regulation-target-selection {
    border: 1px solid var(--theme-border);
    border-radius: 0.5rem;
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.9rem;
}
.regulation-target-selection h4 {
    font-size: 1rem;
    margin: 0;
}
.regulation-target-pools {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.regulation-target-pool {
    align-items: center;
    border: 1px solid var(--theme-border);
    border-radius: 0.4rem;
    display: grid;
    gap: 0.15rem 0.55rem;
    grid-template-columns: auto 1fr;
    margin: 0;
    padding: 0.55rem 0.65rem;
}
.regulation-target-pool i {
    grid-row: 1 / span 2;
}
.regulation-target-pool small {
    color: var(--theme-text-muted);
}
.regulation-apply-note {
    flex: 1 1 260px;
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}
.regulation-info-document {
    counter-reset: regulation-info-section;
    display: grid;
    gap: 1.15rem;
    line-height: 1.5;
}
.regulation-info-summary {
    border-radius: 0.45rem;
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}
.regulation-info-tabbar {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.regulation-info-tab {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.55rem 0.8rem;
}
.regulation-info-lead,
.regulation-info-note,
.regulation-info-empty {
    line-height: 1.5;
    margin: 0;
}
.regulation-info-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.regulation-info-metric {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.85rem;
    gap: 0.35rem;
    line-height: 1;
    padding: 0.45rem 0.65rem;
}
.regulation-info-section {
    counter-increment: regulation-info-section;
    display: grid;
    gap: 0.8rem;
    padding-top: 0.35rem;
}
.regulation-info-section h4,
.regulation-info-profile h5,
.regulation-info-simple-grid h5 {
    line-height: 1.25;
    margin: 0;
}
.regulation-info-section h4 {
    align-items: center;
    display: flex;
    font-size: 1rem;
    gap: 0.55rem;
}
.regulation-info-section h4::before {
    align-items: center;
    border-radius: 999px;
    content: counter(regulation-info-section, decimal-leading-zero);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    height: 1.55rem;
    justify-content: center;
    letter-spacing: 0;
    width: 1.55rem;
}
.regulation-info-profile h5,
.regulation-info-simple-grid h5 {
    font-size: 0.9rem;
}
.regulation-info-profile {
    display: grid;
    gap: 0.75rem;
    padding: 0 0 0 1rem;
}
.regulation-info-profile h5 {
    padding-top: 0.1rem;
}
.regulation-info-category,
.regulation-decision-category,
.regulation-info-smart-sections,
.regulation-decision-sections {
    display: grid;
    gap: 0.65rem;
}
.regulation-info-category,
.regulation-decision-category {
    border-left-width: 3px;
    border-left-style: solid;
    padding-left: 0.85rem;
}
.regulation-info-category + .regulation-info-category,
.regulation-decision-category + .regulation-decision-category {
    margin-top: 0.35rem;
}
.regulation-info-category-title {
    display: grid;
    gap: 0.15rem;
}
.regulation-info-category-title strong {
    font-size: 0.86rem;
    line-height: 1.25;
}
.regulation-info-category-title span {
    font-size: 0.78rem;
    line-height: 1.35;
}
.regulation-info-group {
    display: grid;
    gap: 0.35rem;
    padding-left: 0.25rem;
}
.regulation-info-group-header {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}
.regulation-info-value-list,
.regulation-info-smart-list {
    display: grid;
    gap: 0.4rem;
}
.regulation-info-value-row {
    align-items: center;
    display: grid;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) max-content;
    min-height: 30px;
    padding: 0.28rem 0;
}
.regulation-info-value-row:last-child {
    border-bottom: 0;
}
.regulation-info-value-variant,
.regulation-info-smart-row span,
.regulation-info-smart-row small {
    font-size: 0.82rem;
    line-height: 1.35;
}
.regulation-info-value-limit {
    font-size: 0.88rem;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}
.regulation-info-smart-row {
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 0 0.45rem 0.45rem 0;
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
}
.regulation-info-smart-row div {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.regulation-info-smart-row p {
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
}
.regulation-info-simple-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 1rem;
}
.regulation-info-simple-list {
    display: grid;
    gap: 0.35rem;
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
}
.regulation-info-simple-list li {
    line-height: 1.45;
}
.regulation-decision-document {
    display: grid;
    gap: 1.1rem;
}
.regulation-decision-profile,
.regulation-decision-guidance {
    display: grid;
    gap: 0.7rem;
}
.regulation-decision-profile h4,
.regulation-decision-guidance h4 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
}
.regulation-decision-list {
    display: grid;
    gap: 0.65rem;
}
.regulation-decision-row {
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 0 0.45rem 0.45rem 0;
    display: grid;
    gap: 0.75rem;
    padding: 0.8rem;
}
.regulation-decision-main {
    align-items: start;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
}
.regulation-decision-main div {
    display: grid;
    gap: 0.15rem;
}
.regulation-decision-main strong {
    font-size: 0.95rem;
    line-height: 1.25;
}
.regulation-decision-main span,
.regulation-decision-main small {
    font-size: 0.82rem;
    line-height: 1.35;
}
.regulation-decision-options {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.regulation-decision-option {
    align-items: start;
    border-radius: 0.4rem;
    cursor: pointer;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0;
    min-height: 100%;
    padding: 0.65rem;
}
.regulation-decision-option input[type="radio"] {
    margin-top: 0.2rem;
}
.regulation-decision-option span {
    display: grid;
    gap: 0.28rem;
}
.regulation-limit-split,
.regulation-limit-inputs {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}
.regulation-limit-split b,
.regulation-limit-split i,
.regulation-limit-inputs i {
    grid-column: 1 / -1;
}
.regulation-limit-split span,
.regulation-limit-inputs label {
    border-radius: 0.35rem;
    display: grid;
    gap: 0.15rem;
    margin: 0;
    min-width: 0;
    padding: 0.35rem 0.45rem;
}
.regulation-limit-split small,
.regulation-limit-inputs small {
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}
.regulation-limit-split i,
.regulation-limit-inputs i {
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
}
.regulation-decision-option em {
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}
.regulation-decision-option strong {
    font-size: 0.82rem;
    line-height: 1.35;
}
.regulation-decision-option .form-control,
.regulation-limit-inputs .form-control {
    font-size: 0.85rem;
    min-height: 34px;
}
.settings-tolerance-grid {
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.settings-tolerance-grid label {
    min-height: 1.3em;
}
.settings-filter-load-panel .settings-approval-help {
    margin-bottom: 1rem;
}
.settings-load-settings {
    display: grid;
    gap: 1rem;
}
.settings-load-material {
    padding-top: 1rem;
}
.settings-load-material:first-child {
    border-top: 0;
    padding-top: 0;
}
.settings-load-material-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
}
.settings-load-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-load-grid label {
    font-size: 0.78rem;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}
.settings-backup-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
.settings-backup-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}
.settings-backup-row strong {
    font-size: 1.05rem;
}
.settings-actions {
    padding-top: 1rem;
}
/* NEW MESSAGES */
.nav-message-link {
    align-items: center;
    display: inline-flex !important;
    gap: 0.45rem;
}
.nav-message-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 1.35rem;
    min-width: 1.35rem;
    padding: 0.2rem 0.42rem;
}
.newmessages-list {
    display: grid;
    gap: 0.8rem;
    max-height: min(68vh, 680px);
    overflow-y: auto;
    padding: 1rem !important;
}
.newmessage-card {
    border-radius: 0.5rem;
    padding: 0.95rem 1rem;
}
.newmessage-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
.newmessage-header h4 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}
.newmessage-header span,
.newmessage-user {
    font-size: 0.82rem;
    font-weight: 700;
}
.newmessage-header span {
    white-space: nowrap;
}
.newmessage-user {
    margin-top: 0.15rem;
}
.newmessage-body {
    line-height: 1.55;
    margin-top: 0.75rem;
}
.admin-modal-field .form-control {
    min-height: 42px;
}
.admin-modal-field textarea.form-control {
    min-height: 150px;
}
.admin-modal-note {
    border-radius: 0.5rem;
    grid-column: 1 / -1;
    line-height: 1.5;
    margin: 0;
    padding: 0.85rem;
}
.admin-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    padding-top: 0.25rem;
}
.admin-actions .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    min-height: 40px;
}
.report-card {
    border-radius: 0.5rem;
    margin: 1rem 1.5rem 2rem;
    overflow: hidden;
}
.report-card-header {
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}
.report-card-header i {
    font-size: 1.1rem;
}
.report-card-body {
    padding-top: 1rem;
}
.report-table-controls {
    align-items: center;
    row-gap: 0.75rem;
}
.report-table-search .dataTables_filter {
    text-align: center;
}
.report-table-search .dataTables_filter label {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    margin: 0;
}
.report-table-search .dataTables_filter input {
    display: inline-block;
    margin-left: 0.6rem;
    min-width: 220px;
    min-height: 36px;
}
#reports_wrapper .dataTables_filter input[type="search"] {
    display: inline-block !important;
    height: 36px !important;
    margin-left: 0.6rem !important;
    min-width: 220px !important;
    padding: 0.3rem 0.6rem !important;
}
.report-table-type-filters {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    padding-top: 0.45rem;
}
.report-type-toggle-group {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}
.report-type-toggle {
    cursor: pointer;
    margin: 0;
}
.report-type-toggle input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}
.report-type-toggle span {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
}
#reports thead th {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    padding: 0.9rem 1.1rem !important;
    white-space: nowrap;
}
#reports tbody td {
    padding: 0.85rem 1.1rem !important;
    vertical-align: middle !important;
    font-size: 1rem;
}
.badge-day {
    padding: 0.3em 0.75em;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-week {
    padding: 0.3em 0.75em;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-month {
    padding: 0.3em 0.75em;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-ok {
    font-weight: 600;
    font-size: 0.9rem;
}
.status-empty {
    font-size: 0.9rem;
}
.btn-report-view {
    padding: 0.4rem 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 0.4rem !important;
    font-size: 0.88rem !important;
    transition: all 0.2s !important;
}
.btn-report-view:hover {
    transform: translateY(-1px) !important;
}
.btn-report-dl {
    padding: 0.4rem 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 0.4rem !important;
    font-size: 0.88rem !important;
    transition: all 0.2s !important;
}
.btn-report-dl:hover {
    transform: translateY(-1px) !important;
}
.btn-report-view:disabled,
.btn-report-dl:disabled {
    cursor: not-allowed;
    opacity: 1;
}
.btn-report-view:disabled:hover,
.btn-report-dl:disabled:hover {
    box-shadow: none !important;
    transform: none !important;
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    align-items: center;
    display: inline-flex;
    font-size: 0.9rem;
    gap: 0.45rem;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.4rem !important;
    padding: 0.3rem 0.6rem !important;
    font-size: 0.9rem;
}
.dataTables_wrapper .dataTables_length select {
    margin: 0;
    min-width: 68px;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 0.85rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.35rem !important;
}
#dataloading {
    text-align: center;
    padding: 3rem 1rem;
}
#dataloading i {
    margin-bottom: 1rem;
    display: block;
}
.about-shell {
    margin: 0 auto;
    max-width: 1100px;
}
.about-hero {
    margin-bottom: 1.5rem;
}
.about-brand {
    align-items: center;
    display: inline-flex;
    gap: 1rem;
    text-decoration: none;
}
.about-brand img {
    height: 64px;
    width: auto;
}
.about-brand h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}
.about-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) 320px;
}
.about-panel,
.about-contact {
    border-radius: 0.5rem;
}
.about-panel {
    padding: 1.5rem;
}
.about-copy {
    display: grid;
    gap: 1rem;
}
.about-section-divider,
.contact-section-divider,
.create-section-divider,
.profile-section-divider,
.security-section-title,
.privacy-section-title,
.cookies-section-title {
    border-radius: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    padding: 0.55rem 0.75rem;
}
.contact-section-divider {
    grid-column: 1 / -1;
}
.profile-section-divider {
    margin-bottom: 1rem;
}
.about-copy p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}
.about-contact {
    overflow: hidden;
    position: sticky;
    top: 5.25rem;
}
.about-contact-header {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
}
.about-contact-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}
.about-contact-body {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}
.about-contact-image {
    border-radius: 0.4rem;
    display: block;
    height: auto;
    max-width: 100%;
    padding: 0.75rem;
}
.about-actions {
    display: grid;
    gap: 0.65rem;
}
.about-actions .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    min-height: 42px;
    width: 100%;
}
.contact-page {
    min-height: calc(100vh - 58px);
    padding: 2rem 1rem 3rem;
}
.contact-shell {
    margin: 0 auto;
    max-width: 960px;
}
.contact-hero {
    margin-bottom: 1.5rem;
}
.contact-brand {
    align-items: center;
    display: inline-flex;
    gap: 1rem;
    text-decoration: none;
}
.contact-brand img {
    height: 64px;
    width: auto;
}
.contact-brand h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}
.contact-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
}
.contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-field {
    display: grid;
    gap: 0.4rem;
}
.contact-field-full {
    grid-column: 1 / -1;
}
.contact-label {
    font-weight: 700;
    margin: 0;
}
.contact-card .form-control {
    min-height: 42px;
}
.contact-card input.form-control {
    box-sizing: border-box;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
}
.contact-control-shell {
    display: flex;
    min-width: 0;
}
.contact-control-shell .form-control {
    flex: 1 1 auto;
    width: 100%;
}
.contact-card textarea.form-control {
    min-height: 180px;
    resize: vertical;
}
.contact-verification {
    align-items: center;
    border-radius: 0.5rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem;
    grid-column: 1 / -1;
}
.contact-verification-header {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    font-weight: 700;
}
.contact-verification-copy {
    display: grid;
    gap: 0.35rem;
}
.contact-help {
    margin: 0;
}
.contact-verification .cf-turnstile {
    min-height: 0;
}
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    grid-column: 1 / -1;
    justify-content: flex-end;
}
.contact-actions .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    min-height: 42px;
    padding-left: 1rem;
    padding-right: 1rem;
}
.create-page {
    min-height: calc(100vh - 58px);
    padding: 2rem 1rem 3rem;
}
.create-shell {
    margin: 0 auto;
    max-width: 1480px;
}
.create-hero {
    margin-bottom: 1.5rem;
}
.create-brand {
    align-items: center;
    display: inline-flex;
    gap: 1rem;
    text-decoration: none;
}
.create-brand img {
    height: 64px;
    width: auto;
}
.create-brand h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}
.create-panel {
    border-radius: 0.5rem;
    padding: 1.5rem;
}
.create-panel-intro {
    margin: 0 0 1.35rem;
}
.create-form,
.create-section {
    display: grid;
    gap: 1rem;
}
.create-section {
    padding-top: 1.1rem;
}
.create-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.create-section h2,
.create-verification h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}
.create-section p,
.create-verification p {
    line-height: 1.55;
    margin: 0;
}
.create-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.create-address-grid {
    grid-template-columns: 7.5rem minmax(0, 1fr);
}
.create-postal-field label {
    white-space: nowrap;
}
.create-control-shell {
    min-width: 0;
}
.create-party-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.create-party-section {
    align-content: start;
    border: 1px solid var(--create-border);
    border-radius: 0.5rem;
    padding: 1rem;
}
.create-party-section:first-of-type {
    border-top: 1px solid var(--create-border);
    padding-top: 1rem;
}
.create-pool-filter-section {
    border-top: 1px solid var(--create-border);
    display: grid;
    gap: 1rem;
    margin-top: 0.25rem;
    padding-top: 1rem;
}
.create-additional-pools {
    display: grid;
    gap: 1rem;
}
.create-card-title-row {
    display: grid;
    gap: 1rem;
}
.create-card-title-row .create-section-divider {
    width: 100%;
}
.create-card-title-row [data-remove-pool] {
    justify-self: end;
}
.create-terms-dialog {
    max-width: min(94vw, 1500px);
}
.create-terms-modal-body {
    height: 78vh;
    padding: 0;
}
.create-terms-modal-body iframe {
    border: 0;
    height: 100%;
    width: 100%;
}
.create-field {
    display: grid;
    gap: 0.4rem;
}
.create-field-wide {
    grid-column: 1 / -1;
}
.create-field label {
    font-weight: 700;
    margin: 0;
}
.create-extra-pools {
    display: grid;
    gap: 0.85rem;
}
.create-extra-pool {
    align-items: end;
    border-radius: 0.5rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    padding: 1rem;
}
[data-filter-card].create-extra-pool {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(8rem, 0.55fr) auto;
}
.create-add-pool,
.create-remove-pool {
    justify-self: start;
}
.create-remove-pool {
    min-height: 42px;
    white-space: nowrap;
}
.create-panel .form-control,
.create-panel .form-select {
    box-sizing: border-box;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
}
.create-verification {
    align-items: center;
    border-radius: 0.5rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem;
}
.create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}
.create-actions .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    min-height: 42px;
    padding-left: 1rem;
    padding-right: 1rem;
}
.profile-page {
    min-height: calc(100vh - 58px);
    padding: 2rem 1rem 3rem;
}
.profile-shell {
    margin: 0 auto;
    max-width: 1120px;
}
.profile-hero {
    margin-bottom: 1.5rem;
}
.profile-brand {
    align-items: center;
    display: inline-flex;
    gap: 1rem;
    text-decoration: none;
}
.profile-brand img {
    height: 64px;
    width: auto;
}
.profile-brand h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}
.profile-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}
.profile-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}
.profile-panel {
    border-radius: 0.5rem;
    padding: 1.5rem;
}
.profile-panel-intro,
.profile-empty,
.profile-integration-note p,
.profile-password-box p,
.profile-preferences-box p {
    line-height: 1.55;
    margin: 0;
}
.profile-panel-intro {
    margin-bottom: 1.2rem;
}
.profile-form,
.profile-center-form,
.profile-password-box {
    display: grid;
    gap: 1rem;
}
.profile-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-field {
    display: grid;
    gap: 0.4rem;
}
.profile-field-wide {
    grid-column: 1 / -1;
}
.profile-field label {
    font-weight: 700;
    margin: 0;
}
.profile-field small {
    line-height: 1.4;
}
.profile-panel .form-control,
#newuser .admin-modal-field .form-control,
#edituser .admin-modal-field .form-control {
    box-sizing: border-box;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
}
.profile-control-shell {
    min-width: 0;
}
.profile-password-box,
.profile-preferences-box,
.profile-integration-note {
    border-radius: 0.5rem;
    padding: 1rem;
}
.profile-password-box h3,
.profile-preferences-box h3,
.profile-integration-note strong {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}
.profile-preferences-box {
    align-items: start;
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}
.profile-preferences-box > div {
    width: 100%;
}
.profile-preferences-box form {
    justify-self: start;
}
@media (max-width: 768px) {
    .profile-preferences-box .btn {
        justify-content: center;
        width: 100%;
    }
    .profile-preferences-box form {
        justify-self: stretch;
    }
}
.profile-center-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.profile-center-item {
    align-items: center;
    border-radius: 0.5rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.9rem;
}
.profile-center-actions,
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}
.profile-actions .btn,
.profile-center-actions .btn,
.profile-add-center {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    min-height: 42px;
}
.profile-add-center {
    margin-top: 0.25rem;
}
.profile-center-form {
    margin-top: 1rem;
    padding-top: 1rem;
}
.front-page {
    min-height: calc(100vh - 58px);
    padding: 2rem 1rem 3rem;
}
.dedicated-login-page {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 116px);
    padding: clamp(2rem, 8vh, 4.5rem) 1rem;
}
.dedicated-login-shell {
    display: grid;
    gap: 1.65rem;
    justify-items: center;
    max-width: 410px;
    width: 100%;
}
.dedicated-login-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.85rem;
    justify-content: center;
    text-decoration: none;
}
.dedicated-login-brand img {
    display: block;
    height: 68px;
    width: auto;
}
.dedicated-login-brand span {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0;
}
.dedicated-login-card {
    border-radius: 0.5rem;
    display: grid;
    gap: 1.15rem;
    padding: 1.35rem;
    width: 100%;
}
.dedicated-login-card .front-section-divider {
    font-size: 1.1rem;
}
.front-shell {
    display: grid;
    gap: 1.25rem;
    margin: 0 auto;
    max-width: 1180px;
}
.front-hero {
    display: grid;
    gap: 1.25rem;
}
.front-hero-heading {
    display: grid;
    gap: 0.85rem;
    justify-items: start;
}
.front-hero-main {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) 360px;
}
.front-hero-copy {
    display: grid;
    gap: 1rem;
}
.front-logo-mark {
    height: auto;
    max-width: 210px;
    width: 42%;
}
.front-hero h1 {
    font-size: clamp(2.35rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}
.front-intro-card,
.front-login-card,
.front-panel {
    border-radius: 0.5rem;
    padding: 1.5rem;
}
.front-intro-card {
    display: grid;
    gap: 1rem;
}
.front-intro-card p {
    font-size: 1.04rem;
    line-height: 1.62;
    margin: 0;
}
.front-section-divider {
    border-radius: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    padding: 0.55rem 0.75rem;
}
.front-hero-actions,
.front-login-form,
.front-panel,
.front-field {
    display: grid;
    gap: 0.85rem;
}
.front-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}
.front-hero-actions .btn,
.front-login-submit,
.front-forgot-button {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    min-height: 42px;
}
.front-field label {
    font-weight: 700;
    margin: 0;
}
.front-login-card {
    position: sticky;
    top: 5.25rem;
}
.front-login-card .form-control,
.front-login-card .input-group-text,
.dedicated-login-card .form-control,
.dedicated-login-card .input-group-text {
    font-size: 16px !important;
    line-height: 1.5 !important;
    min-height: 42px;
}
.front-login-card .form-control,
.dedicated-login-card .form-control,
.front-reset-modal .form-control {
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}
.front-login-card .form-control::placeholder,
.dedicated-login-card .form-control::placeholder,
.front-reset-modal .form-control::placeholder {
    font-size: 16px;
    opacity: 0.72;
}
.front-login-card .form-control:-webkit-autofill,
.front-login-card .form-control:-webkit-autofill:hover,
.front-login-card .form-control:-webkit-autofill:focus,
.dedicated-login-card .form-control:-webkit-autofill,
.dedicated-login-card .form-control:-webkit-autofill:hover,
.dedicated-login-card .form-control:-webkit-autofill:focus,
.front-reset-modal .form-control:-webkit-autofill,
.front-reset-modal .form-control:-webkit-autofill:hover,
.front-reset-modal .form-control:-webkit-autofill:focus {
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}
.front-login-card .form-control:-webkit-autofill::first-line,
.dedicated-login-card .form-control:-webkit-autofill::first-line,
.front-reset-modal .form-control:-webkit-autofill::first-line {
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}
.front-review-card:hover {
    transform: translateY(-1px);
}
.front-review-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.front-review-card {
    align-items: start;
    border-radius: 0.5rem;
    cursor: pointer;
    display: grid;
    gap: 0.95rem;
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 1rem;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.front-review-card img {
    border-radius: 0.35rem;
    display: block;
    width: 100%;
}
.front-review-card > span {
    display: grid;
    gap: 0.35rem;
}
.front-review-card strong {
    font-size: 1.05rem;
}
.front-review-card small {
    line-height: 1.4;
}
.front-review-card span span {
    line-height: 1.45;
}
.preview-page {
    min-height: calc(100vh - 58px);
    padding: 2rem 1rem 3rem;
}
.preview-shell {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1180px;
}
.preview-hero {
    margin-bottom: 1.5rem;
}
.public-page-title {
    font-size: clamp(1.35rem, 1.7vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}
.preview-brand {
    align-items: center;
    display: inline-flex;
    gap: 1rem;
    text-decoration: none;
}
.preview-brand img {
    height: 64px;
    width: auto;
}
.preview-brand h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}
.preview-card,
.preview-demo-card,
.preview-gallery {
    border-radius: 0.5rem;
    padding: 1.5rem;
}
.preview-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.preview-actions .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    min-height: 42px;
}
.preview-demo-card {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    scroll-margin-top: 90px;
}
.preview-demo-copy {
    display: grid;
    gap: 0.75rem;
}
.preview-demo-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.preview-demo-copy h2 {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.preview-demo-copy p {
    line-height: 1.55;
    margin: 0;
}
.preview-demo-list {
    display: grid;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.preview-demo-list li {
    align-items: start;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: auto minmax(0, 1fr);
    line-height: 1.4;
}
.preview-demo-list li::before {
    content: "\f00c";
    font: var(--fa-font-solid);
    margin-top: 0.15rem;
}
.preview-demo-form {
    align-content: start;
    display: grid;
    gap: 1rem;
}
.preview-demo-verification {
    border-radius: 0.5rem;
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}
.preview-demo-verification-copy {
    display: grid;
    gap: 0.35rem;
}
.preview-demo-verification-header {
    align-items: center;
    display: flex;
    font-weight: 700;
    gap: 0.5rem;
}
.preview-demo-verification-copy p {
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
}
.preview-demo-form .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 42px;
}
.preview-gallery-card:hover {
    transform: translateY(-1px);
}
.preview-section-divider {
    border-radius: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    padding: 0.55rem 0.75rem;
}
.preview-gallery {
    display: grid;
    gap: 1rem;
}
.preview-gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.preview-gallery-card {
    align-items: center;
    appearance: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 0.85rem;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 142px;
    padding: 0.75rem;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.preview-gallery-card img {
    aspect-ratio: 16 / 10;
    border-radius: 0.35rem;
    display: block;
    object-fit: cover;
    object-position: top left;
    width: 100%;
}
.preview-gallery-card span {
    display: grid;
    gap: 0.25rem;
}
.preview-gallery-card strong {
    font-weight: 700;
    line-height: 1.25;
}
.preview-gallery-card small {
    line-height: 1.35;
}
.front-pdf-modal-body {
    background: var(--document-canvas-bg);
    height: calc(100vh - 255px);
    overflow: auto;
    padding: 0;
}
.front-publication-pages {
    --publication-scale: 1;
    align-items: center;
    display: block;
    min-height: 100%;
    padding: 1rem;
    width: 100%;
}
.front-publication-page {
    box-shadow: 0 0.25rem 0.8rem rgba(16, 24, 40, 0.2);
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: none;
    width: calc(900px * var(--publication-scale));
}
.front-publication-toolbar {
    align-items: center;
    background: var(--theme-surface-subtle-bg);
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.45rem 1rem;
}
.front-publication-toolbar .btn-light {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--theme-secondary-dark);
    display: inline-flex;
    gap: 0.4rem;
}
.front-publication-toolbar .btn-light:hover,
.front-publication-toolbar .btn-light:focus {
    background: var(--theme-surface-muted-bg);
    border-color: var(--document-rule);
    color: var(--theme-text);
}
.front-publication-toolbar .btn-light:disabled {
    background: transparent;
    border-color: transparent;
    opacity: 0.35;
}
.front-publication-page-status,
.front-publication-zoom {
    align-items: center;
    background: var(--theme-surface-bg);
    border-bottom: 1px solid var(--document-rule);
    border-top: 1px solid var(--document-rule);
    color: var(--theme-secondary-dark);
    display: inline-flex;
    font-size: 0.875rem;
    justify-content: center;
    min-height: 31px;
    padding: 0 0.7rem;
    white-space: nowrap;
}
.front-publication-page-status {
    min-width: 6.5rem;
}
.front-publication-toolbar-divider {
    background: var(--document-rule);
    height: 24px;
    width: 1px;
}
.front-publication-toolbar-spacer {
    flex: 1 1 auto;
}
.front-publication-zoom {
    min-width: 3.6rem;
    text-align: center;
}
@media (max-width: 575.98px) {
    .front-pdf-modal-body {
        height: calc(100vh - 300px);
    }
    .front-publication-toolbar {
        gap: 0.3rem;
        padding-inline: 0.5rem;
    }
    .front-publication-toolbar .btn span {
        display: none;
    }
}
.front-reset-modal {
    max-width: min(420px, calc(100vw - 2rem));
}
.front-reset-modal .modal-content {
    border-radius: 0.5rem;
    overflow: hidden;
}
.front-reset-modal .modal-header {
    padding: 1rem 1.15rem;
}
.front-reset-modal .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}
.front-reset-modal .modal-body {
    padding: 1.15rem;
}
.front-reset-modal .form-control {
    font-size: 16px;
    line-height: 1.5;
    min-height: 42px;
}
.front-reset-modal .modal-footer {
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
}
.front-reset-modal .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    min-height: 40px;
}
.front-preview-modal {
    max-width: min(1120px, calc(100vw - 2rem));
}
.front-preview-modal-body {
    padding: 1rem;
}
.front-preview-modal .carousel {
    padding: 0 2.75rem;
}
.front-preview-slide {
    border-radius: 0.5rem;
    overflow: hidden;
}
.front-preview-slide img {
    display: block;
    height: auto;
    margin-inline: auto;
    max-height: calc(100vh - 285px);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}
.front-preview-slide-footer {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.15rem;
    text-align: left;
}
.front-preview-slide-footer h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
.front-preview-slide-footer p {
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
}
.front-preview-modal .carousel-control-prev,
.front-preview-modal .carousel-control-next {
    align-items: center;
    border-radius: 8px;
    bottom: auto;
    box-sizing: border-box;
    display: flex;
    height: 48px;
    justify-content: center;
    opacity: 0.65;
    padding: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.18s ease;
    width: 34px;
}
.front-preview-modal .carousel-control-prev {
    left: 0;
}
.front-preview-modal .carousel-control-next {
    right: 0;
}
.front-preview-modal .carousel-control-prev:hover,
.front-preview-modal .carousel-control-prev:focus,
.front-preview-modal .carousel-control-next:hover,
.front-preview-modal .carousel-control-next:focus {
    opacity: 0.8;
}
.front-preview-modal .carousel-control-prev-icon,
.front-preview-modal .carousel-control-next-icon {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}
.front-preview-modal .carousel-control-prev-icon::before,
.front-preview-modal .carousel-control-next-icon::before {
    display: block;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    pointer-events: none;
}
.front-preview-modal .carousel-control-prev-icon::before {
    content: "\2039";
}
.front-preview-modal .carousel-control-next-icon::before {
    content: "\203A";
}
@media (max-width: 575.98px) {
    .front-preview-modal {
        max-width: calc(100vw - 1rem);
    }
    .front-preview-modal-body {
        padding: 0.5rem;
    }
    .front-preview-modal .carousel {
        padding-inline: 1.75rem;
    }
    .front-preview-slide img {
        max-height: calc(100vh - 330px);
    }
    .front-preview-slide-footer {
        padding: 0.75rem;
    }
}
.security-page {
    min-height: calc(100vh - 58px);
    padding: 2rem 1rem 3rem;
}
.security-shell {
    margin: 0 auto;
    max-width: 1100px;
}
.security-hero {
    margin-bottom: 1.5rem;
}
.security-brand {
    align-items: center;
    display: inline-flex;
    gap: 1rem;
    text-decoration: none;
}
.security-brand img {
    height: 64px;
    width: auto;
}
.security-brand h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}
.security-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 340px minmax(0, 1fr);
}
.security-media,
.security-panel {
    border-radius: 0.5rem;
    overflow: hidden;
}
.security-media img {
    display: block;
    height: auto;
    width: 100%;
}
.security-media-caption {
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
    padding: 1rem;
}
.security-panel {
    padding: 1.35rem;
}
.security-sections,
.privacy-sections,
.cookies-sections {
    display: grid;
    gap: 1rem;
}
.security-section,
.privacy-section,
.cookies-section {
    display: grid;
    gap: 0.75rem;
}
.security-section p,
.security-panel-intro,
.privacy-panel-intro,
.cookies-panel-intro {
    font-size: 1.03rem;
    line-height: 1.62;
    margin: 0;
}
.commercial-terms-body {
    display: block;
}
.commercial-terms-body > h2 {
    margin: 10mm 0 1.5mm;
}
.commercial-terms-body > h3 {
    margin: 5mm 0 1.5mm;
}
.commercial-terms-body > h4 {
    margin: 4mm 0 1.5mm;
}
.commercial-terms-body > .agreement-first-section-spacer { height: 3rem; }
.commercial-terms-body > .agreement-first-section-spacer + h2 { margin-top: 0; }
.commercial-terms-body > .agreement-text-block {
    margin: 0 0 0.15rem;
}
.commercial-terms-body sup,
.agreement-editor .note-editor .note-editable sup,
.agreement-document-preview sup {
    font-size: 0.7em;
    line-height: 0;
    position: relative;
    top: -0.45em;
    vertical-align: baseline;
}
.commercial-terms-body sup a,
.agreement-editor .note-editor .note-editable sup a,
.agreement-document-preview sup a {
    font-size: inherit;
    line-height: inherit;
}
.security-list,
.privacy-list,
.cookies-list {
    display: grid;
    gap: 0.45rem;
    list-style: disc;
    margin: 0;
    padding-left: 1.25rem;
}
.security-list li,
.privacy-list li,
.cookies-list li {
    line-height: 1.55;
}
.cookies-choice-action {
    list-style: none;
    margin-top: 1rem;
    text-align: right;
}
.security-privacy-action {
    margin-top: 1.25rem;
    text-align: right;
}
.privacy-contact-action {
    margin-top: 1.25rem;
    text-align: right;
}
.privacy-page,
.cookies-page {
    min-height: calc(100vh - 58px);
    padding: 2rem 1rem 3rem;
}
.privacy-shell,
.cookies-shell {
    margin: 0 auto;
    max-width: 920px;
}
.privacy-hero,
.cookies-hero {
    margin-bottom: 1.5rem;
}
.privacy-brand,
.cookies-brand {
    align-items: center;
    display: inline-flex;
    gap: 1rem;
    text-decoration: none;
}
.privacy-brand img,
.cookies-brand img {
    height: 64px;
    width: auto;
}
.privacy-brand h1,
.cookies-brand h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}
/* SHARED PAGE BRAND HEADERS */
.admin-hero,
.about-hero,
.contact-hero,
.preview-hero,
.create-hero,
.profile-hero,
.security-hero,
.privacy-hero,
.cookies-hero {
    margin-bottom: 1.15rem;
}
:is(
    .admin-brand,
    .about-brand,
    .contact-brand,
    .preview-brand,
    .create-brand,
    .profile-brand,
    .security-brand,
    .privacy-brand,
    .cookies-brand
) {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
    text-decoration: none;
}
:is(
    .admin-brand,
    .about-brand,
    .contact-brand,
    .preview-brand,
    .create-brand,
    .profile-brand,
    .security-brand,
    .privacy-brand,
    .cookies-brand
):hover {
    text-decoration: none;
}
:is(
    .admin-brand,
    .about-brand,
    .contact-brand,
    .preview-brand,
    .create-brand,
    .profile-brand,
    .security-brand,
    .privacy-brand,
    .cookies-brand
) img {
    flex-shrink: 0;
    height: 40px;
    width: auto;
}
:is(
    .admin-brand,
    .about-brand,
    .contact-brand,
    .preview-brand,
    .create-brand,
    .profile-brand,
    .security-brand,
    .privacy-brand,
    .cookies-brand
) h1 {
    font-size: clamp(1.35rem, 1.7vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}
.admin-hero-reports {
    margin: 1rem 1.5rem 1.15rem !important;
}
.privacy-panel,
.cookies-panel {
    border-radius: 0.5rem;
    padding: 1.35rem;
}
@media (max-width: 1180px) {
    .create-party-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .preview-demo-card {
        grid-template-columns: 1fr;
}
    .about-layout,
    .security-layout,
    .profile-layout,
    .front-hero-main,
    .settings-layout,
    .measurement-route-builder {
        grid-template-columns: 1fr;
}
    .about-contact {
        position: static;
}
    .security-media {
        max-width: 420px;
}
    .front-login-card {
        position: static;
}
    .front-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
	}
    .chocking-grid {
        grid-template-columns: 1fr;
}
    .chocking-process-status dl {
        grid-template-columns: 1fr;
}
    .pool-details-grid,
    .pool-edit-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
}
    .pool-edit-split .admin-panel {
        grid-column: 1 / -1;
}
    .pool-limit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 768px) {
    .report-table-controls > [class*="col-"] {
        text-align: left !important;
    }
    .report-table-search .dataTables_filter,
    .report-table-type-filters {
        justify-content: flex-start;
        text-align: left;
    }
    .report-type-toggle-group {
        justify-content: flex-start;
    }
    .contact-grid,
    .create-grid,
    .profile-grid,
    .settings-alert-grid,
    .settings-load-grid,
    .settings-tolerance-grid,
    .regulation-info-simple-grid,
    .regulation-decision-options {
        grid-template-columns: 1fr;
}
    .editdata-consumption-grid,
    .editdata-control-headings,
    .editdata-control-rows {
        grid-template-columns: 1fr;
}
    .editdata-control-headings h3:first-child {
        border-right: 0;
}
    .editdata-field-empty {
        display: none;
}
    .settings-tolerance-grid label {
        min-height: 0;
}
    .contact-actions,
    .create-actions,
    .profile-actions,
    .profile-center-actions {
        justify-content: stretch;
}
    .contact-actions .btn,
    .create-actions .btn,
    .profile-actions .btn,
    .profile-center-actions .btn,
    .profile-add-center {
        justify-content: center;
        width: 100%;
}
    .contact-verification,
    .create-verification {
        align-items: start;
        grid-template-columns: 1fr;
}
    .create-extra-pool {
        align-items: stretch;
        grid-template-columns: 1fr;
}
    .profile-center-item {
        align-items: stretch;
        grid-template-columns: 1fr;
}
    .create-remove-pool {
        justify-self: stretch;
}
    .front-hero-actions .btn {
        justify-content: center;
        width: 100%;
}
    .settings-backup-row {
        align-items: stretch;
        flex-direction: column;
}
    .settings-backup-row .btn {
        justify-content: center;
}
    .measurement-round-header {
        align-items: stretch;
        flex-direction: column;
}
    .measurement-round-page-hero {
        align-items: stretch;
        flex-direction: column;
}
    .measurement-round-page-hero .btn,
    .measurement-round-progress {
        justify-content: center;
        width: 100%;
}
    .measurement-route-item {
        grid-template-columns: auto minmax(90px, 1fr) 46px auto;
}
    .operation-sort-item {
        align-items: stretch;
        flex-direction: column;
}
    .operation-sort-actions {
        justify-content: flex-end;
}
    .pool-list-head {
        display: none;
}
    .pool-sort-list {
        border-radius: 0.4rem;
}
    .pool-sort-item {
        align-items: stretch;
        gap: 0.65rem;
        grid-template-columns: 1fr;
        padding: 0.8rem;
}
    .pool-sort-value {
        align-items: baseline;
        display: flex;
        gap: 0.6rem;
        justify-content: space-between;
}
    .pool-sort-value::before {
        content: attr(data-label);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
}
    .pool-sort-actions {
        justify-content: flex-end;
}
    .pool-filter-panel-head {
        align-items: stretch;
        flex-direction: column;
}
    .pool-details-grid,
    .pool-sensor-grid,
    .pool-limit-grid,
    .pool-filter-row,
    .pool-bio-row {
        grid-template-columns: 1fr;
}
    .pool-filter-index {
        width: 42px;
}
    .pool-filter-unit-action {
        width: 100%;
}
    .pool-filter-delete-action {
        width: 100%;
}
    .pool-filter-unit-dialog {
        max-width: calc(100vw - 1rem);
}
    .pool-filter-unit-grid,
    .pool-filter-unit-context,
    .pool-filter-unit-fields {
        grid-template-columns: 1fr;
}
    .pool-filter-unit-card-head {
        align-items: flex-start;
        flex-direction: column;
}
    .pool-bio-head {
        display: none;
}
    .pool-bio-value {
        align-items: center;
}
    .pool-edit-actions {
        flex-direction: column-reverse;
}
    .pool-edit-actions .btn {
        justify-content: center;
        width: 100%;
}
    .waterflow-calculator {
        align-items: stretch;
        grid-template-columns: 1fr;
}
    .waterflow-row,
    .waterflow-row-guests {
        gap: 0.35rem;
        grid-template-columns: minmax(0, 1fr) auto;
}
    .waterflow-row:not(.waterflow-head) {
        grid-template-columns: 1fr;
}
    .waterflow-row:not(.waterflow-head) .waterflow-number {
        grid-column: 1 / -1;
        justify-self: start;
        text-align: left;
}
    .waterflow-row-guests.waterflow-head {
        grid-template-columns: 1fr;
}
    .waterflow-head span {
        white-space: normal;
}
}
@media (max-width: 576px) {
    .front-page,
    .dedicated-login-page,
    .about-page,
    .contact-page,
    .create-page,
    .profile-page,
    .security-page,
    .privacy-page,
    .cookies-page {
        padding: 1.25rem 0.75rem 2rem;
}
    .dedicated-login-shell {
        gap: 1.25rem;
}
    .dedicated-login-card {
        padding: 1rem;
}
    .dedicated-login-brand img {
        height: 56px;
}
    .front-logo-mark {
        max-width: 170px;
        width: 58%;
}
    .admin-page {
        padding: 1.25rem 0.75rem 2rem;
}
    .admin-brand {
        gap: 0.7rem;
}
    .admin-brand img {
        height: 52px;
}
    .admin-brand h1 {
        font-size: 1.9rem;
}
    .admin-panel {
        padding: 1rem;
}
    .admin-form-grid {
        grid-template-columns: 1fr;
}
    .regulation-info-value-row {
        align-items: start;
        grid-template-columns: 1fr;
}
    .regulation-info-value-limit {
        text-align: left;
}
    .regulation-info-tabbar,
    .regulation-decision-main {
        align-items: stretch;
        flex-direction: column;
}
    .regulation-apply-form .modal-footer {
        align-items: stretch;
        flex-direction: column;
}
    .regulation-apply-form .modal-footer .btn {
        justify-content: center;
        width: 100%;
}
    .regulation-apply-note {
        flex-basis: auto;
}
    .regulation-info-tab {
        width: 100%;
}
    .regulation-limit-split,
    .regulation-limit-inputs {
        grid-template-columns: 1fr;
}
    .measurement-round-page {
        padding: 0.85rem 0.75rem 1.35rem;
}
    .measurement-round-route-card,
    .measurement-run-date,
    .measurement-run-field,
    .measurement-round-empty {
        border-radius: 0.55rem;
        padding: 0.72rem;
}
    .measurement-run-form,
    .measurement-run-list {
        gap: 0.65rem;
}
    .measurement-run-field .form-control,
    .measurement-run-field .form-select,
    .measurement-run-date .form-control {
        min-height: 44px;
}
    .measurement-run-date {
        grid-template-columns: 1fr;
}
    .measurement-route-active-field {
        align-items: center;
        gap: 0.5rem;
        grid-template-columns: minmax(138px, 0.9fr) minmax(164px, 1.1fr) 28px;
}
    .measurement-run-field-row {
        align-items: stretch;
        column-gap: 0.65rem;
        row-gap: 0.45rem;
        grid-template-columns: minmax(0, 1fr) 32px;
}
    .measurement-run-field-label {
        grid-column: 1 / -1;
        font-size: 1rem;
        min-width: 0;
        overflow-wrap: normal;
}
    .measurement-run-control {
        grid-column: 1 / 2;
}
    .measurement-run-unit {
        grid-column: 2 / 3;
        min-width: 32px;
}
    .measurement-run-control .measurement-run-segmented {
        justify-self: end;
        margin-left: auto;
        width: min(100%, 320px);
}
    .measurement-round-run-page .measurement-run-segmented > label,
    .measurement-run-segmented label {
        font-size: 0.84rem !important;
        min-height: 32px;
        padding: 5px 8px !important;
}
    .measurement-run-actions {
        position: static;
}
    .admin-field-wide {
        grid-column: auto;
}
    .admin-actions {
        justify-content: stretch;
}
    .admin-actions .btn {
        justify-content: center;
        width: 100%;
}
    .admin-table-toolbar {
        align-items: stretch;
        flex-direction: column;
}
    .admin-table-toolbar .btn {
        justify-content: center;
        width: 100%;
}
    .filtermaterial-estimate-notice {
        max-width: none;
        width: 100%;
}
    .filtermaterial-action-row form {
        width: 100%;
}
    .settings-filter-alert-row {
        display: grid;
        gap: 0.75rem;
        grid-template-columns: max-content minmax(180px, 1fr);
        grid-auto-flow: column;
}
    .settings-filter-alert-switch {
        justify-content: flex-start;
}
    .admin-modal-grid {
        grid-template-columns: 1fr;
}
    .admin-modal-field-wide {
        grid-column: auto;
}
    .front-review-grid,
    .preview-gallery-grid {
        grid-template-columns: 1fr;
	}
    .preview-gallery-card {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 112px;
	}
    .front-preview-modal-body {
        padding: 0.75rem;
}
    .front-preview-modal .carousel {
        padding: 0 2.25rem;
}
    .front-preview-modal .carousel-control-prev,
    .front-preview-modal .carousel-control-next {
        height: 42px;
        width: 30px;
}
    .front-preview-modal .carousel-control-prev-icon,
    .front-preview-modal .carousel-control-next-icon {
        height: 100%;
        width: 100%;
}
    .front-preview-modal .carousel-control-prev-icon::before,
    .front-preview-modal .carousel-control-next-icon::before {
        font-size: 30px;
}
    .front-review-card {
        grid-template-columns: 76px minmax(0, 1fr);
}
    .about-brand,
    .contact-brand,
    .admin-brand,
    .create-brand,
    .profile-brand,
    .security-brand,
    .privacy-brand,
    .cookies-brand {
        gap: 0.55rem;
}
    .about-brand img,
    .contact-brand img,
    .admin-brand img,
    .create-brand img,
    .profile-brand img,
    .security-brand img,
    .privacy-brand img,
    .cookies-brand img {
        height: 34px;
}
    .about-brand h1,
    .contact-brand h1,
    .admin-brand h1,
    .create-brand h1,
    .profile-brand h1,
    .security-brand h1,
    .privacy-brand h1,
    .cookies-brand h1 {
        font-size: 1.25rem;
}
    .about-panel,
    .contact-card,
    .preview-card,
    .preview-demo-card,
    .preview-gallery,
    .create-panel,
    .profile-panel,
    .security-panel,
    .privacy-panel,
    .cookies-panel {
        padding: 1.1rem;
}
    .about-copy p {
        font-size: 1rem;
        line-height: 1.55;
}
}
.btn-pool-filter-add-type{
    width: 200px;
}
.footer-language-flag {
    border: 0;
    height: 12px;
    margin-top: -5px;
}

/* HELP GUIDE */
.helpquick {
    position: fixed;
    right: 13.85rem;
    top: 1.05rem;
    z-index: 1032;
}
.helpquick-toggle,
.helpquick-close {
    align-items: center;
    border: 0;
    display: inline-flex;
    justify-content: center;
}
.helpquick-toggle {
    border-radius: 999px;
    height: 32px;
    width: 32px;
}
.helpquick-close {
    border-radius: 8px;
    height: 30px;
    width: 30px;
}
.helpquick-popout {
    border-radius: 8px;
    max-height: min(560px, calc(100vh - 5rem));
    overflow-y: auto;
    padding: 0.85rem;
    position: absolute;
    right: 0;
    top: 2.45rem;
    width: min(380px, calc(100vw - 2rem));
}
.helpquick-header,
.helpquick-search {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}
.helpquick-header {
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.helpquick-search {
    margin-bottom: 0.65rem;
}
.helpquick-search i {
    flex: 0 0 auto;
}
.helpquick-open {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.45rem 0;
    text-align: right;
}
.helpquick-results {
    display: grid;
    gap: 0.5rem;
    margin: 0.65rem 0;
}
.helpquick-result {
    border-radius: 7px;
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem 0.7rem;
    text-decoration: none;
}
.helpquick-result strong,
.helpquick-result span {
    display: block;
}
.helpquick-result span,
.helpquick-results p {
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}
.help-page {
    min-height: calc(100vh - 4rem);
    padding: 2rem clamp(1rem, 2.5vw, 2.5rem) 3rem;
}
.help-shell {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1320px;
}
.help-sidebar {
    align-self: start;
    border-radius: 8px;
    padding: 1rem;
    position: sticky;
    top: 5rem;
}
.help-search-panel label,
.help-sidebar h2 {
    display: block;
    font-weight: 700;
    margin-bottom: 0.65rem;
}
.help-search-input-wrap {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}
.help-search-panel p {
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0.65rem 0 1rem;
}
.help-index {
    display: grid;
    gap: 0.35rem;
}
.help-index-link {
    border-radius: 7px;
    display: block;
    font-weight: 600;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
}
.help-content {
    display: grid;
    gap: 1rem;
    min-width: 0;
}
.help-topic,
.help-glossary,
.help-print-index {
    border-radius: 8px;
    padding: clamp(1.1rem, 2.2vw, 1.75rem);
}
.help-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}
.help-topic h2,
.help-glossary h2,
.help-print-index h2 {
    margin: 0;
}
.help-print-button {
    flex: 0 0 auto;
}
.help-topic-header {
    align-items: flex-start;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 1rem;
}
.help-topic-header p {
    line-height: 1.55;
    margin: 0.35rem 0 0;
}
.help-bookmark {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    min-width: 34px;
    padding: 0 0.55rem;
}
.help-figure {
    margin: 1rem 0 1.25rem;
}
.help-figure img {
    border-radius: 8px;
    display: block;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    width: 100%;
}
.help-figure figcaption {
    font-size: 0.86rem;
    margin-top: 0.45rem;
}
.help-paragraph,
.help-list,
.help-note p,
.help-glossary dd {
    line-height: 1.62;
}
.help-list {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
}
.help-list li + li {
    margin-top: 0.45rem;
}
.help-note {
    border-radius: 8px;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
}
.help-note strong {
    display: block;
    margin-bottom: 0.35rem;
}
.help-note p {
    margin: 0;
}
.help-glossary dl {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0 0;
}
.help-glossary-entry {
    border-radius: 8px;
    padding: 0.85rem 1rem;
}
.help-glossary dt {
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.help-glossary dd {
    margin: 0;
}
.help-glossary .help-glossary-references {
    font-size: 0.9rem;
    margin-top: 0.45rem;
}
.help-glossary-references a {
    color: var(--theme-primary);
    font-weight: 600;
}
.terms-formula-card {
    background: color-mix(in srgb, var(--theme-primary) 7%, var(--theme-surface-bg));
    border: 1px solid color-mix(in srgb, var(--theme-primary) 30%, var(--theme-border));
    border-left: 4px solid var(--theme-primary);
    border-radius: 8px;
    margin-top: 0.8rem !important;
    padding: 1rem 1.1rem;
}
.terms-formula-card-compact {
    margin-top: 0.45rem !important;
    padding: 0.6rem 0.75rem;
}
.terms-formula-card-compact .terms-formula-expression {
    margin-top: 0;
}
.terms-formula-card-compact .terms-formula-note {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
}
.terms-inline-formula-row {
    line-height: 2.1;
}
.terms-inline-formula {
    background: color-mix(in srgb, var(--theme-primary) 10%, var(--theme-surface-bg));
    border: 1px solid color-mix(in srgb, var(--theme-primary) 32%, var(--theme-border));
    border-radius: 5px;
    color: var(--theme-text);
    font-weight: 400;
    padding: 0.25rem 0.5rem;
}
.terms-formula-title {
    color: var(--theme-primary);
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 0.25rem;
}
.terms-formula-condition,
.terms-formula-note {
    color: var(--theme-text-muted);
    margin: 0;
}
.terms-formula-steps {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
}
.terms-formula-step {
    background: var(--theme-surface-bg);
    border: 1px solid var(--theme-border);
    border-radius: 7px;
    padding: 0.75rem 0.85rem;
}
.terms-formula-step-heading {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}
.terms-formula-step-heading > span {
    align-items: center;
    background: var(--theme-primary);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 1.55rem;
    font-size: 0.82rem;
    font-weight: 750;
    height: 1.55rem;
    justify-content: center;
}
.terms-formula-expression {
    background: color-mix(in srgb, var(--theme-primary) 10%, var(--theme-surface-bg));
    border-radius: 6px;
    color: var(--theme-text);
    font-size: 0.96rem;
    font-weight: 700;
    margin-top: 0.65rem;
    overflow-wrap: anywhere;
    padding: 0.65rem 0.75rem;
}
.terms-formula-example {
    color: var(--theme-text-muted);
    margin-top: 0.45rem;
}
.terms-formula-result {
    color: var(--theme-primary);
    font-size: 1.05rem;
    font-weight: 800;
    margin-top: 0.25rem;
}
.terms-formula-reference {
    border: 1px solid currentColor;
    border-radius: 999px;
    display: inline-block;
    font-weight: 800;
    line-height: 1.25;
    padding: 0.05rem 0.38rem;
}
.terms-formula-reference-factor-high {
    background: color-mix(in srgb, #dc3545 12%, var(--theme-surface-bg));
    color: #b42332;
}
.terms-formula-reference-factor-medium {
    background: color-mix(in srgb, #d97706 13%, var(--theme-surface-bg));
    color: #a15305;
}
.terms-formula-reference-factor-standard {
    background: color-mix(in srgb, #198754 12%, var(--theme-surface-bg));
    color: #147044;
}
.terms-formula-flow {
    counter-reset: terms-flow;
    display: grid;
    gap: 0.45rem;
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
}
.terms-formula-flow li {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1.7rem 1fr;
}
.terms-formula-flow li::before {
    color: var(--theme-primary);
    content: "↓";
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
}
.terms-formula-flow li:first-child::before {
    content: "1";
}
.terms-formula-flow li span {
    background: var(--theme-surface-bg);
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
}
.terms-formula-table-wrap {
    margin-top: 0.8rem;
    overflow-x: auto;
}
.terms-formula-table {
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.35;
    min-width: 100%;
}
.terms-formula-table th,
.terms-formula-table td {
    border: 1px solid var(--theme-border);
    padding: 0.48rem 0.6rem;
    text-align: left;
}
.terms-formula-table th {
    background: color-mix(in srgb, var(--theme-primary) 13%, var(--theme-surface-bg));
    color: var(--theme-primary);
}
.terms-formula-inputs {
    margin-top: 0.85rem;
}
.terms-formula-inputs > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.terms-formula-inputs span,
.terms-formula-inputs a {
    background: var(--theme-surface-bg);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 35%, var(--theme-border));
    border-radius: 999px;
    color: var(--theme-primary);
    font-size: 0.84rem;
    font-weight: 650;
    padding: 0.25rem 0.55rem;
    text-decoration: none;
}
.terms-formula-inputs a:hover,
.terms-formula-inputs a:focus-visible {
    background: color-mix(in srgb, var(--theme-primary) 12%, var(--theme-surface-bg));
    border-color: var(--theme-primary);
    text-decoration: underline;
}
.terms-formula-note {
    border-top: 1px solid var(--theme-border);
    margin-top: 0.85rem;
    padding-top: 0.7rem;
}
.help-no-results {
    border-radius: 8px;
    font-weight: 600;
    margin: 0;
    padding: 1rem;
}
.help-print-cover,
.help-print-index {
    display: none;
}
mark {
    border-radius: 4px;
    padding: 0 0.15rem;
}
@media (max-width: 390px) {
    .measurement-run-field-row {
        align-items: stretch;
        grid-template-columns: 1fr;
}
    .measurement-run-unit {
        justify-content: flex-start;
        min-height: 20px;
}
}
@media (max-width: 992px) {
    .help-shell {
        grid-template-columns: 1fr;
}
    .help-sidebar {
        position: static;
}
}
@media (max-width: 768px) {
    .helpquick {
        right: 6.35rem;
}
    .help-page {
        padding: 1rem 0.75rem 2rem;
}
    .help-topic-header {
        gap: 0.65rem;
}
}
@media print {
    @page {
        margin: 14mm;
}
    nav.navbar,
    #langselect,
    #helpquick,
    .content-breadcrumbs,
    .help-screen-only,
    .cookie-consent,
    footer {
        display: none !important;
}
    .wrapper,
    .boxed-wrapper,
    .content-wrapper {
        margin: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        width: 100% !important;
}
    .help-page {
        padding: 0;
}
    .help-shell,
    .help-content {
        display: block;
        max-width: none;
}
    .help-print-cover {
        align-items: center;
        display: flex;
        flex-direction: column;
        min-height: 92vh;
        justify-content: center;
        page-break-after: always;
        text-align: center;
}
    .help-print-cover img {
        height: 72px;
        margin-bottom: 2rem;
}
    .help-print-cover h1 {
        font-size: 32pt;
        margin: 0 0 0.8rem;
}
    .help-print-cover p {
        font-size: 14pt;
        max-width: 145mm;
}
    .help-print-cover small {
        display: block;
        margin-top: 2rem;
}
    .help-print-index {
        display: block;
        page-break-after: always;
}
    .help-topic,
    .help-glossary {
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 0 1rem;
        page-break-inside: avoid;
        padding: 0;
}
    .help-figure img {
        max-height: 95mm;
}
    .help-glossary {
        page-break-before: always;
}
}
.error-severity,
.job-status,
.job-progress {
    display: inline-block;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}
.error-severity-critical, .error-severity-error, .job-status-failed { background: var(--theme-diagnostic-error-bg); color: var(--theme-diagnostic-error-text); }
.error-severity-warning, .error-severity-deprecation, .job-status-running { background: var(--theme-diagnostic-warning-bg); color: var(--theme-diagnostic-warning-text); }
.job-status-succeeded, .job-progress-complete { background: var(--theme-diagnostic-success-bg); color: var(--theme-diagnostic-success-text); }
.job-progress-incomplete { background: var(--theme-diagnostic-error-bg); color: var(--theme-diagnostic-error-text); }
.job-status-skipped, .job-progress-unknown { background: var(--theme-surface-muted-bg); color: var(--theme-text-muted); }
.error-log-summary pre,
.error-log-page td pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.error-stacktrace { max-height: 32rem; overflow: auto; padding: 1rem; background: var(--theme-surface-subtle-bg); border-radius: .5rem; }
.error-log-filter .form-select { min-width: 180px; }
.admin-pagination { display: flex; justify-content: center; margin-top: 1.25rem; }
.admin-pagination nav { width: 100%; }
.admin-pagination .pagination { align-items: center; gap: .3rem; justify-content: center; margin: 0; }
.admin-pagination .page-link {
    align-items: center;
    border-radius: .375rem;
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
    padding: .45rem .75rem;
}

/* PUBLIC PRICING */
.public-site-header { background: var(--theme-public-header-bg); border-bottom: 1px solid var(--theme-border); position: sticky; top: 0; z-index: 1040; }
.public-site-nav { align-items: center; display: flex; height: auto; margin: 0 auto; max-width: 1240px; min-height: 68px; padding: .65rem 1.25rem; }
.public-site-brand {
    display: block;
    flex: 0 0 158px;
    height: 54px;
    text-decoration: none;
    width: 158px;
}
.public-site-brand img {
    height: 54px;
    object-fit: contain;
    width: 158px;
}
.public-site-menu { align-items: center; display: flex; flex: 1; justify-content: space-between; margin-left: 2.5rem; }
.public-site-links,
.public-site-actions { align-items: center; display: flex; gap: .25rem; }
.public-site-links > a { border-radius: .5rem; color: var(--theme-public-link); font-size: .88rem; font-weight: 650; padding: .55rem .7rem; text-decoration: none; }
.public-site-links > a:hover,
.public-site-links > a.active { background: var(--theme-primary-soft); color: var(--theme-public-link-active); }
.public-site-actions > a { align-items: center; border-radius: .55rem; display: inline-flex; font-size: .84rem; font-weight: 750; gap: .4rem; min-height: 40px; padding: .55rem .8rem; text-decoration: none; }
.public-site-login { border: 1px solid var(--theme-public-control-border); color: var(--theme-public-ink); }
.public-site-login:hover { border-color: var(--theme-public-link-active); color: var(--theme-public-link-active); }
.public-site-create { background: var(--theme-public-action); border: 1px solid var(--theme-public-action); color: var(--theme-on-accent); }
.public-site-create:hover { background: var(--theme-public-action-hover); border-color: var(--theme-public-action-hover); color: var(--theme-on-accent); }
.public-site-languages { display: flex; gap: .35rem; margin-right: .25rem; }
.public-site-languages a { align-items: center; border-radius: .35rem; display: flex; height: 30px; justify-content: center; width: 30px; }
.public-site-languages a:hover { background: var(--theme-primary-soft); }
.public-site-languages img { height: 16px; width: 22px; }
.public-site-menu-toggle { background: var(--theme-surface-bg); border: 1px solid var(--theme-public-control-border); border-radius: .5rem; color: var(--theme-public-ink); display: none; height: 42px; margin-left: auto; width: 44px; }
.public-site-footer { background: var(--theme-public-footer-bg); color: var(--theme-public-footer-text); margin-top: auto; width: 100%; }
.public-site-footer-shell { display: grid; gap: 2.5rem; grid-template-columns: 2fr repeat(3, 1fr); margin: 0 auto; max-width: 1240px; padding: 3rem 1.25rem 2.5rem; }
.public-site-footer-brand > a { align-items: center; color: var(--theme-on-accent); display: inline-flex; font-size: 1.05rem; gap: .65rem; text-decoration: none; }
.public-site-footer-brand img { filter: brightness(0) invert(1); height: 43px; width: auto; }
.public-site-footer-brand p { color: var(--theme-public-footer-muted); font-size: .84rem; line-height: 1.6; margin: 1rem 0 0; max-width: 370px; }
.public-site-footer-column { align-items: flex-start; display: flex; flex-direction: column; gap: .6rem; }
.public-site-footer-column > strong { color: var(--theme-on-accent); font-size: .82rem; margin-bottom: .3rem; text-transform: uppercase; }
.public-site-footer-column > a,
.public-site-footer-languages a { color: var(--theme-public-footer-link); font-size: .84rem; text-decoration: none; }
.public-site-footer-column a:hover { color: var(--theme-on-accent); }
.public-site-footer-languages { display: flex; flex-direction: column; gap: .55rem; margin-top: .25rem; }
.public-site-footer-languages img { height: 14px; margin-right: .35rem; width: 20px; }
.public-site-footer-bottom { border-top: 1px solid var(--theme-public-footer-border); color: var(--theme-public-footer-subtle); font-size: .75rem; padding: .8rem 1.25rem; text-align: center; }
.cookies-table { font-size: .82rem; margin: .75rem 0 0; }
.cookies-table th { background: var(--theme-cookie-heading-bg); color: var(--theme-cookie-heading-text); white-space: nowrap; }
.cookies-table td { color: var(--theme-cookie-text); vertical-align: middle; }
.cookies-table code { color: var(--theme-cookie-code); white-space: nowrap; }
.cookies-technical { border: 1px solid var(--theme-cookie-border); border-radius: .55rem; margin-top: 1rem; overflow: hidden; }
.cookies-technical summary { background: var(--theme-cookie-summary-bg); color: var(--theme-cookie-heading-text); cursor: pointer; font-size: .9rem; font-weight: 700; padding: .85rem 1rem; }
.cookies-technical summary:hover { background: var(--theme-cookie-summary-hover-bg); }
.cookies-technical summary i { margin-right: .4rem; }
.cookies-technical .table-responsive { padding: 0 .75rem .5rem; }
@media (max-width: 940px) {
    .public-site-menu-toggle { display: inline-block; }
    .public-site-nav { flex-wrap: wrap; }
    .public-site-menu { align-items: stretch; display: none; flex-basis: 100%; flex-direction: column; margin: .75rem 0 0; padding-top: .75rem; }
    .public-site-menu.is-open { display: flex; }
    .public-site-links,
    .public-site-actions { align-items: stretch; flex-direction: column; }
    .public-site-links > a,
    .public-site-actions > a { justify-content: flex-start; padding: .7rem .8rem; width: 100%; }
    .public-site-actions { border-top: 1px solid var(--theme-border); margin-top: .5rem; padding-top: .75rem; }
    .public-site-languages { margin: 0 0 .4rem .5rem; }
    .public-site-footer-shell { grid-template-columns: 2fr 1fr 1fr; }
    .public-site-footer-column:last-child { grid-column: 2 / -1; }
}
@media (max-width: 600px) {
    .public-site-nav { min-height: 60px; padding: .45rem .75rem; }
    .public-site-brand { flex-basis: 146px; height: 50px; width: 146px; }
    .public-site-brand img { height: 50px; width: 146px; }
    .public-site-footer-shell { gap: 2rem 1rem; grid-template-columns: 1fr 1fr; padding: 2.2rem 1rem; }
    .public-site-footer-brand { grid-column: 1 / -1; }
    .public-site-footer-column:last-child { grid-column: auto; }
}

.pricing-page {
    --pricing-ink: var(--theme-pricing-ink);
    --pricing-muted: var(--theme-pricing-muted);
    --pricing-blue: var(--theme-pricing-primary);
    --pricing-green: var(--theme-pricing-action);
    background:
        radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--pricing-blue) 13%, transparent), transparent 27rem),
        radial-gradient(circle at 8% 40%, color-mix(in srgb, var(--pricing-green) 9%, transparent), transparent 24rem),
        var(--theme-page-bg);
    color: var(--pricing-ink);
    min-height: calc(100vh - 4rem);
    padding: 2rem 1rem 4rem;
}
.pricing-shell { margin: 0 auto; max-width: 1180px; }
.pricing-hero { padding: 2.5rem 1rem 3.5rem; text-align: center; }
.pricing-brand { align-items: center; color: var(--pricing-ink); display: inline-flex; font-size: 1.15rem; font-weight: 700; gap: .7rem; margin-bottom: 2.5rem; text-decoration: none; }
.pricing-brand:hover { color: var(--pricing-blue); }
.pricing-brand img { height: 43px; width: auto; }
.pricing-eyebrow,
.pricing-section-heading > span,
.pricing-difference span,
.pricing-outcome-copy > span { color: var(--pricing-blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pricing-eyebrow i { margin-right: .4rem; }
.pricing-hero h1 { font-size: clamp(2.25rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: .8rem auto 1.25rem; max-width: 940px; }
.pricing-hero > p { color: var(--pricing-muted); font-size: 1.12rem; line-height: 1.7; margin: 0 auto; max-width: 760px; }
.pricing-hero-actions,
.pricing-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
.pricing-start-note { color: var(--pricing-green) !important; font-size: .9rem !important; font-weight: 700; margin-top: 1rem !important; }
.pricing-start-note i { margin-right: .35rem; }
.pricing-primary,
.pricing-secondary { align-items: center; border-radius: .65rem; display: inline-flex; font-weight: 700; gap: .55rem; justify-content: center; min-height: 46px; padding: .7rem 1.15rem; }
.pricing-primary { background: var(--pricing-green); border: 1px solid var(--pricing-green); color: var(--theme-on-accent); }
.pricing-primary:hover { background: var(--theme-pricing-action-hover); border-color: var(--theme-pricing-action-hover); color: var(--theme-on-accent); transform: translateY(-1px); }
.pricing-secondary { background: var(--theme-surface-bg); border: 1px solid var(--theme-border); color: var(--pricing-ink); }
.pricing-secondary:hover { border-color: var(--pricing-blue); color: var(--pricing-blue); }
.pricing-photo { border-radius: 1.25rem; box-shadow: 0 20px 50px var(--theme-shadow-xl-soft); height: clamp(260px, 38vw, 440px); margin: 0 0 1.5rem; overflow: hidden; position: relative; }
.pricing-photo::after { background: linear-gradient(0deg, color-mix(in srgb, var(--theme-pricing-dark-start) 86%, transparent), transparent 54%); bottom: 0; content: ""; inset: 0; position: absolute; }
.pricing-photo img { height: 100%; object-fit: cover; object-position: center 54%; width: 100%; }
.pricing-photo figcaption { bottom: 0; color: var(--theme-on-accent); display: flex; flex-direction: column; left: 0; padding: clamp(1.3rem, 4vw, 2.5rem); position: absolute; z-index: 1; }
.pricing-photo figcaption strong { font-size: clamp(1.35rem, 3vw, 2.2rem); font-weight: 800; }
.pricing-photo figcaption span { color: var(--theme-pricing-on-dark-muted); margin-top: .25rem; }
.pricing-card { background: var(--theme-surface-bg); border: 1px solid var(--theme-pricing-border); border-radius: 1.25rem; box-shadow: 0 24px 60px var(--theme-shadow-xl-soft); display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; }
.pricing-card-copy { padding: clamp(2rem, 5vw, 4rem); }
.pricing-pill { background: var(--theme-primary-soft); border-radius: 99px; color: var(--pricing-blue); display: inline-block; font-size: .78rem; font-weight: 800; padding: .4rem .75rem; text-transform: uppercase; }
.pricing-card h2,
.pricing-section-heading h2,
.pricing-difference h2,
.pricing-outcome h2,
.pricing-cta h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.pricing-card h2 { margin: 1rem 0; }
.pricing-card-copy > p,
.pricing-section-heading p,
.pricing-difference p,
.pricing-outcome p,
.pricing-cta p { color: var(--pricing-muted); line-height: 1.65; }
.pricing-checks { display: grid; gap: .7rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.pricing-checks i { color: var(--pricing-green); margin-right: .55rem; }
.pricing-numbers { background: linear-gradient(145deg, var(--theme-pricing-dark-start), var(--theme-pricing-dark-end)); color: var(--theme-on-accent); display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.pricing-rate { align-items: baseline; display: flex; gap: .75rem; }
.pricing-rate strong { font-size: clamp(3.4rem, 7vw, 5.6rem); letter-spacing: -.06em; line-height: 1; }
.pricing-rate span { color: var(--theme-pricing-on-dark-muted); max-width: 9rem; }
.pricing-rate-small { border-top: 1px solid var(--theme-on-accent-muted-bg); margin-top: 1rem; padding-top: 1rem; }
.pricing-rate-small strong { font-size: 2.2rem; }
.pricing-cap { align-items: center; background: var(--theme-on-accent-muted-bg); border: 1px solid var(--theme-on-accent-muted-bg); border-radius: .75rem; display: flex; gap: .9rem; margin-top: 1.5rem; padding: 1rem; }
.pricing-cap > i { color: var(--theme-pricing-on-dark-accent); font-size: 1.5rem; }
.pricing-cap strong,
.pricing-cap span { display: block; }
.pricing-cap span { color: var(--theme-pricing-on-dark-muted); font-size: .8rem; margin-top: .2rem; }
.pricing-billing { border-top: 1px solid var(--theme-on-accent-muted-bg); color: var(--theme-pricing-on-dark-muted); font-size: .82rem; line-height: 1.5; margin: 1.25rem 0 0; padding-top: 1.1rem; }
.pricing-billing i { color: var(--theme-pricing-on-dark-accent); margin-right: .35rem; }
.pricing-numbers > small { color: var(--theme-pricing-on-dark-subtle); margin-top: 1rem; }
.pricing-value { padding: 5rem 0 2rem; }
.pricing-section-heading { margin: 0 auto 2rem; max-width: 720px; text-align: center; }
.pricing-section-heading h2 { margin: .65rem 0 .8rem; }
.pricing-feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.pricing-feature { background: var(--theme-pricing-feature-bg); border: 1px solid var(--theme-pricing-border); border-radius: .9rem; padding: 1.35rem; transition: transform .18s ease, box-shadow .18s ease; }
.pricing-feature:hover { box-shadow: 0 14px 30px var(--theme-shadow-lg); transform: translateY(-3px); }
.pricing-feature-icon { align-items: center; background: var(--theme-primary-soft); border-radius: .65rem; color: var(--pricing-blue); display: flex; font-size: 1.15rem; height: 42px; justify-content: center; width: 42px; }
.pricing-feature h3 { font-size: 1rem; font-weight: 800; margin: 1rem 0 .45rem; }
.pricing-feature p { color: var(--pricing-muted); font-size: .9rem; line-height: 1.55; margin: 0; }
.pricing-difference,
.pricing-outcome { align-items: center; border-radius: 1rem; display: flex; gap: 1.5rem; margin-top: 2rem; padding: clamp(1.6rem, 4vw, 3rem); }
.pricing-difference { background: var(--theme-pricing-difference-bg); border: 1px solid var(--theme-pricing-difference-border); }
.pricing-difference-icon { align-items: center; background: var(--theme-surface-bg); border-radius: 50%; color: var(--pricing-blue); display: flex; flex: 0 0 auto; font-size: 2rem; height: 76px; justify-content: center; width: 76px; }
.pricing-difference h2,
.pricing-outcome h2 { margin: .35rem 0 .55rem; }
.pricing-difference p,
.pricing-outcome p { margin: 0; }
.pricing-outcome { background: linear-gradient(130deg, var(--theme-pricing-outcome-start), var(--theme-pricing-outcome-end)); border: 1px solid var(--theme-pricing-outcome-border); justify-content: space-between; }
.pricing-outcome-copy { max-width: 820px; }
.pricing-outcome-copy > span { color: var(--pricing-green); }
.pricing-outcome-mark { color: var(--pricing-green); font-size: clamp(3rem, 7vw, 6rem); opacity: .82; }
.pricing-cta { align-items: center; background: var(--theme-surface-bg); border: 1px solid var(--theme-pricing-border); border-radius: 1rem; display: flex; justify-content: space-between; margin-top: 2rem; padding: clamp(1.6rem, 4vw, 3rem); }
.pricing-cta h2 { margin: 0 0 .4rem; }
.pricing-cta p { margin: 0; }
.pricing-cta-actions { flex: 0 0 auto; margin: 0 0 0 2rem; }
.pricing-note { color: var(--pricing-muted); font-size: .82rem; line-height: 1.6; margin: 1.5rem auto 0; max-width: 850px; text-align: center; }
@media (max-width: 900px) {
    .pricing-card { grid-template-columns: 1fr; }
    .pricing-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-cta { align-items: flex-start; flex-direction: column; }
    .pricing-cta-actions { justify-content: flex-start; margin: 1.25rem 0 0; }
}
@media (max-width: 560px) {
    .pricing-page { padding-inline: .65rem; }
    .pricing-hero { padding-inline: .25rem; }
    .pricing-feature-grid { grid-template-columns: 1fr; }
    .pricing-difference { align-items: flex-start; flex-direction: column; }
    .pricing-outcome-mark { display: none; }
    .pricing-rate { align-items: flex-end; }
    .pricing-hero-actions .btn,
    .pricing-cta-actions .btn { width: 100%; }
    .pricing-cta-actions { width: 100%; }
}
.pricing-terms-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--theme-primary);
    font-weight: 700;
    text-decoration: none;
}

.pricing-terms-link:hover { text-decoration: underline; }

/* Agreement administration */
.commercial-section-toolbar {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 4fr) minmax(10rem, 1fr);
}
.agreement-editor > .agreement-version-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}
.agreement-editor > .agreement-version-form > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.agreement-editor > .agreement-version-form > .modal-footer { flex: 0 0 auto; }
.agreement-editor .modal-body { overflow-y: auto; }
.agreement-field-label {
    align-items: center;
    display: flex;
    gap: .25rem;
}
.agreement-field-label .form-label { margin-bottom: 0; }
.agreement-editor-grid {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 4fr) minmax(13rem, 1fr);
}
.agreement-merge-fields {
    align-self: start;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: .35rem;
    scrollbar-gutter: stable;
}
.agreement-rich-editor-column {
    align-self: start;
    min-width: 0;
}
.agreement-merge-fields .btn {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agreement-editor .note-editor { margin-bottom: 0; }
.agreement-editor .note-editor .note-editable {
    background: var(--document-surface);
    box-sizing: border-box;
    color: var(--document-text);
    font-family: "DejaVu Sans", Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 174mm;
    min-height: 840px;
    padding: 8mm 0;
}
.agreement-editor .note-editor .note-editable h2,
.agreement-editor .note-editor .note-editable h3,
.agreement-editor .note-editor .note-editable h4 {
    color: var(--document-primary);
    margin-bottom: 1.5mm;
}
.agreement-editor .note-editor .note-editable h2 { font-size: 13pt; margin-top: 10mm; }
.agreement-editor .note-editor .note-editable h3 { font-size: 11.5pt; margin-top: 5mm; }
.agreement-editor .note-editor .note-editable h4 { font-size: 10.5pt; margin-top: 4mm; }
.agreement-editor .note-editor .note-editable p { margin: 0 0 8px; }
.agreement-editor .note-editor .note-editable ul,
.agreement-editor .note-editor .note-editable ol { margin: 5px 0 10px 22px; }
.agreement-editor .note-editor .note-editable blockquote {
    border-left: 3px solid var(--document-accent-border);
    color: var(--document-muted);
    margin: 10px 0;
    padding: 4px 0 4px 12px;
}
.agreement-editor .note-editor .note-editable a { color: var(--document-primary); }
.agreement-editor .note-editor .note-editable hr { border: 0; border-top: 1px solid var(--document-rule); margin: 16px 0; opacity: 1; }
.agreement-editor .note-editor .note-editable table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.agreement-editor .note-editor .note-editable th,
.agreement-editor .note-editor .note-editable td { border: 1px solid var(--document-border); padding: 6px 8px; vertical-align: top; }
.agreement-editor .note-editor .note-editable th { background: var(--document-heading-bg); color: var(--document-primary-dark); font-weight: 700; }
.agreement-editor .note-editor .note-editable table.agreement-parties { margin: 4mm 0 8mm; table-layout: fixed; }
.agreement-editor .note-editor .note-editable table.agreement-parties td { border: 0; padding: 0 8mm 0 0; width: 50%; }
.agreement-editor .note-editor .note-editable table.agreement-parties td + td { padding: 0 0 0 8mm; }
.agreement-editor .note-editor .note-editable img { display: block; height: auto; margin: 12px auto; max-width: 100%; }
.agreement-editor .note-editor .note-editable .agreement-page-break-before {
    border-top: 1px dashed var(--document-accent-border);
    margin-top: 18mm;
    padding-top: 7mm;
}
.agreement-preview-content {
    background: var(--document-canvas-bg);
    border: 1px solid var(--theme-border);
    border-radius: .5rem;
    overflow: auto;
    padding: 2rem;
}
.agreement-document-preview {
    background: var(--document-surface);
    box-shadow: 0 .35rem 1.5rem rgba(15, 23, 42, .18);
    box-sizing: border-box;
    color: var(--document-text);
    font-family: "DejaVu Sans", Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
    margin: 0 auto;
    min-height: 297mm;
    padding: 23mm 18mm 19mm;
    width: 210mm;
    position: relative;
}
.agreement-document-first-header { height: 29mm; margin-bottom: 11mm; position: relative; }
.agreement-document-logo { height: auto; margin: 0; position: absolute; right: 0; top: 0; width: 48mm; }
.agreement-document-kicker { color: var(--document-muted); font-size: 8.5pt; letter-spacing: .05em; margin: 0 0 3mm; text-transform: uppercase; }
.agreement-document-preview h1 { color: var(--document-text); font-size: 21pt; line-height: 1.2; margin: 0 0 5mm; }
.agreement-document-title-rule { border: 0; border-top: 2px solid var(--document-primary); margin: 0 0 9mm; opacity: 1; }
.agreement-document-preview h2,
.agreement-document-preview h3,
.agreement-document-preview h4 {
    color: var(--document-primary);
    line-height: 1.2;
    margin-bottom: 1.5mm;
}
.agreement-document-preview h2 { font-size: 13pt; margin-top: 10mm; }
.agreement-document-preview h3 { font-size: 11.5pt; margin-top: 5mm; }
.agreement-document-preview h4 { font-size: 10.5pt; margin-top: 4mm; }
.agreement-document-preview .agreement-first-section-spacer { height: 12mm; }
.agreement-document-preview .agreement-first-section-spacer + h2,
.agreement-document-preview .agreement-first-section-spacer + h3,
.agreement-document-preview .agreement-first-section-spacer + h4 { margin-top: 0; }
.agreement-document-preview h2 + h3 { margin-top: 5mm; }
.agreement-document-preview h2 + h4,
.agreement-document-preview h3 + h4 { margin-top: 4mm; }
.agreement-document-preview .agreement-text-block { margin: 0 0 .5mm; }
.agreement-document-preview p { margin: 0 0 8px; }
.agreement-document-preview ul,
.agreement-document-preview ol { margin: 5px 0 10px 22px; }
.agreement-document-preview blockquote {
    border-left: 3px solid var(--document-accent-border);
    color: var(--document-muted);
    margin: 10px 0;
    padding: 4px 0 4px 12px;
}
.agreement-document-preview a { color: var(--document-primary); }
.agreement-document-preview main > hr { border: 0; border-top: 1px solid var(--document-rule); margin: 16px 0; opacity: 1; }
.agreement-document-preview table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.agreement-document-preview th,
.agreement-document-preview td { border: 1px solid var(--document-border); padding: 6px 8px; vertical-align: top; }
.agreement-document-preview th { background: var(--document-heading-bg); color: var(--document-primary-dark); font-weight: 700; }
.agreement-document-preview table.agreement-parties { margin: 4mm 0 8mm; table-layout: fixed; }
.agreement-document-preview table.agreement-parties td {
    border: 0;
    padding: 0 8mm 0 0;
    width: 50%;
}
.agreement-document-preview table.agreement-parties td + td { padding: 0 0 0 8mm; }
.agreement-document-preview main img { display: block; height: auto; margin: 12px auto; max-width: 100%; }
.agreement-document-preview .agreement-page-break-before {
    border-top: 1px dashed var(--document-accent-border);
    margin-top: 18mm;
    padding-top: 7mm;
}
.agreement-document-footer {
    align-items: center;
    border-top: 1px solid var(--document-primary);
    bottom: 8mm;
    color: var(--document-muted);
    display: flex;
    font-size: 8pt;
    justify-content: space-between;
    left: 18mm;
    padding-top: 2.5mm;
    position: absolute;
    right: 18mm;
}
.agreement-preview-panel [data-preview-errors] { white-space: pre-line; }
.agreement-editor button.agreement-field-help {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    display: inline-flex;
    line-height: 1;
    margin-left: .2rem;
    outline: 0;
    padding: 0;
    vertical-align: .05em;
}
.agreement-editor button.agreement-field-help > span {
    align-items: center;
    background: var(--theme-primary);
    border: 0;
    border-radius: 50%;
    color: var(--theme-on-accent);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    height: 1rem;
    justify-content: center;
    width: 1rem;
}
.agreement-editor button.agreement-field-help:hover,
.agreement-editor button.agreement-field-help:focus-visible {
    border: 0 !important;
    box-shadow: none;
    outline: 0;
}
.agreement-editor button.agreement-field-help:hover > span,
.agreement-editor button.agreement-field-help:focus-visible > span { background: var(--theme-primary-hover); }
@media (max-width: 991.98px) {
    .commercial-section-toolbar { grid-template-columns: 1fr; }
    .commercial-section-toolbar .text-end { text-align: left !important; }
    .agreement-editor-grid { grid-template-columns: 1fr; }
    .agreement-merge-fields .d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.agreement-acceptance-tabs {
    border: 1px solid var(--bs-border-color);
    border-top: 0;
    border-radius: 0 0 .5rem .5rem;
}

.agreement-acceptance-pdf {
    display: block;
    width: 100%;
    height: min(72vh, 900px);
    min-height: 620px;
    border: 1px solid var(--bs-border-color);
    border-radius: .375rem;
    background: var(--document-surface);
}
