/**
 * Плавающая подпись + нижняя граница (стиль Uiverse / Tailwind).
 * Без JavaScript: работает для разметки «label → поле» и для явного .float-line (input → label).
 */

/* ========== Явная обёртка (input сразу перед label) ========== */
.float-line {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-top: 2px;
    margin-bottom: 6px;
}

.float-line__input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.45;
    font-family: inherit;
    color: #0f172a;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-bottom: 1px solid #d1d5db !important;
    transition: border-color 0.2s ease, border-bottom-width 0.2s ease;
}

.float-line__input:hover:not(:disabled) {
    border-bottom-color: #9ca3af !important;
}

.float-line__input:focus {
    border-bottom-width: 2px !important;
    border-bottom-color: #1d4ed8 !important;
}

.float-line__input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.float-line__input.invalid,
.float-line__input:invalid:not(:placeholder-shown):not(:focus) {
    border-bottom-color: #dc2626 !important;
}

.float-line__label {
    position: absolute;
    left: 0;
    top: 6px;
    cursor: text;
    pointer-events: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #64748b;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.float-line__input:focus ~ .float-line__label,
.float-line__input:not(:placeholder-shown) ~ .float-line__label,
.float-line--filled .float-line__label,
.float-line:has(.float-line__input:focus) .float-line__label,
.float-line:has(> select.float-line__input) .float-line__label {
    top: -12px;
    font-size: 12px;
    color: #1d4ed8;
}

.float-line__input::placeholder {
    color: transparent;
    opacity: 0;
}

textarea.float-line__input {
    min-height: 56px;
    resize: vertical;
    padding-top: 8px;
}

select.float-line__input {
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
}

/* ========== Без JS: .doc-header-field (label перед control) ========== */
.doc-form .doc-header .doc-header-field {
    position: relative;
    margin-bottom: 10px;
}

/* Чекбокс внутри подписи — обычный поток */
.doc-form .doc-header .doc-header-field > label:has(> input[type="checkbox"]),
.doc-form .doc-header .doc-header-field > label:has(> input[type="radio"]) {
    position: static !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px !important;
    pointer-events: auto !important;
    font-size: 14px !important;
    color: inherit !important;
    top: auto !important;
}

/* Только просмотр (span .doc-field-locked): плавающая подпись не привязана к :focus/:placeholder-shown — иначе наложение на текст */
.doc-form .doc-header .doc-header-field.doc-header-field-readonly > label:not(:has(input)) {
    position: static !important;
    display: block;
    margin-bottom: 6px !important;
    font-weight: 600;
    font-size: 12px !important;
    line-height: 1.45;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    pointer-events: auto !important;
    z-index: auto;
    top: auto !important;
    max-width: none;
    overflow: visible;
    white-space: normal;
    transition: none;
}

.doc-form .doc-header .doc-header-field > label:not(:has(input)) {
    position: absolute;
    left: 0;
    top: 6px;
    margin: 0 !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.45;
    color: #64748b;
    pointer-events: none;
    z-index: 1;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Подпись «вверху» при фокусе / значении */
.doc-form .doc-header .doc-header-field:has(> input:focus) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field:has(> textarea:focus) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field:has(> select:focus) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field:has(> input:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field:has(> textarea:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field:has(> input:placeholder-shown) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field:has(> textarea:placeholder-shown) > label:not(:has(input)):first-of-type {
    top: -12px;
    font-size: 12px;
    color: #1d4ed8;
}

/* select: подпись всегда компактная (значение без :placeholder-shown) */
.doc-form .doc-header .doc-header-field > label:not(:has(input)):has(+ select) {
    top: -12px;
    font-size: 12px;
    color: #1d4ed8;
}

.doc-form .doc-header .doc-header-field > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.doc-form .doc-header .doc-header-field > textarea,
.doc-form .doc-header .doc-header-field > select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 6px 0 !important;
    margin-top: 0 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-family: inherit !important;
    color: #0f172a !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-bottom: 1px solid #d1d5db !important;
    transition: border-color 0.2s ease, border-bottom-width 0.2s ease !important;
}

.doc-form .doc-header .doc-header-field > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):hover:not(:disabled),
.doc-form .doc-header .doc-header-field > textarea:hover:not(:disabled),
.doc-form .doc-header .doc-header-field > select:hover:not(:disabled) {
    border-bottom-color: #9ca3af !important;
}

.doc-form .doc-header .doc-header-field > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.doc-form .doc-header .doc-header-field > textarea:focus,
.doc-form .doc-header .doc-header-field > select:focus {
    border-bottom-width: 2px !important;
    border-bottom-color: #1d4ed8 !important;
    outline: none !important;
    box-shadow: none !important;
}

.doc-form .doc-header .doc-header-field > textarea {
    min-height: 56px !important;
    resize: vertical !important;
    padding-top: 8px !important;
}

.doc-form .doc-header .doc-header-field > input[readonly] {
    background: #f8fafc !important;
    cursor: default;
}

html.theme-dark .doc-form .doc-header .doc-header-field > input[readonly] {
    background: #35394a !important;
    color: #e2e8f0 !important;
}

/* Вложенный блок (URL + превью) */
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) {
    position: relative;
    flex: 1;
    min-width: 0;
}

.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > label:not(:has(input)) {
    position: absolute;
    left: 0;
    top: 6px;
    margin: 0 !important;
    font-weight: 400;
    font-size: 14px;
    color: #64748b;
    pointer-events: none;
    z-index: 1;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> input:focus) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> textarea:focus) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> select:focus) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> input:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> textarea:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> input:placeholder-shown) > label:not(:has(input)):first-of-type,
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> textarea:placeholder-shown) > label:not(:has(input)):first-of-type {
    top: -12px;
    font-size: 12px;
    color: #1d4ed8;
}

.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > label:not(:has(input)):has(+ select) {
    top: -12px;
    font-size: 12px;
    color: #1d4ed8;
}

.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > textarea,
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 6px 0 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-bottom: 1px solid #d1d5db !important;
    transition: border-color 0.2s ease, border-bottom-width 0.2s ease !important;
}

.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > input:focus,
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > textarea:focus,
.doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > select:focus {
    border-bottom-width: 2px !important;
    border-bottom-color: #1d4ed8 !important;
    outline: none !important;
    box-shadow: none !important;
}

.doc-form .doc-header .doc-header-field .doc-field-hint {
    margin-top: 8px;
}

/* ========== Модальные окна и период ========== */
.modal-form-group {
    position: relative;
    margin-bottom: 20px;
}

/* Модалка «Выбор периода»: зазор под заголовком без «пустоты» между подписью и значением */
.doc-period-modal .modal-box > h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 0;
}

.doc-period-modal .step {
    position: relative;
    margin-bottom: 22px !important;
    padding-top: 6px;
    box-sizing: border-box;
    min-height: 0;
}

.doc-period-modal .modal-actions {
    margin-top: 12px;
    padding-top: 4px;
    clear: both;
}

.modal-form-group > label:not(:has(input)),
.doc-period-modal .step > label:not(:has(input)) {
    position: absolute;
    left: 0;
    top: 6px;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    pointer-events: none;
    z-index: 1;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

.modal-form-group:has(> input:focus) > label:not(:has(input)):first-of-type,
.modal-form-group:has(> textarea:focus) > label:not(:has(input)):first-of-type,
.modal-form-group:has(> select:focus) > label:not(:has(input)):first-of-type,
.modal-form-group:has(> input:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
.modal-form-group:has(> textarea:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
.doc-period-modal .step:has(> input:focus) > label:not(:has(input)):first-of-type,
.doc-period-modal .step:has(> input:not(:placeholder-shown)) > label:not(:has(input)):first-of-type {
    top: -8px;
    font-size: 12px;
    color: #1d4ed8;
}

.modal-form-group > label:not(:has(input)):has(+ select),
.doc-period-modal .step > label:not(:has(input)):has(+ select) {
    top: -12px;
    font-size: 12px;
    color: #1d4ed8;
}

.modal-form-group > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.modal-form-group > textarea,
.modal-form-group > select,
.doc-period-modal .step > input:not([type="hidden"]) {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 6px 0 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-bottom: 1px solid #d1d5db !important;
    transition: border-color 0.2s ease, border-bottom-width 0.2s ease !important;
}

.modal-form-group > input:focus,
.modal-form-group > textarea:focus,
.modal-form-group > select:focus,
.doc-period-modal .step > input:focus {
    border-bottom-width: 2px !important;
    border-bottom-color: #1d4ed8 !important;
    outline: none !important;
    box-shadow: none !important;
}

.modal-form-group > textarea,
.modal-content textarea,
.modal textarea {
    min-height: 80px !important;
    resize: vertical !important;
    padding-top: 8px !important;
}

/* ========== Поиск в списках и рабочем месте ========== */
.doc-list .doc-list-search-input,
.doc-list .doc-list-search-form input[type="search"],
.doc-list .doc-list-search-form input[type="text"] {
    border: none !important;
    border-bottom: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
    outline: none !important;
}

.doc-list .doc-list-search-input:focus,
.doc-list .doc-list-search-form input[type="search"]:focus,
.doc-list .doc-list-search-form input[type="text"]:focus {
    border-bottom-width: 2px !important;
    border-bottom-color: #1d4ed8 !important;
}

.workplace-container .search-box input[type="text"] {
    border: none !important;
    border-bottom: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
    outline: none !important;
}

.workplace-container .search-box input[type="text"]:focus {
    border-bottom-width: 2px !important;
    border-bottom-color: #1d4ed8 !important;
}

.tar-rule-page input[type="search"],
.tar-rule-pack-filters input[type="search"] {
    border: none !important;
    border-bottom: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
    outline: none !important;
}

.tar-rule-page input[type="search"]:focus,
.tar-rule-pack-filters input[type="search"]:focus {
    border-bottom-width: 2px !important;
    border-bottom-color: #1d4ed8 !important;
}

/* Таблицы: компактное нижнее подчёркивание */
.doc-table input[type="text"]:not(.doc-list-row-check),
.doc-table input[type="number"]:not(.doc-list-row-check),
.doc-table input[type="search"],
.doc-table input[type="url"],
.doc-table input[type="password"],
.doc-table input[type="time"] {
    border: none !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 4px 2px !important;
}

.doc-table input:focus {
    border-bottom-color: #1d4ed8 !important;
    border-bottom-width: 2px !important;
}

/* Вход support: label + input */
.support-login .form-group {
    position: relative;
    margin-bottom: 20px;
}

.support-login .form-group > label {
    position: absolute;
    left: 0;
    top: 6px;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--support-text-muted);
    pointer-events: none;
    z-index: 1;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

.support-login .form-group:has(> input:focus) > label,
.support-login .form-group:has(> input:not(:placeholder-shown)) > label {
    top: -12px;
    font-size: 12px;
    color: var(--support-accent);
}

.support-login .form-group > input {
    width: 100%;
    padding: 6px 0 !important;
    font-size: 15px;
    font-family: inherit;
    color: var(--support-text);
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--support-border) !important;
    border-radius: 0 !important;
    transition: border-color 0.2s ease, border-bottom-width 0.2s ease;
}

.support-login .form-group > input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-bottom-width: 2px !important;
    border-color: var(--support-accent) !important;
}

/* Явные .float-line в формах */
.doc-form .doc-header .doc-header-field .float-line,
.modal-form-group .float-line,
.doc-period-modal .step .float-line,
.admin-settings-section .float-line {
    margin-bottom: 18px;
}

.doc-form .doc-header .doc-header-field .float-line__input,
.modal-form-group .float-line .float-line__input,
.doc-period-modal .step .float-line .float-line__input,
.admin-settings-section .float-line .float-line__input,
.report-page.report-1c .report-toolbar .float-line .float-line__input,
.dashboard-period-form .float-line .float-line__input {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.doc-list .doc-list-search-form .float-line .float-line__input {
    min-width: 0;
}

.auth-wrapper .auth-inputs__item .float-line {
    width: 380px;
    max-width: 100%;
}

@media (max-width: 480px) {
    .auth-wrapper .auth-inputs__item .float-line {
        width: 300px;
    }
}

/* ========== Тёмная тема ========== */
html.theme-dark .float-line__input,
html.theme-dark .doc-form .doc-header .doc-header-field > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
html.theme-dark .doc-form .doc-header .doc-header-field > textarea,
html.theme-dark .doc-form .doc-header .doc-header-field > select,
html.theme-dark .doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
html.theme-dark .doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > textarea,
html.theme-dark .doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > select,
html.theme-dark .modal-form-group > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
html.theme-dark .modal-form-group > textarea,
html.theme-dark .modal-form-group > select,
html.theme-dark .doc-period-modal .step > input:not([type="hidden"]) {
    color: #e2e8f0 !important;
    border-bottom-color: #64748b !important;
}

html.theme-dark .float-line__input:hover:not(:disabled),
html.theme-dark .doc-form .doc-header .doc-header-field > input:hover:not(:disabled),
html.theme-dark .doc-form .doc-header .doc-header-field > textarea:hover:not(:disabled),
html.theme-dark .doc-form .doc-header .doc-header-field > select:hover:not(:disabled) {
    border-bottom-color: #94a3b8 !important;
}

html.theme-dark .float-line__input:focus,
html.theme-dark .doc-form .doc-header .doc-header-field > input:focus,
html.theme-dark .doc-form .doc-header .doc-header-field > textarea:focus,
html.theme-dark .doc-form .doc-header .doc-header-field > select:focus,
html.theme-dark .modal-form-group > input:focus,
html.theme-dark .modal-form-group > textarea:focus,
html.theme-dark .modal-form-group > select:focus {
    border-bottom-color: #93c5fd !important;
}

html.theme-dark .doc-form .doc-header .doc-header-field > label:not(:has(input)),
html.theme-dark .doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > label:not(:has(input)) {
    color: #94a3b8;
}

html.theme-dark .doc-form .doc-header .doc-header-field.doc-header-field-readonly > label:not(:has(input)) {
    color: #94a3b8 !important;
}

html.theme-dark .doc-form .doc-header .doc-header-field:has(> input:focus) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field:has(> textarea:focus) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field:has(> select:focus) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field:has(> input:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field:has(> textarea:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field:has(> input:placeholder-shown) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field:has(> textarea:placeholder-shown) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field > label:not(:has(input)):has(+ select),
html.theme-dark .doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> input:focus) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> input:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> input:placeholder-shown) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field > div:not(.doc-field-hint):has(> textarea:placeholder-shown) > label:not(:has(input)):first-of-type,
html.theme-dark .doc-form .doc-header .doc-header-field > div:not(.doc-field-hint) > label:not(:has(input)):has(+ select) {
    color: #93c5fd;
}

html.theme-dark .modal-form-group > label:not(:has(input)),
html.theme-dark .doc-period-modal .step > label:not(:has(input)) {
    color: #94a3b8;
}

html.theme-dark .modal-form-group:has(> input:focus) > label:not(:has(input)):first-of-type,
html.theme-dark .modal-form-group:has(> textarea:focus) > label:not(:has(input)):first-of-type,
html.theme-dark .modal-form-group:has(> select:focus) > label:not(:has(input)):first-of-type,
html.theme-dark .modal-form-group:has(> input:not(:placeholder-shown)) > label:not(:has(input)):first-of-type,
html.theme-dark .modal-form-group > label:not(:has(input)):has(+ select),
html.theme-dark .doc-period-modal .step:has(> input:focus) > label:not(:has(input)):first-of-type {
    color: #93c5fd;
}

html.theme-dark .float-line__label {
    color: #94a3b8;
}

html.theme-dark .float-line__input:focus ~ .float-line__label,
html.theme-dark .float-line__input:not(:placeholder-shown) ~ .float-line__label,
html.theme-dark .float-line--filled .float-line__label,
html.theme-dark .float-line:has(.float-line__input:focus) .float-line__label,
html.theme-dark .float-line:has(> select.float-line__input) .float-line__label {
    color: #93c5fd;
}

html.theme-dark .float-line__input.invalid,
html.theme-dark .float-line__input:invalid:not(:placeholder-shown):not(:focus) {
    border-bottom-color: #f87171 !important;
}

html.theme-dark .doc-list .doc-list-search-input,
html.theme-dark .doc-list .doc-list-search-form input[type="search"],
html.theme-dark .doc-list .doc-list-search-form input[type="text"],
html.theme-dark .workplace-container .search-box input[type="text"] {
    border-bottom-color: #64748b !important;
    color: #e2e8f0 !important;
}

html.theme-dark .doc-list .doc-list-search-input:focus,
html.theme-dark .workplace-container .search-box input[type="text"]:focus {
    border-bottom-color: #93c5fd !important;
}

html.theme-dark .doc-table input[type="text"]:not(.doc-list-row-check),
html.theme-dark .doc-table input[type="number"]:not(.doc-list-row-check),
html.theme-dark .doc-table input[type="search"],
html.theme-dark .doc-table input[type="url"],
html.theme-dark .doc-table input[type="password"],
html.theme-dark .doc-table input[type="time"] {
    color: #e2e8f0 !important;
    border-bottom-color: #64748b !important;
}

html.theme-dark .doc-table input:focus {
    border-bottom-color: #93c5fd !important;
}

html.theme-dark .tar-rule-page input[type="search"],
html.theme-dark .tar-rule-pack-filters input[type="search"] {
    border-bottom-color: #64748b !important;
    color: #e2e8f0 !important;
}

html.theme-dark .tar-rule-page input[type="search"]:focus,
html.theme-dark .tar-rule-pack-filters input[type="search"]:focus {
    border-bottom-color: #93c5fd !important;
}

html.theme-dark .doc-form .doc-header .doc-header-field .float-line__input,
html.theme-dark .modal-form-group .float-line .float-line__input,
html.theme-dark .admin-settings-section .float-line .float-line__input,
html.theme-dark .report-page.report-1c .report-toolbar .float-line .float-line__input,
html.theme-dark .dashboard-period-form .float-line .float-line__input {
    background: transparent !important;
    color: #e2e8f0 !important;
}
