/* ============================================================
   analysis_session.php — report view styles
   ============================================================ */
body { background: #f4f7f6; color: #17212b; font-family: 'Segoe UI', Arial, sans-serif; }
.page-shell { max-width: 1320px; }
.topbar { background: #fff; border: 1px solid #e3ebf2; border-radius: 10px; padding: 16px 18px; box-shadow: 0 8px 24px rgba(20, 35, 50, .05); }
.hero { background: #fff; border: 1px solid #dfe9f1; border-radius: 10px; padding: 22px; box-shadow: 0 10px 30px rgba(20, 35, 50, .06); }
.panel { background: #fff; border: 1px solid #e3ebf2; border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 35, 50, .045); }
.panel-header { padding: 14px 18px; border-bottom: 1px solid #e3ebf2; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.panel-body { padding: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { border: 1px solid #e4edf3; border-radius: 8px; padding: 12px; background: #fbfdff; min-height: 86px; }
.metric-label { color: #627386; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; }
.metric-value { font-weight: 800; font-size: 1.05rem; margin-top: 5px; }
.metric-sub { color: #718093; font-size: .85rem; margin-top: 3px; }
.clean-list { margin: 0; padding-left: 1.15rem; }
.clean-list li { margin-bottom: .45rem; }
.text-block { line-height: 1.62; }
.muted-box { color: #7b8794; background: #f7fafc; border: 1px dashed #dce6ee; border-radius: 8px; padding: 10px 12px; }
.sticky-nav { position: sticky; top: 12px; }
.section-link { display: block; padding: 9px 10px; border-radius: 8px; color: #34495e; text-decoration: none; font-size: .92rem; }
.section-link:hover { background: #edf5fb; color: #0d6efd; }
.progress { height: 8px; background: #e7eef5; }
.badge-soft { background: #f6f9fc; border: 1px solid #dfe8f0; color: #324152; }
.claim { border-left: 4px solid #d8e3ec; padding: 10px 12px; background: #fbfdff; border-radius: 8px; }
.claim.accepted { border-left-color: #198754; }
.claim.rejected { border-left-color: #dc3545; }
.claim.needs_data, .claim.watch { border-left-color: #ffc107; }
details.agent-detail { border: 1px solid #e5edf4; border-radius: 8px; padding: 0; background: #fff; }
details.agent-detail + details.agent-detail { margin-top: 10px; }
details.agent-detail summary { cursor: pointer; padding: 13px 14px; list-style: none; }
details.agent-detail summary::-webkit-details-marker { display: none; }
.agent-content { border-top: 1px solid #e5edf4; padding: 14px; }
pre.json { white-space: pre-wrap; word-break: break-word; max-height: 520px; overflow: auto; font-size: .82rem; }
.chart-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.chart-canvas { width:100%; height:420px; }
.indicator-canvas { width:100%; height:165px; }
.chart-legend { display:flex; gap:8px; flex-wrap:wrap; font-size:.82rem; color:#627386; }
.legend-pill { border:1px solid #dfe8f0; background:#f8fbfe; border-radius:999px; padding:4px 8px; }
.chart-note { color:#718093; font-size:.86rem; }
.export-panel { border:1px solid #dfe8f0; background:#f8fbfe; border-radius:10px; padding:14px; margin-bottom:18px; }
.export-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:8px 14px; }
.export-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:12px; }
.print-only { display:none; }
@media (max-width: 991px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .export-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sticky-nav { position: static; }
}
@media (max-width: 575px) {
    .metric-grid { grid-template-columns: 1fr; }
    .export-grid { grid-template-columns: 1fr; }
    .chart-canvas { height:340px; }
    .indicator-canvas { height:140px; }
}
@media print {
    @page { size: A4; margin: 12mm; }
    html, body { background:#fff !important; color:#111827 !important; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .no-print, .sticky-nav, .theme-toggle { display:none !important; }
    .print-only { display:block !important; }
    .page-shell { max-width: none !important; width: 100% !important; padding:0 !important; }
    main.col-lg-9 { width:100% !important; max-width:100% !important; flex:0 0 100% !important; }
    .row { display:block !important; }
    .panel, .hero, .topbar, .metric, .claim, .muted-box, details.agent-detail {
        box-shadow:none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .panel, .hero { margin-bottom: 12px !important; }
    .panel-header { padding:10px 12px !important; }
    .panel-body { padding:12px !important; }
    .chart-canvas { height:320px !important; }
    .indicator-canvas { height:120px !important; }
    body.export-filter-active section.export-section:not(.export-selected) { display:none !important; }
    details.agent-detail { break-inside:auto; page-break-inside:auto; }
    details.agent-detail:not([open]) .agent-content { display:none !important; }
}

/* ============================================================
   analysis_prompt_debug.php — debug view styles
   ============================================================ */
details.audit-row { border:1px solid #e5e7eb; border-radius:8px; padding:12px 14px; margin-bottom:10px; background:#fff; }
details.audit-row > summary { cursor:pointer; list-style:none; }
details.audit-row > summary::-webkit-details-marker { display:none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* ============================================================
   index.php — dashboard styles
   ============================================================ */
.main-card { border-radius: 14px; border: none; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
#log-window {
    background: #1e1e1e; color: #32cd32;
    height: 250px; overflow-y: auto;
    font-family: 'Consolas', monospace; font-size: 13px;
    border-radius: 0 0 12px 12px;
}
.log-line { padding: 4px 10px; border-bottom: 1px solid #2d2d2d; }
.queue-meta { font-size: 12px; color: #6c757d; margin-top: 4px; }
.preview-block { background: #f8fbfd; border-radius: 10px; padding: 14px; border: 1px solid #e6edf2; margin-bottom: 12px; }
.preview-title { font-weight: 700; color: #16344f; margin-bottom: 6px; }
.publish-form.published .btn { opacity: .38; filter: grayscale(1); }
.publish-form.published .btn:hover { opacity: .78; filter: grayscale(.35); }
.publish-check { font-size: 11px; margin-left: 3px; }
.content-table { font-size: 13px; }
.content-title { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-actions { min-width: 360px; }
.content-actions .btn { padding-top: .18rem; padding-bottom: .18rem; }
.compact-meta { display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
.compact-meta .badge { font-weight:500; }
.dashboard-header { gap: 18px; }
.dashboard-menu { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:8px; }
.menu-group { position:relative; }
.menu-group > summary {
    list-style:none;
    cursor:pointer;
    user-select:none;
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:38px;
}
.menu-group > summary::-webkit-details-marker { display:none; }
.menu-panel {
    position:absolute;
    right:0;
    top:calc(100% + 8px);
    z-index:1000;
    min-width:260px;
    padding:8px;
    background:#fff;
    border:1px solid #dde5ec;
    border-radius:10px;
    box-shadow:0 18px 44px rgba(22,52,79,.14);
}
.menu-item {
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 10px;
    color:#1f3447;
    text-decoration:none;
    border:0;
    border-radius:8px;
    background:transparent;
    text-align:left;
    font-size:14px;
}
.menu-item:hover { background:#f3f7fb; color:#0d6efd; }
.menu-item-danger { color:#b02a37; }
.menu-item-danger:hover { background:#fff1f2; color:#b02a37; }
.menu-section-label {
    padding:7px 10px 4px;
    color:#7b8794;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.menu-separator { height:1px; background:#edf1f5; margin:6px 4px; }
@media (max-width: 992px) {
    .dashboard-header { align-items:flex-start !important; }
    .dashboard-menu { justify-content:flex-start; width:100%; }
    .menu-panel { left:0; right:auto; }
}
