:root{
  --bg1:#0b1220;
  --line:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.65);
  --accent:#4fd1c5;
}
*{box-sizing:border-box}
body{
  font-family:"Tajawal",system-ui,Arial;
  background: radial-gradient(1200px 600px at 10% 10%, #142244 0%, var(--bg1) 35%, #070b14 100%);
  color:var(--text);
  min-height:100vh;
}
html{
  scrollbar-width:thin;
  scrollbar-color: rgba(94,234,212,.5) #0b1220;
}
::-webkit-scrollbar{
  width:10px;
  height:10px;
}
::-webkit-scrollbar-track{
  background:#0b1220;
}
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(94,234,212,.45), rgba(45,212,191,.28));
  border-radius:999px;
  border:2px solid #0b1220;
}
::-webkit-scrollbar-thumb:hover{
  background: rgba(94,234,212,.75);
}
::-webkit-scrollbar-button{
  display:none;
  width:0;
  height:0;
}
::-webkit-scrollbar-corner{ background:#0b1220; }
a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
.cardx{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}
.inputx,.selectx,textarea.inputx{
  background: rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  color:var(--text)!important;
  border-radius:14px!important;
}
.inputx::placeholder{color:rgba(255,255,255,.45)}
.inputx:focus,.selectx:focus{outline:none; box-shadow:0 0 0 .2rem rgba(79,209,197,.18)}
.btnx{border-radius:14px;padding:.6rem 1rem;border:1px solid rgba(255,255,255,.12)}
.btn-accent{
  background: linear-gradient(90deg, rgba(79,209,197,.25), rgba(79,209,197,.08));
  border-color: rgba(79,209,197,.35);
  color:var(--text);
}
.badgex{border:1px solid var(--line);border-radius:999px;padding:.25rem .6rem;color:var(--muted)}
.topbar{position:sticky;top:0;z-index:10;backdrop-filter:blur(10px);background:rgba(8,12,22,.55);border-bottom:1px solid var(--line)}
.table-darkish{color:var(--text);--bs-table-bg:rgba(255,255,255,.03);--bs-table-border-color:rgba(255,255,255,.08)}
.small-muted{color:var(--muted)}
.hrline{border-top:1px solid var(--line);opacity:1}

:root{
  --bg-main:#0b1220;
  --bg-card:#111a2e;
  --border:#2a3555;

  --text-main:#ffffff;
  --text-muted:#cbd5e1;
  --text-label:#e5e7eb;

  --accent:#4fd1c5;
  --danger:#ef4444;
}

/* ====== GLOBAL ====== */
*{
  box-sizing:border-box;
}

body{
  font-family:"Tajawal",system-ui,Arial;
  background:linear-gradient(135deg,#0b1220,#0f1b35);
  color:var(--text-main);
  min-height:100vh;
}

/* ====== TEXT ====== */
h1,h2,h3,h4,h5,h6{
  color:#ffffff;
  font-weight:700;
}

label{
  color:var(--text-label);
  font-weight:600;
}

.small-muted,
.text-muted{
  color:var(--text-muted)!important;
  font-size:0.9rem;
}

.table,
.table th,
.table td{
  color:#ffffff!important;
}

/* ====== CARDS ====== */
.cardx{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1rem;
  box-shadow:0 10px 40px rgba(0,0,0,.45);
}

/* ====== INPUTS ====== */
.inputx,
.selectx,
textarea.inputx{
  background:#0f172a!important;
  color:#ffffff!important;
  border:1px solid var(--border)!important;
  border-radius:12px!important;
  padding:0.55rem 0.75rem;
}

.inputx::placeholder{
  color:#94a3b8!important;
}

.inputx:focus,
.selectx:focus{
  border-color:var(--accent)!important;
  box-shadow:0 0 0 .15rem rgba(79,209,197,.35)!important;
  outline:none;
}

/* ====== BUTTONS ====== */
.btnx{
  border-radius:12px;
  font-weight:600;
  color:#ffffff;
}

.btn-accent{
  background:linear-gradient(90deg,#4fd1c5,#2dd4bf);
  border:none;
  color:#0b1220!important;
}

.btn-accent:hover{
  opacity:.9;
}

/* ====== BADGES ====== */
.badgex{
  background:#1e293b;
  color:#ffffff;
  border-radius:999px;
  padding:.3rem .7rem;
  font-size:.85rem;
}

/* ====== TABLE ====== */
.table-darkish{
  background:#0f172a;
}

.table-darkish thead th{
  background:#020617;
  color:#e5e7eb!important;
  font-weight:700;
}

.table-darkish tbody tr:hover{
  background:#1e293b;
}

/* ====== TOPBAR ====== */
.topbar{
  background:#020617;
  border-bottom:1px solid var(--border);
}

/* ====== ALERTS ====== */
.alert-success{
  background:#064e3b;
  color:#ecfdf5;
  border:none;
}

.alert-danger{
  background:#7f1d1d;
  color:#fee2e2;
  border:none;
}

/* ====== LINKS ====== */
a{
  color:#93c5fd;
  text-decoration:none;
}
a:hover{
  color:#bfdbfe;
}

.nav-pills .nav-link{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  color: rgba(255,255,255,.92);
}
.nav-pills .nav-link.active{
  background: linear-gradient(90deg, rgba(79,209,197,.35), rgba(79,209,197,.12));
  border-color: rgba(79,209,197,.55);
  color: #fff;
}
/* ===== Tabs Enhanced ===== */
.tabx{
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
  transition: .15s ease;
  flex-shrink:0;
}
@media (hover:hover){
  .tabx:hover{ transform: translateY(-1px); }
}

.tabx-icon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-size:16px;
}

.tabx.active{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Variants */
.tabx-neutral.active{ background: linear-gradient(90deg, rgba(148,163,184,.25), rgba(148,163,184,.08)); }
.tabx-info.active{    background: linear-gradient(90deg, rgba(56,189,248,.28), rgba(56,189,248,.10)); }
.tabx-primary.active{ background: linear-gradient(90deg, rgba(99,102,241,.30), rgba(99,102,241,.10)); }

.tabx-stage1.active{  background: linear-gradient(90deg, rgba(34,197,94,.30), rgba(34,197,94,.10)); }     /* أخضر */
.tabx-stage2.active{  background: linear-gradient(90deg, rgba(245,158,11,.30), rgba(245,158,11,.10)); }    /* برتقالي */
.tabx-stage3.active{  background: linear-gradient(90deg, rgba(236,72,153,.30), rgba(236,72,153,.10)); }    /* وردي */

.tabx-success.active{ background: linear-gradient(90deg, rgba(34,197,94,.25), rgba(34,197,94,.08)); }
.tabx-danger.active{  background: linear-gradient(90deg, rgba(239,68,68,.28), rgba(239,68,68,.10)); }
.tabx-muted.active{   background: linear-gradient(90deg, rgba(100,116,139,.25), rgba(100,116,139,.08)); }

/* Brand Logo */
.brand-logo{
  width:44px;
  height:44px;
  border-radius:12px;
  overflow:hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.brand-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:5px;
}

/* ===== App header ===== */
.app-header.navbar{
  position:sticky;
  top:0;
  z-index:1030;
  flex-wrap:nowrap;
  min-height:76px;
  padding:0;
  overflow:visible;
  background: rgba(3, 8, 22, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(79,209,197,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.app-header.navbar::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(79,209,197,.35), transparent);
  pointer-events:none;
}
.app-header-inner{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:1.25rem;
  min-height:76px;
  padding: .55rem 1.25rem;
}
.app-brand,
.app-brand:hover,
.app-brand:focus{
  display:flex;
  align-items:center;
  gap:.85rem;
  color:#fff;
  text-decoration:none;
  flex-shrink:0;
  margin:0;
  padding:0;
}
.app-brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.app-brand-name{
  font-weight:800;
  font-size: .98rem;
  color:#fff;
  letter-spacing: .01em;
}
.app-brand-page{
  font-size: .75rem;
  color: rgba(203,213,225,.78);
  font-weight:600;
}
.app-header-collapse{
  align-items:center;
}
@media (min-width: 992px){
  .app-header-collapse{
    display:flex !important;
    flex-direction:row;
    flex-wrap:nowrap;
    flex:1 1 auto;
    min-width:0;
    overflow:visible;
  }
  .app-nav{
    overflow:visible;
    max-width:100%;
    flex:1 1 auto;
    justify-content:center;
  }
}
.app-nav{
  display:flex;
  align-items:center;
  flex-direction:row;
  gap:4px;
  padding:4px;
  margin:0 auto;
  border-radius:999px;
  background: rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
}
.app-nav .nav-item{ display:flex; }
.app-nav .nav-item.dropdown{
  display:block;
  position:relative;
}
.app-nav .nav-link.app-nav-link{
  color: rgba(226,232,240,.78);
  border-radius:999px;
  padding:.42rem .8rem;
  margin:0;
  display:flex;
  align-items:center;
  gap:.45rem;
  white-space:nowrap;
  font-size:.86rem;
  font-weight:600;
  line-height:1;
  border:1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.app-nav .nav-link.app-nav-link:hover{
  color:#fff;
  background: rgba(255,255,255,.06);
}
.app-nav .nav-link.app-nav-link.active,
.app-nav .nav-link.app-nav-link.active:hover,
.app-nav .nav-link.app-nav-link.active:focus{
  color:#042f2e;
  background: linear-gradient(180deg, #5eead4, #2dd4bf);
  border-color: rgba(255,255,255,.12);
}
.app-nav .nav-link.app-nav-link.active .app-nav-ico{
  background: rgba(4,47,46,.16);
  color:#042f2e;
}
.app-nav-ico{
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background: rgba(255,255,255,.06);
  font-size:.72rem;
}
.app-nav .dropdown-toggle::after{
  margin-inline-start:.3rem;
  opacity:.7;
}
.app-dropdown{
  position:absolute;
  z-index:1055;
  background:#0b1220;
  border:1px solid rgba(79,209,197,.18);
  border-radius:14px;
  padding:.4rem;
  margin-top:.55rem;
  min-width: 220px;
}
.app-dropdown .dropdown-item{
  color:#e5e7eb;
  border-radius:9px;
  padding:.5rem .75rem;
  font-weight:600;
  font-size:.88rem;
}
.app-dropdown .dropdown-item:hover,
.app-dropdown .dropdown-item.active{
  background: rgba(79,209,197,.16);
  color:#fff;
}
.app-header-aside{
  display:flex;
  align-items:center;
  gap:.65rem;
  flex-shrink:0;
  flex-wrap:nowrap;
  margin-inline-start:auto;
}
.app-page-actions{
  display:flex;
  align-items:center;
  gap:.45rem;
}
.app-page-actions .btn{
  padding:.4rem .85rem;
  font-size:.82rem;
  border-radius:10px;
  line-height:1.1;
  white-space:nowrap;
}
.app-user-card{
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.28rem .7rem .28rem .28rem;
  border-radius:999px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  max-width: 220px;
}
.app-user-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(79,209,197,.18);
  color:#5eead4;
  font-weight:800;
  font-size:.9rem;
  flex-shrink:0;
}
.app-user-text{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.15;
}
.app-user-name{
  font-weight:700;
  color:#fff;
  font-size:.82rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.app-user-meta{
  color: rgba(148,163,184,.95);
  font-size:.7rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.app-logout{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  color:#e2e8f0;
  background: transparent;
  flex-shrink:0;
  text-decoration:none;
}
.app-logout:hover{
  color:#fff;
  background: rgba(239,68,68,.16);
  border-color: rgba(239,68,68,.35);
}
.navbar-toggler{
  border-color: rgba(255,255,255,.25);
  padding:.4rem .55rem;
}
.navbar-toggler-icon{
  filter: invert(1);
}
@media (max-width: 991.98px){
  .app-header.navbar,
  .app-header-inner{ flex-wrap:wrap; }
  .app-nav{
    width:100%;
    margin: .75rem 0;
    border-radius:16px;
    flex-direction:column;
    align-items:stretch;
  }
  .app-nav .nav-link.app-nav-link{
    width:100%;
    padding:.7rem .9rem;
    font-size:.95rem;
  }
  .app-nav .dropdown-menu.app-dropdown{
    position:static !important;
    transform:none !important;
    inset:auto !important;
    margin:.25rem .5rem .55rem;
    width:auto;
    min-width:0;
  }
  .app-header-aside{
    width:100%;
    justify-content:space-between;
    padding-top:.65rem;
    border-top:1px solid rgba(255,255,255,.08);
    flex-wrap:wrap;
  }
  .app-user-card{ max-width:none; }
}
@media (min-width: 992px) and (max-width: 1199.98px){
  .app-nav{
    flex-wrap:wrap;
    border-radius:18px;
  }
  .app-nav .nav-link.app-nav-link{
    padding:.38rem .58rem;
    font-size:.78rem;
  }
  .app-user-meta{ display:none; }
  .app-brand-page{
    max-width:160px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}
/* ===== Request view ===== */
.rv-page{ max-width: 1120px; }
.rv-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1.25rem;
  padding:1.25rem 1.4rem;
  border-radius:18px;
  background: rgba(17,26,46,.92);
  border:1px solid rgba(79,209,197,.16);
  margin-bottom:1rem;
}
.rv-kicker{
  font-size:.75rem;
  font-weight:700;
  color:#5eead4;
  letter-spacing:.04em;
  margin-bottom:.25rem;
}
.rv-title{
  font-size:1.45rem;
  font-weight:800;
  margin:0 0 .55rem;
  color:#fff;
}
.rv-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem 1.1rem;
  color: rgba(203,213,225,.85);
  font-size:.88rem;
}
.rv-meta i{ color:#5eead4; margin-inline-end:.35rem; }
.rv-hero-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:.7rem;
  flex-shrink:0;
}
.rv-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  justify-content:flex-end;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  padding:.35rem .75rem;
  border-radius:999px;
  font-size:.8rem;
  font-weight:700;
  border:1px solid transparent;
  max-width: 280px;
  text-align:center;
}
.status-muted{ background:rgba(148,163,184,.16); color:#cbd5e1; }
.status-info{ background:rgba(56,189,248,.16); color:#7dd3fc; }
.status-success{ background:rgba(34,197,94,.16); color:#86efac; }
.status-danger{ background:rgba(239,68,68,.18); color:#fca5a5; }
.status-stage1{ background:rgba(45,212,191,.16); color:#5eead4; }
.status-stage2{ background:rgba(245,158,11,.16); color:#fcd34d; }
.status-stage3{ background:rgba(167,139,250,.18); color:#ddd6fe; }

.rv-steps{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:.6rem;
  padding:0;
  margin:0 0 1rem;
}
.rv-steps li{
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.65rem .8rem;
  border-radius:12px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.07);
  color: rgba(203,213,225,.7);
  font-weight:700;
  font-size:.82rem;
}
.rv-step-n{
  width:22px;height:22px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.72rem;
  background: rgba(255,255,255,.08);
}
.rv-steps li.done{ color:#99f6e4; border-color: rgba(45,212,191,.28); }
.rv-steps li.done .rv-step-n{ background:#14b8a6; color:#042f2e; }
.rv-steps li.current{ color:#fff; border-color: rgba(94,234,212,.45); background: rgba(45,212,191,.1); }
.rv-steps li.current .rv-step-n{ background:#5eead4; color:#042f2e; }
.rv-steps li.rejected{ color:#fecaca; border-color: rgba(239,68,68,.35); }
.rv-steps li.rejected .rv-step-n{ background:#ef4444; color:#fff; }

.rv-card, .rv-note{
  background: rgba(17,26,46,.92);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:1.1rem 1.2rem;
}
.rv-card-h{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  font-weight:800;
  margin-bottom:.9rem;
  color:#fff;
}
.rv-card-h i{ color:#5eead4; margin-inline-end:.35rem; }
.rv-count{
  font-size:.75rem;
  font-weight:700;
  color:#5eead4;
  background: rgba(45,212,191,.12);
  border-radius:999px;
  padding:.15rem .55rem;
}
.rv-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.85rem 1rem;
}
.rv-field span{
  display:block;
  font-size:.75rem;
  color:#94a3b8;
  font-weight:600;
  margin-bottom:.2rem;
}
.rv-field strong{
  display:block;
  color:#fff;
  font-size:.95rem;
}
.rv-field-full{ grid-column:1 / -1; }
.rv-hint{
  grid-column:1 / -1;
  color:#94a3b8;
  font-size:.82rem;
}
.rv-note p{
  margin:0;
  color:#e2e8f0;
  line-height:1.7;
}
.rv-note-gov{ border-color: rgba(245,158,11,.22); }
.rv-empty{
  color:#94a3b8;
  padding:.4rem 0 .2rem;
}
.rv-files{ display:flex; flex-direction:column; gap:.65rem; }
.rv-file{
  display:flex;
  align-items:center;
  gap:.85rem;
  padding:.75rem .85rem;
  border-radius:14px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.07);
}
.rv-file-ico{
  width:42px;height:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(239,68,68,.14);
  color:#fca5a5;
  flex-shrink:0;
}
.rv-file-body{ min-width:0; flex:1; }
.rv-file-type{ font-size:.72rem; color:#5eead4; font-weight:700; }
.rv-file-name{
  color:#fff;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rv-file-size{ font-size:.75rem; color:#94a3b8; }
.rv-file-actions{ display:flex; gap:.4rem; flex-shrink:0; }
.rv-modal{
  background:#0b1220;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
}
.rv-modal .modal-header,
.rv-modal .modal-footer{ border-color: rgba(255,255,255,.12); }
.rv-modal iframe{
  width:100%;
  height:75vh;
  border:0;
}
@media (max-width: 991.98px){
  .rv-hero{ flex-direction:column; }
  .rv-hero-side{ align-items:flex-start; width:100%; }
  .rv-hero-actions{ justify-content:flex-start; }
  .rv-steps{ grid-template-columns:1fr 1fr; }
  .rv-fields{ grid-template-columns:1fr; }
  .rv-file{ flex-wrap:wrap; }
}
@media (max-width: 575.98px){
  .rv-steps{ grid-template-columns:1fr; }
  .rv-modal iframe{ height:50vh; }
}

/* ===== Tabs scroller + table cards (mobile) ===== */
.tab-scroller{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin-inline:-.15rem;
  padding:.1rem .15rem .7rem;
  scrollbar-width:thin;
  scrollbar-color: rgba(94,234,212,.55) rgba(255,255,255,.06);
}
.tab-scroller::-webkit-scrollbar{
  height:7px;
}
.tab-scroller::-webkit-scrollbar-track{
  background: rgba(255,255,255,.06);
  border-radius:999px;
  margin-inline:.35rem;
}
.tab-scroller::-webkit-scrollbar-thumb{
  background: linear-gradient(90deg, rgba(45,212,191,.35), rgba(94,234,212,.7), rgba(45,212,191,.35));
  border-radius:999px;
  border:1px solid rgba(94,234,212,.25);
}
.tab-scroller::-webkit-scrollbar-thumb:hover{
  background: #5eead4;
}
.tab-scroller::-webkit-scrollbar-button{
  display:none;
  width:0;
  height:0;
}
.tab-scroller::-webkit-scrollbar-corner{ background:transparent; }
.tab-scroller .nav{
  flex-wrap:nowrap;
  min-width:max-content;
}
@media (max-width: 767.98px){
  .table-cards-wrap{ overflow:visible; }
  .table-cards thead{ display:none; }
  .table-cards,
  .table-cards tbody{ display:block; width:100%; }
  .table-cards tr{
    display:block;
    width:100%;
    margin-bottom:.85rem;
    padding:.9rem 1rem .8rem;
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px;
    background: rgba(255,255,255,.035);
  }
  .table-cards td{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:.75rem;
    border:0;
    padding:.28rem 0;
    text-align:start;
  }
  .table-cards td::before{
    content: attr(data-label);
    color:#94a3b8;
    font-size:.78rem;
    font-weight:700;
    flex:0 0 36%;
  }
  .table-cards td:not([data-label])::before{ display:none; }
  .table-cards td.table-cards-title{
    display:block;
    font-weight:800;
    font-size:1.05rem;
    padding-bottom:.5rem;
    margin-bottom:.35rem;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .table-cards td.table-cards-title::before{ display:none; }
  .table-cards td.table-cards-actions{
    display:flex;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:.45rem;
    padding-top:.7rem;
    margin-top:.35rem;
    border-top:1px solid rgba(255,255,255,.08);
  }
  .table-cards td.table-cards-actions::before{ display:none; }
  .table-cards td > form{
    flex:1 1 auto;
    min-width:0;
  }
  .table-cards td:has(> form){
    flex-direction:column;
    align-items:stretch;
  }
  .table-cards tr.table-cards-empty,
  .table-cards tr.table-cards-empty td{
    display:block;
    text-align:center;
    border:0;
  }
  .table-cards tr.table-cards-empty td::before{ display:none; }
  .rv-modal iframe{ height:58vh; }
}

/* ===== New request form ===== */
.rf-form{ display:block; }
.rf-alert{
  border-radius:14px;
  margin-bottom:1rem;
}
.rf-sec{
  background: rgba(17,26,46,.92);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:1.15rem 1.25rem 1.3rem;
  margin-bottom:1rem;
}
.rf-sec-h{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:1.05rem;
  padding-bottom:.8rem;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.rf-sec-title{
  display:flex;
  align-items:center;
  gap:.65rem;
  font-weight:800;
  color:#fff;
  margin:0;
  font-size:1.05rem;
}
.rf-sec-badge{
  width:28px;
  height:28px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, #5eead4, #2dd4bf);
  color:#042f2e;
  font-size:.8rem;
  font-weight:800;
  flex-shrink:0;
}
.rf-label{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.4rem;
  font-size:.82rem;
  font-weight:700;
  color:#cbd5e1;
  margin-bottom:.42rem;
}
.rf-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 .45rem;
  border-radius:999px;
  background: rgba(94,234,212,.14);
  border:1px solid rgba(94,234,212,.28);
  color:#5eead4;
  font-size:.68rem;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}
.rf-num-opt{
  background: rgba(148,163,184,.12);
  border-color: rgba(148,163,184,.22);
  color:#94a3b8;
}
.rf-req{ color:#f87171; font-weight:800; }
.rf-mini{
  font-size:.68rem;
  padding:.12rem .45rem;
}
.rf-hint{
  margin-top:.85rem;
  color:#94a3b8;
  font-size:.82rem;
}
.rf-upload{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:.28rem;
  padding:1.15rem .8rem .95rem;
  border-radius:16px;
  border:1px dashed rgba(94,234,212,.3);
  background: rgba(255,255,255,.025);
  cursor:pointer;
  min-height:180px;
  position:relative;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.rf-upload:hover{
  border-color: rgba(94,234,212,.55);
  background: rgba(45,212,191,.06);
}
.rf-upload.has-file{
  border-style:solid;
  border-color: rgba(94,234,212,.5);
  background: rgba(45,212,191,.08);
}
.rf-upload input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.rf-upload-tag{
  position:absolute;
  top:.65rem;
  inset-inline-start:.65rem;
  font-size:.65rem;
  font-weight:800;
  color:#5eead4;
  background: rgba(45,212,191,.14);
  border:1px solid rgba(45,212,191,.28);
  border-radius:999px;
  padding:.12rem .45rem;
}
.rf-upload-tag-opt{
  color:#cbd5e1;
  background: rgba(148,163,184,.12);
  border-color: rgba(148,163,184,.22);
}
.rf-upload-ico{
  width:46px;
  height:46px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(239,68,68,.14);
  color:#fca5a5;
  font-size:1.2rem;
  margin:.85rem 0 .15rem;
}
.rf-upload-ico-opt{
  background: rgba(148,163,184,.12);
  color:#cbd5e1;
}
.rf-upload-title{
  font-weight:800;
  color:#fff;
  font-size:.95rem;
}
.rf-upload-hint{
  font-size:.75rem;
  color:#94a3b8;
}
.rf-upload-name{
  margin-top:.15rem;
  font-size:.75rem;
  font-weight:700;
  color:#5eead4;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rf-upload:not(.has-file) .rf-upload-name{ color:#64748b; }
.rf-actions{
  position:sticky;
  bottom:.75rem;
  z-index:20;
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  padding:.85rem 1rem;
  border-radius:16px;
  background: rgba(8,12,22,.92);
  border:1px solid rgba(79,209,197,.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0,0,0,.38);
}
.rf-actions .btn{ min-width: 160px; }
@media (max-width: 767.98px){
  .rf-actions{ position:static; }
  .rf-actions .btn{ flex:1 1 100%; min-width:0; }
  .rf-sec-h{ flex-wrap:wrap; }
  .rf-steps li{ font-size:.75rem; }
}

/* ===== Audit log ===== */
.al-filters{ margin-bottom:1rem; }
.al-list{
  display:flex;
  flex-direction:column;
  gap:.7rem;
}
.al-card{
  background: rgba(17,26,46,.92);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:.95rem 1.1rem 1rem;
}
.al-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.6rem;
}
.al-head-main{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.4rem;
}
.al-head .status-pill{ max-width:none; }
.al-id{
  color:#64748b;
  font-weight:800;
  font-size:.82rem;
  flex-shrink:0;
}
.al-facts{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem 1.05rem;
  color: rgba(203,213,225,.88);
  font-size:.86rem;
}
.al-facts i{ color:#5eead4; margin-inline-end:.32rem; }
.al-facts a{
  color:#5eead4;
  text-decoration:none;
  font-weight:700;
}
.al-chips{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin-top:.75rem;
}
.al-chip{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:.35rem;
  max-width:100%;
  padding:.32rem .7rem;
  border-radius:12px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  font-size:.78rem;
  color:#e2e8f0;
  line-height:1.45;
  word-break:break-word;
}
.al-chip b{
  color:#5eead4;
  font-weight:800;
}
.al-msg{
  margin:.75rem 0 0;
  color:#e2e8f0;
  line-height:1.7;
  font-size:.92rem;
}
.al-details{
  margin-top:.7rem;
}
.al-details summary{
  cursor:pointer;
  color:#94a3b8;
  font-weight:700;
  font-size:.82rem;
}
.al-details .al-chip{ margin-top:.55rem; }
.al-chip-danger{
  border-color: rgba(239,68,68,.28);
  color:#fecaca;
}
.al-chip-danger b{ color:#fca5a5; }
.al-pre{
  white-space:pre-wrap;
  direction:ltr;
  text-align:left;
  background:#0b1220;
  border-radius:12px;
  padding:10px;
  color:#e6eefc;
  font-size:.78rem;
  margin:0;
  max-height:180px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color: rgba(94,234,212,.45) #0b1220;
}
