/* DIAR-6B.5-R2 — Executive analytics, exact Excel and PowerPoint exports */
[hidden]{display:none!important}
.diar-r2-page{--r2-ink:#0c3450;--r2-muted:#5e788b;--r2-line:#d8e6ed;--r2-panel:#fff;--r2-soft:#f3f8fa;--r2-teal:#078d82;--r2-teal-dark:#07665f;--r2-violet:#7c3aed;--r2-violet-soft:#f3edff;--r2-red:#d13e58;--r2-red-soft:#fff0f3;--r2-orange:#ef7f17;--r2-orange-soft:#fff5e8;--r2-yellow:#e5ad20;--r2-shadow:0 18px 46px rgba(15,62,82,.09);color:var(--r2-ink);display:grid;gap:20px;min-width:0;padding:0 0 28px;font-size:16px;line-height:1.5}
.diar-r2-page *{box-sizing:border-box;min-width:0}
.diar-r2-page button,.diar-r2-page select,.diar-r2-page input{font:inherit}
.diar-r2-page a{color:inherit;text-decoration:none}
.diar-r2-tabs{display:flex;align-items:center;gap:10px;overflow:auto;padding:12px 14px;background:#fff;border:1px solid var(--r2-line);border-radius:24px;box-shadow:0 10px 34px rgba(15,62,82,.06);scrollbar-width:thin}
.diar-r2-tabs button,.diar-r2-detail-tabs button{border:0;background:transparent;color:var(--r2-ink);padding:13px 18px;border-radius:14px;white-space:nowrap;cursor:pointer;transition:.18s ease}
.diar-r2-tabs button:hover,.diar-r2-detail-tabs button:hover{background:var(--r2-soft)}
.diar-r2-tabs button.is-active{background:linear-gradient(135deg,#7c3aed,#9158ef);color:#fff;box-shadow:0 9px 20px rgba(124,58,237,.24);font-weight:800}
.diar-r2-hero{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px;align-items:center;padding:34px 36px;border:1px solid var(--r2-line);border-radius:30px;background:radial-gradient(circle at 78% 10%,rgba(124,58,237,.11),transparent 35%),linear-gradient(135deg,#fff,#eef9f8);box-shadow:var(--r2-shadow)}
.diar-r2-hero>div>span,.diar-r2-chart-card header span,.diar-r2-decision-grid>article>span,.diar-r2-section-head span,.diar-r2-export-hero>div>span,.diar-r2-workbook-contract header span,.diar-r2-history header span{display:block;color:var(--r2-teal);font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.diar-r2-hero h1{margin:8px 0 6px;font-size:clamp(34px,4.3vw,58px);line-height:1.05;letter-spacing:-.035em;color:#102f59}
.diar-r2-hero p{max-width:920px;margin:0;color:var(--r2-muted);font-size:18px;line-height:1.7}
.diar-r2-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.diar-r2-tags span{padding:8px 12px;border:1px solid #cfe2e6;border-radius:999px;background:rgba(255,255,255,.78);font-size:13px;font-weight:800}
.diar-r2-hero aside{display:grid;gap:5px;padding:22px;border:1px solid rgba(23,94,101,.17);border-radius:22px;background:rgba(255,255,255,.82);box-shadow:0 12px 30px rgba(15,62,82,.07)}
.diar-r2-hero aside small{color:var(--r2-muted)}.diar-r2-hero aside strong{font-size:28px}.diar-r2-hero aside span{font-weight:800}.diar-r2-hero aside em{font-style:normal;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--r2-muted);font-size:12px}
.diar-r2-alert{padding:14px 18px;border-radius:14px;font-weight:800}.diar-r2-alert.is-error{background:var(--r2-red-soft);border:1px solid #f2b5c1;color:#9e2440}
.diar-r2-filter{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:14px;align-items:end;padding:20px 22px;border:1px solid var(--r2-line);border-radius:24px;background:#fff;box-shadow:0 10px 34px rgba(15,62,82,.06)}
.diar-r2-filter label{display:grid;gap:7px}.diar-r2-filter label span{font-size:13px;font-weight:900}.diar-r2-filter select{width:100%;height:52px;padding:0 15px;border:1px solid #c8dce3;border-radius:14px;background:#fbfdfe;color:var(--r2-ink);font-weight:700}.diar-r2-filter button{height:52px;padding:0 24px;border:0;border-radius:14px;background:linear-gradient(135deg,#6f2ee8,#8e47ef);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(124,58,237,.22)}
.diar-r2-panel{display:grid;gap:20px;align-content:start}.diar-r2-panel:not(.is-active){display:none}
.diar-r2-kpis{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:13px}
.diar-r2-kpis article{display:grid;align-content:center;min-height:135px;padding:20px 20px;border:1px solid var(--r2-line);border-radius:22px;background:#fff;box-shadow:0 11px 32px rgba(15,62,82,.06)}
.diar-r2-kpis span{color:var(--r2-muted);font-size:13px;font-weight:900}.diar-r2-kpis strong{margin:5px 0;font-size:clamp(26px,2.3vw,39px);line-height:1.08;color:#073c51}.diar-r2-kpis small{color:var(--r2-teal);font-weight:800}.diar-r2-kpis article.critical{background:linear-gradient(145deg,#fff,var(--r2-red-soft));border-color:#f3c4cd}.diar-r2-kpis article.critical strong{color:#b92b47}.diar-r2-kpis article.high{background:linear-gradient(145deg,#fff,var(--r2-orange-soft));border-color:#f2d5ad}.diar-r2-kpis article.high strong{color:#ad5c00}.diar-r2-kpis article.cost{grid-column:span 2}
.diar-r2-chart-grid{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(520px,1.55fr);gap:18px}
.diar-r2-chart-card{padding:24px;border:1px solid var(--r2-line);border-radius:26px;background:#fff;box-shadow:0 12px 38px rgba(15,62,82,.07);overflow:hidden}
.diar-r2-chart-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}.diar-r2-chart-card h2,.diar-r2-decision-grid h2,.diar-r2-export-hero h2,.diar-r2-workbook-contract h2,.diar-r2-section-head h2,.diar-r2-history h2{margin:4px 0 0;font-size:24px;line-height:1.25}
.severity-card{display:grid;grid-template-columns:1fr 1fr;align-items:center}.severity-card header{grid-column:1/-1}.diar-r2-donut{width:min(210px,100%);aspect-ratio:1;margin:auto;border-radius:50%;display:grid;place-content:center;text-align:center;background:conic-gradient(var(--r2-red) 0 var(--critical),var(--r2-orange) var(--critical) var(--high),var(--r2-yellow) var(--high) 360deg);position:relative}.diar-r2-donut:after{content:"";position:absolute;inset:25%;border-radius:50%;background:#fff}.diar-r2-donut strong,.diar-r2-donut span{position:relative;z-index:1}.diar-r2-donut strong{font-size:34px}.diar-r2-donut span{color:var(--r2-muted);font-size:12px}.severity-card dl{display:grid;gap:10px;margin:0}.severity-card dl div{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #edf3f5}.severity-card i{width:10px;height:10px;border-radius:3px}.severity-card i.critical{background:var(--r2-red)}.severity-card i.high{background:var(--r2-orange)}.severity-card i.medium{background:var(--r2-yellow)}.severity-card dt{color:var(--r2-muted)}.severity-card dd{margin:0;font-weight:900}
.diar-r2-chart-card svg{display:block;width:100%;height:auto;overflow:visible}.diar-r2-chart-card .grid-line{stroke:#dfeaec;stroke-width:1}.diar-r2-chart-card .cases-line{fill:none;stroke:var(--r2-violet);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.diar-r2-chart-card .cost-line{fill:none;stroke:var(--r2-teal);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.diar-r2-chart-legend{display:flex;gap:16px;color:var(--r2-muted);font-size:12px}.diar-r2-chart-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-inline-end:5px}.diar-r2-chart-legend .cases{background:var(--r2-violet)}.diar-r2-chart-legend .cost{background:var(--r2-teal)}
.diar-r2-bars{display:grid;gap:14px}.diar-r2-bars article{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:6px 14px;align-items:end}.diar-r2-bars strong{font-size:14px}.diar-r2-bars span{color:var(--r2-muted);font-size:12px;text-align:end}.diar-r2-bars i{grid-column:1/-1;height:8px;border-radius:999px;background:#edf3f5;overflow:hidden}.diar-r2-bars i:before{content:"";display:block;width:var(--bar,0%);height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--r2-violet),#a87af4)}
.diar-r2-decision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.diar-r2-decision-grid>article{padding:24px;border:1px solid var(--r2-line);border-radius:26px;background:#fff;box-shadow:0 12px 34px rgba(15,62,82,.06)}.diar-r2-decision-grid ol,.diar-r2-decision-grid ul{margin:17px 0 0;padding-inline-start:22px}.diar-r2-decision-grid li{padding:8px 0;border-bottom:1px solid #edf3f5;color:#34586d}.diar-r2-decision-grid li::marker{color:var(--r2-violet);font-weight:900}
.diar-r2-detail-tabs{display:flex;gap:8px;padding:8px;border:1px solid var(--r2-line);border-radius:18px;background:#fff;overflow:auto}.diar-r2-detail-tabs button{padding:11px 14px;font-size:14px;font-weight:800}.diar-r2-detail-tabs button.is-active{background:var(--r2-teal-dark);color:#fff}
.diar-r2-table-panel:not(.is-active){display:none}.diar-r2-table-wrap{overflow:auto;border:1px solid var(--r2-line);border-radius:22px;background:#fff;box-shadow:0 11px 34px rgba(15,62,82,.06);max-height:660px}.diar-r2-table-wrap table{border-collapse:separate;border-spacing:0;width:100%;min-width:940px}.diar-r2-table-wrap th{position:sticky;top:0;z-index:1;padding:14px 13px;background:#164f5f;color:#fff;text-align:start;font-size:13px;white-space:nowrap}.diar-r2-table-wrap td{padding:13px;border-bottom:1px solid #e5eef1;color:#254c60;vertical-align:top}.diar-r2-table-wrap tbody tr:hover td{background:#f5fbfb}.priority{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900}.priority.critical{background:var(--r2-red-soft);color:#ac2942}.priority.high{background:var(--r2-orange-soft);color:#9c5706}.priority.medium{background:#fff7db;color:#8a6800}
.diar-r2-analysis-cards{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:13px}.diar-r2-analysis-cards article{display:grid;gap:5px;padding:18px;border:1px solid var(--r2-line);border-radius:18px;background:#fff}.diar-r2-analysis-cards strong{font-size:16px}.diar-r2-analysis-cards span{color:var(--r2-muted)}.diar-r2-analysis-cards small{color:var(--r2-teal);font-weight:900}
.diar-r2-export-hero{display:grid;grid-template-columns:1fr 1.05fr;gap:24px;align-items:center;padding:28px;border:1px solid var(--r2-line);border-radius:28px;background:linear-gradient(135deg,#f2faf9,#f6f1ff)}.diar-r2-export-hero p{color:var(--r2-muted);font-size:17px}.diar-r2-export-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.diar-r2-export-actions a{display:grid;gap:7px;min-height:185px;padding:22px;border:1px solid #d8e5e9;border-radius:22px;background:#fff;transition:.18s ease;box-shadow:0 12px 28px rgba(15,62,82,.06)}.diar-r2-export-actions a:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(15,62,82,.11)}.diar-r2-export-actions strong{font-size:28px}.diar-r2-export-actions span{color:var(--r2-muted)}.diar-r2-export-actions small{margin-top:auto;font-weight:900}.diar-r2-export-actions .excel strong,.diar-r2-export-actions .excel small{color:#147d44}.diar-r2-export-actions .ppt strong,.diar-r2-export-actions .ppt small{color:#bd4a20}
.diar-r2-workbook-contract{padding:24px;border:1px solid var(--r2-line);border-radius:26px;background:#fff}.diar-r2-workbook-contract>header,.diar-r2-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.diar-r2-workbook-contract>header>strong,.diar-r2-section-head>strong{font-size:40px}.diar-r2-workbook-contract>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.diar-r2-workbook-contract article{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:12px;border:1px solid #e2ecef;border-radius:14px}.diar-r2-workbook-contract i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--r2-violet-soft);color:var(--r2-violet);font-style:normal;font-weight:900}.diar-r2-workbook-contract small{color:var(--r2-muted)}
.diar-r2-snapshot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.diar-r2-snapshot-grid>article{padding:22px;border:1px solid #bfe0dc;border-radius:24px;background:linear-gradient(145deg,#fff,#effaf7)}.diar-r2-snapshot-grid>article>header{display:flex;align-items:center;gap:9px}.diar-r2-snapshot-grid header strong{font-size:26px}.diar-r2-snapshot-grid header span{color:var(--r2-muted)}.diar-r2-snapshot-grid header em{margin-inline-start:auto;padding:5px 9px;border-radius:999px;background:#fff;color:var(--r2-teal);font-style:normal;font-size:11px;font-weight:900}.diar-r2-snapshot-grid dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 0}.diar-r2-snapshot-grid dl div{padding:12px;border-radius:13px;background:#fff}.diar-r2-snapshot-grid dt{color:var(--r2-muted);font-size:12px}.diar-r2-snapshot-grid dd{margin:4px 0 0;font-weight:900;overflow-wrap:anywhere}
.diar-r2-history{padding:24px;border:1px solid var(--r2-line);border-radius:26px;background:#fff}.diar-r2-empty{margin-top:16px;padding:24px;border-radius:16px;background:var(--r2-soft);text-align:center;color:var(--r2-muted)}
.diar-r2-boundary{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:17px 20px;border:1px solid #edcd82;border-radius:18px;background:#fff9e9;color:#72510a}.diar-r2-boundary strong{white-space:nowrap}.diar-r2-boundary span{color:#7a5b1c}
[dir="rtl"] .diar-r2-page,[lang="ar"] .diar-r2-page{text-align:right}.diar-r2-page code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
@media (max-width:1320px){.diar-r2-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.diar-r2-kpis article.cost{grid-column:auto}.diar-r2-analysis-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1060px){.diar-r2-hero{grid-template-columns:1fr}.diar-r2-hero aside{grid-template-columns:repeat(2,minmax(0,1fr))}.diar-r2-chart-grid,.diar-r2-decision-grid,.diar-r2-export-hero{grid-template-columns:1fr}.diar-r2-workbook-contract>div{grid-template-columns:repeat(2,minmax(0,1fr))}.diar-r2-analysis-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.diar-r2-page{gap:14px;font-size:15px}.diar-r2-tabs{border-radius:17px;padding:8px}.diar-r2-tabs button{padding:11px 13px}.diar-r2-hero{padding:24px 20px;border-radius:23px}.diar-r2-hero h1{font-size:36px}.diar-r2-hero p{font-size:16px}.diar-r2-filter{grid-template-columns:1fr;padding:16px}.diar-r2-filter button{width:100%}.diar-r2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.diar-r2-kpis article{min-height:115px;padding:16px}.diar-r2-chart-card,.diar-r2-decision-grid>article{padding:18px;border-radius:21px}.severity-card{grid-template-columns:1fr}.severity-card header{grid-column:auto}.severity-card dl{margin-top:16px}.diar-r2-analysis-cards,.diar-r2-workbook-contract>div,.diar-r2-export-actions,.diar-r2-snapshot-grid{grid-template-columns:1fr}.diar-r2-snapshot-grid dl{grid-template-columns:repeat(2,minmax(0,1fr))}.diar-r2-boundary{grid-template-columns:1fr}.diar-r2-boundary strong{white-space:normal}}
@media (max-width:470px){.diar-r2-kpis{grid-template-columns:1fr}.diar-r2-hero aside{grid-template-columns:1fr}.diar-r2-snapshot-grid dl{grid-template-columns:1fr}.diar-r2-workbook-contract article{grid-template-columns:36px 1fr}.diar-r2-workbook-contract small{grid-column:2}.diar-r2-page{padding-bottom:18px}}
@media print{.diar-r2-tabs,.diar-r2-filter,.diar-r2-detail-tabs,.diar-r2-export-actions{display:none!important}.diar-r2-page{font-size:12px}.diar-r2-panel{display:grid!important}.diar-r2-chart-card,.diar-r2-kpis article{box-shadow:none}}
