/* assets/thanhtra.css — Thanh tra – Kiểm tra chuyên ngành (prefix ttr-). Đồng bộ biến màu hệ thống. */
.ttr-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 14px}
.ttr-top h1{margin:0;font-size:22px;color:var(--navy,#0e2a47)}
.ttr-top h1 .sub{font-size:13px;font-weight:400;color:var(--muted,#64748b)}
.ttr-cta{background:var(--blue,#1d5a96);color:#fff;text-decoration:none;font-weight:700;font-size:13.5px;border-radius:10px;padding:9px 16px;white-space:nowrap}
.ttr-cta:hover{filter:brightness(1.07)}

.ttr-stats{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.ttr-stat{flex:1;min-width:150px;background:#fff;border:1px solid var(--line,#e8edf3);border-left:4px solid var(--ac,#1d5a96);border-radius:12px;padding:13px 16px}
.ttr-stat b{display:block;font-size:24px;font-weight:800;color:var(--navy,#0e2a47);line-height:1.1;font-variant-numeric:tabular-nums}
.ttr-stat span{font-size:12.5px;color:var(--muted,#64748b)}
html.dark .ttr-stat{background:#0f1b30;border-color:#1e293b}

/* Bộ lọc — gọn, dạng thanh card, không kéo dài toàn chiều ngang */
.ttr-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 16px;background:#fff;border:1px solid var(--line,#e8edf3);border-radius:12px;padding:10px 12px}
html.dark .ttr-filter{background:#0f1b30;border-color:#1e293b}
.ttr-filter input,.ttr-filter select{height:36px;border:1px solid var(--line,#e8edf3);border-radius:8px;padding:0 10px;font-size:13px;background:#fff;max-width:180px}
.ttr-filter input[type=search]{width:220px;max-width:220px;flex:0 1 220px}
.ttr-filter select{width:auto;min-width:130px}
.ttr-filter button{height:36px;background:var(--navy,#0e2a47);color:#fff;border:0;border-radius:8px;padding:0 14px;font-weight:700;font-size:13px;cursor:pointer}
.ttr-filter .ttr-btn-ghost{background:#fff;color:#475569;border:1px solid var(--line,#e8edf3);text-decoration:none;display:inline-flex;align-items:center}
.ttr-filter .sep{flex:1 1 auto}

/* Chip lọc nhanh theo lĩnh vực/trạng thái */
.ttr-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.ttr-chip{font-size:12.5px;font-weight:700;padding:6px 13px;border-radius:20px;background:#eef2f7;color:#475569;text-decoration:none;border:1px solid transparent;transition:.12s}
.ttr-chip:hover{background:#e2e8f0}
.ttr-chip.on{background:var(--navy,#0e2a47);color:#fff}
html.dark .ttr-chip{background:#16233a;color:#cbd5e1}

/* Dashboard biểu đồ đầu trang */
.ttr-dash{display:grid;grid-template-columns:repeat(12,1fr);gap:13px;margin:0 0 18px}
.ttr-card{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:15px 17px}
html.dark .ttr-card{background:#0f1b30;border-color:#1e293b}
.ttr-card h3{margin:0 0 12px;font-size:12.5px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;color:#64748b}
.ttr-c-4{grid-column:span 4}.ttr-c-5{grid-column:span 5}.ttr-c-7{grid-column:span 7}.ttr-c-8{grid-column:span 8}.ttr-c-12{grid-column:span 12}
.ttr-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}
.ttr-kpi{border-radius:12px;padding:13px 15px;background:var(--soft,#f1f5f9);border-left:4px solid var(--ac,#1d5a96)}
.ttr-kpi b{display:block;font-size:25px;font-weight:800;color:var(--navy,#0e2a47);line-height:1;font-variant-numeric:tabular-nums}
.ttr-kpi span{font-size:11.5px;color:#64748b}
html.dark .ttr-kpi{background:#16233a}
/* Bar ngang */
.ttr-bars{display:flex;flex-direction:column;gap:9px}
.ttr-bar{display:grid;grid-template-columns:120px 1fr 38px;align-items:center;gap:9px;font-size:12.5px}
.ttr-bar .lbl{color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ttr-bar .track{height:14px;background:#eef2f7;border-radius:7px;overflow:hidden}
.ttr-bar .fill{height:100%;border-radius:7px;background:var(--bc,#1d5a96)}
.ttr-bar .num{text-align:right;font-weight:800;color:var(--navy,#0e2a47);font-variant-numeric:tabular-nums}
html.dark .ttr-bar .track{background:#16233a}
@media(max-width:900px){ .ttr-c-4,.ttr-c-5,.ttr-c-7,.ttr-c-8{grid-column:span 12} }


.ttr-tbl{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line,#e8edf3);border-radius:12px;overflow:hidden}
.ttr-tbl th{background:#f1f5f9;text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.3px;color:#475569;padding:11px 13px;font-weight:700}
.ttr-tbl td{padding:11px 13px;border-top:1px solid var(--line,#eef2f7);font-size:13.5px;vertical-align:top}
.ttr-tbl tr:hover td{background:#f8fafc}
.ttr-tbl a.ten{font-weight:700;color:var(--navy,#0e2a47);text-decoration:none}
.ttr-tbl a.ten:hover{text-decoration:underline}
.ttr-tbl .ma{font-size:11.5px;color:#94a3b8;font-variant-numeric:tabular-nums}
html.dark .ttr-tbl{background:#0f1b30;border-color:#1e293b}
html.dark .ttr-tbl th{background:#16233a;color:#cbd5e1}
html.dark .ttr-tbl tr:hover td{background:#16233a}

.ttr-badge{display:inline-block;font-size:11.5px;font-weight:700;padding:3px 10px;border-radius:20px;white-space:nowrap}
.ttr-b-kehoach{background:#e2e8f0;color:#475569}
.ttr-b-dang{background:#dbeafe;color:#1d4ed8}
.ttr-b-ketluan{background:#dcfce7;color:#15803d}
.ttr-b-haukiem{background:#fef3c7;color:#b45309}
.ttr-b-ketthuc{background:#f1f5f9;color:#64748b}
.ttr-lv{display:inline-block;font-size:11px;font-weight:700;padding:2px 9px;border-radius:6px;background:#eef4fb;color:#1d5a96}
.ttr-empty{padding:30px;text-align:center;color:#94a3b8}

/* Form */
.ttr-form{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:20px 22px;max-width:1000px}
html.dark .ttr-form{background:#0f1b30;border-color:#1e293b}
.ttr-sec{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:var(--blue,#1d5a96);margin:18px 0 12px;padding-bottom:6px;border-bottom:1px solid var(--line,#eef2f7)}
.ttr-sec:first-child{margin-top:0}
.ttr-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 18px}
.ttr-grid .full{grid-column:1/-1}
.ttr-f label{display:block;font-size:12.5px;font-weight:700;color:#334155;margin-bottom:5px}
html.dark .ttr-f label{color:#cbd5e1}
.ttr-f input,.ttr-f select,.ttr-f textarea{width:100%;box-sizing:border-box;border:1px solid var(--line,#e8edf3);border-radius:9px;padding:9px 11px;font-size:13.5px;font-family:inherit}
.ttr-f textarea{min-height:70px;resize:vertical}
.ttr-actions{display:flex;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line,#eef2f7)}
.ttr-btn{background:var(--blue,#1d5a96);color:#fff;border:0;border-radius:10px;padding:11px 22px;font-weight:700;font-size:14px;cursor:pointer}
.ttr-btn.ghost{background:#fff;color:#475569;border:1px solid var(--line,#e8edf3)}

/* Trang xem chi tiết */
.ttr-xem-head{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:18px 20px;margin-bottom:16px}
html.dark .ttr-xem-head{background:#0f1b30;border-color:#1e293b}
.ttr-xem-head h1{margin:0 0 6px;font-size:21px;color:var(--navy,#0e2a47)}
.ttr-kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 18px;margin-top:12px}
.ttr-kv div{font-size:13.5px}.ttr-kv b{color:#475569;font-weight:600}
.ttr-panel{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:16px 18px;margin-bottom:16px}
html.dark .ttr-panel{background:#0f1b30;border-color:#1e293b}
.ttr-panel h2{margin:0 0 12px;font-size:15px;color:var(--navy,#0e2a47)}
.ttr-mini{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:12px}
.ttr-mini input,.ttr-mini select,.ttr-mini textarea{width:100%;box-sizing:border-box;border:1px solid var(--line,#e8edf3);border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit}
.ttr-overdue{color:#dc2626;font-weight:700}
@media(max-width:720px){ .ttr-grid{grid-template-columns:1fr} }
