/* Westmore · správa allowlistu. Původní prvky, nová tmavě hnědá vizuální soustava. */
.al-layout { display: grid; grid-template-columns: minmax(260px,355px) minmax(0,1fr); gap: 19px; align-items: start; }
.al-layout .card { min-width: 0; }
.al-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.al-head h2 { margin: 0; }
.al-items { display: grid; gap: 8px; margin-top: 16px; max-height: 63vh; overflow-y: auto; }
.al-entry:not(.link-button) { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; width: 100%; padding: 14px; text-align: left; font-family: var(--type-body); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text); background: #241b15; border: 1px solid var(--border-soft); min-width: 0; overflow-wrap: anywhere; }
.al-entry:not(.link-button):hover:not(:disabled), .al-entry.chosen:not(.link-button) { border-color: #b18a54; background: #403022; }
.al-entry strong { color: #ead6b5; }
.al-sub { color: var(--muted); font-size: 12px; font-weight: 400; }
/* Barevné stavy: shodný indikátor v seznamu i v detailu žádosti. */
.al-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.al-status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; background: currentColor; }
.al-status--approved { color: #a8c99c; }
.al-status--rejected { color: #dfa096; }
.al-status--returned { color: #91b8da; }
.al-status--pending { color: #e7b071; }
.al-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--muted); }
/* Dvě jasně oddělené skupiny metadat, každá se třemi údaji. */
.al-detail-title { margin-bottom: 18px !important; }
.al-overview { display: grid; gap: 12px; margin-bottom: 23px; }
.al-overview-group { background: #1d1611; border: 1px solid #55402c; padding: 14px 15px 15px; min-width: 0; }
.al-overview-heading { font-family: var(--type-display); font-size: 12px; letter-spacing: .11em; color: #d9b987; margin: 0 0 12px !important; }
.al-overview-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.al-overview-cell { min-width: 0; padding: 12px 13px; border: 1px solid #4c3928; background: #2b2018; }
.al-overview-label { display: block; color: #ad9c83; font-size: 11px; margin-bottom: 7px; }
.al-overview-value { color: #eedbc0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; line-height: 1.45; user-select: text; }
.al-overview-value .al-status { font-size: 14px; }
/* Přepínatelné části dotazníku jsou navigace, ne prázdné karty odpovědí. */
.al-questionnaire { min-width: 0; }
.al-questionnaire-heading { font-size: 13px; color: #d8b987; letter-spacing: .11em; margin: 0 0 12px !important; }
.al-section-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.al-section-tab:not(.link-button) { width: 100%; min-height: 43px; padding: 10px 9px; font-size: 11px; text-align: center; background: #2d221a; border: 1px solid #55402d; color: #bca98c; letter-spacing: .045em; text-transform: uppercase; }
.al-section-tab:not(.link-button):hover:not(:disabled) { background: #433122; border-color: #99774d; color: #f1d7ac; }
.al-section-tab.active:not(.link-button) { background: #55402b; border-color: #b28a54; color: #f6deba; }
.al-section-panel[hidden] { display: none; }
.al-section-panel { min-width: 0; }
.al-response { background: #1b1511; border: 1px solid var(--border-soft); padding: 16px 18px; margin: 0 0 10px; }
.al-response-label { font-family: var(--type-display); font-size: 13px; letter-spacing: .045em; color: #dfbd8b; margin: 0 0 10px; }
.al-response-value { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; margin: 0; color: var(--text-soft); }
.al-no-answers, .al-reviewed-info { font-size: 13px; color: var(--muted); padding: 15px; background: #1b1511; border: 1px solid var(--border-soft); line-height: 1.5; }
.al-basic-review { padding: 14px 16px; border: 1px solid var(--border-soft); background: #211a14; margin: 10px 0; }
.al-review-heading { font-size: 11px; color: #caaa7a; letter-spacing: .07em; font-weight: 700; margin: 0 0 10px; }
.al-decisions { margin: 23px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.al-decisions label, .al-decisions textarea { flex: 0 0 100%; max-width: 100%; }
.al-decisions textarea { resize: vertical; }
.al-history { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 16px; }
.al-history summary { cursor: pointer; color: var(--accent-light); }
.al-notice { padding: 12px 14px; border-left: 2px solid var(--orange); background: #3a291c; color: #f0d5b0; line-height: 1.5; }
.al-review-selector { display: flex; align-items: center; gap: 10px; margin: 9px 0; padding: 11px; background: #322519; border: 1px solid var(--border); color: #d9bd96; font-size: 13px; cursor: pointer; }
.al-review-selector:hover { border-color: var(--accent); }
.al-review-selector input { width: 17px; height: 17px; flex: none; accent-color: #b2915a; }
.al-reviewed-tag { display: inline-block; padding: 4px 8px; margin: 0 0 10px; background: #4a3522; border: 1px solid #967047; color: #ebc995; font-size: 12px; font-weight: 700; }
.al-history-entry { border-left: 2px solid #98744c; margin: 11px 0; padding: 9px 12px; background: #281e17; }
.al-history-title { color: var(--text); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.al-history-note { color: var(--text-soft); font-size: 13px; white-space: pre-wrap; margin: 6px 0 0; }
.al-history-fields { color: #d3b083; font-size: 12px; margin: 6px 0 0; }
.al-revoke { margin: 18px 0; padding: 16px 18px; border: 1px solid #814d42; background: #35201c; }
.al-revoke h3 { margin: 0 0 8px; color: #e1a99c; }
.al-revoke button { margin-top: 12px; }
.al-diagnostics { margin-bottom: 17px; padding: 17px 19px; }
.al-diagnostics h2 { margin: 0; font-size: 16px; }
.al-diagnostics .al-diagnostics-status { margin-top: 11px; line-height: 1.5; }
.al-diag-issue { margin: 8px 0; color: #e4b2a1; padding-left: 11px; border-left: 2px solid #b57364; }
.al-decision-error { width: 100%; padding: 13px 15px; background: #40241d; color: #f3c7b8; border-left: 3px solid var(--danger); font-weight: 700; line-height: 1.55; }
.al-decisions button:disabled { opacity: .52; cursor: not-allowed; }
@media(max-width:1030px) { .al-layout { grid-template-columns: 1fr; } .al-items { max-height: 40vh; } }
@media(max-width:670px) {
  .al-overview-items { grid-template-columns: 1fr; }
  .al-overview-cell { padding: 10px 12px; }
  .al-section-tabs { gap: 5px; }
  .al-section-tab:not(.link-button) { padding: 9px 5px; font-size: 10px; }
}
