﻿        /* Карточка ввода показаний счётчика */
        #counters {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 12px;
        }
        .meter-input-card {
            background: #fff;
            border: 1px solid #e3e8ef;
            border-radius: 12px;
            padding: 12px 14px;
            box-shadow: 0 1px 3px rgba(20, 60, 100, 0.04);
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
        }
        .meter-input-card:focus-within {
            border-color: rgba(44, 182, 125, 0.35);
            box-shadow: 0 4px 12px rgba(44, 182, 125, 0.08);
        }
        .meter-input-card__head {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        .meter-input-card .form-floating > .form-control {
            height: 48px;
            padding: 0.85rem 0.9rem 0.3rem;
        }
        .meter-input-card .form-floating > label {
            padding: 0.85rem 0.9rem;
        }
        .meter-input-card .consumption,
        .meter-input-card .message {
            margin-top: 6px;
            margin-bottom: 0;
        }
        .meter-input-card__icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
            background: #e8f7f0;
            color: var(--accent-info);
        }
        .meter-input-card[data-cat="water"]   .meter-input-card__icon { background: #e6f1fb; color: #2a7ed1; }
        .meter-input-card[data-cat="hot"]     .meter-input-card__icon { background: #fdecea; color: #d65160; }
        .meter-input-card[data-cat="heat"]    .meter-input-card__icon { background: #fef0e6; color: #d97a3a; }
        .meter-input-card[data-cat="power"]   .meter-input-card__icon { background: #fff7d6; color: #c79c1d; }
        .meter-input-card__head-text {
            flex: 1;
            min-width: 0;
        }
        .meter-input-card__title {
            font-size: 0.95rem;
            font-weight: 600;
            color: #1f3540;
            line-height: 1.25;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .meter-input-card__prev-block {
            margin-bottom: 12px;
        }
        .meter-input-card__prev-label {
            display: block;
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 2px;
        }
        .meter-input-card__prev-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1f3540;
            line-height: 1.1;
        }
        .meter-input-card__prev-unit {
            font-size: 0.78rem;
            font-weight: 500;
            color: var(--text-muted);
            margin-left: 4px;
        }
        .meter-input-card__meta {
            border-top: 1px solid var(--border);
            padding-top: 10px;
            margin-bottom: 12px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .meter-input-card__meta-row {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            font-size: 0.85rem;
        }
        .meter-input-card__meta-key {
            color: var(--text-muted);
        }
        .meter-input-card__meta-value {
            color: #1f3540;
            font-weight: 500;
            text-align: right;
            overflow-wrap: anywhere;
        }

        /* Заблокированный input "просмотр" */
        #counters .form-control.is-locked {
            background-color: #f4f6f8;
            color: #5b6b73;
            cursor: not-allowed;
            border-color: #dde3e7;
        }

        #counter-form button {
            margin: 5px;
        }
