/* hydrate.css — Dynamic chart/filter/table styles for static SEO pages */

/* Filters */
.h-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:20px;padding:14px 16px;background:var(--white);border:1px solid var(--border);border-radius:var(--radius)}
.h-flt-group{display:flex;align-items:center;gap:4px}
.h-flt-group label{font-size:12px;color:var(--text2);white-space:nowrap}
.h-flt-group input[type=date]{border:1px solid var(--border);border-radius:6px;padding:5px 8px;font-size:13px;color:var(--text);background:var(--white)}
.h-flt-group select{border:1px solid var(--border);border-radius:6px;padding:5px 8px;font-size:13px;color:var(--text);background:var(--white);max-width:160px}
.h-flt-check{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--text);cursor:pointer;user-select:none}
.h-flt-check input{accent-color:var(--primary)}

/* Two column layout */
.h-two-col{display:grid;grid-template-columns:300px 1fr;gap:16px;margin-bottom:20px}
@media(max-width:700px){.h-two-col{grid-template-columns:1fr}}

/* Donut chart */
.h-donut-wrap{position:relative;width:180px;height:180px;margin:0 auto}
.h-donut-wrap canvas{width:180px;height:180px}
.h-donut-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}
.h-donut-pct{font-size:36px;font-weight:800}
.h-donut-lbl{font-size:11px;color:var(--text2)}
.h-donut-note{text-align:center;font-size:11px;color:var(--text3);margin-top:10px}
.h-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:10px}
.h-legend span{display:flex;align-items:center;gap:3px;font-size:11px;color:var(--text2)}
.h-ldot{width:8px;height:8px;border-radius:50%;flex-shrink:0}

/* Timeline chart */
.h-timeline-wrap{overflow-x:auto}
.h-tl-bars{display:flex;align-items:flex-end;gap:2px;height:180px;min-width:100%}
.h-tl-col{flex:1;min-width:3px;display:flex;flex-direction:column;justify-content:flex-end;height:100%}
.h-tl-stack{display:flex;flex-direction:column}
.h-tl-seg{min-height:0}
.h-tl-labels{display:flex;justify-content:space-between;margin-top:4px}
.h-tl-labels span{font-size:10px;color:var(--text3)}

/* Case table */
.h-tbl-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-bottom:20px}
.h-tbl-card .h-ctitle{padding:16px 16px 10px;font-size:14px;font-weight:700}
.h-tbl-wrap{overflow-x:auto}
.h-tbl-card table{width:100%;border-collapse:collapse;min-width:800px}
.h-tbl-card thead th{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--text2);font-weight:600;padding:8px 12px;text-align:left;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0}
.h-tbl-card tbody td{font-size:13px;padding:9px 12px;border-bottom:1px solid #f0f1f3}
.h-tbl-card tbody tr:hover{background:#f9fafb}
.h-td-granted{color:#22c55e;font-weight:600}
.h-td-denied{color:#ef4444;font-weight:600}
.h-td-wh-cat{color:#3b82f6;font-weight:600}
.h-td-vol-dep{color:#f59e0b;font-weight:600}
.h-td-terminated{color:#9ca3af}
.h-td-other{color:#d1d5db}

.h-load-more{display:block;width:calc(100% - 32px);padding:10px;background:none;border:1px dashed var(--border);border-radius:6px;color:var(--text2);font-size:13px;cursor:pointer;margin:0 16px 16px}
.h-load-more:hover{color:var(--primary);border-color:var(--primary)}

/* Loading state */
.h-loading{text-align:center;padding:24px;color:var(--text2);font-size:13px}
.h-spin{width:20px;height:20px;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:h-sp .7s linear infinite;margin:0 auto 8px}
@keyframes h-sp{to{transform:rotate(360deg)}}

/* Card reuse */
.h-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.h-card .h-ctitle{font-size:14px;font-weight:700;margin-bottom:14px}
