:root {
  --bck-green: #0f7a4a;
  --bck-green-dark: #0b5c38;
  --bck-green-soft: #e8f6ee;
  --bck-gold: #c9a227;
  --bck-ink: #0f172a;
  --bck-muted: #64748b;
  --bck-line: #e2e8f0;
  --bck-bg: #f3f6f4;
  --bck-sidebar: #082016;
  --bck-sidebar-2: #0c2e1f;
  --bck-card: #ffffff;
  --bck-radius: 16px;
  --bck-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --bck-shadow-hover: 0 18px 40px rgba(15, 122, 74, 0.14);
  --sidebar-w: 268px;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
}

body.bck-app {
  margin: 0;
  background: var(--bck-bg);
  color: var(--bck-ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 15px;
}

.bck-shell {
  min-height: 100vh;
}

.bck-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background:
    radial-gradient(800px 320px at -10% -10%, rgba(201, 162, 39, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bck-sidebar) 0%, var(--bck-sidebar-2) 100%);
  color: #ecf8f1;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease;
}

.bck-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bck-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
}

.bck-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.bck-brand small {
  display: block;
  color: #9dceb4;
  font-size: 11px;
  margin-top: 2px;
}

.bck-nav {
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1;
}

.bck-nav-label {
  color: #7aa38f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px 6px;
}

.bck-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d7eee2;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 12px;
  margin-bottom: 4px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.bck-nav a i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.bck-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateX(4px);
}

.bck-nav a.active {
  background: linear-gradient(90deg, var(--bck-green), #14945c);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 122, 74, 0.35);
}

.bck-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bck-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(243, 246, 244, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bck-line);
}

.bck-topbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.bck-topbar p {
  margin: 0;
  color: var(--bck-muted);
  font-size: 13px;
}

.bck-userchip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--bck-line);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bck-userchip:hover {
  transform: translateY(-1px);
  box-shadow: var(--bck-shadow);
}

.bck-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bck-green-soft);
  color: var(--bck-green-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.bck-userchip strong { display: block; font-size: 13px; }
.bck-userchip small { display: block; color: var(--bck-muted); font-size: 11px; }

.bck-content {
  padding: 24px;
  flex: 1;
}

.page-inner { padding: 0; }
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.card {
  background: var(--bck-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--bck-radius);
  box-shadow: var(--bck-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bck-shadow-hover);
}
.card-body { padding: 20px; }

.form-control, .form-control:focus, select.form-control {
  border-radius: 12px;
  border-color: #dbe4dc;
  min-height: 44px;
  box-shadow: none;
}
.form-control:focus {
  border-color: var(--bck-green);
  box-shadow: 0 0 0 4px rgba(15, 122, 74, 0.12);
}

.password-field {
  display: flex;
  align-items: stretch;
  border: 1px solid #dbe4dc;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.password-field:focus-within {
  border-color: var(--bck-green);
  box-shadow: 0 0 0 4px rgba(15, 122, 74, 0.12);
}
.password-field .form-control,
.password-field .form-control:focus {
  flex: 1 1 auto;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  border-radius: 0;
  min-width: 0;
  min-height: 44px;
}
.password-toggle {
  flex: 0 0 46px;
  width: 46px;
  border: 0;
  border-left: 1px solid #e5efe8;
  background: #f4faf6;
  color: var(--bck-muted, #6b7280);
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.password-toggle:hover,
.password-toggle:focus {
  color: var(--bck-green);
  background: var(--bck-green-soft);
  outline: none;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  padding: 10px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.btn-success, .btn-primary {
  background: var(--bck-green);
  border-color: var(--bck-green);
  color: #fff;
}
.btn-primary:hover, .btn-success:hover {
  background: var(--bck-green-dark);
  border-color: var(--bck-green-dark);
}
.btn-danger { background: #dc2626; border-color: #dc2626; }
.btn-warning { background: #d97706; border-color: #d97706; color: #fff; }
.btn-secondary { background: #475569; border-color: #475569; color: #fff; }

.table {
  background: transparent;
}
.table thead th {
  background: #f8faf8;
  border-bottom: 1px solid var(--bck-line);
  color: #334155;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.table tbody tr {
  transition: background 0.18s ease;
}
.table tbody tr:hover {
  background: #f0faf4;
}

.alert {
  border: 0;
  border-radius: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  min-height: 126px;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(15, 122, 74, 0.08);
  transition: transform 0.3s ease;
}
.stat-card:hover::after { transform: scale(1.15); }
.stat-card .label {
  color: var(--bck-muted);
  font-size: 13px;
  font-weight: 600;
}
.stat-card .value {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  font-weight: 800;
  color: var(--bck-ink);
  letter-spacing: -0.03em;
}
.stat-card .hint {
  color: var(--bck-green-dark);
  font-size: 12px;
  font-weight: 600;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--bck-line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--bck-ink);
  background: #fff;
  margin-bottom: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.quick-link:hover {
  transform: translateX(6px);
  border-color: #b7e0c8;
  box-shadow: var(--bck-shadow);
  color: var(--bck-green-dark);
  text-decoration: none;
}
.quick-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bck-green-soft);
  color: var(--bck-green);
  display: grid;
  place-items: center;
}

.sidebar-toggle {
  display: none;
  border: 0;
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--bck-line);
}

.bck-overlay {
  display: none;
}

code {
  background: #ecfdf3;
  color: var(--bck-green-dark);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .sidebar-toggle { display: grid; place-items: center; }
  .bck-sidebar { transform: translateX(-105%); }
  body.sidebar-open .bck-sidebar { transform: translateX(0); }
  .bck-main { margin-left: 0; }
  .bck-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 32, 22, 0.45);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  body.sidebar-open .bck-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .bck-content { padding: 16px; }
  .stat-card .value { font-size: 26px; }
  .bck-nav a { padding: 13px 12px; }
  .table.w-75 { width: 100% !important; }
}

/* Portal — kartu LED */
body.bck-portal {
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: #edf8f1;
  background: #06140f;
  overflow-x: hidden;
}
.portal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(201, 162, 39, 0.22), transparent 55%),
    radial-gradient(700px 380px at 92% 108%, rgba(15, 122, 74, 0.35), transparent 50%),
    linear-gradient(165deg, #04110c 0%, #0a2418 48%, #07150f 100%);
}
.portal-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.portal-shell {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 56px;
}
.portal-brand {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 36px;
  animation: portal-rise 0.7s ease both;
}
.portal-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.portal-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a227;
}
.portal-brand h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.portal-lead {
  margin: 8px 0 0;
  color: #9dceb4;
  font-size: 15px;
}
.portal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.led-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  padding: 2px;
  isolation: isolate;
  animation: portal-rise 0.75s ease both;
  transition: transform 0.28s ease;
}
.led-card--legacy { animation-delay: 0.08s; }
.led-card--v2 { animation-delay: 0.16s; }
.led-card:hover { transform: translateY(-4px); }
.led-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
}
.led-border::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from var(--led-angle, 0deg),
    transparent 0%,
    transparent 62%,
    #7dffb3 72%,
    #ffe08a 78%,
    #ffffff 82%,
    #7dffb3 88%,
    transparent 96%,
    transparent 100%
  );
  animation: led-spin 2.8s linear infinite;
}
.led-card--legacy .led-border::before {
  background: conic-gradient(
    from var(--led-angle, 0deg),
    transparent 0%,
    transparent 64%,
    #8ab4ff 72%,
    #d6e4ff 78%,
    #ffffff 82%,
    #8ab4ff 88%,
    transparent 96%,
    transparent 100%
  );
  animation-duration: 3.2s;
  animation-direction: reverse;
}
.led-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
  margin: 2px;
  padding: 26px 24px 22px;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(12, 46, 31, 0.96), rgba(8, 32, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.led-card--legacy .led-card-inner {
  background:
    linear-gradient(160deg, rgba(18, 28, 42, 0.96), rgba(10, 16, 28, 0.98));
}
.led-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ec0ff;
  background: rgba(138, 180, 255, 0.12);
  border: 1px solid rgba(138, 180, 255, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
}
.led-badge--new {
  color: #ffe08a;
  background: rgba(201, 162, 39, 0.16);
  border-color: rgba(201, 162, 39, 0.35);
}
.led-icon {
  margin-top: 10px;
  font-size: 28px;
  color: #7dffb3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 122, 74, 0.28);
}
.led-card--legacy .led-icon {
  color: #a8c6ff;
  background: rgba(90, 130, 200, 0.22);
}
.led-card-inner strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.led-card-inner em {
  font-style: normal;
  font-weight: 700;
  color: #c9a227;
  font-size: 14px;
}
.led-card--legacy .led-card-inner em { color: #9ec0ff; }
.led-desc {
  color: #9dceb4;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 4px;
  flex: 1;
}
.led-card--legacy .led-desc { color: #a8b8d0; }
.led-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #edf8f1;
}
.portal-note {
  margin: 28px 0 0;
  text-align: center;
  color: #7aa38f;
  font-size: 13px;
  line-height: 1.5;
  animation: portal-rise 0.8s ease both;
  animation-delay: 0.24s;
}
.portal-note strong { color: #c9e8d6; }

@keyframes led-spin {
  to { transform: rotate(360deg); }
}
@keyframes portal-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.sync-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(15, 122, 74, 0.08), rgba(201, 162, 39, 0.1)),
    #fff;
  border: 1px solid rgba(15, 122, 74, 0.14);
  box-shadow: var(--bck-shadow);
}
.sync-banner h5 {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 15px;
}
.sync-banner p {
  margin: 0;
  color: var(--bck-muted);
  font-size: 13px;
  max-width: 560px;
}
.btn-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: linear-gradient(135deg, #0f7a4a, #0b5c38);
  border: 0;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(15, 122, 74, 0.28);
}
.btn-sync:hover { color: #fff; filter: brightness(1.06); }
.btn-sync:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 760px) {
  .portal-shell { padding: 28px 16px 40px; }
  .portal-brand { flex-direction: column; align-items: flex-start; }
  .portal-cards { grid-template-columns: 1fr; }
  .led-card-inner { min-height: 0; }
  .sync-banner { align-items: stretch; }
  .btn-sync { width: 100%; justify-content: center; }
}

/* Login */
body.bck-login {
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: #07150f;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.login-hero {
  padding: 48px;
  color: #edf8f1;
  background:
    radial-gradient(700px 280px at 10% 10%, rgba(201,162,39,0.18), transparent 45%),
    linear-gradient(160deg, #082016, #0f7a4a 80%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-hero h2 {
  font-size: 38px;
  line-height: 1.2;
  margin: 18px 0 10px;
}
.login-hero img {
  width: 56px;
  height: auto;
}
.login-panel {
  display: grid;
  place-items: center;
  background: #f7faf8;
  padding: 32px 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--bck-shadow);
}
.login-card h3 { margin: 0 0 6px; font-weight: 800; }
.login-card .sub { color: var(--bck-muted); margin-bottom: 22px; }
.login-steps {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #d7eee2;
  max-width: 420px;
}
.login-steps li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { min-height: auto; padding: 18px 18px 14px; }
  .login-hero h2 { font-size: 22px; margin: 12px 0 0; }
  .login-hero > div:last-child { display: none; }
  .login-panel { padding: 16px 14px 28px; align-items: start; }
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.flow-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--bck-line);
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.flow-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--bck-shadow);
  color: inherit;
  text-decoration: none;
}
.flow-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bck-green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 28px;
}
.flow-step small { display: block; color: var(--bck-muted); }

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.chart-head { margin-bottom: 10px; }
.chart-canvas-wrap {
  position: relative;
  height: 240px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  align-items: flex-end;
}
.toolbar .form-control { flex: 1 1 180px; min-width: 0; }
.toolbar .btn { flex: 0 0 auto; }
.date-toolbar { margin: 0; }
.date-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.date-bar-label {
  margin-right: auto;
}
.date-bar .form-control {
  flex: 0 0 170px;
  width: 170px;
  min-height: 40px;
}
.date-bar .btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
}
.split-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.report-toolbar { margin: 0; }
.report-toolbar .field-grow {
  flex: 1 1 200px;
  min-width: 0;
}
.report-toolbar label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--bck-muted);
  margin-bottom: 4px;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 220px;
  overflow: auto;
}

.aksi-inline, .role-row, .aksi-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.role-row .form-control { min-width: 140px; width: auto; }

.card-static:hover {
  transform: none;
  box-shadow: var(--bck-shadow);
}
.user-table {
  width: 100%;
  table-layout: fixed;
  font-size: 11px;
}
.user-table th,
.user-table td {
  padding: 4px 5px;
  vertical-align: middle;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
}
.user-table .col-nip-cell,
.user-table .col-nama-cell {
  font-size: 10px;
  white-space: nowrap;
  line-height: 1.2;
}
.user-table .col-nip-cell {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: clip;
}
.user-table .col-nama-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-table .col-clip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-table code {
  white-space: nowrap;
  font-size: 10px;
}
.user-table .aksi-cell {
  white-space: nowrap;
  overflow: hidden;
}
.user-table .aksi-inline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.user-table .aksi-inline > form {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
}
.user-table .role-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.user-table form { margin: 0; max-width: 100%; }
.user-table .lembaga-row {
  display: block;
  width: 100%;
  max-width: 100%;
}
.user-table .btn {
  padding: 2px 6px;
  min-height: 22px;
  height: 22px;
  font-size: 10px;
  border-radius: 5px;
  line-height: 1;
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
.user-table .form-control,
.user-table select.form-control {
  box-sizing: border-box;
  min-height: 22px;
  height: 22px;
  padding: 0 4px;
  font-size: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 5px;
}
.user-table .aksi-inline select.form-control {
  width: 92px;
  max-width: 92px;
  flex: 0 0 92px;
}
.user-table .role-row .form-control {
  width: auto;
  max-width: 92px;
  flex: 0 0 92px;
}

.user-cards, .record-cards { display: none; }
.table-desktop { display: block; }
.record-card p { margin: 0 0 10px; }
.role-pill {
  background: var(--bck-green-soft);
  color: var(--bck-green-dark);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.user-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.guide-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bck-green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1100px) {
  .flow-strip, .guide-grid, .chart-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .bck-topbar { padding: 12px 14px; }
  .bck-topbar h1 { font-size: 16px; }
  .bck-topbar p { display: none; }
  .bck-userchip { padding: 4px; }
  .bck-userchip-text { display: none; }
  .chart-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .user-cards, .record-cards {
    display: grid;
    gap: 12px;
  }
  .table-desktop { display: none; }
  .toolbar .btn,
  .toolbar-actions .btn,
  .btn-mobile-full { width: 100%; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn { flex: 1 1 140px; }
  .card:hover { transform: none; }
  .bck-content { padding: 12px; }
  .quick-link:hover { transform: none; }
  .chart-canvas-wrap { height: 200px; }
  .page-header { margin-bottom: 10px; }
}

@media (max-width: 560px) {
  .flow-strip, .guide-grid { grid-template-columns: 1fr; }
  .date-bar-label { flex: 1 1 100%; margin-right: 0; }
  .date-bar .form-control { flex: 1 1 auto; width: auto; }
}

@media (max-width: 480px) {
  .login-card { padding: 20px 16px; }
  .stat-card { min-height: 0; padding: 14px; }
  .stat-card .value { font-size: 24px; }
  .login-steps { font-size: 13px; }
}


