:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e6ebf2;

  --blue:#2563eb;
  --blue-100:#e8f0ff;

  --green:#16a34a;
  --green-100:#e9f9ef;

  --cyan:#0891b2;
  --cyan-100:#e6fbff;

  --amber:#f59e0b;
  --amber-100:#fff7e6;

  --red:#ef4444;
  --red-100:#ffecec;

  --shadow:0 10px 30px rgba(15,23,42,.06);
  --shadow-sm:0 8px 20px rgba(15,23,42,.06);
  --radius:18px;
  --radius-sm:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}

/* top bar */
.topbar{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand .logo{
  width:120px;
  height:50px;
  border-radius:12px;
  background:linear-gradient(135deg,#e6f0ff,#ffffff);
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  font-weight:800;
  color:var(--blue);
  display: flex;
    align-items: center;
    justify-content: center;
}
.brand .logo-login{
  width:170px;
  height:80px;
  border-radius:12px;
  background:linear-gradient(135deg,#e6f0ff,#ffffff);
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  font-weight:800;
  color:var(--blue);
  display: flex;
    align-items: center;
    justify-content: center;
}
.brand .title{
  font-weight:800;
  letter-spacing:.2px;
}
.right-actions{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:14px;
}
.btn{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:8px 12px;
  border-radius:12px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}
.btn:hover{box-shadow:var(--shadow-sm)}
.btn.primary{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}
.btn.soft{
  background:#f8fafc;
}
.btn.small{padding:7px 10px;border-radius:11px;font-size:13px}

/* container */
.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:22px 18px 40px;
}

/* header panel */
.panel{
  background:linear-gradient(180deg,#eaf6ff 0%, #f2fbff 45%, #ffffff 100%);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:18px;
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
}
.panel-left{
  display:flex;
  gap:16px;
  align-items:center;
}
.panel-logo{
  width:85px;
  height:80px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  display:grid;
  place-items:center;
  color:var(--muted);
  font-weight:800;
   display: flex;
    align-items: center;
    justify-content: center;
}
.panel-meta h1{
  margin:0;
  font-size:20px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
  margin-left:8px;
}
.panel-meta p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}
.quick-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.tab{
  padding:9px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
  color:#0f172a;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.tab.blue{background:var(--blue);border-color:var(--blue);color:#fff}
.tab.green{background:var(--green);border-color:var(--green);color:#fff}
.tab.cyan{background:var(--cyan);border-color:var(--cyan);color:#fff}
.tab.soft{background:#f8fafc}

.panel-right{
  display:flex;
  gap:10px;
  align-items:center;
}
.panel-right .btn{height:40px}

/* stat cards */
.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
@media(max-width:1020px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width:560px){ .grid{grid-template-columns:1fr} }

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
  padding:16px;
  display:flex;
  gap:14px;
  align-items:center;
  min-height:86px;
}
.ico{
  width:46px;height:46px;border-radius:16px;
  display:grid;place-items:center;
  font-weight:900;
  color:#0f172a;
}
.ico.blue{background:var(--blue-100); color:var(--blue)}
.ico.green{background:var(--green-100); color:var(--green)}
.ico.cyan{background:var(--cyan-100); color:var(--cyan)}
.ico.red{background:var(--red-100); color:var(--red)}
.ico.amber{background:var(--amber-100); color:var(--amber)}

.card .kpi{
  font-size:14px;color:var(--muted);margin:0;
}
.card .val{
  font-size:26px;font-weight:900;margin:2px 0 0;
  letter-spacing:.2px;
}

/* feature cards */
.grid2{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
@media(max-width:1020px){ .grid2{grid-template-columns:1fr} }

.feature{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:92px;
}
.feature .left{
  display:flex; gap:14px; align-items:center;
}
.feature h3{
  margin:0;
  font-size:16px;
}
.feature p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}
.pill{
  border-radius:999px;
  padding:6px 10px;
  font-weight:800;
  font-size:12px;
  border:1px solid transparent;
  text-decoration:none;
}
.pill.blue{background:var(--blue-100); color:var(--blue); border-color:#cfe0ff}
.pill.green{background:var(--green-100); color:var(--green); border-color:#c7f2d4}
.pill.amber{background:var(--amber-100); color:#9a6a00; border-color:#ffe3b0}
.pill.cyan{background:var(--cyan-100); color:var(--cyan); border-color:#bff2ff}

.footer{
  margin-top:22px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
/* === KBK FIX: always visible buttons === */
.btn, .btnX, button.btn, button.btnX {
  color: #0f172a;
}


.btn.primary, .btnPrimary,
a.btnPrimary, button.btnPrimary {
  background: linear-gradient(135deg, var(--primary), var(--cyan)) !important;
  color: #fff !important;
  border: 0 !important;
}

.btn.soft, .btnSoft,
a.btnSoft, button.btnSoft {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid var(--line) !important;
}

.btn.edit, .btn-Edit,
a.btnEdit, button.btn-Edit {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid var(--line) !important;
}

/* Tabs sometimes fade */
.tab, .quick-tabs a {
  color: #0f172a;
}
.tab.cyan {
  background: var(--cyan) !important;
  color: #062b33 !important;
  border-color: transparent !important;
}

/* ===== KBK GLOBAL FIX: buttons must be visible everywhere ===== */

/* Base buttons */
a.btnX, button.btnX, .btnX,
a.btn, button.btn, .btn {
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1px solid var(--line, #d7dde6) !important;
}

/* Primary button (PDF etc.) */
a.btnPrimary, button.btnPrimary, .btnPrimary,
a.btn.primary, button.btn.primary, .btn.primary {
  background: linear-gradient(135deg, var(--primary, #2563eb), var(--cyan, #06b6d4)) !important;
  color: #ffffff !important;
  border: 0 !important;
}

/* Soft button */
a.btnSoft, button.btnSoft, .btnSoft,
a.btn.soft, button.btn.soft, .btn.soft {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid var(--line, #d7dde6) !important;
}

/* In case some global rule forces white links */
a.btnX:link, a.btnX:visited,
a.btnPrimary:link, a.btnPrimary:visited,
a.btnSoft:link, a.btnSoft:visited {
  color: inherit !important;
  text-decoration: none !important;
}

/* If buttons appear "invisible" due to opacity/filter */
a.btnX, button.btnX, a.btnPrimary, button.btnPrimary {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

/* Fix for tiny PDF badge-like links (if any style shrinks it) */
a.btnPrimary {
  padding: 10px 14px !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
}
