/* DIAR-6B.2-R2 — Monthly cases search/list. Scoped. */
.diar-cases-page{--dc-ink:#173f4b;--dc-muted:#637b83;--dc-line:#dbe7e9;--dc-soft:#f5f9fa;--dc-teal:#177d74;--dc-critical:#a72d40;--dc-high:#a96b11;display:grid;gap:18px;padding:0 0 32px;color:var(--dc-ink);font-size:16px;min-width:0}
[dir=rtl] .diar-cases-page{font-size:17px}.cases-hero,.cases-filter-card,.cases-table-card,.cases-contract-footer{border:1px solid var(--dc-line);border-radius:24px;background:#fff;box-shadow:0 12px 34px rgba(31,73,86,.06)}
.cases-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:27px 30px;background:linear-gradient(135deg,#fff,#f1f9f8)}.cases-eyebrow{display:block;margin-bottom:7px;color:#24796f;font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.cases-hero h1{margin:0;font-size:40px;line-height:1.12;letter-spacing:-.03em}.cases-hero p{max-width:850px;margin:12px 0 0;color:var(--dc-muted);font-size:17px;line-height:1.75}.cases-hero-total{display:grid;min-width:190px;padding:18px;border:1px solid #cde1df;border-radius:19px;background:#fff}.cases-hero-total span,.cases-hero-total small{color:var(--dc-muted)}.cases-hero-total strong{font-size:34px}
.cases-boundary-note,.cases-alert{display:grid;gap:4px;padding:15px 18px;border-radius:16px}.cases-boundary-note{border:1px solid #efd99c;background:#fffaf0;color:#6e560b}.cases-alert-error{border:1px solid #efc5cb;background:#fff2f4;color:#84283a}.cases-alert-warning{border:1px solid #efd99c;background:#fffaf0;color:#6e560b}
.cases-filter-card{padding:19px}.cases-filter-primary{display:grid;grid-template-columns:minmax(150px,.75fr) minmax(150px,.75fr) minmax(150px,.75fr) minmax(260px,1.75fr);gap:13px}.cases-filter-card label{display:grid;gap:7px;min-width:0}.cases-filter-card label>span{font-size:13px;font-weight:900}.cases-filter-card input,.cases-filter-card select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #c9dadd;border-radius:12px;background:#fbfdfd;color:var(--dc-ink);font:inherit}.cases-advanced{margin-top:15px;border-top:1px solid #e3ecee;padding-top:13px}.cases-advanced summary{cursor:pointer;font-weight:900;color:#286a67}.cases-advanced-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px;margin-top:14px}.cases-filter-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.cases-filter-actions a,.cases-filter-actions button{display:inline-flex;min-height:48px;align-items:center;justify-content:center;padding:10px 17px;border-radius:12px;font:inherit;font-weight:900;text-decoration:none;cursor:pointer}.cases-primary-button{border:0;background:var(--dc-teal);color:#fff}.cases-secondary-button{border:1px solid #c9dadd;background:#fff;color:#315c65}.cases-export-button{border:1px solid #b8ddd7;background:#eef8f6;color:#176b64}
.cases-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.cases-kpi-grid article{display:grid;gap:7px;padding:20px;border:1px solid var(--dc-line);border-radius:19px;background:#fff}.cases-kpi-grid span{color:#55717a;font-size:13px;font-weight:900}.cases-kpi-grid strong{font-size:31px;line-height:1.15}.cases-kpi-grid small{color:#748990}.cases-kpi-critical{border-color:#ebc4ca!important;background:#fff7f8!important}.cases-kpi-critical strong{color:var(--dc-critical)}.cases-kpi-high{border-color:#ecd9ad!important;background:#fffaf1!important}.cases-kpi-high strong{color:var(--dc-high)}
.cases-table-card{padding:22px}.cases-table-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:17px}.cases-table-heading>div:first-child>span{display:block;color:#24796f;font-size:12px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.cases-table-heading h2{margin:5px 0 0;font-size:26px}.cases-table-heading p{margin:7px 0 0;color:var(--dc-muted)}.cases-snapshot-count{display:grid;min-width:95px;padding:11px 14px;border-radius:13px;background:var(--dc-soft);text-align:center}.cases-snapshot-count span{color:var(--dc-muted);font-size:12px}.cases-snapshot-count strong{font-size:25px}.cases-table-wrap{overflow:auto;border:1px solid #e0eaec;border-radius:16px}.cases-table{width:100%;min-width:1280px;border-collapse:collapse}.cases-table th{padding:13px 12px;background:#294f5b;color:#fff;font-size:12px;text-align:start;white-space:nowrap}.cases-table td{padding:13px 12px;border-top:1px solid #e5edef;vertical-align:top}.cases-table td strong,.cases-table td span,.cases-table td small{display:block}.cases-table td span{margin-top:3px;color:#5f7880}.cases-table td small{max-width:230px;margin-top:4px;color:#7d9096;font-size:10px;overflow-wrap:anywhere}.cases-severity{display:inline-flex!important;width:max-content;padding:5px 8px;border-radius:999px;font-size:11px!important;font-weight:900}.cases-severity-critical{background:#fde6e9;color:#8c2536!important}.cases-severity-high{background:#fff0cf;color:#7d530b!important}.cases-severity-medium{background:#e5f2f4;color:#326d78!important}.cases-score{margin-top:7px;font-size:20px}.cases-empty{padding:35px;border-radius:14px;background:var(--dc-soft);text-align:center;color:var(--dc-muted)}
.cases-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:18px}.cases-pagination a{display:inline-flex;min-height:43px;align-items:center;padding:8px 14px;border-radius:11px;background:#edf6f5;color:#176d67;font-weight:900;text-decoration:none}.cases-pagination span{font-weight:900}.cases-contract-footer{display:grid;grid-template-columns:1.1fr 1.5fr .6fr;gap:13px;padding:17px 19px}.cases-contract-footer>div{display:grid;gap:4px;min-width:0}.cases-contract-footer span{color:var(--dc-muted);font-size:12px}.cases-contract-footer strong{overflow-wrap:anywhere}.cases-next-phase{grid-column:1/-1;padding-top:12px;border-top:1px solid #e2ebed}
@media(max-width:1250px){.cases-filter-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.cases-advanced-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cases-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.cases-hero{align-items:stretch;flex-direction:column}.cases-hero-total{min-width:0}.cases-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cases-contract-footer{grid-template-columns:1fr}.cases-table-heading{flex-direction:column}.cases-snapshot-count{width:100%;text-align:start}.cases-table-wrap{overflow:visible;border:0}.cases-table{min-width:0}.cases-table thead{display:none}.cases-table,.cases-table tbody,.cases-table tr,.cases-table td{display:block;width:100%}.cases-table tr{margin-bottom:14px;padding:13px;border:1px solid #dce8ea;border-radius:16px;background:#fff}.cases-table td{display:grid;grid-template-columns:minmax(115px,.45fr) minmax(0,1fr);gap:11px;padding:9px 0;border-top:1px solid #edf2f3}.cases-table td:first-child{border-top:0}.cases-table td:before{content:attr(data-label);color:#617a82;font-size:12px;font-weight:900}.cases-table td>*{grid-column:2}}
@media(max-width:600px){.diar-cases-page{gap:14px}.cases-hero,.cases-table-card,.cases-filter-card{padding:16px;border-radius:19px}.cases-hero h1{font-size:30px}.cases-hero p{font-size:15px}.cases-filter-primary,.cases-advanced-grid,.cases-kpi-grid{grid-template-columns:1fr}.cases-filter-actions>*{width:100%}.cases-kpi-grid strong{font-size:28px}.cases-table td{grid-template-columns:95px minmax(0,1fr)}}
