/* ═══════════════════════════════════════════════════════════════════
   DTISoft — Menu « Requêtes » (2026-11-05) — js/modules/requetes.js, préfixe `rq-`.
   z-index 1200 (comme les Listes Excel) : une fiche article ouverte par double-clic passe au-dessus.
   ═══════════════════════════════════════════════════════════════════ */
.rq-overlay {
    position: fixed; inset: 0; z-index: 1200; background: rgba(15, 23, 42, .55);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.rq-panel {
    background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
    width: 1180px; max-width: 100%; height: 88vh; display: flex; flex-direction: column;
    font-size: 13px; color: #1e293b;
}
.rq-head { display: flex; align-items: center; padding: 12px 16px; background: #1e40af; color: #fff; border-radius: 10px 10px 0 0; }
.rq-title { flex: 1; font-weight: 700; font-size: 14px; }
.rq-title i { margin-right: 6px; }
.rq-close { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.rq-body { flex: 1; display: flex; min-height: 0; }
.rq-nav { width: 250px; flex: 0 0 250px; border-right: 1px solid #e2e8f0; background: #f8fafc; padding: 8px; overflow: auto; }
.rq-item {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 4px;
    border: 1px solid transparent; border-radius: 6px; background: none; cursor: pointer; font-size: 13px; color: #1e293b;
}
.rq-item:hover { background: #e2e8f0; }
.rq-item-actif { background: #dbeafe; border-color: #93c5fd; font-weight: 600; }
.rq-item i { color: #1e40af; width: 16px; text-align: center; }
.rq-main { flex: 1; min-width: 0; padding: 14px 18px; display: flex; flex-direction: column; overflow: hidden; }
.rq-h3 { margin: 0 0 4px; font-size: 15px; color: #1e40af; }
.rq-h3 i { margin-right: 6px; }
.rq-desc { margin: 0 0 10px; color: #475569; font-size: 12px; }
.rq-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.rq-lbl { display: flex; flex-direction: column; gap: 3px; font-weight: 600; font-size: 12px; }
.rq-input { padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 5px; font-size: 13px; min-width: 160px; font-weight: normal; }
.rq-nb { min-width: 0; width: 80px; }
.rq-aide { font-weight: normal; color: #64748b; font-size: 11px; max-width: 240px; }
.rq-ck { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding-bottom: 6px; cursor: pointer; }
.rq-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.rq-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #cbd5e1; border-radius: 6px;
    background: #fff; color: #1e293b; font-size: 13px; cursor: pointer;
}
.rq-btn:hover { background: #f1f5f9; }
.rq-btn-go { background: #1e40af; border-color: #1e40af; color: #fff; }
.rq-btn-go:hover { background: #1e3a8a; }
.rq-btn:disabled { opacity: .5; cursor: default; }
.rq-msg { font-size: 12px; color: #475569; margin-left: 6px; }
.rq-msg-ok { color: #15803d; font-weight: 600; }
.rq-msg-att { color: #b45309; font-weight: 600; }
.rq-msg-err { color: #b91c1c; font-weight: 600; }
.rq-dl { margin-left: 10px; color: #1e40af; }
.rq-res { flex: 1; min-height: 0; margin-top: 10px; display: flex; flex-direction: column; }
.rq-table-wrap { flex: 1; overflow: auto; border: 1px solid #e2e8f0; border-radius: 6px; }
.rq-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rq-table th {
    position: sticky; top: 0; background: #f1f5f9; text-align: left; padding: 6px 8px; border-bottom: 1px solid #cbd5e1;
    white-space: nowrap; cursor: pointer; user-select: none;
}
.rq-table th:hover { background: #e2e8f0; }
.rq-table td { padding: 4px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.rq-table tbody tr:hover td { background: #f8fafc; }
.rq-num { text-align: right; white-space: nowrap; }
.rq-ref { white-space: nowrap; font-family: Consolas, monospace; color: #1e40af; cursor: pointer; }
.rq-vide { padding: 30px 10px; text-align: center; color: #64748b; }
/* 2026-11-06 : thèmes repliables, recherche, note de reprise DPIFac, liens, ligne de total */
.rq-cherche { width: 100%; min-width: 0; box-sizing: border-box; margin-bottom: 8px; }
.rq-grp {
    display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 6px 4px; margin-top: 4px; border: 0; background: none;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #475569; cursor: pointer; text-align: left;
}
.rq-grp span { flex: 1; }
.rq-grp small { font-weight: 600; color: #94a3b8; }
.rq-grp-ferme .rq-item { display: none; }
.rq-date { min-width: 0; width: 140px; }
.rq-lien { color: #1e40af; cursor: pointer; white-space: nowrap; }
.rq-table td.rq-lien:hover { text-decoration: underline; }
.rq-table tfoot td { position: sticky; bottom: 0; background: #eef2ff; font-weight: 700; border-top: 1px solid #c7d2fe; }
.rq-menu-nb { margin-left: 6px; color: #94a3b8; }
@media (max-width: 760px) {
    .rq-overlay { padding: 6px; }
    .rq-body { flex-direction: column; }
    .rq-nav { width: auto; flex: 0 0 auto; max-height: 140px; border-right: 0; border-bottom: 1px solid #e2e8f0; }
}
