/* DIAR-6B.5-R2.5 — Executive UX, prebuilt report cache and fast export */
.diar-r25-page{
    --r25-ink:#17384a;
    --r25-muted:#617985;
    --r25-line:#dbe7eb;
    --r25-soft:#f4f8fa;
    --r25-navy:#123f55;
    --r25-teal:#137a72;
    --r25-teal-soft:#eaf7f4;
    --r25-violet:#6e4ccf;
    --r25-violet-soft:#f0ecff;
    --r25-red:#c73b55;
    --r25-red-soft:#fdecef;
    --r25-orange:#d97918;
    --r25-orange-soft:#fff2e3;
    --r25-yellow:#d7ab17;
    display:grid;
    gap:20px;
    width:100%;
    padding:0 0 28px;
    color:var(--r25-ink);
    font-size:16px;
    line-height:1.55;
}
html[dir="rtl"] .diar-r25-page{font-size:17px}
.diar-r25-page *{box-sizing:border-box}
.diar-r25-page button,.diar-r25-page select,.diar-r25-page a{font:inherit}
.diar-r25-page button{border:0;cursor:pointer}
.diar-r25-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:28px;
    padding:30px 32px;
    border:1px solid #cddfe5;
    border-radius:28px;
    background:
        radial-gradient(circle at 92% 10%,rgba(110,76,207,.12),transparent 34%),
        linear-gradient(135deg,#ffffff 0%,#f6fbfb 55%,#f4f0ff 100%);
    box-shadow:0 18px 48px rgba(18,63,85,.08);
}
.diar-r25-hero-copy{max-width:920px}
.diar-r25-eyebrow,
.diar-r25-card>header span,
.diar-r25-decisions>article>span,
.diar-r25-section-head span,
.diar-r25-download-panel>div>span,
.diar-r25-history>header span{
    display:block;
    margin:0 0 7px;
    color:var(--r25-teal);
    font-size:14px;
    font-weight:900;
    letter-spacing:.11em;
}
.diar-r25-hero h1{
    margin:0;
    color:var(--r25-navy);
    font-size:42px;
    line-height:1.12;
    letter-spacing:-.025em;
}
.diar-r25-hero p{
    max-width:800px;
    margin:14px 0 0;
    color:var(--r25-muted);
    font-size:18px;
}
.diar-r25-report-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}
.diar-r25-report-meta span{
    padding:8px 11px;
    border:1px solid #d8e6ea;
    border-radius:999px;
    background:rgba(255,255,255,.84);
    color:#476270;
    font-size:14px;
}
.diar-r25-report-meta strong{color:var(--r25-navy)}
.diar-r25-hero-actions{
    display:grid;
    gap:12px;
    min-width:260px;
}
.diar-r25-btn{
    display:grid;
    align-content:center;
    min-height:64px;
    padding:13px 18px;
    border:1px solid transparent;
    border-radius:16px;
    text-decoration:none;
    transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease;
}
.diar-r25-btn:hover{transform:translateY(-2px)}
.diar-r25-btn span{font-size:16px;font-weight:900}
.diar-r25-btn small{margin-top:2px;font-size:14px;opacity:.82}
.diar-r25-btn-excel{
    border-color:#bfe5d0;
    background:#edf9f2;
    color:#116c3d;
    box-shadow:0 10px 22px rgba(17,108,61,.08);
}
.diar-r25-btn-ppt{
    border-color:#f0cfbd;
    background:#fff4ee;
    color:#a7481e;
    box-shadow:0 10px 22px rgba(167,72,30,.08);
}
.diar-r25-btn.is-loading{pointer-events:none;opacity:.65}
.diar-r25-alert{
    padding:16px 18px;
    border:1px solid #efc4cc;
    border-radius:16px;
    background:#fff2f4;
    color:#97384a;
    font-weight:800;
}
.diar-r25-filter{
    display:grid;
    grid-template-columns:minmax(180px,260px) minmax(180px,260px) auto;
    align-items:end;
    gap:14px;
    padding:16px 18px;
    border:1px solid var(--r25-line);
    border-radius:20px;
    background:#fff;
}
.diar-r25-filter label{display:grid;gap:6px}
.diar-r25-filter label span{
    color:#526f7d;
    font-size:14px;
    font-weight:900;
}
.diar-r25-filter select{
    width:100%;
    min-height:48px;
    padding:0 13px;
    border:1px solid #cbdde3;
    border-radius:12px;
    background:#fff;
    color:var(--r25-ink);
}
.diar-r25-filter button{
    min-height:48px;
    padding:0 22px;
    border-radius:12px;
    background:var(--r25-navy);
    color:#fff;
    font-weight:900;
}
.diar-r25-filter button:disabled{opacity:.65}
.diar-r25-tabs{
    display:flex;
    gap:8px;
    padding:8px;
    border:1px solid var(--r25-line);
    border-radius:18px;
    background:#fff;
    overflow:auto;
}
.diar-r25-tabs button{
    min-height:46px;
    padding:0 17px;
    border-radius:12px;
    background:transparent;
    color:#4d6875;
    font-weight:850;
    white-space:nowrap;
}
.diar-r25-tabs button.is-active{
    background:var(--r25-navy);
    color:#fff;
    box-shadow:0 8px 18px rgba(18,63,85,.15);
}
.diar-r25-panel{display:none;gap:20px}
.diar-r25-panel.is-active{display:grid}
.diar-r25-kpis{
    display:grid;
    grid-template-columns:repeat(6,minmax(150px,1fr));
    gap:12px;
}
.diar-r25-kpis article{
    display:grid;
    align-content:start;
    min-height:135px;
    padding:18px;
    border:1px solid var(--r25-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 28px rgba(18,63,85,.055);
}
.diar-r25-kpis article span{
    min-height:42px;
    color:#607984;
    font-size:14px;
    font-weight:850;
}
.diar-r25-kpis article strong{
    margin-top:5px;
    color:var(--r25-navy);
    font-size:34px;
    line-height:1.12;
}
.diar-r25-kpis article small{
    margin-top:auto;
    padding-top:7px;
    color:#78909b;
    font-size:14px;
}
.diar-r25-kpis article.critical{border-color:#efc7cf;background:linear-gradient(160deg,#fff,#fff3f5)}
.diar-r25-kpis article.critical strong{color:var(--r25-red)}
.diar-r25-kpis article.high{border-color:#f0d1b4;background:linear-gradient(160deg,#fff,#fff7ef)}
.diar-r25-kpis article.high strong{color:#b65f10}
.diar-r25-kpis article.value{
    grid-column:span 2;
    border-color:#d8cff5;
    background:linear-gradient(160deg,#fff,#f7f4ff);
}
.diar-r25-kpis article.value strong{font-size:30px;color:var(--r25-violet)}
.diar-r25-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}
.diar-r25-card{
    min-width:0;
    padding:24px;
    border:1px solid var(--r25-line);
    border-radius:24px;
    background:#fff;
    box-shadow:0 12px 34px rgba(18,63,85,.06);
}
.diar-r25-card>header{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-bottom:20px;
}
.diar-r25-card h2,
.diar-r25-decisions h2,
.diar-r25-section-head h2,
.diar-r25-download-panel h2,
.diar-r25-history h2{
    margin:0;
    color:var(--r25-navy);
    font-size:24px;
    line-height:1.25;
}
.diar-r25-priority{
    display:grid;
    grid-template-columns:minmax(180px,.8fr) minmax(180px,1fr);
    align-items:center;
}
.diar-r25-priority>header{grid-column:1/-1}
.diar-r25-donut{
    position:relative;
    display:grid;
    place-content:center;
    width:min(210px,100%);
    aspect-ratio:1;
    margin:auto;
    border-radius:50%;
    text-align:center;
    background:conic-gradient(
        var(--r25-red) 0 var(--critical),
        var(--r25-orange) var(--critical) var(--high),
        var(--r25-yellow) var(--high) 360deg
    );
}
.diar-r25-donut:after{
    content:"";
    position:absolute;
    inset:24%;
    border-radius:50%;
    background:#fff;
}
.diar-r25-donut strong,.diar-r25-donut span{position:relative;z-index:1}
.diar-r25-donut strong{font-size:35px;color:var(--r25-navy)}
.diar-r25-donut span{font-size:14px;color:var(--r25-muted)}
.diar-r25-priority dl{display:grid;gap:9px;margin:0}
.diar-r25-priority dl div{
    display:grid;
    grid-template-columns:12px 1fr auto;
    align-items:center;
    gap:9px;
    padding:11px 0;
    border-bottom:1px solid #edf2f4;
}
.diar-r25-priority dl i{width:10px;height:10px;border-radius:3px}
.diar-r25-priority dl i.critical{background:var(--r25-red)}
.diar-r25-priority dl i.high{background:var(--r25-orange)}
.diar-r25-priority dl i.medium{background:var(--r25-yellow)}
.diar-r25-priority dt{color:var(--r25-muted)}
.diar-r25-priority dd{margin:0;font-weight:900}
.diar-r25-trend svg{display:block;width:100%;height:250px}
.diar-r25-trend .axis{stroke:#dce7eb;stroke-width:1}
.diar-r25-trend .cases-line{
    fill:none;
    stroke:var(--r25-violet);
    stroke-width:4;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.diar-r25-trend .cost-line{
    fill:none;
    stroke:var(--r25-teal);
    stroke-width:3;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.diar-r25-legend{display:flex;gap:16px;margin-top:10px;color:var(--r25-muted);font-size:14px}
.diar-r25-legend span:before{
    content:"";
    display:inline-block;
    width:10px;
    height:10px;
    margin-inline-end:6px;
    border-radius:50%;
}
.diar-r25-legend .cases:before{background:var(--r25-violet)}
.diar-r25-legend .cost:before{background:var(--r25-teal)}
.diar-r25-bars{display:grid;gap:14px}
.diar-r25-bars>div{display:grid;gap:6px}
.diar-r25-bars>div>header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.diar-r25-bars strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.diar-r25-bars header span{font-weight:900}
.diar-r25-bars i{
    display:block;
    height:9px;
    border-radius:999px;
    background:#edf2f4;
    overflow:hidden;
}
.diar-r25-bars b{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,var(--r25-violet),#a88beb);
}
.diar-r25-bars.teal b{background:linear-gradient(90deg,var(--r25-teal),#55afa6)}
.diar-r25-bars small{color:var(--r25-muted)}
.diar-r25-decisions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}
.diar-r25-decisions>article{
    padding:24px;
    border:1px solid var(--r25-line);
    border-radius:24px;
    background:#fff;
}
.diar-r25-decisions ol{
    margin:16px 0 0;
    padding-inline-start:22px;
}
.diar-r25-decisions li{
    padding:9px 0;
    border-bottom:1px solid #edf2f4;
    color:#395b6c;
}
.diar-r25-decisions li::marker{color:var(--r25-teal);font-weight:900}
.diar-r25-section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    padding:22px 24px;
    border:1px solid var(--r25-line);
    border-radius:22px;
    background:#fff;
}
.diar-r25-section-head strong{font-size:38px;color:var(--r25-violet)}
.diar-r25-table-wrap{
    max-width:100%;
    max-height:680px;
    overflow:auto;
    border:1px solid var(--r25-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 11px 30px rgba(18,63,85,.05);
}
.diar-r25-table-wrap table{
    width:100%;
    min-width:1040px;
    border-collapse:separate;
    border-spacing:0;
}
.diar-r25-table-wrap th{
    position:sticky;
    top:0;
    z-index:1;
    padding:14px 13px;
    background:var(--r25-navy);
    color:#fff;
    text-align:start;
    font-size:14px;
    white-space:nowrap;
}
.diar-r25-table-wrap td{
    padding:13px;
    border-bottom:1px solid #e7eef1;
    color:#2d5264;
    vertical-align:top;
}
.diar-r25-table-wrap tbody tr:hover td{background:#f7fbfc}
.diar-r25-priority-pill{
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    font-size:14px;
    font-weight:900;
}
.diar-r25-priority-pill.critical{background:var(--r25-red-soft);color:#aa2943}
.diar-r25-priority-pill.high{background:var(--r25-orange-soft);color:#9d550b}
.diar-r25-priority-pill.medium{background:#fff7db;color:#836600}
.diar-r25-note{
    margin:0;
    padding:14px 17px;
    border:1px solid #d4e5ea;
    border-radius:15px;
    background:#f6fafb;
    color:#54717e;
}
.diar-r25-analysis-tabs{
    display:flex;
    gap:8px;
    padding:8px;
    border:1px solid var(--r25-line);
    border-radius:18px;
    background:#fff;
    overflow:auto;
}
.diar-r25-analysis-tabs button{
    min-height:44px;
    padding:0 15px;
    border-radius:11px;
    background:transparent;
    color:#516e7c;
    font-weight:850;
    white-space:nowrap;
}
.diar-r25-analysis-tabs button.is-active{background:var(--r25-teal);color:#fff}
.diar-r25-detail{display:none}
.diar-r25-detail.is-active{display:block}
.diar-r25-analysis-cards{
    display:grid;
    grid-template-columns:repeat(4,minmax(190px,1fr));
    gap:13px;
}
.diar-r25-analysis-cards article{
    display:grid;
    gap:6px;
    min-height:120px;
    padding:18px;
    border:1px solid var(--r25-line);
    border-radius:18px;
    background:#fff;
}
.diar-r25-analysis-cards strong{font-size:16px}
.diar-r25-analysis-cards span{color:var(--r25-muted)}
.diar-r25-analysis-cards small{margin-top:auto;color:var(--r25-teal);font-weight:900}
.diar-r25-download-panel{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:24px;
    padding:26px;
    border:1px solid #d7e2ed;
    border-radius:24px;
    background:linear-gradient(135deg,#f2faf9,#f7f4ff);
}
.diar-r25-download-panel p{max-width:760px;margin:12px 0 0;color:var(--r25-muted);font-size:17px}
.diar-r25-download-actions{display:grid;gap:10px;min-width:240px}
.diar-r25-history{
    padding:24px;
    border:1px solid var(--r25-line);
    border-radius:24px;
    background:#fff;
}
.diar-r25-history>header{margin-bottom:16px}
.diar-r25-history-link{color:var(--r25-teal);font-weight:900;text-decoration:none}
.diar-r25-empty{
    padding:24px;
    border-radius:15px;
    background:var(--r25-soft);
    color:var(--r25-muted);
    text-align:center;
}
[dir="rtl"] .diar-r25-page,[lang="ar"] .diar-r25-page{text-align:right}
@media (max-width:1380px){
    .diar-r25-kpis{grid-template-columns:repeat(3,minmax(170px,1fr))}
    .diar-r25-kpis article.value{grid-column:auto}
}
@media (max-width:1080px){
    .diar-r25-hero{grid-template-columns:1fr}
    .diar-r25-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
    .diar-r25-grid,.diar-r25-decisions{grid-template-columns:1fr}
    .diar-r25-analysis-cards{grid-template-columns:repeat(2,minmax(180px,1fr))}
    .diar-r25-download-panel{grid-template-columns:1fr}
    .diar-r25-download-actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
}
@media (max-width:760px){
    .diar-r25-page{gap:14px;font-size:16px}
    .diar-r25-hero{padding:23px 19px;border-radius:22px}
    .diar-r25-hero h1{font-size:34px}
    .diar-r25-hero p{font-size:16px}
    .diar-r25-hero-actions{grid-template-columns:1fr}
    .diar-r25-filter{grid-template-columns:1fr;padding:15px}
    .diar-r25-filter button{width:100%}
    .diar-r25-tabs{border-radius:15px}
    .diar-r25-tabs button{min-height:44px;padding:0 13px}
    .diar-r25-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .diar-r25-kpis article{min-height:125px;padding:15px}
    .diar-r25-kpis article strong{font-size:30px}
    .diar-r25-kpis article.value strong{font-size:25px}
    .diar-r25-card,.diar-r25-decisions>article{padding:18px;border-radius:20px}
    .diar-r25-card h2,.diar-r25-decisions h2,.diar-r25-section-head h2,.diar-r25-download-panel h2,.diar-r25-history h2{font-size:21px}
    .diar-r25-priority{grid-template-columns:1fr}
    .diar-r25-priority>header{grid-column:auto}
    .diar-r25-priority dl{margin-top:16px}
    .diar-r25-analysis-cards{grid-template-columns:1fr}
    .diar-r25-download-actions{grid-template-columns:1fr}
    .diar-r25-section-head{padding:18px}
}
@media (max-width:480px){
    .diar-r25-kpis{grid-template-columns:1fr}
    .diar-r25-report-meta{display:grid}
    .diar-r25-report-meta span{border-radius:12px}
}
@media print{
    .diar-r25-hero-actions,.diar-r25-filter,.diar-r25-tabs,.diar-r25-analysis-tabs,.diar-r25-download-actions{display:none!important}
    .diar-r25-panel{display:grid!important}
    .diar-r25-card,.diar-r25-kpis article{box-shadow:none}
}
