/* ── Compliance — App-specific styles ─────────────────────────── */

.sidebar-sub { padding-left: 18px; font-size: 0.8em; padding-top: 5px; padding-bottom: 5px; opacity: 0.85; }
.sidebar-brand { display: block; text-align: center; padding: 10px 14px; font-size: 0.75em; color: rgba(255,255,255,0.35); text-decoration: none; letter-spacing: 0.5px; }
.sidebar-brand:hover { color: rgba(255,255,255,0.6); }

.meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.meta-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; flex: 1; min-width: 200px; }
.meta-item .label { font-size: 0.75em; color: var(--text-muted); text-transform: uppercase; }
.meta-item .value { margin-top: 2px; }
.synth-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.synth-card h3 { font-size: 0.9em; color: var(--blue); margin-bottom: 8px; }

.ref-chip { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8em; font-weight: 600; cursor: pointer; margin: 3px 4px; border: 2px solid; transition: all 0.15s; user-select: none; }

.indicators { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.indicator { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; flex: 1; min-width: 140px; text-align: center; }
.indicator .value { font-size: 1.8em; font-weight: 700; }
.indicator .ind-label { font-size: 0.75em; color: var(--text-muted); margin-top: 2px; }
.conf-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #eee; margin-top: 4px; }
.conf-bar-fill { height: 100%; transition: width 0.3s; }

.measure-card { border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; margin-bottom: 4px; }
.measure-card.compact { cursor: pointer; transition: background 0.15s; }
.measure-card.compact:hover { background: #eef3f7; }
.measure-card.editing { padding: 10px; }
.measure-summary { font-size: 0.82em; line-height: 1.4; }
.measure-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.measure-tag { font-size: 0.7em; background: #e8e8e8; border-radius: 3px; padding: 1px 5px; color: var(--text-muted); }
.evidence-row { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.linked-tag { display: inline-flex; align-items: center; gap: 2px; background: #e8f4fd; border-radius: 4px; padding: 1px 6px; font-size: 0.75em; margin: 1px 2px; }
.linked-tag .tag-x { cursor: pointer; color: var(--red); font-weight: bold; margin-left: 2px; }

/* Search select (dropdown filtrable) */
.ss-wrap { position: relative; display: inline-block; }
.ss-input { padding: 3px 6px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.8em; width: 200px; }
.ss-drop { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 200; background: white; border: 1px solid var(--light-blue); border-radius: 0 0 6px 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-height: 200px; overflow-y: auto; }
.ss-drop.open { display: block; }
.ss-opt { padding: 4px 8px; cursor: pointer; font-size: 0.8em; }
.ss-opt:hover { background: #e8f4fd; }

input, select, textarea { font-family: inherit; font-size: inherit; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; background: white; }
textarea { width: 100%; resize: vertical; }

@media (max-width: 768px) {
    .toolbar-logo { display: none; }
    .app-layout { flex-direction: column; }
    .sidebar {
        width: 100%; min-width: 100%; height: auto; max-height: 0; overflow: hidden;
        position: relative; top: 0; transition: max-height 0.3s ease;
        flex-direction: column; display: flex; z-index: 50;
    }
    .sidebar.open { max-height: 80vh; overflow-y: auto; }
    .sidebar-collapse { display: none; }
    .sidebar-item { padding: 12px 16px; font-size: 0.85em; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .sidebar-item.active { background: rgba(255,255,255,0.15); border-left-color: transparent; }
    .sidebar-section { padding: 10px 16px 4px; font-size: 0.7em; }
    .sidebar-sub { padding-left: 24px; font-size: 0.8em; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .container { padding: 8px; }
}
