/* Доработки админки (Unfold):
   1) подсказки полей в стиле старой админки — синяя «?» с всплывающим тултипом;
   2) кликабельная вся строка списка (переход в запись по клику в любом месте). */

/* «?»-иконка рядом с подписью поля */
.aic-tip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; margin-left: 6px; flex: none;
    border-radius: 50%; background: #3b82f6; color: #fff !important;
    font-size: 11px; font-weight: 700; line-height: 1; cursor: help;
    text-decoration: none !important; vertical-align: middle;
}
.aic-tip:hover, .aic-tip:focus { background: #2563eb; outline: none; }

/* Само всплывающее окно (добавляется скриптом в конец страницы, не обрезается) */
.aic-tooltip {
    position: absolute; z-index: 99999; max-width: 340px;
    background: #0b1220; color: #fff; padding: 9px 12px; border-radius: 8px;
    font-size: 12px; line-height: 1.45; white-space: pre-wrap; text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .08); pointer-events: none;
}

/* Кликабельная строка списка */
table#result_list tr.data-row { cursor: pointer; }
table#result_list tr.data-row:hover { background: rgba(59, 130, 246, .07); }

/* ── Поля времени офиса (отчёт, пункт 2) ─────────────────────
   Прячем путающее предупреждение Django о разнице с временем сервера
   и показываем понятную подсказку про часовой пояс офиса. */
.timezonewarning { display: none !important; }
.aic-tz-hint {
    display: inline-block; margin-left: 10px; vertical-align: middle;
    font-size: 12px; line-height: 1.4; color: #9aa7b4;
}

/* ── Визуальное разделение секций формы (отчёт, пункт 8) ──────
   Лёгкий цветной акцент слева у заголовка секции, чтобы блоки
   Основное / Аналитика / Интеграция / Технические читались отдельно. */
fieldset.module > h2,
fieldset.module > details > summary h2 {
    border-left: 3px solid var(--color-primary-500, #3b82f6) !important;
    padding-left: 12px !important;
}
/* свёрнутые секции (details/summary) явно выглядят кликабельными */
fieldset.module > details > summary { cursor: pointer; list-style: none; }
fieldset.module > details > summary::-webkit-details-marker { display: none; }
