/* __ATHAR_STUDIES_LIVE_V1__ */
#athar-studies-overlay {
  position: relative;
  z-index: 40;
  direction: rtl;
  font-family: Cairo, Tahoma, sans-serif;
  color: #044a45;
  padding: 16px 20px 40px;
  background: #f3faf7;
  min-height: 70vh;
}
#athar-studies-overlay .athar-st-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
#athar-studies-overlay h1 { color: #1B5E3B; font-size: 1.4rem; margin: 0; }
#athar-studies-overlay .btn { background: #066962; color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
#athar-studies-overlay .btn.ghost { background: #fff; color: #066962; border: 1px solid #066962; }
#athar-studies-overlay .link { background: none; border: 0; color: #066962; cursor: pointer; text-decoration: underline; }
#athar-studies-overlay .athar-st-kpis, #athar-studies-overlay .athar-st-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
#athar-studies-overlay .kpi, #athar-studies-overlay .athar-st-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 4px rgba(6,105,98,.08); }
#athar-studies-overlay .athar-st-table { background: #fff; border-radius: 16px; }
#athar-studies-overlay .athar-st-table .row { display: grid; grid-template-columns: 2fr 1fr 80px 100px 60px; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #eef; }
#athar-studies-overlay .athar-st-lic { border: 1px solid #C6941C; background: #fbf7ee; border-radius: 12px; padding: 10px; margin-bottom: 10px; }
#athar-studies-overlay .athar-st-lic.expired { border-color: #dc2626; background: #fef2f2; }
#athar-studies-overlay .athar-st-lic .k { font-size: 12px; font-weight: 800; color: #066962; }
#athar-studies-overlay .gold { font-weight: 800; color: #966b0f; }
#athar-studies-overlay .warn { background: #fff7ed; color: #9a3412; padding: 8px; border-radius: 8px; margin: 6px 0; }
#athar-studies-overlay .warn.block { background: #fef2f2; color: #991b1b; }
#athar-studies-overlay .athar-st-form input, #athar-studies-overlay select, #athar-studies-overlay textarea { width: 100%; margin: 4px 0 10px; padding: 8px; border: 1px solid #d5e6e3; border-radius: 8px; }
#athar-studies-overlay .athar-st-ta { min-height: 260px; font-family: ui-monospace, monospace; }
#athar-studies-overlay .athar-st-grid { display: grid; grid-template-columns: 200px 1fr 240px; gap: 10px; }
#athar-studies-overlay .athar-st-side button { display: block; width: 100%; text-align: right; margin: 2px 0; padding: 6px 8px; border: 0; background: #fff; border-radius: 8px; cursor: pointer; }
#athar-studies-overlay .athar-st-side button.on { background: #066962; color: #fff; }
#athar-studies-overlay .muted { color: #667; font-size: 13px; }
@media (max-width: 900px) {
  #athar-studies-overlay .athar-st-grid { grid-template-columns: 1fr; }
}

html.athar-studies-route #root { display: none !important; }
html.athar-studies-route body { background: #f3faf7; }
#athar-studies-overlay.athar-st-takeover {
  position: fixed;
  inset: 0;
  z-index: 10050;
  overflow: auto;
  background: #f3faf7;
}
#athar-studies-overlay .athar-st-crumb { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
#athar-studies-overlay .athar-st-crumb a.link { text-decoration: none; }
