/* ===== вкладка «Мои константы» ===== */

.uc-root {
    max-width: 1200px;
    padding: 4px 2px 30px;
    box-sizing: border-box;
}

.uc-title {
    margin: 0 0 6px;
    font-size: 18px;
    color: #17365d;
}

.uc-hint {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #555;
}

/* отдельные блоки (DIV) */
.uc-box {
    margin-bottom: 14px;
    padding: 12px 14px 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
}

.uc-box-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #17365d;
}

/* строка: имя | значение (широкое) | кнопки */
.uc-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    box-sizing: border-box;
}

.uc-item {
    padding: 10px 0;
    border-top: 1px solid #e5e9ef;
}

.uc-item:first-of-type {
    border-top: 0;
    padding-top: 2px;
}

.uc-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uc-field > span {
    font-size: 11px;
    font-weight: 600;
    color: #17365d;
}

.uc-field input,
.uc-field textarea {
    width: 100%;
    min-width: 0;
    padding: 7px 9px;
    box-sizing: border-box;

    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    font: 13px/1.4 inherit;
    font-family: inherit;
    outline: none;
}

.uc-field input {
    height: 34px;
    font-weight: 600;
    color: #17365d;
    background: #f8fafc;
}

.uc-field textarea {
    min-height: 64px;
    resize: vertical;
    line-height: 1.45;
}

.uc-field input:focus,
.uc-field textarea:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, .08);
}

.uc-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uc-btns-line {
    display: flex;
    gap: 6px;
}

.uc-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.uc-btn:disabled {
    opacity: .45;
    cursor: default;
}

.uc-btn-add,
.uc-btn-save {
    background: #72c06d;
    border-color: #72c06d;
    color: #fff;
    font-weight: 500;
}

.uc-btn-add { margin-top: 19px; }

.uc-btn-add:hover:not(:disabled),
.uc-btn-save:hover:not(:disabled) {
    background: #274b73;
    border-color: #274b73;
}

.uc-btn-save { flex: 1; }

.uc-btn-icon,
.uc-btn-del {
    width: 32px;
    padding: 0;
    font-size: 15px;
}

.uc-btn-icon:hover:not(:disabled) { background: #eef2f7; }

.uc-btn-del:hover {
    border-color: #dc2626;
    background: #fef2f2;
    color: #dc2626;
}

.uc-note {
    min-height: 18px;
    margin: -6px 0 10px;
    font-size: 13px;
    color: #1d6b2a;
}

.uc-note-error { color: #b3261e; }

.uc-empty {
    padding: 8px 0;
    font-size: 13px;
    color: #888;
}

@media (max-width: 800px) {
    .uc-row { grid-template-columns: 1fr; }
    .uc-btn-add { margin-top: 0; }
}
