:root{
  --gx-bg:#f5f7fb;
  --gx-card:#ffffff;
  --gx-text:#172033;
  --gx-muted:#64748b;
  --gx-border:#e5eaf0;
  --gx-purple:#7c3aed;
  --gx-blue:#2563eb;
  --gx-green:#059669;
  --gx-red:#dc2626;
  --gx-sidebar:#111827;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--gx-bg);
  color:var(--gx-text);
}
a{color:inherit}
.gx-app{
  min-height:100vh;
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
}
.gx-sidebar{
  min-height:100vh;
  background:var(--gx-sidebar);
  padding:18px 14px;
  position:sticky;
  top:0;
  align-self:start;
}
.gx-logo{
  display:flex;
  align-items:center;
  min-height:58px;
  padding:4px 8px 16px;
  text-decoration:none;
}
.gx-logo img{
  display:block;
  width:132px;
  max-height:46px;
  object-fit:contain;
}
.gx-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.gx-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:10px 12px;
  border-radius:10px;
  color:#e5e7eb;
  text-decoration:none;
  font-size:14px;
  font-weight:650;
}
.gx-nav a:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}
.gx-main{
  min-width:0;
}
.gx-header{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 24px;
  background:#fff;
  border-bottom:1px solid var(--gx-border);
  position:sticky;
  top:0;
  z-index:20;
}
.gx-header strong{
  font-size:15px;
}
.gx-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.gx-pill{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 10px;
  border:1px solid var(--gx-border);
  background:#fff;
  border-radius:999px;
  color:#475569;
  text-decoration:none;
  font-size:12px;
}
.gx-content{
  padding:24px;
}
.gx-topline{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}
.gx-title h1{
  margin:0 0 5px;
  font-size:28px;
  line-height:1.2;
}
.gx-title p{
  margin:0;
  color:var(--gx-muted);
  font-size:14px;
}
.gx-card{
  background:var(--gx-card);
  border:1px solid var(--gx-border);
  border-radius:18px;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}
.gx-panel{
  padding:18px;
}
.gx-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.gx-panel-head h2{
  margin:0;
  font-size:18px;
}
.gx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:10px;
  border:1px solid transparent;
  text-decoration:none;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}
.gx-btn-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--gx-purple),var(--gx-blue));
}
.gx-btn-light{
  background:#fff;
  color:#334155;
  border-color:#dbe2ea;
}
.gx-table{
  width:100%;
  border-collapse:collapse;
}
.gx-table th,
.gx-table td{
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid #edf1f5;
  font-size:13px;
  vertical-align:middle;
}
.gx-table th{
  color:#475569;
  font-weight:800;
  background:#f8fafc;
}
.gx-alert{
  padding:12px 14px;
  border-radius:10px;
  margin-bottom:14px;
  font-size:13px;
}
.gx-alert-success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.gx-alert-danger{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.gx-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.gx-form-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  font-weight:700;
  color:#475569;
}
.gx-form-grid input,
.gx-form-grid select,
.gx-form-grid textarea{
  width:100%;
  border:1px solid #dbe2ea;
  border-radius:10px;
  padding:10px 11px;
  font:inherit;
  color:#172033;
  background:#fff;
}
.quick{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.quick a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--gx-border);
  border-radius:10px;
  text-decoration:none;
  background:#fff;
  font-size:13px;
}
@media(max-width:900px){
  .gx-app{grid-template-columns:1fr}
  .gx-sidebar{position:relative;min-height:auto}
  .gx-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .gx-header{position:relative}
}
@media(max-width:650px){
  .gx-content{padding:16px}
  .gx-title h1{font-size:24px}
  .gx-form-grid,.quick{grid-template-columns:1fr}
}

/* GAPXA Admin official logo */
.gx-admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gx-admin-brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  flex: 0 0 44px;
  object-fit: contain;
}

.gx-admin-brand-name {
  font-weight: 800;
  white-space: nowrap;
}

/* GAPXA Admin logo hard fix */
.gx-admin-sidebar .gx-admin-brand img.gx-admin-brand-logo,
.gx-admin-brand img.gx-admin-brand-logo {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  object-fit: contain !important;
  flex: 0 0 44px !important;
}
