/* Hudoor — Professional Reports */
.pro-report-sheet{
  width:min(720px,calc(100vw - 12px))!important;
  max-width:720px!important;
  max-height:94vh!important;
  overflow:auto!important;
  padding:10px 12px 18px!important;
}
.pro-reports{direction:rtl;color:var(--ink);padding-bottom:3px}
.pro-report-head{
  position:relative;overflow:hidden;
  background:linear-gradient(135deg,#18364b 0%,#0b7a6f 62%,#13988a 100%);
  border-radius:22px;padding:17px;color:#fff;margin-bottom:10px;
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  box-shadow:0 14px 28px rgba(21,65,76,.16)
}
.pro-report-head:after{
  content:"";position:absolute;width:140px;height:140px;border-radius:50%;
  border:25px solid rgba(255,255,255,.06);left:-66px;top:-63px
}
.pro-report-head>div{position:relative;z-index:1}
.pro-kicker{font-size:9px;font-weight:900;color:#cdeae6;display:block;margin-bottom:3px}
.pro-report-head h2{margin:0;font-size:22px}.pro-report-head p{margin:4px 0 0;font-size:9px;color:#d8efec}
.pro-head-mark{width:50px;height:50px;border-radius:16px;background:#ffffff17;border:1px solid #ffffff22;display:grid;place-items:center;flex:0 0 50px}
.pro-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:#eaf1f2;padding:5px;border-radius:15px;margin-bottom:9px}
.pro-presets button{height:36px;border:0;background:transparent;border-radius:10px;color:#667983;font-size:10px;font-weight:900}
.pro-presets button.active{background:#fff;color:var(--primary);box-shadow:0 3px 12px rgba(16,46,64,.08)}
.pro-filter-card{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:10px;margin-bottom:9px}
.pro-filter label{display:block;font-size:9px;color:var(--muted);font-weight:900;margin-bottom:5px}
.pro-filter select{width:100%;height:40px;border:1px solid var(--line);border-radius:11px;background:#f9fbfb;color:var(--ink);padding:0 9px;font-size:10px;outline:none}
.pro-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:9px}
.pro-metric{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;
  padding:12px;min-height:100px;display:flex;flex-direction:column;justify-content:flex-end;
  text-align:right;box-shadow:0 5px 18px rgba(17,50,70,.04)
}
.pro-metric.main{background:linear-gradient(145deg,#f0faf8,#fff);border-color:#cce8e3}
/* الأيقونة في اليسار حتى لا تزاحم الرقم في التصميم العربي */
.pro-metric-icon{
  position:absolute;top:11px;left:11px;right:auto;
  width:34px;height:34px;border-radius:11px;background:var(--primary-soft);
  color:var(--primary);display:grid;place-items:center
}
.pro-metric b{font-size:25px;line-height:1;color:var(--navy)}
.pro-metric small{font-size:9px;color:var(--muted);margin-top:7px}
.pro-highlight{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;background:linear-gradient(135deg,#fff8e8,#fff);border:1px solid #f1dfb7;border-radius:18px;padding:11px;margin-bottom:9px}
.pro-highlight-icon{width:43px;height:43px;border-radius:14px;background:#fff1c8;color:#9b6810;display:grid;place-items:center}
.pro-highlight small,.pro-highlight b,.pro-highlight span{display:block}.pro-highlight small{font-size:8px;color:#987331}.pro-highlight b{font-size:13px;margin:2px 0}.pro-highlight span{font-size:9px;color:var(--muted)}
.pro-rank{font-size:18px;font-weight:1000;color:#b7841f}
.pro-block{background:#fff;border:1px solid var(--line);border-radius:19px;padding:12px;margin-bottom:9px;box-shadow:0 5px 18px rgba(17,50,70,.035)}
.pro-block-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.pro-block-title>div b{display:block;font-size:12px}.pro-block-title>div small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.pro-block-title>span{color:var(--primary)}
.pro-trend,.pro-class-bars{display:flex;flex-direction:column;gap:8px}
.pro-trend-row,.pro-class-row{display:grid;grid-template-columns:46px 1fr 28px;gap:7px;align-items:center}
.pro-trend-date{font-size:9px;color:var(--muted);direction:ltr;text-align:right}
.pro-track,.pro-mini-track{height:8px;background:#eef3f4;border-radius:99px;overflow:hidden}
.pro-track i,.pro-mini-track i{display:block;height:100%;background:linear-gradient(90deg,var(--primary),#28aa99);border-radius:99px;min-width:3px}
.pro-trend-row>b,.pro-class-row>strong{font-size:10px;text-align:center}
.pro-ranking{display:flex;flex-direction:column;gap:7px}
.pro-rank-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #eef2f3}.pro-rank-row:last-child{border-bottom:0}
.pro-rank-row .avatar{width:38px;height:38px;flex:0 0 38px;border-radius:12px;font-size:14px}
.pro-rank-number{width:22px;height:22px;border-radius:8px;background:#eef4f5;color:#6a7c86;display:grid;place-items:center;font-size:9px;font-weight:900}
.pro-rank-info{flex:1;min-width:0}.pro-rank-info b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pro-rank-info small{display:block;font-size:8px;color:var(--muted);margin:2px 0 5px}.pro-mini-track{height:5px}
.pro-rank-row>strong{width:24px;text-align:center;font-size:13px;color:var(--primary)}
.pro-class-row{grid-template-columns:95px 1fr 28px}.pro-class-label b{display:block;font-size:10px}.pro-class-label small{display:block;font-size:8px;color:var(--muted);margin-top:2px}
.pro-records{display:flex;flex-direction:column;gap:7px}
.pro-record{border:1px solid #e5ebee;border-radius:14px;background:#fbfcfc;overflow:hidden}
.pro-record summary{list-style:none;display:grid;grid-template-columns:1fr auto 34px;gap:7px;align-items:center;padding:10px;cursor:pointer}.pro-record summary::-webkit-details-marker{display:none}
.pro-record-date b,.pro-record-date small{display:block}.pro-record-date b{font-size:11px}.pro-record-date small{font-size:8px;color:var(--muted);margin-top:2px}
.pro-record-teacher{font-size:8px;color:#5b6f79;background:#eef3f4;border-radius:9px;padding:5px 7px;white-space:nowrap;max-width:100px;overflow:hidden;text-overflow:ellipsis}
.pro-record-count{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;font-size:11px;font-weight:1000}.pro-record-count.has{background:var(--danger-soft);color:var(--danger)}.pro-record-count.zero{background:var(--success-soft);color:var(--success)}
.pro-record-body{border-top:1px solid #e6ecee;padding:10px;background:#fff}.pro-record-label{font-size:8px;color:var(--muted);font-weight:900;margin-bottom:7px}
.pro-absent-chips{display:flex;flex-wrap:wrap;gap:5px}.pro-absent-chips span{font-size:9px;background:#fff1f3;color:#a93644;border:1px solid #f2d3d8;border-radius:999px;padding:5px 8px}
.pro-present-all{display:flex;align-items:center;gap:6px;color:var(--success);font-size:9px;font-weight:800}
.pro-empty{padding:18px;text-align:center;color:var(--muted);font-size:9px;background:#f8fafb;border-radius:12px;border:1px dashed #d5e0e4}
.pro-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:3px}
.pro-actions .btn{min-height:43px;font-size:10px}
@media (max-width:360px){
  .pro-filter-card{grid-template-columns:1fr}
  .pro-report-head h2{font-size:19px}
  .pro-class-row{grid-template-columns:78px 1fr 25px}
}
