/* assets/ui-white.css */
/* Tema putih, fokus desktop & tablet, ringan tanpa framework */

:root{
  --bg: #f5f7fb;
  --card: #ffffff;
  --card2: #ffffff;
  --text: #0f172a;       /* slate-900 */
  --muted: #475569;      /* slate-600 */
  --line: #e2e8f0;       /* slate-200 */
  --primary: #2563eb;    /* blue-600 */
  --primary2: #1d4ed8;   /* blue-700 */
  --danger: #dc2626;     /* red-600 */
  --shadow: 0 12px 30px rgba(15, 23, 42, .08);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 600px at 70% 10%, rgba(37,99,235,.08), transparent 60%),
              radial-gradient(900px 600px at 20% 90%, rgba(16,185,129,.06), transparent 55%),
              linear-gradient(180deg, #ffffff, var(--bg));
}

a{ color: inherit; text-decoration: none; }
small{ color: var(--muted); }
hr{ border:0; border-top:1px solid var(--line); }

.container{
  min-height: 100%;
  display:flex;
  align-items:flex-start;          /* fokus desktop: konten di atas */
  justify-content:center;
  padding: 22px;
}

/* fokus desktop/tablet */
.shell{
  width: 100%;
  max-width: 1100px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  margin: 12px 0 14px;
}

.logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,.95), rgba(29,78,216,.75));
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
  border: 1px solid rgba(37,99,235,.18);
}

.brand h1{
  font-size: 18px;
  margin:0;
  letter-spacing: .2px;
}
.brand p{
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible; /* penting untuk table-wrap scroll */
}

.card-inner{ padding: 18px; }
.divider{
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.field{ margin-top: 12px; }
.label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.input{
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.btn{
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,.22);
  background: linear-gradient(180deg, rgba(37,99,235,.95), rgba(29,78,216,.95));
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  cursor:pointer;
  transition: transform .08s ease, filter .12s ease;
}
.btn:hover{ filter: brightness(1.03); }
.btn:active{ transform: translateY(1px) scale(.995); }

.btn-ghost{
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.alert{
  border-radius: 12px;
  border: 1px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.08);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}

/* header bar */
.topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.actions{ display:flex; gap:10px; flex-wrap:wrap; }
.btn-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}
.btn-link:hover{ filter: brightness(0.98); }
.btn-ok{
  border-color: rgba(37,99,235,.25);
  background: rgba(37,99,235,.06);
}

.pill{
  display:inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #007f09;
  text-transform: capitalize;
}

.muted{ color: var(--muted); font-size: 12px; }

.grid{ display:grid; gap:12px; }
.grid > *{ min-width:0; } /* penting untuk scroll di grid */

.two{ display:grid; gap:12px; grid-template-columns: 1fr; }
@media(min-width:720px){ .two{ grid-template-columns: 1fr 1fr; } }

/* table wrap scroll */
.table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 720px; /* desktop/tablet focus */
}
.table th, .table td{
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
  white-space: nowrap;
}
.table th{
  text-align:left;
  color: #0f172a;
  font-weight: 900;
  background: #f8fafc;
}
.table tr:last-child td{ border-bottom:none; }
.table td:nth-child(2), .table th:nth-child(2){ white-space: normal; }

/* Print (opsional) */
@media print{
  body{ background:#fff !important; color:#000 !important; }
  .no-print{ display:none !important; }
  .card{ box-shadow:none !important; }
  .table-wrap{ overflow: visible !important; }
  .table{ min-width: 0 !important; width:100% !important; }
  .table th, .table td{ white-space: normal !important; }
  thead{ display: table-header-group; }
  tr{ page-break-inside: avoid; }
}