.fi-input-wrp {
    border-radius: 4px !important;
    /*box-shadow: none !important;*/
    box-shadow: none !important;
    border: 1px solid transparent;
}

.fi-pagination-records-per-page-select-ctn .fi-input-wrp {
    border: 1px solid var(--primary-500);
}


/* suppress browser focus ring on modal heading and its children (Filament focuses it on open for a11y) */

.fi-modal-heading:focus,
.fi-modal-heading:focus-visible,
.fi-modal-heading *:focus,
.fi-modal-heading *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    --tw-ring-shadow: none !important;
    --tw-ring-offset-shadow: none !important;
}

.fi-input-wrp:focus-within {
    border: 1px solid #c4a97d !important;
    /* твой цвет */
    box-shadow: none !important;
    --tw-ring-shadow: none !important;
}

input.fi-input {
    appearance: none !important;
}

input.fi-input,
select.fi-input,
select.fi-select {
    height: 40px !important;
    background-color: #F5F6F7 !important;
    padding: 0 8px !important;
    border-radius: 4px !important;
    border: 1px solid transparent;
}


/* Restore visible arrow for native and fi-select selects using a custom SVG background */

select.fi-input,
select.fi-select {
    appearance: auto !important;
    /* allow browser-rendered arrow */
    height: 40px !important;
    background-color: #F5F6F7 !important;
    padding: 0 8px !important;
    border-radius: 4px !important;
    padding-right: 12px !important;
    /* don't reserve too much space so native arrow shows */
    background-image: none !important;
    /* remove custom svg arrow */
}


/* Filament custom select: ensure closed and open backgrounds match */


/* Search input inside the dropdown keeps a fixed height */

.fi-select-input-search-ctn .fi-input {
    height: 40px !important;
    background-color: #F5F6F7 !important;
    padding: 0 3px 0 3px !important;
    appearance: none !important;
    border-radius: 4px !important;
}


/* Container, button wrapper and value area use min-height so they expand with tags */

.fi-select-input-ctn,
.fi-select-input-btn,
.fi-select-input-value-ctn {
    /* min-height: 40px !important; */
    height: auto !important;
    background-color: #F5F6F7 !important;
    padding: 3px;
    appearance: none !important;
    border-radius: 4px !important;
}

.fi-select-input-value-multiple {
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 32px !important;
    padding: 4px !important;
    gap: 4px !important;
    align-content: flex-start !important;
}

.fi-select-input-options-ctn {
    background-color: #F5F6F7 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06) !important;
    padding: 4px !important;
}

.fi-select-input-btn {
    padding-right: 30px !important;
}


/*.fi-select-input-btn svg {*/


/*    display: none !important;*/


/*}*/

.fi-select-input-value-ctn {
    flex: 1 1 auto !important;
    padding-right: 8px !important;
}

.fi-dropdown-list {
    background-color: #F5F6F7 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06) !important;
}

.fi-fo-table-repeater .fi-fo-table-repeater-add.fi-align-start,
.fi-fo-table-repeater .fi-fo-table-repeater-add.fi-align-left {
    border-radius: 4px !important;
    height: 40px !important;
}

.fi-fo-file-upload .filepond--root {
    /*height: 150px !important;*/
    background-color: #F5F6F7 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}


/*.fi-fo-file-upload .filepond--drop-label label {*/


/*    display: none; !important;*/


/*}*/

.fi-input-wrp .fi-input-wrp-prefix:not(.fi-inline) {
    background-color: #F5F6F7 !important;
    border-radius: 4px 0 0 4px !important;
}

.fi-input-wrp .fi-input-wrp-suffix:not(.fi-inline) {
    background-color: #F5F6F7 !important;
    border-radius: 0 4px 4px 0 !important;
}

.fi-fo-simple-repeater .fi-fo-simple-repeater-add.fi-align-start,
.fi-fo-simple-repeater .fi-fo-simple-repeater-add.fi-align-left {
    border-radius: 4px !important;
    height: 40px !important;
}

/* Text buttons share the inputs' radius; a group's inner buttons keep Filament's joined corners. */
.fi-btn:not(.fi-btn-group > .fi-btn) {
    border-radius: 4px;
}

/* Filament's contrast pick gave white text on the beige and a hover equal to it; the icon follows --text. */
.fi-btn.fi-color-primary:not(.fi-outlined) {
    --bg: #c4a97d;
    --hover-bg: #d1b487;
    --text: #0b2a2f;
    --hover-text: #0b2a2f;
    --dark-bg: #c4a97d;
    --dark-hover-bg: #d1b487;
    --dark-text: #0b2a2f;
    --dark-hover-text: #0b2a2f;
}

.fi-fo-field .fi-fo-field-label .fi-fo-field-label-content {
    font-weight: 300 !important;
}


/* скрыть заголовок */

.fi-fo-table-repeater>table>thead {
    display: none !important;
}


/* убрать рамку и тень у контейнера */

.fi-fo-table-repeater {
    border: none !important;
    box-shadow: none !important;
}


/* убрать рамку у таблицы */

.fi-fo-table-repeater table {
    border: none !important;
    box-shadow: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}


/* убрать линии строк */

.fi-fo-table-repeater tbody,
.fi-fo-table-repeater tr,
.fi-fo-table-repeater td {
    border: none !important;
}


/* убрать фокус у всей таблицы */

.fi-fo-table-repeater:focus-within {
    box-shadow: none !important;
    border-color: transparent !important;
}


/* убрать стандартный filament ring у wrapper */

.fi-fo-table-repeater .fi-input-wrp {
    box-shadow: none !important;
    border: 1px solid transparent !important;
}


/* нормальный фокус ТОЛЬКО у инпутов */

.fi-fo-table-repeater .fi-input-wrp:focus-within {
    border: 1px solid #c4a97d !important;
    box-shadow: 0 0 0 2px rgba(196, 169, 125, 0.35) !important;
    border-radius: 4px !important;
}

.fi-fo-table-repeater td:last-child {
    text-align: right !important;
    width: 1% !important;
    white-space: nowrap !important;
}

.square-upload__single {
    width: 80px !important;
}


/* квадрат */

.square-upload__single .filepond--root {
    width: 80px !important;
    height: 80px !important;
    min-height: 80px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #F5F6F7 !important;
    /* картинка-заглушка */
    background-image: url('/images/empty_image.png');
    background-size: cover;
    background-position: center;
}

.square-upload__single .filepond--drop-label,
.square-upload__single .filepond--drop-label label {
    cursor: pointer !important;
}


/* убрать текст внутри label */

.square-upload__single .filepond--drop-label label {
    font-size: 0 !important;
}


/* если остаётся span внутри */

.square-upload__single .filepond--drop-label span {
    display: none !important;
}


/* карандаш */

.square-upload__single .filepond--root::after {
    content: "";
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    background-color: #c4a97d;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75l11-11.03-3.75-3.75L3 17.25zm17.71-10.04a1 1 0 000-1.41l-2.5-2.5a1 1 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.99-1.87z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    pointer-events: none;
}


/* переопределяем grid только для этой секции */

.branch-general-section .fi-section-content {
    grid-template-columns: 100px repeat(4, minmax(0, 1fr)) !important;
}

.subscription-general-section .fi-grid {
    grid-template-columns: 100px repeat(5, minmax(0, 1fr)) !important;
}

.product-general-section .fi-section-content-ctn {
    grid-template-columns: 100px repeat(11, minmax(0, 1fr)) !important;
}

.fi-fo-textarea textarea {
    height: 120px !important;
    background-color: #F5F6F7 !important;
    padding: 8px !important;
    border-radius: 4px !important;
    border: 1px solid transparent !important;
}

.fi-section {
    border-radius: 6px !important;
}


/* ── modal-meta: 2-column label/value list inside the edit modal ── */

.modal-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background-color: #F5F6F7;
    border-radius: 8px;
    padding: 4px 16px !important;
    margin-bottom: 4px;
}


/* each placeholder row */

.modal-meta .modal-meta__item,
.modal-meta .modal-meta__item .fi-fo-field-ctn,
.modal-meta .modal-meta__item .fi-in-entry {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #e5e7eb;
    width: 100% !important;
    gap: 12px !important;
}

.modal-meta .fi-in-entry {
    grid-template-columns: 1fr 1fr;
    /* 2 equal columns */
    grid-template-rows: 1fr;
    align-items: center;
}

.modal-meta .modal-meta__item:last-child {
    border-bottom: none !important;
}


/* label (left side) */

.modal-meta .modal-meta__item .fi-fo-field-label,
.modal-meta .modal-meta__item .fi-fo-field-label-content,
.modal-meta .modal-meta__item .fi-in-entry-label {
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    white-space: nowrap;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}


/* value (right side) */

.modal-meta .modal-meta__item .fi-fo-placeholder,
.modal-meta .modal-meta__item .fi-in-entry-content {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #111827 !important;
    text-align: right !important;
    flex: 1 1 auto !important;
}

.dark .modal-meta {
    background-color: #1e293b !important;
}

.dark .modal-meta .modal-meta__item {
    border-bottom-color: #334155 !important;
}

.dark .modal-meta .modal-meta__item .fi-fo-field-label,
.dark .modal-meta .modal-meta__item .fi-fo-field-label-content,
.dark .modal-meta .modal-meta__item .fi-in-entry-label {
    color: #94a3b8 !important;
}

.dark .modal-meta .modal-meta__item .fi-fo-placeholder,
.dark .modal-meta .modal-meta__item .fi-in-entry-content {
    color: #f1f5f9 !important;
}


/* ── section--card: styled section with visible card header ── */

.section--card {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.section--card>.fi-section-header {
    background-color: #F5F6F7 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 10px 16px !important;
}

.section--card>.fi-section-header .fi-section-header-heading {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.section--card>.fi-section-content-ctn {
    padding: 16px !important;
}

.dark .section--card {
    border-color: #334155 !important;
}

.dark .section--card>.fi-section-header {
    background-color: #1e293b !important;
    border-bottom-color: #334155 !important;
}

/* In v5 `section--card` lands on the <section class="fi-section"> element itself,
   so the card body had no dark background and its labels stayed Filament-light. */

.dark .section--card,
.dark .section--card>.fi-section-content-ctn,
.dark .section--card .fi-section-content {
    background-color: #1e293b !important;
}

.dark .section--card>.fi-section-header .fi-section-header-heading,
.dark .section--card .fi-fo-field-label,
.dark .section--card .fi-fo-field-label-content {
    color: #e2e8f0 !important;
}

.fi-input-wrp .fi-input-wrp-prefix.fi-inline {
    background-color: #F5F6F7 !important;
    border-radius: 0 !important;
}

.fi-ta-ctn {
    border-radius: 6px !important;
}

.fi-sc {
    border-radius: 6px !important;
}

.fi-wi-stats-overview-stat {
    border-radius: 6px !important;
}

.fi-modal:not(.fi-modal-slide-over):not(.fi-width-screen)>.fi-modal-window-ctn .fi-modal-window {
    border-radius: 6px !important;
}

label:has(input[type="checkbox"]) {
    cursor: pointer !important;
    padding: 8px;
    background-color: #F5F6F7;
    border-radius: 4px !important;
}

.fi-fo-field-label-ctn label:has(input[type="checkbox"]) {
    background-color: #ffffff;
}

input[type="checkbox"] {
    cursor: pointer !important;
}


/*.fi-fo-field-wrp[data-field-type="select"] .fi-text-color-600 {*/


/*    --text: #846847 !important;*/


/*    font-size: 14px !important;*/


/*}*/

/*.fi-icon.fi-size-sm {*/
/*    display: none;*/
/*    !important;*/
/*}*/

.fi-select-input .fi-dropdown-panel {
    width: 100% !important;
    min-width: 100% !important;
    left: 0 !important;
}

.fi-dropdown-list-item:not(.fi-disabled):not([disabled]).fi-selected {
    border-radius: 0 !important;
    background-color: #e3d1b5;
    !important;
}

.fi-dropdown-list {
    border-radius: 0 !important;
    padding: 0 !important;
}


/* GLOBAL: убрать расстояния между полями и между рядами форм */


/* Обнуляем gap у grid-контейнеров Filament */

.fi-section .fi-section-content,
.fi-section .fi-grid,
.fi-grid,
.fi-section-content,
.fi-fo-field-list,
.fi-fo-table-repeater table,
.fi-fo-table-repeater tbody,
.fi-fo-table-repeater tr {
    gap: 8px !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
}


/* Убираем внешние отступы у отдельных полей */

.fi-fo-field,
.fi-fo-field .fi-fo-field-ctn,
.fi-fo-field .fi-fo-field-label,
.fi-fo-field .fi-fo-field-control,
.fi-fo-simple-repeater .fi-fo-simple-repeater-item,
.fi-fo-table-repeater tbody tr td {
    margin: 0 0 5px 0 !important;
    /* нижний отступ 5px между полями */
    padding: 0 !important;
}


/* Убираем дополнительные отступы между инпутами внутри wrapper */

.fi-input-wrp,
.fi-input-wrp+.fi-input-wrp,
.fi-fo-field .fi-input-wrp {
    margin: 0 !important;
    padding: 0 !important;
}


/* Убираем вертикальные отступы у лейблов и подписи полей */

.fi-fo-field-label,
.fi-fo-field-label .fi-fo-field-label-content,
.fi-fo-field-hint,
.fi-fo-field-error {
    margin: 0 !important;
    padding: 0 0 5px 0 !important;
    /* небольшая подсказка: оставим тонкий нижний padding для читаемости */
}


/* Уменьшаем высоту textarea и файловых полей, если нужно — поля будут примыкать */

.fi-fo-textarea textarea,
.fi-fo-file-upload .filepond--root,
.square-upload__single .filepond--root {
    margin: 0 !important;
}


/* Для таблиц повторителя убираем spacing между строками */

.fi-fo-table-repeater table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}


/* Сброс отступов для кнопок добавления/удаления в repeater */

.fi-fo-table-repeater .fi-fo-table-repeater-add,
.fi-fo-simple-repeater .fi-fo-simple-repeater-add {
    margin: 0 !important;
}

.fi-section:not(.fi-section-not-contained):not(.fi-aside)>.fi-section-header {
    padding: 10px 10px 10px 15px !important;
}

.fi-fo-field:has(.fi-toggle) .fi-fo-field-label {
    margin-top: 12px !important;
}

.fi-sidebar-footer button.fi-user-menu-trigger * {
    color: #fff !important;
    fill: #fff !important;
}


/* =====================================================
   upload-square — size variants
   Sizes: --xs (56px) | --sm (72px) | --md (96px) | --lg (128px) | --xl (160px)
   Default (no modifier): 80px  ← keeps backward-compat with upload-square__days
   ===================================================== */

.upload-square__days {
    --upload-square-size: 80px;
    --upload-square-radius: 8px;
    --upload-square-pencil-size: 22px;
    --upload-square-pencil-icon: 12px;
    --upload-square-pencil-b: 6px;
    --upload-square-pencil-r: 6px;
    --upload-square-bg-size: 80px;
    /* stretch the field wrapper so the root can use max-width */
    display: block;
    width: 100%;
}

.upload-square__days.upload-square--xs {
    --upload-square-size: 56px;
    --upload-square-bg-size: 56px;
    --upload-square-pencil-size: 16px;
    --upload-square-pencil-icon: 9px;
    --upload-square-pencil-b: 4px;
    --upload-square-pencil-r: 4px;
}

.upload-square__days.upload-square--sm {
    --upload-square-size: 72px;
    --upload-square-bg-size: 72px;
    --upload-square-pencil-size: 18px;
    --upload-square-pencil-icon: 10px;
    --upload-square-pencil-b: 5px;
    --upload-square-pencil-r: 5px;
}

.upload-square__days.upload-square--md {
    --upload-square-size: 96px;
    --upload-square-bg-size: 96px;
    --upload-square-pencil-size: 22px;
    --upload-square-pencil-icon: 12px;
    --upload-square-pencil-b: 6px;
    --upload-square-pencil-r: 6px;
}

.upload-square__days.upload-square--lg {
    --upload-square-size: 128px;
    --upload-square-bg-size: 128px;
    --upload-square-pencil-size: 26px;
    --upload-square-pencil-icon: 14px;
    --upload-square-pencil-b: 8px;
    --upload-square-pencil-r: 8px;
}

.upload-square__days.upload-square--xl {
    --upload-square-size: 160px;
    --upload-square-bg-size: 160px;
    --upload-square-pencil-size: 30px;
    --upload-square-pencil-icon: 16px;
    --upload-square-pencil-b: 10px;
    --upload-square-pencil-r: 10px;
}

.upload-square__days .filepond--root {
    width: 100%;
    max-width: var(--upload-square-size);
    aspect-ratio: 1 / 1;
    height: auto !important;
    min-height: unset !important;
    background: #F5F6F7;
    border-radius: var(--upload-square-radius);
    position: relative;
}


/* убираем стандартный фон */

.upload-square__days .filepond--panel-root {
    background: transparent !important;
}


/* убираем стандартную иконку */

.upload-square__days .filepond--drop-label svg {
    display: none;
}


/* убираем текст */

.upload-square__days .filepond--drop-label label {
    font-size: 0;
}


/* фон-заглушка прямо на root */

.upload-square__days .filepond--root:not(.filepond--has-file) {
    background-image: url('/images/empty_image.png');
    background-size: var(--upload-square-bg-size);
    background-repeat: no-repeat;
    background-position: center;
}


/* карандаш */

.upload-square__days .filepond--root::after {
    content: "";
    position: absolute;
    bottom: var(--upload-square-pencil-b);
    right: var(--upload-square-pencil-r);
    width: var(--upload-square-pencil-size);
    height: var(--upload-square-pencil-size);
    background-color: #c4a97d;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75l11-11.03-3.75-3.75L3 17.25zm17.71-10.04a1 1 0 000-1.41l-2.5-2.5a1 1 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.99-1.87z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--upload-square-pencil-icon);
    pointer-events: none;
}


/* gap between upload-square fields when grouped in subscription-image-grid */

.subscription-image-grid {
    gap: 12px !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
}


/* =====================================================
   DARK MODE — all form elements
   ===================================================== */


/* Inputs, selects, textareas */

.dark input.fi-input,
.dark select.fi-input,
.dark select.fi-select {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

.dark .fi-fo-textarea textarea {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}


/* Select custom component */

.dark .fi-select-input-ctn,
.dark .fi-select-input-btn,
.dark .fi-select-input-value-ctn,
.dark .fi-select-input-search-ctn .fi-input {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.dark .fi-select-input-options-ctn {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}


/* Dropdown list */

.dark .fi-dropdown-list {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

.dark .fi-dropdown-list-item:not(.fi-disabled):not([disabled]).fi-selected {
    background-color: #2d2416 !important;
}


/* Input wrapper prefix/suffix */

.dark .fi-input-wrp .fi-input-wrp-prefix:not(.fi-inline),
.dark .fi-input-wrp .fi-input-wrp-suffix:not(.fi-inline) {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

.dark .fi-input-wrp .fi-input-wrp-prefix.fi-inline {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}


/* Checkboxes */

.dark label:has(input[type="checkbox"]) {
    background-color: #18181a !important;
    color: #f1f5f9 !important;
}


/* File upload (filepond) */

.dark .fi-fo-file-upload .filepond--root {
    background-color: #1e293b !important;
}

.dark .square-upload__single .filepond--root {
    background-color: #1e293b !important;
}

.dark .upload-square__days .filepond--root {
    background: #1e293b !important;
}


/* Input wrapper focus ring stays gold */

.dark .fi-input-wrp:focus-within {
    border: 1px solid #c4a97d !important;
}

.dark .fi-fo-table-repeater .fi-input-wrp:focus-within {
    border: 1px solid #c4a97d !important;
    box-shadow: 0 0 0 2px rgba(196, 169, 125, 0.25) !important;
}


/* =====================================================
   Settings pages (mail diagnostic, notifications, account)
   The panel CSS ships no Tailwind utilities, so these pages carry their own layout classes.
   ===================================================== */

.st-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 24px;
}

.st-grid > .st-span,
.st-form > .st-span {
    grid-column: 1 / -1;
}

.st-dt {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.st-dd {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.st-ok {
    color: #15803d;
}

.st-missing {
    color: #b91c1c;
}

.st-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.st-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.st-error {
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
}

.st-narrow {
    max-width: 28rem;
}

.st-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ns-table th {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.ns-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

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

.ns-table .ns-center {
    text-align: center;
    width: 120px;
}

.ns-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #111827;
}

.ns-desc {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.ns-note {
    font-style: italic;
}

.dark .st-dt,
.dark .ns-table th,
.dark .ns-desc {
    color: #94a3b8;
}

.dark .st-dd,
.dark .st-field label,
.dark .ns-name {
    color: #f1f5f9;
}

.dark .st-ok {
    color: #4ade80;
}

.dark .st-missing,
.dark .st-error {
    color: #f87171;
}

.dark .ns-table th {
    border-bottom-color: #334155;
}

.dark .ns-table td {
    border-bottom-color: #273348;
}

@media (max-width: 768px) {
    .st-grid,
    .st-form {
        grid-template-columns: 1fr;
    }
}


/* Chart widgets in one row share the row height, whatever their legend needs. */

.fi-wi .fi-wi-chart,
.fi-wi .fi-wi-chart > .fi-section {
    height: 100%;
}
