/* =========================
   FICSA PRO THEME (No build)
   Colors: #FAA518 #951133 #000 #FFF
========================= */

:root{
  --gold:#FAA518;
  --wine:#951133;
  --black:#0b0b0d;
  --white:#ffffff;

  --bg:#f6f7fb;
  --card:#ffffff;
  --muted:#6b7280;
  --line:#e5e7eb;

  --radius:16px;
  --shadow:0 14px 34px rgba(17,24,39,.10);
  --shadow-soft:0 8px 18px rgba(17,24,39,.08);

  --focus: 0 0 0 4px rgba(250,165,24,.25);
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  color:var(--black);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(250,165,24,.18), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(149,17,51,.16), transparent 60%),
    linear-gradient(180deg, var(--bg), #fff 70%);
}

/* Layout */
.wrap{ width:min(1100px, 92vw); margin:0 auto; }
.page{ padding: 26px 0 42px; }

.top{
  position: sticky; top:0; z-index:10;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,.85);
}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding: 14px 0;
}

/* Brand */
.brand{ display:flex; align-items:center; gap:12px; min-width: 220px; }
.brand-mark{
  width:42px; height:42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--wine), #6f0d28);
  box-shadow: 0 14px 30px rgba(149,17,51,.18);
  position: relative;
}
.brand-mark::after{
  content:"";
  position:absolute; inset:10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(250,165,24,.95), rgba(250,165,24,.60));
  mix-blend-mode: screen;
  opacity:.55;
}
.brand-title{ font-weight: 900; letter-spacing:.2px; line-height:1.05; }
.brand-sub{ color:var(--muted); font-size:13px; margin-top:2px; }

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(250,165,24,.14);
  border: 1px solid rgba(250,165,24,.35);
  color: #2b2b2b;
  font-weight: 800;
  font-size: 12px;
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid rgba(229,231,235,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-hd{
  padding: 18px 20px;
  border-bottom: 1px solid rgba(229,231,235,.9);
  background: linear-gradient(180deg, rgba(149,17,51,.06), transparent);
}
.card-bd{ padding: 20px; }
.card-title{ margin:0; font-size: 18px; font-weight: 900; }
.card-desc{ margin-top:6px; color:var(--muted); font-size: 14px; }

/* Grid */
.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px){ .grid-2{ grid-template-columns: 1fr; } }

/* Forms */
label{
  display:block;
  margin: 10px 0 6px;
  font-weight: 800;
  font-size: 13px;
  color: #202024;
}
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: .15s ease;
  box-shadow: 0 1px 0 rgba(17,24,39,.02);
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(149,17,51,.35);
  box-shadow: var(--focus);
}
.help{ color:var(--muted); font-size: 12.5px; margin-top: 6px; }
hr.sep{ border:0; border-top:1px solid rgba(229,231,235,.9); margin: 16px 0; }

/* Buttons */
.btn{
  appearance:none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 900;
  font-size: 14px;
  cursor:pointer;
  user-select:none;
  transition: .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  line-height:1;
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.btn-primary{
  color:#fff;
  background: linear-gradient(135deg, var(--wine), #6f0d28);
  box-shadow: 0 14px 26px rgba(149,17,51,.18);
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-primary:active{ transform: translateY(0); }

.btn-gold{
  color:#1a1a1a;
  background: linear-gradient(135deg, var(--gold), #ffbf4a);
  box-shadow: 0 14px 26px rgba(250,165,24,.22);
}
.btn-gold:hover{ transform: translateY(-1px); }
.btn-outline{
  background:#fff;
  border-color: rgba(149,17,51,.25);
  color: var(--wine);
}
.btn-outline:hover{ background: rgba(149,17,51,.06); }

.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }

/* Messages */
.msg{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(229,231,235,.9);
  background:#fff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}
.msg.ok{
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.06);
}
.msg.err{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.06);
}
a{ color: var(--wine); font-weight: 800; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Tables */
table{ width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border-radius: 14px; border:1px solid rgba(229,231,235,.9); }
th,td{ padding: 12px 12px; border-bottom:1px solid rgba(229,231,235,.9); font-size: 14px; text-align:left; }
th{
  background: rgba(149,17,51,.06);
  font-weight: 900;
}
tr:last-child td{ border-bottom:none; }
