.ro-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 16px 90px;
}

/* HERO */
.ro-hero{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 14px;
  margin-bottom: 14px;
}

.ro-kicker{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  opacity: .85;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.ro-titleRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
  margin: 10px 0 6px;
}

.ro-title{
  margin:0;
  font-size: 26px;
  letter-spacing: .2px;
  line-height:1.25;
}

.ro-sub{
  margin: 0;
  opacity: .85;
  line-height: 1.7;
}

.ro-badge{
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  white-space:nowrap;
}
.ro-badge--new{ background: rgba(100,116,139,.18); border-color: rgba(100,116,139,.25); }
.ro-badge--partial{ background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.28); }
.ro-badge--done{ background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.28); }

.ro-metaGrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.ro-metaCard{
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.ro-metaLabel{ opacity:.75; font-size:12px; }
.ro-metaValue{ font-weight:900; margin-top:6px; }

.ro-progress{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.ro-progressTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.ro-progressLabel{ opacity:.8; font-size:12px; }
.ro-progressText{ font-weight:900; font-size:12px; }

.ro-progressBar{
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.ro-progressFill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(34,197,94,.9), rgba(59,130,246,.8));
  transition: width .35s ease;
}

/* right */
.ro-heroRight{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.ro-profile{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.ro-avatar{
  width: 46px; height: 46px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  letter-spacing: .6px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.ro-name{ font-weight: 900; }
.ro-role{ opacity:.8; font-size: 12px; margin-top:2px; }

.ro-chips{ display:flex; flex-direction:column; gap: 8px; }
.ro-chip{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  opacity: .95;
}
.ro-chip.subtle{ opacity:.75; }
.ro-chip .dot{
  width: 8px; height: 8px; border-radius:50%;
  background:#22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.ro-actions{ display:flex; flex-direction:column; gap: 10px; }
.spacer{ flex:1; }

/* CARD + TABLE */
.ro-card{
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
}

.ro-toolbar{
  position: sticky;
  top: 74px;
  z-index: 10;
  background: rgba(15,15,18,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 12px;
}
.ro-toolbarRow{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
}
.ro-stat{
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
}

.ro-tableWrap{
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

.ro-table{
  width:100%;
  border-collapse: collapse;
  min-width: 1050px;
  font-size: 12px;
}

.ro-table th, .ro-table td{
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px;
  text-align:right;
  vertical-align: middle;
  background: transparent;
}

.ro-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,.06);
  font-weight: 900;
}

.ro-table .num{ width: 110px; }
.ro-table .actions{ width: 140px; }

.ro-input{
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: inherit;
  outline: none;
}
.ro-input:focus{ border-color: rgba(59,130,246,.35); }

.ro-pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}

.ro-empty{
  padding: 16px;
  text-align:center;
  opacity:.75;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* sticky first cols (RTL) */
.stickR1{
  position: sticky;
  right: 0;
  z-index: 3;
  background: rgba(15,15,18,.96);
}
.stickR2{
  position: sticky;
  right: 140px; /* تقريباً عرض عمود brand */
  z-index: 3;
  background: rgba(15,15,18,.96);
}

/* Modal */
.ro-modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 999;
}
.ro-modal[aria-hidden="false"]{ display:block; }

.ro-modalBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.ro-modalPanel{
  position: relative;
  width: min(880px, calc(100vw - 24px));
  margin: 70px auto 24px;
  border-radius: 18px;
  background: rgba(20,20,25,.92);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  overflow: hidden;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
}
.ro-modalPanel--sm{ width: min(520px, calc(100vw - 24px)); }

.ro-modalHead{
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
}
.ro-modalTitle{ font-weight: 900; }
.ro-modalSub{ opacity:.8; font-size: 12px; margin-top:4px; }

.ro-modalBody{
  padding: 12px 14px 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

.ro-modalFoot{
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.ro-formGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
.field label{ display:block; margin-bottom:6px; opacity:.85; font-size:12px; }
.field input{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: inherit;
  outline: none;
}
.field input:focus{ border-color: rgba(59,130,246,.35); }
.hint{ font-size: 12px; opacity:.72; margin-top:6px; }

/* responsive */
@media (max-width: 900px){
  .ro-hero{ grid-template-columns: 1fr; }
  .ro-metaGrid{ grid-template-columns: 1fr; }
  .ro-toolbar{ top: 64px; }
  .ro-formGrid{ grid-template-columns: 1fr; }
  .stickR2{ right: 120px; }
}

.ro-table{
  margin-top: 80px;
}

