/* ==========================================================
   جداول مدرسة — طبقة الهوية البصرية v3
   إطارات، ألوان، خطوط أكبر، تقارير رسمية
   ========================================================== */
:root{
  --bg:#f4f7f5;--text:#14231f;--muted:#5b6b67;--border:#d7e3df;
  --primary:#075b4c;--primary-dark:#05463a;--gold:#b8892b;--gold-soft:#f7efdc;--gold-line:#e3cf9f;
  --sidebar:#053f35;--radius:16px;
  --frame:0 0 0 1px #fff inset,0 0 0 2px var(--gold-line) inset;
  --card-shadow:0 1px 2px rgba(5,63,53,.05),0 10px 28px rgba(5,63,53,.07);
}
html{font-size:16px}
body{font-size:15px;line-height:1.7;background:
  radial-gradient(circle at 100% 0,rgba(7,91,76,.06),transparent 40%),
  radial-gradient(circle at 0 100%,rgba(184,137,43,.07),transparent 45%),var(--bg);background-attachment:fixed}
.ico{width:1.15em;height:1.15em;flex:none;vertical-align:-.18em}
.small{font-size:13.5px}.tiny{font-size:12px}

/* ---------- الإطار الخارجي للصفحات ---------- */
.app-shell{position:relative}
.main-area{padding:14px 14px 14px 14px}
.main-area>.topbar{border-radius:18px 18px 0 0;border:1px solid var(--border);border-bottom:0;box-shadow:none}
.main-area>.content{background:rgba(255,255,255,.55);border:1px solid var(--border);border-top:3px solid var(--primary);border-radius:0 0 18px 18px;min-height:calc(100vh - 98px);position:relative;box-shadow:var(--card-shadow)}
.main-area>.content:before{content:"";position:absolute;inset:8px;border:1px dashed rgba(184,137,43,.35);border-radius:12px;pointer-events:none}
.content{padding:26px 26px 30px}

/* ---------- الشريط العلوي ---------- */
.topbar{height:78px;background:linear-gradient(90deg,#fff,#fbf8f0);position:sticky;top:14px}
.topbar-title h1{font-size:20px;font-weight:900;color:var(--primary-dark)}
.topbar-title p{font-size:13px}
.icon-btn{width:42px;height:42px;border-radius:12px;background:#fff;color:var(--primary)}
.icon-btn .ico{width:20px;height:20px}
.sync-status{font-size:13px}

/* ---------- القائمة الجانبية ---------- */
.sidebar{background:linear-gradient(180deg,#064a3e 0%,#053a31 55%,#042c25 100%);border-left:3px solid var(--gold)}
.sidebar:after{content:"";position:absolute;inset:10px;border:1px solid rgba(227,207,159,.16);border-radius:16px;pointer-events:none}
.sidebar-brand strong{font-size:18px;color:#fff}.sidebar-brand small{font-size:12px;color:#c9e4dc}
.sidebar-brand img{width:48px;height:48px;background:#fff;border-radius:12px;padding:3px}
.school-box{background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.03));border:1px solid rgba(227,207,159,.3)}
.school-box small{font-size:12px}.school-box strong{font-size:14.5px;display:block;color:#fff;margin-top:3px}
.school-box-logo{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:12px;padding:3px;display:block;margin:6px 0 6px}
.school-code{font-size:12px}.subscription-link{font-size:12.5px}
.nav-item{font-size:14.5px;padding:11px 13px;border-radius:12px;color:#d6ebe5;justify-content:space-between}
.nav-label{display:inline-flex;align-items:center;gap:10px}
.nav-label .ico{width:19px;height:19px;opacity:.85}
.nav-item:hover{background:rgba(255,255,255,.07);color:#fff}
.nav-item.active{background:linear-gradient(90deg,#0b7a65,#0a6655);box-shadow:inset 3px 0 0 var(--gold),0 8px 18px rgba(0,0,0,.18)}
.nav-badge{font-size:12px;background:var(--gold);color:#1c1606}
.user-box strong{font-size:14px}.user-box small{font-size:12px}
.user-avatar{background:var(--gold);color:#1c1606}
.logout-btn{font-size:13.5px;display:inline-flex;align-items:center;gap:6px;justify-content:center}

/* ---------- الأزرار والحقول ---------- */
.primary-btn,.secondary-btn,.danger-btn,.ghost-btn,.success-btn,.warning-btn{font-size:14px;min-height:42px;padding:10px 17px;border-radius:11px}
.primary-btn{background:linear-gradient(135deg,#0a7a65,#075b4c);box-shadow:0 8px 20px rgba(7,91,76,.22)}
.table-btn{font-size:13px;padding:6px 11px}
.field label,.field-title{font-size:14px}
.field input,.field select,.field textarea,.compact-input{font-size:14.5px;border-radius:11px;background:#fff}
.field input:focus,.field select:focus,.compact-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(7,91,76,.12)}
.alert{font-size:14px;display:flex;gap:8px;align-items:flex-start}
.alert .ico{margin-top:4px}
.badge{font-size:12.5px;padding:4px 10px}
.check-card{font-size:13.5px}
.segment button{font-size:13.5px}

/* ---------- العناوين ---------- */
.page-head{padding:16px 20px;background:linear-gradient(90deg,#fff,#f9f5ea);border:1px solid var(--border);border-radius:16px;box-shadow:var(--frame);position:relative;overflow:hidden}
.page-head:before{content:"";position:absolute;inset:0 0 0 auto;width:6px;background:linear-gradient(180deg,var(--primary),var(--gold))}
.page-head h2{font-size:24px;font-weight:900;color:var(--primary-dark)}
.page-head p{font-size:14px;color:var(--muted);margin:4px 0 0}

/* ---------- اللوحات والبطاقات (إطارات ملونة) ---------- */
.panel{border-radius:var(--radius);box-shadow:var(--card-shadow),var(--frame);padding:20px 22px;position:relative;border-top:4px solid var(--primary)}
.panel.accent-emerald{border-top-color:#0b8a6f;background:linear-gradient(180deg,#f2fbf8 0,#fff 90px)}
.panel.accent-gold{border-top-color:var(--gold);background:linear-gradient(180deg,#fdf8ec 0,#fff 90px)}
.panel.accent-blue{border-top-color:#2563eb;background:linear-gradient(180deg,#f0f5ff 0,#fff 90px)}
.panel.accent-violet{border-top-color:#7c3aed;background:linear-gradient(180deg,#f6f2ff 0,#fff 90px)}
.panel-head h3{font-size:17px;font-weight:900;display:flex;gap:8px;align-items:center;color:var(--primary-dark)}
.panel-head p{font-size:13.5px}
.filters{border-radius:14px;box-shadow:var(--frame);background:linear-gradient(90deg,#fff,#fbfaf6)}

.stats-grid{gap:16px}
.stat-card{border-radius:18px;padding:20px;position:relative;overflow:hidden;border:0;color:#fff;box-shadow:0 14px 30px rgba(5,63,53,.16)}
.stat-card:after{content:"";position:absolute;inset:7px;border:1px solid rgba(255,255,255,.28);border-radius:13px;pointer-events:none}
.stat-card:before{content:"";position:absolute;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.1);left:-40px;bottom:-60px}
.stat-card.c-blue{background:linear-gradient(135deg,#0b7a65,#064a3e)}
.stat-card.c-green{background:linear-gradient(135deg,#2563eb,#1e3a8a)}
.stat-card.c-amber{background:linear-gradient(135deg,#d39a2c,#9a6a12)}
.stat-card.c-violet{background:linear-gradient(135deg,#7c3aed,#4c1d95)}
.stat-card .stat-icon{width:54px;height:54px;border-radius:15px;background:rgba(255,255,255,.18)!important;color:#fff!important}
.stat-card .stat-icon .ico{width:27px;height:27px}
.stat-card strong{font-size:30px;font-weight:900;color:#fff}
.stat-card span{font-size:14px;color:rgba(255,255,255,.88)}

.entity-card{border-radius:16px;box-shadow:var(--card-shadow);border-top:4px solid var(--gold);position:relative}
.cards-list .entity-card:nth-child(4n+1){border-top-color:#0b8a6f}
.cards-list .entity-card:nth-child(4n+2){border-top-color:#2563eb}
.cards-list .entity-card:nth-child(4n+3){border-top-color:#b8892b}
.cards-list .entity-card:nth-child(4n+4){border-top-color:#7c3aed}
.entity-card h3{font-size:17px}.entity-meta{font-size:13px}.quota-row{font-size:13.5px}
.snapshot-card{border-radius:14px;border-right:4px solid var(--gold);box-shadow:var(--card-shadow)}
.snapshot-card strong{font-size:14.5px}
.violation-card{border-radius:12px;font-size:14px}
.notification-item p{font-size:14px}.notification-item time{font-size:12px}
.notification-icon .ico{width:18px;height:18px}
.empty-icon{opacity:.7;color:var(--primary)}
.empty-icon .ico{width:52px;height:52px;stroke-width:1.6}
.empty-state h3{font-size:18px}.empty-state p{font-size:14px}
.rule-list li{font-size:14px}
.quality-meter{height:12px;border-radius:99px}

/* ---------- الجداول ---------- */
.data-table-wrap{border-radius:14px;border:1px solid var(--border);box-shadow:var(--frame)}
.data-table th{font-size:13.5px;background:linear-gradient(180deg,#0a6a58,#075b4c);color:#fff;border-bottom:2px solid var(--gold)}
.data-table td{font-size:14px}
.data-table tbody tr:nth-child(even) td{background:#f7faf9}
.data-table tbody tr:hover td{background:#eef7f4}
.schedule-wrap{border-radius:16px;border:1px solid var(--border);box-shadow:var(--frame)}
.schedule-table th{font-size:14px;background:linear-gradient(180deg,#0a6a58,#075b4c);color:#fff;border-bottom:2px solid var(--gold)}
.schedule-table td:first-child{background:#fbf7ec;font-size:13.5px;font-weight:800}
.schedule-cell{border-radius:12px;background:linear-gradient(160deg,#effaf6,#e3f4ee)}
.schedule-cell .subject{font-size:13.5px}
.schedule-cell .teacher,.schedule-cell .time{font-size:12px}
.schedule-cell.empty{font-size:13px;display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:row;background:#fafcfb}
.schedule-cell.cancelled{font-size:12.5px;display:flex;align-items:center;justify-content:center;gap:5px;background:#fff1f2;color:#be123c}
.schedule-title h3{font-size:20px;color:var(--primary-dark)}.schedule-title p{font-size:14px}
.cell-validity{font-size:13.5px;display:flex;gap:6px;align-items:center}

/* ---------- تبويبات التقارير كبطاقات ---------- */
.report-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-bottom:18px}
.report-tab{display:flex;align-items:center;gap:12px;text-align:right;padding:13px 14px;border-radius:15px;background:#fff;border:1px solid var(--border);box-shadow:var(--card-shadow);transition:.18s;font-size:14px;--t:#075b4c;--tb:#e7f5f1;position:relative;overflow:hidden}
.report-tab:hover{transform:translateY(-2px);border-color:var(--t)}
.report-tab.active{background:linear-gradient(135deg,var(--t),color-mix(in srgb,var(--t) 70%,#000));color:#fff;border-color:transparent}
.report-tab.active .rt-icon{background:rgba(255,255,255,.2);color:#fff}
.report-tab.active small{color:rgba(255,255,255,.85)}
.rt-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--tb);color:var(--t);flex:none}
.rt-icon .ico{width:22px;height:22px}
.rt-text b{display:block;font-size:14.5px;font-weight:900}
.rt-text small{display:block;font-size:12px;color:var(--muted);font-weight:600;margin-top:2px}
.tone-emerald{--t:#0b8a6f;--tb:#e3f6f0}.tone-teal{--t:#0d9488;--tb:#e0f5f3}.tone-blue{--t:#2563eb;--tb:#e6eeff}.tone-amber{--t:#c2860f;--tb:#fcf2dd}
.tone-violet{--t:#7c3aed;--tb:#f0e9ff}.tone-cyan{--t:#0891b2;--tb:#e0f4fa}.tone-rose{--t:#e11d48;--tb:#ffe8ee}.tone-orange{--t:#ea580c;--tb:#ffeedf}
.tone-indigo{--t:#4f46e5;--tb:#ecebff}.tone-lime{--t:#4d7c0f;--tb:#eef7dc}.tone-slate{--t:#475569;--tb:#eef1f5}.tone-red{--t:#b91c1c;--tb:#fde8e8}.tone-gold{--t:#a67718;--tb:#f8eed6}

/* ---------- صفحة التقرير الرسمية ---------- */
.report-page{--rc:#075b4c;background:#fff;border:0;border-radius:6px;padding:16px;box-shadow:0 18px 50px rgba(5,63,53,.12);max-width:1200px;margin:0 auto}
.report-frame{border:3px double var(--rc);outline:1px solid color-mix(in srgb,var(--rc) 35%,#fff);outline-offset:4px;padding:22px 24px;position:relative;min-height:400px;background:
  linear-gradient(var(--rc),var(--rc)) top right/26px 3px no-repeat,linear-gradient(var(--rc),var(--rc)) top right/3px 26px no-repeat,
  linear-gradient(var(--rc),var(--rc)) top left/26px 3px no-repeat,linear-gradient(var(--rc),var(--rc)) top left/3px 26px no-repeat,
  linear-gradient(var(--rc),var(--rc)) bottom right/26px 3px no-repeat,linear-gradient(var(--rc),var(--rc)) bottom right/3px 26px no-repeat,
  linear-gradient(var(--rc),var(--rc)) bottom left/26px 3px no-repeat,linear-gradient(var(--rc),var(--rc)) bottom left/3px 26px no-repeat,#fff}
.report-sheet+.report-sheet{margin-top:30px;padding-top:26px;border-top:2px dashed color-mix(in srgb,var(--rc) 30%,#fff)}
.report-header.official{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;text-align:center;border-bottom:2px solid var(--rc);padding-bottom:12px;margin-bottom:0}
.rh-side p{margin:0;font-size:13.5px;line-height:1.85;color:#1f2d2a}
.rh-right{text-align:right}.rh-right p:first-child{font-weight:900}
.rh-left{text-align:left;direction:rtl}
.rh-left p{text-align:left}
.rh-school{font-weight:900;color:var(--rc)!important}
.rh-logo{width:96px;height:96px;object-fit:contain}
.report-title-band{margin:12px 0 18px;text-align:center;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--rc) 12%,#fff),transparent);border-top:1px solid color-mix(in srgb,var(--rc) 30%,#fff);border-bottom:1px solid color-mix(in srgb,var(--rc) 30%,#fff);padding:8px}
.report-title-band h2{margin:0;font-size:21px;font-weight:900;color:var(--rc)}
.report-title-band p{margin:2px 0 0;font-size:13.5px;color:#334}
.report-card{border:1px solid color-mix(in srgb,var(--rc) 25%,#fff);border-radius:10px}
.report-card h3{margin:0;padding:8px 12px;font-size:15px;font-weight:900;color:#fff;background:var(--rc)}
.report-page .data-table-wrap{border-radius:0;border:0;box-shadow:none}
.report-table th{background:color-mix(in srgb,var(--rc) 88%,#000)!important;color:#fff!important;font-size:13px!important;border:1px solid color-mix(in srgb,var(--rc) 70%,#000)!important}
.report-table td,.report-table th.day-head{border:1px solid #d5dedb;font-size:13px}
.report-table th.day-head{background:color-mix(in srgb,var(--rc) 10%,#fff)!important;color:#14231f!important;font-weight:900}
.report-table td.cell-filled{background:color-mix(in srgb,var(--rc) 5%,#fff)}
.report-table td.cell-empty{color:#9aa6a3}
.report-table td.cell-off{background:#f4f4f4;color:#888}
.report-table td.cell-bad{background:#fff1f2;color:#b91c1c;font-weight:800}
.report-table tr.total-row td{background:color-mix(in srgb,var(--rc) 14%,#fff)!important;font-weight:900}
.report-table td.sign-cell{min-width:120px;height:34px}
.period-pill{display:inline-block;border:1px solid color-mix(in srgb,var(--rc) 40%,#fff);color:var(--rc);border-radius:6px;padding:0 6px;font-size:12px;font-weight:800;margin:1px}
.recess-line{font-size:13px;padding:2px 0;border-bottom:1px dotted #dde}
.recess-line:last-child{border-bottom:0}
.report-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
.report-stat{border:1px solid color-mix(in srgb,var(--rc) 30%,#fff);border-radius:10px;padding:12px;text-align:center;background:color-mix(in srgb,var(--rc) 5%,#fff)}
.report-stat .ico{width:24px;height:24px;color:var(--rc)}
.report-stat strong{display:block;font-size:24px;font-weight:900;color:var(--rc)}
.report-stat span{font-size:13px}
.report-status{text-align:center;font-size:14px}
.report-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;margin-top:26px;padding-top:16px;border-top:1px solid color-mix(in srgb,var(--rc) 40%,#fff);font-size:13.5px}
.report-footer .signature{display:flex;flex-direction:column;gap:6px;text-align:center}
.report-footer .signature strong{color:var(--rc);font-size:14.5px}
.report-stamp{width:110px;height:110px;border:2px dashed color-mix(in srgb,var(--rc) 50%,#fff);border-radius:50%;display:grid;place-items:center;color:#9aa6a3;font-size:12.5px}
.report-note{margin-top:12px;text-align:center;font-size:12.5px;color:#556}

/* ---------- إعدادات الهوية ---------- */
.settings-layout{display:grid;gap:16px;max-width:1050px;margin:0 auto}
.settings-layout+.panel{max-width:1050px;margin-left:auto;margin-right:auto}
.identity-grid{display:grid;grid-template-columns:230px 1fr;gap:20px;align-items:start}
.logo-uploader{display:flex;flex-direction:column;gap:9px;align-items:stretch;text-align:center}
.logo-frame{aspect-ratio:1;border-radius:18px;border:2px dashed var(--gold-line);background:repeating-conic-gradient(#f7f7f7 0 25%,#fff 0 50%) 0 0/18px 18px;display:grid;place-items:center;padding:14px}
.logo-frame img{max-width:100%;max-height:170px;object-fit:contain}
.file-btn{cursor:pointer}
.color-row{display:flex;gap:10px;align-items:center}
.color-row input[type=color]{width:64px;height:44px;padding:3px}
.color-swatch{flex:1;height:44px;border-radius:11px;border:1px solid var(--border)}
.settings-save{position:sticky;bottom:12px;z-index:5;display:flex;justify-content:flex-end;background:rgba(255,255,255,.9);backdrop-filter:blur(8px);border:1px solid var(--border);border-radius:14px;padding:10px 12px;box-shadow:var(--card-shadow)}

/* ---------- الدخول والنوافذ والإشعارات ---------- */
.login-page{background:radial-gradient(circle at 15% 15%,rgba(7,91,76,.12),transparent 40%),radial-gradient(circle at 85% 85%,rgba(184,137,43,.14),transparent 45%),var(--bg)}
.login-card{box-shadow:var(--card-shadow),var(--frame);border-radius:0 0 20px 20px}
.login-tabs button{font-size:14.5px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.login-brand h1{font-size:30px;color:var(--primary-dark)}.login-brand p{font-size:14.5px}
.quick-login p,.portal-links a{font-size:13px}
.modal{border-radius:20px;box-shadow:0 28px 80px rgba(15,23,42,.28),var(--frame)}
.modal-head{border-bottom:2px solid var(--gold-line);background:linear-gradient(90deg,#fff,#fbf8f0)}
.modal-head h3{font-size:17px;color:var(--primary-dark)}
.toast span .ico{width:18px;height:18px}
.toast p{font-size:14px}
.ios-step{font-size:14px}

@media(max-width:900px){
  .main-area{padding:8px}
  .topbar{top:8px}
  .content{padding:18px 14px}
  .main-area>.content:before{inset:5px}
  .identity-grid{grid-template-columns:1fr}
  .report-stats{grid-template-columns:repeat(2,1fr)}
  .report-header.official{grid-template-columns:1fr;gap:8px}
  .rh-right,.rh-left,.rh-left p{text-align:center}
  .rh-center{order:-1}
}
@media(max-width:560px){
  .page-head h2{font-size:20px}
  .stat-card strong{font-size:24px}
  .report-tabs{grid-template-columns:1fr 1fr}
  .rt-text small{display:none}
  .report-frame{padding:12px}
  .report-footer{grid-template-columns:1fr}
  .report-stamp{margin:0 auto}
}

/* ---------- الطباعة ---------- */
@page{size:A4 landscape;margin:9mm}
@media print{
  body{background:#fff!important;font-size:10pt}
  .main-area{padding:0!important}
  .main-area>.content{border:0!important;box-shadow:none!important;background:#fff!important;min-height:0!important}
  .main-area>.content:before{display:none}
  .page-head{box-shadow:none;border:0;background:none;padding:0}
  .page-head:before{display:none}
  .report-page{box-shadow:none!important;padding:0!important;max-width:none}
  .report-frame{padding:10mm 9mm!important;border:3px double var(--rc)!important;outline:1px solid var(--rc)!important}
  .report-card{border:1px solid color-mix(in srgb,var(--rc) 25%,#fff)!important;border-radius:0!important}
  .report-table th,.report-table td{border:1px solid #555!important;padding:4px!important;font-size:9.5pt!important}
  .report-sheet+.report-sheet{border-top:0;margin-top:0;padding-top:0}
  .data-table th{background:#075b4c!important;color:#fff!important}
  .stat-card{box-shadow:none}
}

/* تقارير متعددة الصفحات: إطار مستقل لكل صفحة */
.report-frame:has(> .report-sheet){border:0;outline:0;background:none;padding:0;min-height:0}
.report-sheet{border:3px double var(--rc);outline:1px solid color-mix(in srgb,var(--rc) 35%,#fff);outline-offset:4px;padding:22px 24px;margin:6px}
.report-sheet+.report-sheet{margin-top:34px;padding-top:22px;border-top:3px double var(--rc)}
@media print{.report-sheet{margin:0!important;padding:9mm!important;border:3px double var(--rc)!important}.report-sheet+.report-sheet{border-top:3px double var(--rc)!important}}
.sync-status{white-space:nowrap}
@media(max-width:560px){
  .topbar{height:auto;min-height:62px;padding:8px 10px;gap:8px}
  .topbar>.btn-row{flex-wrap:nowrap;min-width:0}
  .topbar-title{min-width:0}
  .topbar-title h1{font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-title p{display:none}
  .topbar-actions{gap:6px}
  .icon-btn{width:38px;height:38px}
  .stat-card{padding:16px}
}

/* نقل وتبديل الحصص + كشف التعارض */
.schedule-cell[draggable="true"]{cursor:grab}
.schedule-cell.conflict{background:linear-gradient(160deg,#fff1f2,#ffe4e6)!important;border:2px solid #e11d48!important;box-shadow:0 0 0 3px rgba(225,29,72,.12)}
.conflict-tag{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:900;color:#be123c;background:#fff;border:1px solid #fecdd3;border-radius:99px;padding:1px 8px;align-self:flex-start}
.schedule-cell.move-source{outline:3px solid #2563eb;outline-offset:2px;background:#eff6ff!important}
.schedule-cell.drop-ok{background:#ecfdf5!important;border:2px solid #10b981!important}
.schedule-cell.drop-auto{background:#fff7ed!important;border:2px dashed #f59e0b!important}
.schedule-cell.drop-bad{background:#fff1f2!important;border:2px solid #fda4af!important;opacity:.55;cursor:not-allowed}
.move-help{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;padding:11px 14px;border-radius:12px;background:#f0f7ff;border:1px solid #bfd6fb;font-size:14px;color:#1e3a8a}
.move-help .legend{display:inline-flex;gap:10px;align-items:center;font-size:13px}
.lg{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin-inline-start:4px}
.lg.ok{background:#10b981}.lg.auto{background:#f59e0b}.lg.bad{background:#e11d48}
.cell-validity.auto{background:#fff7ed;color:#b45309;border:1px solid #fed7aa}
@media print{.conflict-tag{display:none}.schedule-cell.conflict{border:0!important;box-shadow:none}}
.optional-box{margin-top:16px;border:1px dashed var(--gold-line);border-radius:14px;padding:10px 14px;background:#fdfbf5}
.optional-box summary{cursor:pointer;font-weight:900;font-size:14.5px;color:var(--primary-dark);display:flex;align-items:center;gap:7px}
.optional-box summary small{font-weight:600;color:var(--muted);font-size:12.5px}
.import-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.import-stats div{border:1px solid var(--border);border-radius:12px;padding:12px;text-align:center;background:#f7fbfa}
.import-stats strong{display:block;font-size:26px;font-weight:900;color:var(--primary)}
.import-stats span{font-size:13px;color:var(--muted)}
.import-list{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 14px;max-height:140px;overflow:auto}
@media(max-width:560px){.import-stats{grid-template-columns:1fr}}

/* إسناد المواد والفصول — ثلاثة أعمدة */
.asg-board{display:grid;grid-template-columns:1.1fr 1fr 1.3fr;gap:14px;margin-top:4px}
.asg-col{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--card-shadow),var(--frame);display:flex;flex-direction:column;min-height:420px;overflow:hidden}
.asg-col:nth-child(1){border-top:4px solid #0b8a6f}.asg-col:nth-child(2){border-top:4px solid var(--gold)}.asg-col:nth-child(3){border-top:4px solid #2563eb}
.asg-head{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid var(--border);background:linear-gradient(90deg,#fff,#fbf8f0)}
.asg-head h3{margin:0;font-size:16.5px;font-weight:900;color:var(--primary-dark);flex:1}
.asg-step{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;font-weight:900;font-size:14px}
.asg-col:nth-child(2) .asg-step{background:var(--gold)}.asg-col:nth-child(3) .asg-step{background:#2563eb}
.asg-sub{padding:8px 14px 0;font-size:13.5px;font-weight:800;color:#2563eb;min-height:6px}
.asg-search{margin:10px 12px 0;padding:10px 12px;border:1px solid var(--border);border-radius:11px;font:inherit;font-size:14px}
.asg-list{padding:10px 12px 12px;display:flex;flex-direction:column;gap:7px;overflow:auto;max-height:520px}
.asg-item{display:grid;grid-template-columns:1fr auto;gap:2px 8px;align-items:center;text-align:right;padding:11px 12px;border-radius:12px;border:1px solid var(--border);background:#fafcfb;font:inherit;cursor:pointer;transition:.15s}
.asg-item:hover{border-color:var(--primary);background:#f1f9f6}
.asg-item.active{background:linear-gradient(135deg,#0b7a65,#075b4c);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(7,91,76,.22)}
.asg-col:nth-child(2) .asg-item.active{background:linear-gradient(135deg,#d39a2c,#a67718)}
.asg-name{font-size:14.5px;font-weight:800}
.asg-meta{font-size:12.5px;color:var(--muted);font-weight:600}
.asg-item.active .asg-meta,.asg-item.active small{color:rgba(255,255,255,.85)}
.asg-count{font-size:12px;font-weight:900;background:#e3f6f0;color:#0b7a65;border-radius:99px;padding:2px 9px}
.asg-item.active .asg-count{background:rgba(255,255,255,.22);color:#fff}
.asg-bar{grid-column:1/-1;height:6px;border-radius:99px;background:#e5ece9;overflow:hidden}
.asg-bar i{display:block;height:100%;background:var(--gold);border-radius:99px}
.asg-item.active .asg-bar{background:rgba(255,255,255,.25)}.asg-item.active .asg-bar i{background:#f3d27a}
.asg-bar i.over{background:#e11d48}
.asg-check{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:11px 12px;border-radius:12px;border:1px solid var(--border);background:#fafcfb;cursor:pointer}
.asg-check input{width:20px;height:20px;accent-color:#2563eb;grid-row:1/3}
.asg-check.on{background:#eff6ff;border-color:#93b4f5}
.asg-check.warn .asg-meta{color:#b45309}
@media(max-width:1000px){.asg-board{grid-template-columns:1fr}.asg-col{min-height:0}.asg-list{max-height:320px}}

/* ===== ضبط الترويسة والتقارير: متجاوبة ومتناسقة وصفحة واحدة ===== */
.report-header.official{grid-template-columns:1fr auto 1fr!important;gap:clamp(6px,2vw,16px)!important;text-align:initial}
.report-header.official .rh-right,.report-header.official .rh-right p{text-align:right!important}
.report-header.official .rh-left,.report-header.official .rh-left p{text-align:left!important}
.report-header.official .rh-center{order:0!important}
.rh-side p{font-size:clamp(9.5px,1.6vw,13.5px)!important;line-height:1.7!important;white-space:normal}
.rh-logo{width:clamp(52px,9vw,92px)!important;height:clamp(52px,9vw,92px)!important}
.report-title-band h2{font-size:clamp(15px,2.6vw,21px)!important}
.report-title-band p{font-size:clamp(11px,1.8vw,13.5px)!important}
.report-footer{grid-template-columns:1fr auto 1fr!important;gap:clamp(8px,2vw,20px)!important;break-inside:avoid;page-break-inside:avoid}
.report-footer .signature span{font-size:clamp(10px,1.6vw,13.5px)}
.report-stamp{width:clamp(64px,11vw,104px)!important;height:clamp(64px,11vw,104px)!important;margin:0!important;font-size:clamp(9px,1.5vw,12px)!important}
.report-page .data-table-wrap{overflow-x:auto}
@media(max-width:560px){
  .report-page{padding:6px!important}
  .report-frame,.report-sheet{padding:10px 8px!important;outline-offset:2px}
  .report-table th,.report-table td{font-size:10.5px!important;padding:4px 3px!important}
  .report-stats{grid-template-columns:repeat(2,1fr)}
}

@media print{
  @page{size:A4 landscape;margin:7mm}
  html,body{width:auto!important}
  .report-page{padding:0!important;margin:0!important;max-width:none!important}
  .report-frame{min-height:0!important;padding:5mm 6mm!important;outline-offset:2px!important}
  .report-frame:has(> .report-sheet){padding:0!important;border:0!important;outline:0!important}
  .report-sheet{margin:0!important;padding:5mm 6mm!important;outline-offset:2px!important;break-after:page;page-break-after:always;break-inside:avoid}
  .report-sheet:last-child{break-after:auto;page-break-after:auto}
  .report-sheet+.report-sheet{margin-top:0!important}
  .report-header.official{grid-template-columns:1fr auto 1fr!important;gap:6mm!important;padding-bottom:2mm!important}
  .rh-side p{font-size:9pt!important;line-height:1.55!important}
  .rh-logo{width:20mm!important;height:20mm!important}
  .report-title-band{margin:2mm 0 3mm!important;padding:1.5mm!important}
  .report-title-band h2{font-size:14pt!important}
  .report-title-band p{font-size:9pt!important}
  .report-card{margin-bottom:3mm!important;break-inside:avoid;page-break-inside:avoid}
  .report-card h3{font-size:10pt!important;padding:1.2mm 3mm!important}
  .report-table th,.report-table td{font-size:8.5pt!important;padding:1.4mm 1.2mm!important;line-height:1.35!important}
  .report-table .tiny{font-size:7pt!important}
  .report-footer{grid-template-columns:1fr auto 1fr!important;margin-top:4mm!important;padding-top:3mm!important;gap:6mm!important;font-size:9pt!important}
  .report-footer .signature{gap:1.5mm!important}
  .report-footer .signature span{font-size:9pt!important}
  .report-stamp{width:22mm!important;height:22mm!important;font-size:8pt!important}
  .report-note{margin-top:2mm!important;font-size:8pt!important}
  .report-stats{grid-template-columns:repeat(4,1fr)!important;gap:2mm!important}
  .report-stat{padding:2mm!important}.report-stat strong{font-size:14pt!important}
  .empty-state{padding:6mm!important}
}
@media print{
  .main-area,.main-area>.content,.content,.app-shell{min-height:0!important;padding:0!important;margin:0!important}
  .report-table th,.report-table td{padding:.8mm 1mm!important;line-height:1.25!important}
  .report-header.official{padding-bottom:1.5mm!important}
  .rh-side p{line-height:1.45!important}
  .rh-logo{width:17mm!important;height:17mm!important}
  .report-footer{margin-top:3mm!important;padding-top:2mm!important}
  .report-footer .signature{gap:1mm!important}
  .report-stamp{width:18mm!important;height:18mm!important}
  .report-frame,.report-sheet{padding:4mm 5mm!important}
}
/* الجدول العام: مصفوفة الفصول × الأيام والحصص */
.gm-table{table-layout:fixed;min-width:900px}
.gm-table.gm-week th.gm-day{border-left:2px solid #fff!important}
.gm-table th.gm-grade{width:92px}
.gm-table .gm-p{font-size:10px!important;padding:3px 0!important}
.gm-table td.gm-c{padding:3px 1px!important;font-size:10px!important;line-height:1.25;vertical-align:middle;word-break:keep-all;overflow:hidden}
.gm-table td.gm-c b{display:block;font-size:10px;font-weight:800}
.gm-table td.gm-c span{display:block;font-size:8.5px;color:#55625f}
.gm-table td.gm-end,.gm-table tr>*:nth-child(7n+1):not(:first-child){border-left:2px solid color-mix(in srgb,var(--rc) 60%,#000)!important}
@media print{
  .gm-table{min-width:0!important;width:100%!important}
  .gm-table th.gm-grade{width:20mm!important;font-size:7.5pt!important}
  .gm-table th.gm-day{font-size:8pt!important;padding:.8mm 0!important}
  .gm-table .gm-p{font-size:6.5pt!important;padding:.4mm 0!important}
  .gm-table td.gm-c{padding:.5mm .2mm!important;font-size:6.2pt!important;line-height:1.15!important}
  .gm-table td.gm-c b{font-size:6.2pt!important}
  .gm-table td.gm-c span{font-size:5.4pt!important}
}
@media print{
  .report-frame,.report-sheet{outline:0!important;position:relative}
  .report-frame:not(:has(> .report-sheet))::after,.report-sheet::after{content:"";position:absolute;inset:1.2mm;border:.3mm solid color-mix(in srgb,var(--rc) 45%,#fff);pointer-events:none}
}
.sp-table td{font-size:12px}.sp-table td b{display:block}.sp-table td span{display:block;font-size:10px;color:#55625f}
.sp-table td.sp-ok,.sp-legend .sp-ok{background:#ecfdf5!important;color:#047857}
.sp-table td.sp-miss,.sp-legend .sp-miss{background:#fff7ed!important;color:#b45309}
.sp-table td.sp-over,.sp-legend .sp-over{background:#fff1f2!important;color:#be123c}
.sp-legend{display:flex;gap:8px;justify-content:center;margin-top:8px;font-size:12px;font-weight:800}
.sp-legend span{padding:2px 12px;border-radius:99px}
@media print{
  .sp-table td{font-size:7.5pt!important}.sp-table td span{font-size:6.3pt!important}.sp-table th{font-size:7.5pt!important}
  .sp-legend{margin-top:1.5mm;font-size:7.5pt}
  .period-pill{font-size:7pt!important;padding:0 1mm!important;margin:.2mm!important;line-height:1.3}
  .report-title-band{margin:1.5mm 0 2mm!important;padding:1mm!important}
  .report-card{margin-bottom:2mm!important}
  .report-footer{margin-top:2mm!important}
  .report-footer .signature span{font-size:8.5pt!important}
}
.wait-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1fr);gap:12px;align-items:start}
@media(max-width:900px){.wait-grid{grid-template-columns:1fr}}
@media print{.wait-grid{grid-template-columns:minmax(0,2.3fr) minmax(0,1fr)!important;gap:3mm!important}.wait-grid .report-card{margin:0!important}}
.report-header.official,.report-footer{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}
.report-header.official>*,.report-footer>*,.report-frame>*,.report-sheet>*{min-width:0}
.rh-side p{overflow-wrap:anywhere}
.report-frame,.report-sheet{max-width:100%}
@media print{.report-header.official,.report-footer{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}}
.sig-row{display:flex;align-items:flex-end;gap:6px;width:100%;max-width:240px;margin:0 auto}
.sig-line{flex:1;min-width:30px;border-bottom:1.5px dashed #8a9794;height:1em}
@media print{.sig-row{max-width:62mm}}
.report-footer .signature{width:auto!important;min-width:0}
.report-footer .signature strong{margin-bottom:6px}
.quota-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:10px!important}
.quota-field input{text-align:center;font-weight:800;font-size:16px!important;font-family:inherit}
.grade-preview{display:flex;flex-wrap:wrap;gap:6px;min-height:44px;align-items:center;padding:6px 10px;border:1px dashed var(--border);border-radius:11px;background:#fafcfb}
.sync-check{margin-top:12px;background:#eff6ff;border-color:#bfd6fb}

/* إلغاء الأوصاف تحت الأيقونات والعناوين */
.rt-text small,.page-head>div>p{display:none!important}
.report-tab{align-items:center;min-height:64px}

/* نافذة التعديل اليدوي */
body.editor-open{overflow:hidden}
.editor-window{position:fixed;inset:0;z-index:90;background:var(--bg);display:flex;flex-direction:column;animation:edIn .18s ease-out}
@keyframes edIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.editor-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:linear-gradient(90deg,#064a3e,#075b4c);color:#fff;border-bottom:3px solid var(--gold);flex-wrap:wrap}
.editor-title{display:flex;align-items:center;gap:10px}.editor-title .ico{width:26px;height:26px;color:#f3d27a}
.editor-title b{display:block;font-size:18px;font-weight:900}.editor-title small{font-size:12.5px;color:#cfe7df}
.editor-bar .ghost-btn{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.25)}
.editor-bar .primary-btn{background:linear-gradient(135deg,#f3d27a,#c4912d);color:#1c1606;box-shadow:none}
.editor-body{flex:1;overflow:auto;padding:18px 20px 30px}
.editor-body>.page-head{display:none!important}
@media(max-width:560px){.editor-bar{padding:10px 12px}.editor-body{padding:12px 10px}.editor-bar .btn-row{width:100%}.editor-bar .btn-row>*{flex:1}}
@media print{.editor-window{position:static}.editor-bar{display:none}}

/* قيود الجدولة */
.constraint-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;margin-bottom:12px}
.constraint-card{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:#fff;cursor:pointer;transition:.15s}
.constraint-card.on{border-color:#a78bfa;background:#f7f3ff;box-shadow:0 6px 16px rgba(124,58,237,.1)}
.cc-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.cc-body b{font-size:14.5px;font-weight:900;color:#1f2937}
.cc-body small{font-size:12.5px;color:var(--muted);line-height:1.8}
.cc-kind{font-style:normal;font-size:11px;font-weight:800;padding:1px 8px;border-radius:99px;margin-inline-start:4px;vertical-align:1px}
.cc-kind.hard{background:#fde8e8;color:#b91c1c}.cc-kind.soft{background:#e0f2fe;color:#0369a1}
.cc-num{width:38px!important;height:28px;padding:0!important;text-align:center;font-weight:900;border:1px solid var(--border);border-radius:8px;font-family:inherit}
.switch{position:relative;flex:none;width:44px;height:24px;margin-top:2px}
.switch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;z-index:1}
.switch i{position:absolute;inset:0;border-radius:99px;background:#cbd5d1;transition:.2s}
.switch i:after{content:"";position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.switch input:checked+i{background:#7c3aed}.switch input:checked+i:after{right:23px}

/* ===== ألوان القيود ===== */
.constraint-card{border-right:5px solid var(--cc,#7c3aed)!important}
.constraint-card.on{border-color:color-mix(in srgb,var(--cc) 45%,#fff);background:color-mix(in srgb,var(--cc) 7%,#fff);box-shadow:0 6px 16px color-mix(in srgb,var(--cc) 18%,transparent)}
.constraint-card .switch input:checked+i{background:var(--cc)}
.constraint-card.on .cc-body b{color:color-mix(in srgb,var(--cc) 75%,#000)}
.cflags{position:absolute;top:5px;left:6px;display:flex;gap:3px}
.cflags i{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #fff}
.schedule-cell{position:relative}
.flag-legend{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:-4px 0 12px;padding:9px 14px;border-radius:12px;background:#fff;border:1px solid var(--border);font-size:12.5px}
.flag-legend span{display:inline-flex;align-items:center;gap:5px}.flag-legend i{width:11px;height:11px;border-radius:50%}
@media print{.cflags,.flag-legend{display:none!important}}

/* ===== المؤشرات والمقارنة ===== */
.score-ring{--v:0;--c:#059669;width:132px;height:132px;border-radius:50%;background:conic-gradient(var(--c) calc(var(--v)*1%),#e8eeec 0);display:grid;place-items:center;margin:4px auto 12px;flex:none}
.score-ring>div{width:104px;height:104px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px var(--border)}
.score-ring b{font-size:26px;font-weight:900;color:var(--c);line-height:1.1}.score-ring small{font-size:11.5px;color:var(--muted)}
.metric-list{display:flex;flex-direction:column;gap:7px}
.mrow{display:grid;grid-template-columns:minmax(120px,1.3fr) 1fr auto;gap:8px;align-items:center;font-size:13px}
.mlabel{display:flex;align-items:center;gap:6px;font-weight:700;min-width:0}
.cdot{width:10px;height:10px;border-radius:50%;flex:none}
.mbar{height:8px;border-radius:99px;background:#e8eeec;overflow:hidden}.mbar i{display:block;height:100%;border-radius:99px;background:var(--primary)}
.mval{font-size:13px;font-weight:900;min-width:44px;text-align:left}.mval.good{color:#059669}.mval.bad{color:#dc2626}
.mbound{grid-column:1/-1;margin-top:-5px;font-size:11px;color:#b45309;padding-inline-start:16px}
.metric-sub{margin:12px 0 6px;font-size:13px;font-weight:900;color:var(--primary-dark);border-top:1px dashed var(--border);padding-top:10px}
.compliance-panel{margin-top:16px}
.compliance-grid{display:grid;grid-template-columns:160px 1fr;gap:18px;align-items:start}
@media(max-width:700px){.compliance-grid{grid-template-columns:1fr}}
.modal.xl{width:min(1180px,96vw);max-height:94vh;overflow:auto}
.cmp-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:14px;font-weight:800;font-size:14px}
.cmp-toolbar select{padding:8px 12px;border:1px solid var(--border);border-radius:10px;font:inherit}
.cand-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:860px){.cand-grid{grid-template-columns:1fr}}
.cand-card{border:1px solid var(--border);border-radius:18px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:10px;box-shadow:var(--card-shadow)}
.cand-card.best{border:2px solid #059669;box-shadow:0 14px 34px rgba(5,150,105,.14)}
.cand-card header{display:flex;align-items:center;justify-content:space-between}
.cand-card h4{margin:0;font-size:18px;font-weight:900;color:var(--primary-dark)}
.cand-badge{font-size:12px;font-weight:900;padding:3px 12px;border-radius:99px;background:#eef2f1;color:#475569}
.cand-card.best .cand-badge{background:#059669;color:#fff}
.cand-preview{overflow-x:auto;border:1px solid var(--border);border-radius:12px}
.mini-grid{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed;min-width:420px}
.mini-grid th{background:#f2f7f5;font-weight:800;padding:4px 2px;font-size:11px}
.mini-grid td{border:1px solid #e3ebe8;padding:4px 2px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-grid td.mg-empty{background:#fafafa}
.cand-card .primary-btn{justify-content:center}
.gen-modal .modal-body{text-align:center;padding:28px 24px}
.gen-modal h3{margin:8px 0 4px;font-size:19px;color:var(--primary-dark)}
.gen-spin{width:64px;height:64px;margin:0 auto;border-radius:50%;display:grid;place-items:center;background:#f3eefe;color:#7c3aed;animation:gpulse 1.2s ease-in-out infinite}
.gen-spin .ico{width:30px;height:30px}
@keyframes gpulse{50%{transform:scale(1.08);box-shadow:0 0 0 12px rgba(124,58,237,.08)}}
.gen-bar{height:10px;border-radius:99px;background:#e8eeec;overflow:hidden;margin:16px 0 8px}.gen-bar i{display:block;height:100%;background:linear-gradient(90deg,#7c3aed,#0b7a65);transition:width .3s}

/* تجهيز التقرير كملف PDF بنفس تنسيق الطباعة */
.pdf-stage{position:fixed;left:-20000px;top:0;width:1123px;background:#fff;z-index:-1;pointer-events:none}
.pdf-stage .report-page{max-width:none!important;width:1123px!important;padding:0!important;margin:0!important;box-shadow:none!important;border-radius:0!important}
.pdf-stage .report-frame,.pdf-stage .report-sheet{padding:22px 26px!important;margin:0!important}
.pdf-stage .report-frame:has(> .report-sheet){padding:0!important;border:0!important;outline:0!important}
.pdf-stage .report-sheet+.report-sheet{margin-top:0!important}
.pdf-stage .report-header.official{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:16px!important}
.pdf-stage .rh-side p{font-size:13.5px!important;line-height:1.7!important}
.pdf-stage .rh-logo{width:88px!important;height:88px!important}
.pdf-stage .report-title-band h2{font-size:21px!important}.pdf-stage .report-title-band p{font-size:13.5px!important}
.pdf-stage .report-table th,.pdf-stage .report-table td{font-size:12.5px!important;padding:5px 4px!important}
.pdf-stage .gm-table td.gm-c,.pdf-stage .gm-table td.gm-c b{font-size:10px!important}.pdf-stage .gm-table td.gm-c span{font-size:8.5px!important}
.pdf-stage .gm-table{min-width:0!important}
.pdf-stage .data-table-wrap{overflow:visible!important}
.pdf-stage .report-footer{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}
.pdf-stage .report-stamp{width:96px!important;height:96px!important}
.pdf-stage .report-stats{grid-template-columns:repeat(4,1fr)!important}
.pdf-stage .wait-grid{grid-template-columns:minmax(0,2.2fr) minmax(0,1fr)!important}
.is-busy{opacity:.65;cursor:progress}
.pdf-stage .gm-table th.gm-grade{width:150px!important;font-size:11px!important;white-space:normal!important}
