@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-soft: #1f2937;
  --card: #0b1220;
  --glass: rgba(15, 23, 42, 0.72);
  --glass-strong: rgba(15, 23, 42, 0.86);
  --surface: rgba(148, 163, 184, 0.06);
  --muted: #94a3b8;
  --text: #e5e7eb;
  --line: rgba(148, 163, 184, 0.18);
  --blue: #60a5fa;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(2, 6, 23, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* =================================================== */
/* GLOBAL MODERN SLIM DARK SCROLLBAR                  */
/* =================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  transition: background 0.18s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.55);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) rgba(15, 23, 42, 0.4);
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', 'SF Pro Display', Tahoma, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 22%),
    linear-gradient(135deg, #020817, #0f172a 45%, #111827);
  color: var(--text);
  min-height: 100vh;
  padding: 0;
}

h1, h2, h3, h4, h5, h6,
strong, b,
button,
input,
select,
textarea,
label,
th,
td {
  font-family: 'Inter', 'Segoe UI', 'SF Pro Display', sans-serif;
}

button,
input,
select,
textarea {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.03em;
}

.hidden {
  display: none !important;
}

.import-progress-card {
  width: min(430px, calc(100% - 28px));
  padding: 30px 28px 26px;
  text-align: center;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.96));
  border: 1px solid rgba(96, 165, 250, 0.55);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.65), 0 0 36px rgba(37, 99, 235, 0.16);
}

.import-progress-orbit {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 2px solid rgba(96, 165, 250, 0.3);
  border-top-color: #60a5fa;
  border-radius: 50%;
  color: #dbeafe;
  font-size: 1.5rem;
  animation: import-spin 1.2s linear infinite;
}

.import-progress-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.import-progress-card p { margin: 0; color: var(--muted); }
.import-progress-track { height: 12px; margin: 24px 0 10px; overflow: hidden; background: rgba(148, 163, 184, 0.14); border-radius: 999px; }
.import-progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #34d399); transition: width 0.2s ease; }
.import-progress-bar.is-processing { background: linear-gradient(90deg, #38bdf8, #60a5fa, #34d399); background-size: 200% 100%; animation: import-shimmer 1.1s linear infinite; }
.import-progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem; }
.import-progress-meta strong { color: #dbeafe; }
.import-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.import-summary div { padding: 12px 8px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 12px; background: rgba(15, 23, 42, 0.5); }
.import-summary strong, .import-summary span { display: block; }
.import-summary strong { color: #f8fafc; font-size: 1.2rem; }
.import-summary span { margin-top: 4px; color: var(--muted); font-size: 0.7rem; }
.import-close-btn { margin-top: 18px; min-width: 120px; }
.import-progress-pulse { display: flex; justify-content: center; gap: 5px; margin-top: 18px; }
.import-progress-pulse span { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; animation: import-pulse 0.9s ease-in-out infinite; }
.import-progress-pulse span:nth-child(2) { animation-delay: 0.15s; }
.import-progress-pulse span:nth-child(3) { animation-delay: 0.3s; }
@keyframes import-spin { to { transform: rotate(360deg); } }
@keyframes import-shimmer { to { background-position: -200% 0; } }
@keyframes import-pulse { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(52, 211, 153, 0.10) 0%, transparent 45%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--auth-bg-image, none) center/cover no-repeat;
  opacity: var(--auth-bg-opacity, 0);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.auth-shell {
  width: min(460px, 100%);
  position: relative;
  z-index: 1;
}

.auth-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 32px 26px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.auth-header {
  margin-bottom: 26px;
  text-align: center;
}

.auth-logo-icon {
  display: none;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.login-logo-img {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
  max-height: var(--login-logo-size, 52px);
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
  transition: max-height 0.15s ease, max-width 0.15s ease;
}

/* UKURAN PRESET LOGO LOGIN */
.login-logo-img.login-logo-size-compact {
  max-height: 110px;
  max-width: min(100%, 280px);
}
.login-logo-img.login-logo-size-normal {
  max-height: 150px;
  max-width: min(100%, 280px);
}
.login-logo-img.login-logo-size-large {
  max-height: 180px;
  max-width: min(100%, 280px);
}
.login-logo-img.login-logo-size-jumbo {
  max-height: 220px;
  max-width: min(100%, 280px);
}

.auth-logo-text {
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--white);
  font-size: 1.05rem;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.auth-subtitle {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  width: 100%;
}

.input-field {
  width: 100%;
}

.input-field input,
.auth-form input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  padding: 13px 16px;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.input-field input:hover,
.auth-form input:hover {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
}

.input-field input:focus,
.auth-form input:focus {
  outline: none;
  background: rgba(15, 23, 42, 0.95);
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Fix browser autofill background in dark mode */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #f8fafc !important;
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* PASSWORD INPUT WITH TOGGLE EYE BUTTON INSIDE */
.password-input-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.password-input-box input {
  width: 100% !important;
  padding-right: 48px !important;
  box-sizing: border-box !important;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  z-index: 5;
}

.password-toggle-btn:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-50%) scale(1.08);
}

.password-toggle-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  color: #60a5fa;
}

.password-toggle-btn svg {
  display: block;
  pointer-events: none;
}

.auth-btn {
  width: 100%;
  margin-top: 6px;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.primary-btn.auth-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.primary-btn.auth-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.35);
}

.secondary-btn.auth-btn {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
}

.secondary-btn.auth-btn:hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.28);
}

.auth-message {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-size: 0.9rem;
  text-align: center;
}

.auth-message.error {
  color: var(--red);
}

@media (max-width: 680px) {
  .auth-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .auth-header h1 {
    font-size: 1.35rem;
  }

  .auth-subtitle {
    font-size: 0.9rem;
  }

  .login-logo-img {
    max-height: var(--login-logo-size, 52px);
    padding: 2px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.modal-content {
  width: min(640px, 100%);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.5);
}

.app-alert-card {
  width: min(390px, calc(100% - 28px));
  padding: 28px 26px 24px;
  text-align: center;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.99), rgba(8, 47, 73, 0.98));
  border: 1px solid rgba(96, 165, 250, 0.55);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.68), 0 0 40px rgba(37, 99, 235, 0.18);
  animation: app-alert-in 0.22s ease-out;
}

.app-alert-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 50%;
  background: rgba(6, 78, 59, 0.45);
  color: #6ee7b7;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.16);
}

.app-alert-icon.error {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(127, 29, 29, 0.45);
  color: #fca5a5;
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.14);
}

.app-alert-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.app-alert-card #appAlertMessage { margin: 0; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.app-alert-close { min-width: 120px; margin-top: 22px; }
@keyframes app-alert-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.small-modal {
  width: min(520px, 100%);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-header h3 {
  margin: 0;
}

.close-btn {
  background: transparent;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

.form-grid input,
.form-grid select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
  color: var(--white);
  padding: 12px 14px;
  font-size: 1rem;
}

.manual-action-input {
  margin-top: 2px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

/* ============================================================ */
/* MODERN & ELEGANT UPDATE DATA MONITORING MODAL                */
/* ============================================================ */
.update-modal-overlay {
  background: rgba(2, 6, 23, 0.82) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalOverlayFadeIn 0.22s ease-out;
}

@keyframes modalOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes updateModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.update-modal-card {
  position: relative;
  width: min(530px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: linear-gradient(168deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 16, 30, 0.99) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 22px !important;
  padding: 0 !important;
  box-shadow:
    0 25px 70px -10px rgba(0, 0, 0, 0.8),
    0 0 45px -5px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  animation: updateModalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glowing accent top line */
.update-modal-glow-bar {
  height: 3.5px;
  width: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  border-radius: 22px 22px 0 0;
}

/* Modal Header */
.update-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.update-modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.update-modal-icon-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.22);
}

.update-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 2px;
}

.eyebrow-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDotGlow 2s infinite ease-in-out;
}

@keyframes pulseDotGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

.update-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.update-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.5);
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.update-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  transform: rotate(90deg) scale(1.05);
}

/* Waybill Context Summary Card */
.update-context-card {
  margin: 16px 22px 0;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.context-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
}

.context-waybill-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.context-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}

.context-waybill-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-waybill-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #67e8f9;
  text-shadow: 0 0 14px rgba(103, 232, 249, 0.3);
}

.context-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.context-copy-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.context-copy-btn.copied {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.5);
  color: #34d399;
}

.context-aging-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.1);
  white-space: nowrap;
}

.context-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.context-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.context-barang-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.barang-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

.context-barang-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Status Preview Section */
.update-monitoring-form {
  padding: 16px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
}

.status-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-caption {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}

.modern-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  transition: all 0.2s ease;
}

.modern-status-badge .badge-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
}

.modern-status-badge.status-pending {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.modern-status-badge.status-pending .badge-dot {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.modern-status-badge.status-success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
}

.modern-status-badge.status-success .badge-dot {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.status-transition-arrow {
  color: #64748b;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Action Section & Quick Chips */
.action-selection-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.action-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

.action-section-title svg {
  color: #38bdf8;
}

.action-hint {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
}

.quick-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-chip-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
}

.quick-chip-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.quick-chip-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.28), rgba(56, 189, 248, 0.22));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

/* Micro-badge icon container */
.chip-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip-icon-emerald {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.chip-icon-blue {
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.chip-icon-rose {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.38);
  color: #fb7185;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.15);
}

.chip-icon-purple {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.38);
  color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.chip-icon-amber {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.chip-icon-cyan {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.38);
  color: #22d3ee;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.quick-chip-btn:hover .chip-icon-box {
  transform: scale(1.08);
}

.quick-chip-btn.active .chip-icon-box {
  box-shadow: 0 0 14px currentColor;
  transform: scale(1.06);
}

.chip-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* Custom Dropdown Select */
.custom-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.custom-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.modern-action-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 36px 10px 36px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  color: #f1f5f9 !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.18s ease;
}

.modern-action-select:focus {
  outline: none;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.modern-action-select option {
  background: #0f172a;
  color: #f1f5f9;
  padding: 8px;
}

/* Manual Input Expand */
.manual-action-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: slideDownFade 0.2s ease-out;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.manual-action-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.manual-input-inner input {
  width: 100%;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
}

.manual-input-inner input:focus {
  outline: none;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* Modal Footer Buttons */
.update-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.btn-ghost-cancel {
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost-cancel:hover {
  background: rgba(51, 65, 85, 0.7);
  border-color: rgba(148, 163, 184, 0.35);
  color: #ffffff;
}

.btn-gradient-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gradient-save:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5), 0 0 20px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.btn-gradient-save:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .update-modal-card {
    width: 100%;
    border-radius: 18px !important;
  }
  .update-modal-header {
    padding: 16px 18px 14px;
  }
  .update-context-card {
    margin: 12px 14px 0;
    padding: 12px;
  }
  .update-monitoring-form {
    padding: 14px 14px 18px;
    gap: 14px;
  }
  .quick-chips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .quick-chip-btn {
    padding: 7px 8px;
    font-size: 0.72rem;
    gap: 6px;
  }
  .chip-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .chip-icon-box svg {
    width: 13px;
    height: 13px;
  }
  .context-waybill-code {
    font-size: 1rem;
  }
  .update-modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .btn-ghost-cancel,
  .btn-gradient-save {
    width: 100%;
    justify-content: center;
    padding: 11px;
  }
}


.app-shell {
  max-width: 100%;
  margin: 0 auto;
}

/* APP SHELL & LAYOUT */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 28%),
    linear-gradient(135deg, #020817, #0f172a 45%, #111827);
}

/* SIDEBAR */
.app-sidebar {
  width: 270px;
  min-width: 270px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
  position: relative;
  padding: 22px 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 0.25s ease;
}

.brand-logo-wrap {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0284c7 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.sidebar-brand:hover .brand-logo-icon {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.sidebar-logo-img {
  width: var(--sidebar-logo-size, 44px);
  height: var(--sidebar-logo-size, 44px);
  min-width: var(--sidebar-logo-size, 44px);
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(15, 23, 42, 0.65);
  padding: 4px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: width 0.15s ease, height 0.15s ease, max-height 0.15s ease;
}

/* TATA LETAK KHUSUS LOGO PANJANG / BANNER PERUSAHAAN (J&T Cargo dsb) */
.sidebar-brand.brand-wide-layout {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px 18px;
}

.sidebar-brand.brand-wide-layout .brand-logo-wrap {
  width: 100%;
  height: auto;
  min-width: unset;
  min-height: unset;
  justify-content: flex-start;
}

.sidebar-brand.brand-wide-layout .sidebar-logo-img {
  width: auto;
  max-width: 210px;
  max-height: var(--sidebar-logo-size, 44px);
  height: auto;
  object-fit: contain;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.sidebar-brand.brand-wide-layout .brand-info {
  width: 100%;
  padding-left: 2px;
}

.sidebar-brand.brand-wide-layout .brand-name {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-brand.brand-wide-layout .brand-desc {
  display: none;
}

.brand-info {
  flex: 1;
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-desc {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.sidebar-brand.brand-wide-layout .sidebar-close-btn {
  position: absolute;
  top: 18px;
  right: 16px;
}

.sidebar-close-btn:hover {
  color: var(--white);
}

/* SIDEBAR NAVIGATION */
.sidebar-nav {
  flex: 1;
  padding: 18px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label-group {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.6);
  padding: 14px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #94a3b8;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.12);
}

.nav-link:hover .nav-icon {
  color: #60a5fa;
  transform: scale(1.1);
}

.nav-link.active {
  color: #eff6ff;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(37, 99, 235, 0.16));
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link.active .nav-icon {
  color: #38bdf8;
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
}

/* SIDEBAR FOOTER */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.user-avatar-badge {
  width: 36px;
  height: 36px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.user-profile-data {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fff;
}

/* MAIN CONTENT WRAPPER */
.app-main-layout {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(2, 6, 23, 0.25);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  display: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(37, 99, 235, 0.3));
  border-color: #38bdf8;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hamburger-btn:active {
  transform: scale(0.95);
}

.menu-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.menu-btn-inner svg {
  transition: transform 0.25s ease;
  color: #94a3b8;
}

.hamburger-btn:hover .menu-btn-inner svg {
  transform: rotate(8deg);
  color: #38bdf8;
}

.bento-cube {
  fill: rgba(148, 163, 184, 0.08);
  stroke: rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
}

.bento-accent {
  fill: rgba(56, 189, 248, 0.35);
  stroke: #38bdf8;
}

.hamburger-btn:hover .bento-cube {
  stroke: #38bdf8;
  fill: rgba(56, 189, 248, 0.18);
}

.hamburger-btn:hover .bento-accent {
  fill: #38bdf8;
  filter: drop-shadow(0 0 6px #38bdf8);
}

.menu-btn-glow {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 2s ease-in-out infinite;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* AUTO-REFRESH TOGGLE SWITCH BUTTON */
.auto-refresh-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.auto-refresh-toggle-btn:hover {
  background: rgba(51, 65, 85, 0.75);
  border-color: rgba(56, 189, 248, 0.4);
  color: #e2e8f0;
}

.auto-refresh-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.auto-refresh-toggle-btn.is-active {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  color: #34d399 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25) !important;
}

.auto-refresh-toggle-btn.is-active .auto-refresh-pulse-dot {
  background: #34d399 !important;
  box-shadow: 0 0 8px #34d399 !important;
  animation: pulseGreenDock 1.6s infinite ease-in-out;
}

/* VIEWS CONTAINER */
.app-views-container {
  flex: 1;
  padding: 24px 28px 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* VIEW PAGE ANIMATIONS */
.view-page {
  animation: viewFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-page.hidden {
  display: none !important;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MONITORING QUICK BAR & EXECUTIVE BUTTONS */
/* MONITORING QUICK BAR & EXECUTIVE BUTTONS */
.monitoring-quick-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.4));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.quick-bar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.6);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.quick-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-bar-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 9999px;
  padding: 5px 8px;
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.quick-bar-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.quick-bar-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  transform: scale(1.04);
}

.quick-bar-chevron {
  width: 15px;
  height: 15px;
  color: #38bdf8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-bar-chevron.is-open {
  transform: rotate(180deg);
}

.quick-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}

.monitoring-quick-bar.is-collapsed .quick-bar-actions {
  display: none !important;
}

.monitoring-quick-bar.is-collapsed {
  padding: 8px 14px;
  margin-bottom: 12px;
}

/* ELEGANT EXECUTIVE BUTTONS */
.btn-executive {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  user-select: none;
}

.btn-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn-executive:hover .btn-icon-circle {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.24);
}

/* PRIMARY: IMPORT BUTTON (Sleek Royal Sky/Blue Gradient Glow) */
.btn-executive-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.5);
  box-shadow:
    0 4px 18px rgba(2, 132, 199, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.btn-executive-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.btn-executive-primary:hover::before {
  left: 150%;
  transition: left 0.75s ease-in-out;
}

.btn-executive-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 55%, #2563eb 100%);
  border-color: rgba(191, 219, 254, 0.85);
  transform: translateY(-2px);
  box-shadow:
    0 8px 26px rgba(2, 132, 199, 0.5),
    0 0 16px rgba(56, 189, 248, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.55);
}

.btn-executive-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* SECONDARY: TEMPLATE BUTTON (Sophisticated Obsidian Glass) */
.btn-executive-secondary {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.92));
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow:
    0 4px 14px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-executive-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.btn-executive-secondary:hover::before {
  left: 150%;
  transition: left 0.75s ease-in-out;
}

.btn-executive-secondary:hover {
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.9), rgba(30, 41, 59, 0.95));
  border-color: rgba(96, 165, 250, 0.65);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px rgba(2, 6, 23, 0.45),
    0 0 16px rgba(96, 165, 250, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.btn-executive-secondary:active {
  transform: translateY(0);
}

/* SETTINGS VIEW STYLING */
.settings-shortcuts-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.settings-nav-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.75) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.35);
}

.settings-nav-tile:hover {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.8) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.settings-nav-tile:active {
  transform: translateY(0);
}

.tile-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tile-icon-wrap.icon-blue {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.tile-icon-wrap.icon-purple {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.tile-icon-wrap.icon-cyan {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tile-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
}

.tile-text span {
  font-size: 0.78rem;
  color: #94a3b8;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
}

/* MEDIA SETTING CARDS (LOGO & BACKGROUND) */
.media-setting-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.7) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(2, 6, 23, 0.4);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.media-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.media-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.media-header-icon.icon-blue {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.media-header-icon.icon-purple {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.media-header-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.media-card-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.media-card-sub {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.media-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.media-preview-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 120px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px dashed rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.logo-preview-box {
  max-height: 85px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.bg-preview-box {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.preview-empty-hint {
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
  padding: 8px 14px;
  line-height: 1.4;
  user-select: none;
}

.preview-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.media-size-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-size-control label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.media-select-input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.media-select-input:focus,
.media-select-input:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.media-select-input option {
  background: #0f172a;
  color: #f1f5f9;
}

.media-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-slider-header label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.media-badge-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.18);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.media-badge-val.badge-blue {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.media-badge-val.badge-emerald {
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.media-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.25);
  outline: none;
  accent-color: #a855f7;
  cursor: pointer;
  transition: opacity 0.2s;
}

.media-range-slider.slider-blue {
  accent-color: #3b82f6;
}

.media-range-slider.slider-emerald {
  accent-color: #10b981;
}

.media-slider-hint {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
}

.media-card-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-media-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(96, 165, 250, 0.5);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-media-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.btn-media-primary:active {
  transform: translateY(1px);
}

.btn-media-danger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-media-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

.btn-media-danger:active {
  transform: translateY(1px);
}

/* DANGER ZONE CARD */
.danger-zone-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.12) 0%, rgba(69, 10, 10, 0.28) 100%);
  border: 1px solid rgba(248, 113, 113, 0.32);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  margin-top: 24px;
}

.danger-zone-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.danger-zone-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.danger-zone-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fecaca;
}

/* MODERN DANGER BUTTON (HAPUS SEMUA HISTORY & GLOBAL) */
.btn-danger-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(185, 28, 28, 0.28) 100%);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.45);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger-modern:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

.btn-danger-modern:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.btn-danger-large {
  padding: 12px 24px;
  font-size: 0.95rem;
  border-radius: 12px;
}

.btn-danger-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* MOBILE & RESPONSIVE DRAWER BREAKPOINT */
@media (max-width: 992px) {
  .hamburger-btn {
    display: flex;
  }

  .sidebar-close-btn {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .app-views-container {
    padding: 16px 14px 32px;
  }

  .topbar {
    padding: 12px 16px;
  }

  h1 {
    font-size: 1.4rem;
  }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.primary-btn,
.secondary-btn,
.table-btn,
.close-btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  background: rgba(96, 165, 250, 0.18);
  color: var(--white);
  border: 1px solid rgba(96, 165, 250, 0.45);
  padding: 10px 18px;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid var(--line);
  padding: 10px 18px;
}

.table-btn {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 0 11px;
  height: 28px;
  min-height: 28px;
  font-size: 0.71rem;
  font-weight: 700;
  border-radius: 6px;
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.edit-btn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 116, 144, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0 9px;
  min-width: 58px;
}

.edit-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(14, 116, 144, 0.45));
  border-color: rgba(125, 211, 252, 0.85);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.restore-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(180, 83, 9, 0.28));
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fef3c7;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0 9px;
  min-width: 68px;
}

.restore-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(180, 83, 9, 0.45));
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.btn-bulk-restore {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.24));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fef3c7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-bulk-restore:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(217, 119, 6, 0.4));
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.update-btn {
  min-width: 66px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.16);
  transition: all 0.2s ease;
}

.update-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.38), rgba(37, 99, 235, 0.48));
  border-color: rgba(125, 211, 252, 0.9);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.delete-btn {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.14), rgba(15, 23, 42, 0.75));
  border-color: rgba(248, 113, 113, 0.38);
  color: #fecaca;
}

.delete-ghost {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.primary-btn:hover,
.secondary-btn:hover,
.table-btn:hover,
.close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.refresh-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: refresh-spin 0.7s linear infinite;
}

@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.user-pill-name {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.8rem;
}

.role-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.role-badge-icon {
  flex-shrink: 0;
}

.role-badge-pill.role-super-admin {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22);
}

.role-badge-pill.role-admin {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.22);
}

.role-badge-pill.role-operator {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.22);
}

.role-badge-pill.role-client {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.22);
}

.summary-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(5, minmax(140px, 1fr));
  gap: 18px;
  margin: 18px 0 24px;
  padding: 18px 10px 8px;
  border-top: 1px solid rgba(96, 165, 250, 0.35);
  border-bottom: 1px solid rgba(96, 165, 250, 0.35);
}

/* 1. TOP GLOBAL STATS STRIP */
.summary-strip-global {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 8px;
}

.global-card {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(96, 165, 250, 0.32);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease;
  user-select: none;
}

/* Apple-style Glass Specular Reflection Layer */
.global-card::before,
.stuck-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 80%, transparent 100%);
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.25s ease, height 0.25s ease;
  z-index: 1;
}

.global-card:hover,
.stuck-card:hover {
  transform: translateY(-2px);
}

.global-card:hover::before,
.stuck-card:hover::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 80%, transparent 100%);
}

.global-card-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.global-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.global-card-number {
  font-size: 2rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.summary-strip-global .stat-icon {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Per-Card Themes for Top Global Cards */
.global-card.accent-indigo {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.45) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.2);
}
.global-card.accent-indigo:hover {
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.32);
}

.global-card.accent-green {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.45) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}
.global-card.accent-green:hover {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.32);
}

.global-card.accent-cyan {
  background: linear-gradient(135deg, rgba(8, 51, 68, 0.5) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2);
}
.global-card.accent-cyan:hover {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.32);
}

/* Global Cards Active Gloss State */
.global-card.is-active {
  transform: translateY(-3px) scale(1.015) !important;
}
.global-card.is-active::before {
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.08) 75%, transparent 100%);
}

.global-card.accent-indigo.is-active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.6) 0%, rgba(49, 46, 129, 0.55) 45%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #818cf8 !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), inset 0 0 20px rgba(129, 140, 248, 0.35), 0 0 0 3px rgba(129, 140, 248, 0.32), 0 14px 34px rgba(79, 70, 229, 0.45) !important;
}
.global-card.accent-indigo.is-active .global-card-number {
  text-shadow: 0 0 14px rgba(165, 180, 252, 0.8);
}
.global-card.accent-indigo.is-active .stat-icon {
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.6);
}

.global-card.accent-green.is-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.58) 0%, rgba(6, 78, 59, 0.55) 45%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #34d399 !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), inset 0 0 20px rgba(52, 211, 153, 0.35), 0 0 0 3px rgba(52, 211, 153, 0.32), 0 14px 34px rgba(16, 185, 129, 0.45) !important;
}
.global-card.accent-green.is-active .global-card-number {
  text-shadow: 0 0 14px rgba(110, 231, 183, 0.8);
}
.global-card.accent-green.is-active .stat-icon {
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.6);
}

.global-card.accent-cyan.is-active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.58) 0%, rgba(8, 51, 68, 0.55) 45%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), inset 0 0 20px rgba(56, 189, 248, 0.35), 0 0 0 3px rgba(56, 189, 248, 0.32), 0 14px 34px rgba(14, 165, 233, 0.45) !important;
}
.global-card.accent-cyan.is-active .global-card-number {
  text-shadow: 0 0 14px rgba(125, 211, 252, 0.8);
}
.global-card.accent-cyan.is-active .stat-icon {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

/* 2. COLLAPSIBLE STUCK DRAWER (NGUMPET / BUKA-TUTUP) */
.stuck-drawer-wrap {
  margin: 6px 0 16px;
}

.stuck-drawer-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.22);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(8px);
}

.stuck-drawer-toggle:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(96, 165, 250, 0.45);
}

.drawer-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  flex-shrink: 0;
}

.drawer-icon {
  width: 15px;
  height: 15px;
}

.drawer-toggle-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
}

.drawer-summary-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

.drawer-toggle-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.drawer-toggle-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
}

.drawer-chevron {
  width: 16px;
  height: 16px;
  color: #38bdf8;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-chevron.is-open {
  transform: rotate(180deg);
}

/* DRAWER EXPANDABLE CONTENT */
.stuck-drawer-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.25s ease;
}

.stuck-drawer-content.is-open {
  max-height: 800px;
  opacity: 1;
  margin-top: 10px;
}

.stuck-drawer-inner {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
}

/* SEGMENTED TAB SWITCHER (CENTERED & COMPACT ON LAPTOP) */
.stuck-tab-bar-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.stuck-tab-switcher {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 4px;
  gap: 6px;
  width: 100%;
  max-width: 440px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.stuck-tab-pill {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.77rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stuck-tab-pill:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.stuck-tab-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.3));
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.22);
}

.tab-pill-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tab-pill-tag {
  font-size: 0.67rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}

.tab-pill-tag.tag-amber {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tab-pill-tag.tag-slate {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

/* UNIFIED STUCK CARDS GRID (RESPONSIVE) */
.stuck-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  width: 100%;
}

/* Mode Prioritas: sembunyikan level 1-36 jam */
.stuck-cards-grid.mode-priority #card-1-12,
.stuck-cards-grid.mode-priority #card-12-24,
.stuck-cards-grid.mode-priority #card-24-36 {
  display: none !important;
}

/* Mode Prioritas: tampilkan 4 level kritis (>36 jam: 36-48, 48-60, 60-72, 72 UP) */
.stuck-cards-grid.mode-priority {
  grid-template-columns: repeat(4, 1fr);
}

/* Mode Semua Level: tampilkan semua 7 kartu */
.stuck-cards-grid.mode-all {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

@media (min-width: 1400px) {
  .stuck-cards-grid.mode-all {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 1024px) {
  .stuck-cards-grid.mode-priority {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stuck-cards-grid,
  .stuck-cards-grid.mode-priority,
  .stuck-cards-grid.mode-all {
    grid-template-columns: 1fr;
  }
}

/* BASE KARTU STUCK ELEGAN & GLOSS */
.stuck-card {
  position: relative;
  overflow: hidden;
  min-height: 92px !important;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 8px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease !important;
  user-select: none;
}

.stuck-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.stuck-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stuck-card-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.stuck-range-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stuck-card-metric {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-top: 2px;
}

.stuck-count-number {
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  transition: text-shadow 0.2s ease;
}

.stuck-card .stat-icon {
  position: relative;
  z-index: 2;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ============================================================
   LEVEL-SPECIFIC LUXURY COLOR THEMES & ACTIVE GLASS AURA
   ============================================================ */

/* 1. LEVEL 1: 1-12 Jam (TEAL / CYAN-MINT) */
.stuck-card.accent-teal {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.26) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.16);
}
.stuck-card.accent-teal .stuck-card-label {
  color: #2dd4bf;
}
.stuck-card.accent-teal .stuck-range-badge {
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.32);
}
.stuck-card.accent-teal:hover {
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.28);
}
.stuck-card.accent-teal.is-active {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.55) 0%, rgba(13, 148, 136, 0.38) 42%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #2dd4bf !important;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.65), inset 0 0 18px rgba(45, 212, 191, 0.35), 0 0 0 3px rgba(45, 212, 191, 0.32), 0 14px 34px rgba(13, 148, 136, 0.44) !important;
  transform: translateY(-3px) scale(1.015) !important;
}
.stuck-card.accent-teal.is-active .stuck-count-number {
  text-shadow: 0 0 14px rgba(94, 234, 212, 0.85);
}
.stuck-card.accent-teal.is-active .stat-icon {
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.65);
}

/* 2. LEVEL 2: 12-24 Jam (ELECTRIC BLUE) */
.stuck-card.accent-blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.16);
}
.stuck-card.accent-blue .stuck-card-label {
  color: #60a5fa;
}
.stuck-card.accent-blue .stuck-range-badge {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.32);
}
.stuck-card.accent-blue:hover {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.28);
}
.stuck-card.accent-blue.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.55) 0%, rgba(37, 99, 235, 0.38) 42%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #60a5fa !important;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.65), inset 0 0 18px rgba(96, 165, 250, 0.35), 0 0 0 3px rgba(96, 165, 250, 0.32), 0 14px 34px rgba(37, 99, 235, 0.44) !important;
  transform: translateY(-3px) scale(1.015) !important;
}
.stuck-card.accent-blue.is-active .stuck-count-number {
  text-shadow: 0 0 14px rgba(147, 197, 253, 0.85);
}
.stuck-card.accent-blue.is-active .stat-icon {
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.65);
}

/* 3. LEVEL 3: 24-36 Jam (ROYAL VIOLET / PURPLE) */
.stuck-card.accent-violet {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.16);
}
.stuck-card.accent-violet .stuck-card-label {
  color: #c084fc;
}
.stuck-card.accent-violet .stuck-range-badge {
  background: rgba(167, 139, 250, 0.14);
  color: #e9d5ff;
  border: 1px solid rgba(167, 139, 250, 0.32);
}
.stuck-card.accent-violet:hover {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.28);
}
.stuck-card.accent-violet.is-active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.55) 0%, rgba(109, 40, 217, 0.38) 42%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #c084fc !important;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.65), inset 0 0 18px rgba(167, 139, 250, 0.35), 0 0 0 3px rgba(167, 139, 250, 0.32), 0 14px 34px rgba(124, 58, 237, 0.44) !important;
  transform: translateY(-3px) scale(1.015) !important;
}
.stuck-card.accent-violet.is-active .stuck-count-number {
  text-shadow: 0 0 14px rgba(196, 181, 253, 0.85);
}
.stuck-card.accent-violet.is-active .stat-icon {
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.65);
}

/* 4. LEVEL 4: 48-60 Jam (GOLDEN AMBER) */
.stuck-card.accent-amber {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.26) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.18);
}
.stuck-card.accent-amber .stuck-card-label {
  color: #fbbf24;
}
.stuck-card.accent-amber .stuck-range-badge {
  background: rgba(251, 191, 36, 0.16);
  color: #fef08a;
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.stuck-card.accent-amber:hover {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}
.stuck-card.accent-amber.is-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.58) 0%, rgba(180, 83, 9, 0.38) 42%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.7), inset 0 0 18px rgba(251, 191, 36, 0.4), 0 0 0 3px rgba(251, 191, 36, 0.35), 0 14px 34px rgba(217, 119, 6, 0.48) !important;
  transform: translateY(-3px) scale(1.015) !important;
}
.stuck-card.accent-amber.is-active .stuck-count-number {
  text-shadow: 0 0 14px rgba(253, 230, 138, 0.9);
}
.stuck-card.accent-amber.is-active .stat-icon {
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.65);
}

/* 5. LEVEL 5: 48-60 Jam (WARM ORANGE) */
.stuck-card.accent-orange {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.26) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(251, 146, 60, 0.38);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.18);
}
.stuck-card.accent-orange .stuck-card-label {
  color: #fb923c;
}
.stuck-card.accent-orange .stuck-range-badge {
  background: rgba(251, 146, 60, 0.16);
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.4);
}
.stuck-card.accent-orange:hover {
  border-color: rgba(251, 146, 60, 0.7);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}
.stuck-card.accent-orange.is-active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.58) 0%, rgba(194, 65, 12, 0.38) 42%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #fb923c !important;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.7), inset 0 0 18px rgba(251, 146, 60, 0.4), 0 0 0 3px rgba(251, 146, 60, 0.35), 0 14px 34px rgba(234, 88, 12, 0.48) !important;
  transform: translateY(-3px) scale(1.015) !important;
}
.stuck-card.accent-orange.is-active .stuck-count-number {
  text-shadow: 0 0 14px rgba(254, 215, 170, 0.9);
}
.stuck-card.accent-orange.is-active .stat-icon {
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.65);
}

/* 6. LEVEL 6: 60-72 Jam (DEEP ORANGE / BURNT ORANGE) */
.stuck-card.accent-deep-orange {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.30) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(234, 88, 12, 0.42);
  box-shadow: 0 4px 16px rgba(194, 65, 12, 0.2);
}
.stuck-card.accent-deep-orange .stuck-card-label {
  color: #f97316;
}
.stuck-card.accent-deep-orange .stuck-range-badge {
  background: rgba(234, 88, 12, 0.20);
  color: #ffedd5;
  border: 1px solid rgba(234, 88, 12, 0.48);
}
.stuck-card.accent-deep-orange:hover {
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.32);
}
.stuck-card.accent-deep-orange.is-active {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.62) 0%, rgba(154, 52, 18, 0.42) 42%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #f97316 !important;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.7), inset 0 0 18px rgba(234, 88, 12, 0.45), 0 0 0 3px rgba(234, 88, 12, 0.35), 0 14px 34px rgba(194, 65, 12, 0.5) !important;
  transform: translateY(-3px) scale(1.015) !important;
}
.stuck-card.accent-deep-orange.is-active .stuck-count-number {
  text-shadow: 0 0 14px rgba(254, 215, 170, 0.9);
}
.stuck-card.accent-deep-orange.is-active .stat-icon {
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.7);
}

.stat-icon.icon-deep-orange {
  background: rgba(234, 88, 12, 0.16);
  color: #fb923c;
  border: 1px solid rgba(234, 88, 12, 0.35);
}

/* 7. LEVEL 7: 72 Jam UP (CRIMSON RED / EMERGENCY) */
.stuck-card.accent-red {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.28) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
}
.stuck-card.accent-red .stuck-card-label {
  color: #f87171;
}
.stuck-card.accent-red .stuck-range-badge {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.45);
}
.stuck-card.accent-red:hover {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.32);
}
.stuck-card.accent-red.is-active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.6) 0%, rgba(185, 28, 28, 0.4) 42%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 2px solid #f87171 !important;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.7), inset 0 0 20px rgba(248, 113, 113, 0.45), 0 0 0 3px rgba(248, 113, 113, 0.35), 0 14px 34px rgba(220, 38, 38, 0.5) !important;
  transform: translateY(-3px) scale(1.015) !important;
}
.stuck-card.accent-red.is-active .stuck-count-number {
  text-shadow: 0 0 14px rgba(254, 202, 202, 0.9);
}
.stuck-card.accent-red.is-active .stat-icon {
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.7);
}

.stat-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 18px;
  min-height: 116px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.05), 0 8px 20px rgba(2, 6, 23, 0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08), 0 16px 28px rgba(2, 6, 23, 0.38);
}

.stat-card.is-active {
  transform: translateY(-3px);
  border-width: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 3px rgba(255, 255, 255, 0.08), 0 18px 34px rgba(2, 6, 23, 0.42);
}

.stat-card.is-active .stat-copy span {
  color: #f8fafc;
}

.accent-indigo.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px rgba(96,165,250,.2), 0 18px 34px rgba(37,99,235,.2); }
.accent-green.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px rgba(74,222,128,.2), 0 18px 34px rgba(22,163,74,.18); }
.accent-amber.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px rgba(251,191,36,.2), 0 18px 34px rgba(202,138,4,.18); }
.accent-orange.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px rgba(251,146,60,.2), 0 18px 34px rgba(234,88,12,.18); }
.accent-red.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px rgba(248,113,113,.22), 0 18px 34px rgba(220,38,38,.2); }
.accent-cyan.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px rgba(103,232,249,.2), 0 18px 34px rgba(8,145,178,.18); }

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  line-height: 1;
}

.icon-purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(91, 33, 182, 0.6)); color: #e9d5ff; }
.icon-green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(21, 128, 61, 0.6)); color: #d1fae5; }
.icon-amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.26), rgba(202, 138, 4, 0.6)); color: #fef3c7; }
.icon-orange { background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(194, 65, 12, 0.6)); color: #fed7aa; }
.icon-red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(153, 27, 27, 0.65)); color: #fecaca; }
.icon-cyan { background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(8, 145, 178, 0.5)); color: #cffafe; }

.stat-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.stat-copy span {
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: none;
  font-weight: 500;
}

.stat-copy strong {
  font-size: clamp(1.6rem, 1.9vw, 2rem);
  line-height: 1;
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-feature {
  min-height: 118px;
}

.stat-mini {
  min-height: 118px;
}

.accent-indigo { border-color: rgba(96, 165, 250, 0.8); }
.accent-green { border-color: rgba(74, 222, 128, 0.7); }
.accent-amber { border-color: rgba(251, 191, 36, 0.7); }
.accent-orange { border-color: rgba(251, 146, 60, 0.7); }
.accent-red { border-color: rgba(248, 113, 113, 0.7); }
.accent-cyan { border-color: rgba(103, 232, 249, 0.7); }
.accent-teal { border-color: rgba(45, 212, 191, 0.7); }
.accent-blue { border-color: rgba(96, 165, 250, 0.7); }
.accent-violet { border-color: rgba(167, 139, 250, 0.7); }

.accent-teal.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px rgba(45,212,191,.22), 0 18px 34px rgba(13,148,136,.2); }
.accent-blue.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px rgba(96,165,250,.22), 0 18px 34px rgba(37,99,235,.2); }
.accent-violet.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px rgba(167,139,250,.22), 0 18px 34px rgba(124,58,237,.2); }

.icon-teal { background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(13, 148, 136, 0.6)); color: #ccfbf1; }
.icon-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(29, 78, 216, 0.6)); color: #dbeafe; }
.icon-violet { background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(109, 40, 217, 0.6)); color: #ede9fe; }

.stat-svg {
  width: 19px;
  height: 19px;
  display: block;
}

@media (max-width: 1100px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .panel-actions input,
  .panel-actions select {
    flex: 1 1 180px;
  }
}

@media (max-width: 680px) {
  body {
    padding: 0;
    overflow-x: hidden;
  }

  .app-layout,
  .app-main-layout {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
    min-height: unset;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .hamburger-btn {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    border-radius: 9px;
  }

  .topbar-left > div {
    min-width: 0;
    overflow: hidden;
  }

  .topbar-left .eyebrow {
    display: none;
  }

  .topbar-left h1 {
    font-size: clamp(0.82rem, 3.4vw, 0.95rem);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .user-pill {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    max-width: none !important;
  }

  .user-pill .user-pill-name {
    display: none !important;
  }

  .topbar-actions #logoutBtn {
    display: none !important;
  }

  .topbar-actions #refreshBtn {
    height: 26px;
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.7rem;
    border-radius: 7px;
    flex-shrink: 0;
  }

  .auto-refresh-toggle-btn {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 8px !important;
    font-size: 0.68rem !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
    gap: 5px !important;
  }

  .app-views-container {
    padding: 12px 10px 32px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
    padding: 12px 0 6px;
  }

  .summary-strip-global {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 6px 0 10px !important;
  }

  .global-card {
    min-height: 58px !important;
    padding: 7px 7px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  .global-card-info {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    gap: 1px !important;
  }

  .global-card-title {
    font-size: 0.62rem !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .global-card-number {
    font-size: clamp(0.92rem, 3.8vw, 1.12rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  .summary-strip-global .stat-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
  }

  .summary-strip-global .stat-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  /* DRAWER TOGGLE ON MOBILE (ZERO OVERLAP / ZERO COLLISION) */
  .stuck-drawer-wrap {
    margin: 4px 0 10px !important;
  }

  .stuck-drawer-toggle {
    padding: 8px 12px !important;
    border-radius: 12px !important;
  }

  .drawer-toggle-left {
    gap: 6px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  .drawer-icon-box {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 6px !important;
  }

  .drawer-icon {
    width: 13px !important;
    height: 13px !important;
  }

  .drawer-toggle-title {
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .drawer-summary-badge {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    flex-shrink: 0 !important;
  }

  .drawer-toggle-right {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  /* Sembunyikan teks label di mobile agar tidak menabrak badge */
  .drawer-toggle-label {
    display: none !important;
  }

  .drawer-chevron {
    width: 16px !important;
    height: 16px !important;
  }

  /* TAB SWITCHER ON MOBILE */
  .stuck-drawer-inner {
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 14px !important;
  }

  .stuck-tab-switcher {
    padding: 3px !important;
    gap: 4px !important;
    border-radius: 10px !important;
    max-width: 100% !important;
  }

  .stuck-tab-pill {
    padding: 6px 8px !important;
    font-size: 0.7rem !important;
    gap: 5px !important;
    border-radius: 8px !important;
  }

  .tab-pill-icon {
    width: 13px !important;
    height: 13px !important;
  }

  .tab-pill-tag {
    font-size: 0.6rem !important;
    padding: 1px 5px !important;
  }

  /* 6 STUCK CARDS GRID ON MOBILE (COMPACT & CLEAN) */
  .stuck-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .stuck-card {
    min-height: 68px !important;
    padding: 8px 8px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  /* Hindari scale di mobile agar tidak menimpa kartu di sebelahnya */
  .stuck-card.is-active,
  .global-card.is-active {
    transform: translateY(-2px) !important;
  }

  .stuck-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 2px !important;
  }

  .stuck-card-title-group {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  .stuck-card-label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 1.2 !important;
  }

  .stuck-range-badge {
    display: none !important;
  }

  .stuck-card-metric {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: 0 !important;
    gap: 2px !important;
  }

  .stuck-count-number {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    min-width: 0 !important;
  }

  .stuck-card .stat-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 6px !important;
  }

  .stuck-card .stat-icon svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* OPERASIONAL DATA (QUICK BAR) ON MOBILE */
  .monitoring-quick-bar {
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    gap: 10px !important;
  }

  .quick-bar-header {
    min-height: 28px !important;
    cursor: pointer !important;
  }

  .quick-bar-label {
    font-size: 0.74rem !important;
  }

  .quick-bar-toggle-text {
    display: none !important;
  }

  .quick-bar-toggle-btn {
    padding: 3px 8px !important;
    padding: 4px 6px !important;
    min-width: 26px !important;
    height: 26px !important;
    justify-content: center !important;
    font-size: 0.7rem !important;
  }

  .quick-bar-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .monitoring-quick-bar .btn-executive {
    width: 100% !important;
    justify-content: center !important;
    padding: 9px 14px !important;
    font-size: 0.8rem !important;
  }

  .stat-card,
  .stat-feature,
  .stat-mini {
    min-height: 82px;
    padding: 11px 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .stat-copy span { font-size: 0.6rem; }
  .stat-copy strong { font-size: 1.35rem; }

  .admin-panel,
  .panel {
    border-radius: 14px;
  }

  .admin-panel {
    padding: 12px 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 14px;
  }

  .admin-toolbar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .admin-toolbar-title-wrap {
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .admin-toolbar-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .admin-toolbar-title {
    font-size: 1.05rem;
    word-break: break-word;
    line-height: 1.25;
  }

  .admin-toolbar-badge-modern {
    padding: 4px 10px;
    font-size: 0.7rem;
    align-self: flex-start;
  }

  .settings-shortcuts-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
    width: 100%;
  }

  .settings-nav-tile {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .media-setting-card {
    padding: 14px 12px;
    border-radius: 14px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .media-card-header {
    gap: 10px;
  }

  .media-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .media-card-header h4 {
    font-size: 0.92rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .media-card-sub {
    font-size: 0.74rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .media-preview-container {
    width: 100%;
    height: 105px;
    padding: 6px;
    box-sizing: border-box;
  }

  .preview-badge {
    bottom: 6px;
    right: 6px;
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .media-slider-header label {
    font-size: 0.74rem;
  }

  .media-badge-val {
    font-size: 0.72rem;
    padding: 1px 6px;
  }

  .media-slider-hint {
    font-size: 0.64rem;
    gap: 2px;
    overflow: hidden;
  }

  .media-slider-hint span {
    white-space: nowrap;
  }

  .media-card-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .media-card-controls button {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .admin-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-toolbar-actions button {
    min-height: 44px;
    padding: 9px 8px;
    font-size: 0.78rem;
  }

  .logo-admin-section {
    margin-top: 14px;
    padding-top: 12px;
  }

  .logo-admin-actions {
    gap: 10px;
  }

  .logo-preview {
    width: 48px;
    height: 48px;
  }

  .panel-header,
  .panel-actions {
    gap: 10px;
  }

  .panel-actions input:not([type="checkbox"]),
  .panel-actions select,
  .panel-actions button {
    width: 100%;
    min-height: 42px;
  }

  .panel-actions .checkbox-inline {
    width: auto;
    min-height: 0;
  }

  .panel-actions .checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
  }

  .table-pagination {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .pagination-controls {
    width: 100%;
  }

  .pagination-controls label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 4px;
  }

  .pagination-controls select {
    flex: 1;
  }
}

.panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.72));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.admin-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(8, 47, 73, 0.36));
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 18px;
  padding: 18px 18px 14px;
  margin-top: 24px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.admin-toolbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #dbeafe;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  flex-wrap: wrap;
}

.admin-toolbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-toolbar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.admin-toolbar-icon-box:hover {
  transform: scale(1.05) rotate(15deg);
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.admin-toolbar-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-toolbar-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #60a5fa;
  text-transform: uppercase;
}

.admin-toolbar-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.admin-toolbar-badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.admin-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 2s ease-in-out infinite;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding-top: 2px;
}

.admin-toolbar-actions button {
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(2, 6, 23, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-toolbar-actions button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px rgba(30, 64, 175, 0.2);
}

.logo-admin-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.logo-admin-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.logo-admin-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.logo-preview {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  padding: 6px;
}

.danger-ghost-btn {
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.danger-ghost-btn:hover {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.45);
}

.bg-preview {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
}

.admin-primary-btn {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(30, 64, 175, 0.28));
  color: #eff6ff;
  border: 1px solid rgba(147, 197, 253, 0.72);
}

.admin-secondary-btn {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.72));
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.34);
}

.admin-secondary-btn.active {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.9);
  color: #dbeafe;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.22), 0 8px 22px rgba(37, 99, 235, 0.15);
}

.admin-danger-btn {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.24), rgba(69, 10, 10, 0.22));
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.5);
}

.admin-success-btn {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.24), rgba(6, 50, 42, 0.2));
  color: #d1fae5;
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.btn-icon {
  margin-right: 8px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(15, 23, 42, 0.36);
}

.panel-header h2 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.panel-header input,
.filter-select,
.form-grid input,
.form-grid select {
  width: min(320px, 100%);
  background: rgba(15, 23, 42, 0.9);
  color: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.panel-header input:focus,
.filter-select:focus,
.form-grid input:focus,
.form-grid select:focus {
  border-color: rgba(96, 165, 250, 0.68);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 12px;
  padding: 4px;
}

.read-only-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.audit-panel {
  margin-top: 24px;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.2);
}

.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}

.pagination-controls select {
  background: rgba(15, 23, 42, 0.9);
  color: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 6px 8px;
}

.bulk-action-manual {
  min-width: 190px;
  flex: 1 1 190px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.filter-select.input-error,
.bulk-action-manual.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  animation: shake 0.32s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  cursor: pointer;
}

.page-btn.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: white;
}

.page-ellipsis {
  padding: 0 2px;
  color: var(--muted);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
  background: rgba(15, 23, 42, 0.16);
}

th, td {
  padding: 9.5px 13px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  vertical-align: middle;
  font-size: 0.82rem;
  line-height: 1.38;
}

th {
  background: rgba(148, 163, 184, 0.04);
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 10px 13px;
  white-space: nowrap;
}

/* TABLE ROW URGENCIES (MATCHING LEVEL CARD THEMES) */
tbody tr {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.16));
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

/* Level 1: 1-12 Jam (Teal) */
tbody tr.urgency-1-12 {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.12) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.2) 100%) !important;
}
tbody tr.urgency-1-12:hover {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.22) 0%, rgba(20, 184, 166, 0.1) 60%, rgba(15, 23, 42, 0.3) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.25) !important;
}

/* Level 2: 12-24 Jam (Electric Blue) */
tbody tr.urgency-12-24 {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.2) 100%) !important;
}
tbody tr.urgency-12-24:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.22) 0%, rgba(59, 130, 246, 0.1) 60%, rgba(15, 23, 42, 0.3) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25) !important;
}

/* Level 3: 24-36 Jam (Royal Violet / Purple) */
tbody tr.urgency-24-36 {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.14) 0%, rgba(15, 23, 42, 0.42) 60%, rgba(15, 23, 42, 0.2) 100%) !important;
}
tbody tr.urgency-24-36:hover {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.25) 0%, rgba(167, 139, 250, 0.12) 60%, rgba(15, 23, 42, 0.32) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.3) !important;
}

/* Level 4: 36-48 Jam (Golden Amber) */
tbody tr.urgency-36-48 {
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.14) 0%, rgba(15, 23, 42, 0.42) 60%, rgba(15, 23, 42, 0.2) 100%) !important;
}
tbody tr.urgency-36-48:hover {
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.25) 0%, rgba(245, 158, 11, 0.12) 60%, rgba(15, 23, 42, 0.32) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3) !important;
}

/* Level 5: 48-60 Jam (Warm Orange) */
tbody tr.urgency-48-60 {
  background: linear-gradient(90deg, rgba(234, 88, 12, 0.15) 0%, rgba(15, 23, 42, 0.42) 60%, rgba(15, 23, 42, 0.2) 100%) !important;
}
tbody tr.urgency-48-60:hover {
  background: linear-gradient(90deg, rgba(234, 88, 12, 0.26) 0%, rgba(249, 115, 22, 0.12) 60%, rgba(15, 23, 42, 0.32) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.3) !important;
}

/* Level 6: 60-72 Jam (Deep Orange / Burnt Orange) */
tbody tr.urgency-48-72,
tbody tr.urgency-60-72 {
  background: linear-gradient(90deg, rgba(194, 65, 12, 0.16) 0%, rgba(15, 23, 42, 0.44) 60%, rgba(15, 23, 42, 0.2) 100%) !important;
}
tbody tr.urgency-48-72:hover,
tbody tr.urgency-60-72:hover {
  background: linear-gradient(90deg, rgba(194, 65, 12, 0.28) 0%, rgba(234, 88, 12, 0.14) 60%, rgba(15, 23, 42, 0.32) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.35) !important;
}

/* Level 7: 72 Jam UP (Crimson Red) */
tbody tr.urgency-72-up {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.16) 0%, rgba(15, 23, 42, 0.45) 60%, rgba(15, 23, 42, 0.2) 100%) !important;
}
tbody tr.urgency-72-up:hover {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.28) 0%, rgba(239, 68, 68, 0.14) 60%, rgba(15, 23, 42, 0.35) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35) !important;
}

/* Updated Row */
tbody tr.is-updated {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.2) 100%) !important;
}
tbody tr.is-updated:hover {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.24) 0%, rgba(52, 211, 153, 0.12) 60%, rgba(15, 23, 42, 0.3) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3) !important;
}

/* Left Indicator Stripe per Level */
.monitoring-table tbody tr.urgency-1-12 td:first-child::before,
.archive-table tbody tr.urgency-1-12 td:first-child::before {
  background: #2dd4bf !important;
  opacity: 1 !important;
  width: 3.5px !important;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.85) !important;
}

.monitoring-table tbody tr.urgency-12-24 td:first-child::before,
.archive-table tbody tr.urgency-12-24 td:first-child::before {
  background: #60a5fa !important;
  opacity: 1 !important;
  width: 3.5px !important;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.85) !important;
}

.monitoring-table tbody tr.urgency-24-36 td:first-child::before,
.archive-table tbody tr.urgency-24-36 td:first-child::before {
  background: #c084fc !important;
  opacity: 1 !important;
  width: 3.5px !important;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.9) !important;
}

.monitoring-table tbody tr.urgency-36-48 td:first-child::before,
.archive-table tbody tr.urgency-36-48 td:first-child::before {
  background: #fbbf24 !important;
  opacity: 1 !important;
  width: 3.5px !important;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.9) !important;
}

.monitoring-table tbody tr.urgency-48-60 td:first-child::before,
.archive-table tbody tr.urgency-48-60 td:first-child::before {
  background: #fb923c !important;
  opacity: 1 !important;
  width: 3.5px !important;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.9) !important;
}

.monitoring-table tbody tr.urgency-48-72 td:first-child::before,
.monitoring-table tbody tr.urgency-60-72 td:first-child::before,
.archive-table tbody tr.urgency-48-72 td:first-child::before,
.archive-table tbody tr.urgency-60-72 td:first-child::before {
  background: #f97316 !important;
  opacity: 1 !important;
  width: 3.5px !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.9) !important;
}

.monitoring-table tbody tr.urgency-72-up td:first-child::before,
.archive-table tbody tr.urgency-72-up td:first-child::before {
  background: #f87171 !important;
  opacity: 1 !important;
  width: 3.5px !important;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.95) !important;
}

.monitoring-table tbody tr.is-updated td:first-child::before,
.archive-table tbody tr.is-updated td:first-child::before {
  background: #34d399 !important;
  opacity: 1 !important;
  width: 3.5px !important;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9) !important;
}

tbody tr:hover {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.07), rgba(15, 23, 42, 0.24));
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

tbody tr:last-child td {
  border-bottom: none;
}

.monitoring-table tbody td:first-child,
.archive-table tbody td:first-child {
  position: relative;
}

.monitoring-table tbody td:first-child::before,
.archive-table tbody td:first-child::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 2.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.9), rgba(96, 165, 250, 0.15));
}

.monitoring-table tbody td:first-child,
.monitoring-table thead th:first-child,
.archive-table tbody td:first-child,
.archive-table thead th:first-child,
.user-table tbody td:first-child,
.user-table thead th:first-child {
  padding-left: 14px;
  padding-right: 8px;
  width: 40px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #dbeafe;
  white-space: nowrap;
  line-height: 1.25;
}

/* STUCK BADGES (VIBRANT & MATCHING CARD LEVEL THEMES) */
.badge-stuck {
  white-space: nowrap !important;
  padding: 3px 9px !important;
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  border-radius: 999px !important;
  transition: all 0.2s ease;
}

/* Level 1: 1-12 Jam (Teal / Mint) */
tbody tr.urgency-1-12 .badge-stuck {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.24), rgba(20, 184, 166, 0.38)) !important;
  border: 1px solid rgba(45, 212, 191, 0.55) !important;
  color: #5eead4 !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3) !important;
  font-weight: 800 !important;
}

/* Level 2: 12-24 Jam (Electric Blue) */
tbody tr.urgency-12-24 .badge-stuck {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(59, 130, 246, 0.38)) !important;
  border: 1px solid rgba(96, 165, 250, 0.55) !important;
  color: #93c5fd !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
  font-weight: 800 !important;
}

/* Level 3: 24-36 Jam (Royal Violet / Purple) */
tbody tr.urgency-24-36 .badge-stuck {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.26), rgba(167, 139, 250, 0.42)) !important;
  border: 1px solid rgba(192, 132, 252, 0.6) !important;
  color: #f3e8ff !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35) !important;
  font-weight: 800 !important;
}

/* Level 4: 36-48 Jam (Golden Amber) */
tbody tr.urgency-36-48 .badge-stuck {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.26), rgba(245, 158, 11, 0.42)) !important;
  border: 1px solid rgba(251, 191, 36, 0.6) !important;
  color: #fef08a !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35) !important;
  font-weight: 800 !important;
}

/* Level 5: 48-60 Jam (Warm Orange) */
tbody tr.urgency-48-60 .badge-stuck {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.26), rgba(249, 115, 22, 0.42)) !important;
  border: 1px solid rgba(251, 146, 60, 0.6) !important;
  color: #fed7aa !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35) !important;
  font-weight: 800 !important;
}

/* Level 6: 60-72 Jam (Deep Orange / Burnt Orange) */
tbody tr.urgency-48-72 .badge-stuck,
tbody tr.urgency-60-72 .badge-stuck {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.28), rgba(234, 88, 12, 0.45)) !important;
  border: 1px solid rgba(249, 115, 22, 0.65) !important;
  color: #ffedd5 !important;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.38) !important;
  font-weight: 800 !important;
}

/* Level 7: 72 Jam UP (Crimson Red) */
tbody tr.urgency-72-up .badge-stuck {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(239, 68, 68, 0.45)) !important;
  border: 1px solid rgba(248, 113, 113, 0.65) !important;
  color: #fecaca !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
  font-weight: 800 !important;
}

/* Waybill number text color matching level */
tbody tr.urgency-1-12 .col-waybill strong { color: #f0fdfa !important; }
tbody tr.urgency-12-24 .col-waybill strong { color: #eff6ff !important; }
tbody tr.urgency-24-36 .col-waybill strong { color: #faf5ff !important; }
tbody tr.urgency-36-48 .col-waybill strong { color: #fefce8 !important; }
tbody tr.urgency-48-60 .col-waybill strong { color: #fff7ed !important; }
tbody tr.urgency-48-72 .col-waybill strong,
tbody tr.urgency-60-72 .col-waybill strong { color: #fed7aa !important; }
tbody tr.urgency-72-up .col-waybill strong { color: #fef2f2 !important; }

.search-highlight {
  padding: 0;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
}

tbody tr.urgency-1-12 .search-highlight {
  background: rgba(20, 184, 166, 0.35);
  color: #ccfbf1;
}

tbody tr.urgency-12-24 .search-highlight {
  background: rgba(59, 130, 246, 0.35);
  color: #dbeafe;
}

tbody tr.urgency-24-36 .search-highlight {
  background: rgba(139, 92, 246, 0.35);
  color: #f3e8ff;
}

tbody tr.urgency-48-60 .search-highlight {
  background: rgba(234, 179, 8, 0.34);
  color: #fef08a;
}

tbody tr.urgency-48-72 .search-highlight,
tbody tr.urgency-60-72 .search-highlight {
  background: rgba(249, 115, 22, 0.34);
  color: #fed7aa;
}

tbody tr.urgency-72-up .search-highlight {
  background: rgba(239, 68, 68, 0.36);
  color: #fecaca;
}

tbody tr.is-updated .search-highlight {
  background: rgba(16, 185, 129, 0.34);
  color: #a7f3d0;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.25;
}

.status.open {
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.status.pending {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.status.sudah-diupdate {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.status.sudah-scan-kirim {
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.status.closed {
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
}

/* Compact Desktop Table Specifics */
.monitoring-table .action-group,
.archive-table .action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.monitoring-table .read-only-label,
.archive-table .read-only-label {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 0.71rem;
  line-height: 1.2;
}

/* Selected Row Highlight (Desktop) */
tbody tr.is-selected,
tbody tr:has(.monitoring-select-checkbox:checked),
tbody tr:has(.archive-select-checkbox:checked) {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.22), rgba(15, 23, 42, 0.5)) !important;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.5) !important;
}

tbody tr.is-selected td:first-child::before,
tbody tr:has(.monitoring-select-checkbox:checked) td:first-child::before,
tbody tr:has(.archive-select-checkbox:checked) td:first-child::before {
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981;
}

/* Custom Cyber Checkbox Styling */
.col-check {
  width: 40px;
  text-align: center;
  vertical-align: middle;
}

/* Global Cyber Checkbox Component */
.col-check input[type="checkbox"],
thead th input[type="checkbox"],
.checkbox-inline input[type="checkbox"],
.monitoring-select-checkbox,
.archive-select-checkbox,
.user-select-checkbox,
.audit-select-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 6px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.25) !important;
  cursor: pointer !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  outline: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Checkbox Hover */
.col-check input[type="checkbox"]:hover,
thead th input[type="checkbox"]:hover,
.checkbox-inline input[type="checkbox"]:hover,
.monitoring-select-checkbox:hover,
.archive-select-checkbox:hover,
.user-select-checkbox:hover,
.audit-select-checkbox:hover {
  border-color: #38bdf8 !important;
  background: rgba(15, 23, 42, 1) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45), inset 0 1.5px 3px rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.08) !important;
}

/* Checkbox Checked: Cyber Emerald Glow with crisp SVG Checkmark */
.col-check input[type="checkbox"]:checked,
thead th input[type="checkbox"]:checked,
.checkbox-inline input[type="checkbox"]:checked,
.monitoring-select-checkbox:checked,
.archive-select-checkbox:checked,
.user-select-checkbox:checked,
.audit-select-checkbox:checked {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 12px 12px !important;
  transform: scale(1.05) !important;
}

/* Checkbox Indeterminate: Cyan Bar */
.col-check input[type="checkbox"]:indeterminate,
thead th input[type="checkbox"]:indeterminate {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 3.5 8z'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 12px 12px !important;
}

/* Active / Press */
.col-check input[type="checkbox"]:active,
thead th input[type="checkbox"]:active {
  transform: scale(0.92) !important;
}

.col-waybill {
  white-space: nowrap;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.col-tanggal,
.col-outlet,
.col-tlc,
.col-stuck,
.col-status,
.col-aksi,
.col-updated,
.col-aksi-text {
  white-space: nowrap;
}

.col-barang {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.col-barang .cell-value {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.status-overview {
  border-top: 1px solid var(--line);
  padding: 18px 20px 20px;
}

.status-overview-header h3 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.status-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-row {
  display: grid;
  grid-template-columns: 110px minmax(120px, 1fr) 48px;
  align-items: center;
  gap: 10px;
}

.chart-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.chart-track {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  border-radius: 999px;
}

.chart-bar.open { background: linear-gradient(90deg, #34d399, #10b981); }
.chart-bar.pending { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.chart-bar.closed { background: linear-gradient(90deg, #60a5fa, #3b82f6); }

.chart-percent {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.audit-detail-content {
  color: var(--text);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.detail-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.detail-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-json {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.detail-json h4 {
  margin: 0 0 12px;
}

.detail-json pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  color: #dbeafe;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px;
}

.empty-state.error {
  color: #fca5a5;
}

@media (max-width: 768px) {
  .quick-bar-toggle-text {
    display: none !important;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .panel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .chart-row {
    grid-template-columns: 90px minmax(100px, 1fr) 42px;
  }
}

@media (max-width: 1100px) {
  .table-wrap {
    overflow: visible;
  }

  .monitoring-table,
  .archive-table {
    min-width: 0;
    display: block;
    background: transparent;
  }

  .monitoring-table thead,
  .archive-table thead {
    display: none;
  }

  .monitoring-table tbody,
  .archive-table tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 2px;
  }

  .monitoring-table tbody tr,
  .archive-table tbody tr {
    display: grid;
    grid-template-columns: 28px auto 1fr auto;
    align-items: center;
    gap: 5px 4px;
    padding: 9px 9px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.35);
  }

  .monitoring-table tbody tr.urgency-1-12,
  .archive-table tbody tr.urgency-1-12 {
    border-color: rgba(45, 212, 191, 0.35);
    background: linear-gradient(145deg, rgba(19, 78, 74, 0.18), rgba(15, 23, 42, 0.85));
  }
  .monitoring-table tbody tr.urgency-12-24,
  .archive-table tbody tr.urgency-12-24 {
    border-color: rgba(96, 165, 250, 0.35);
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.18), rgba(15, 23, 42, 0.85));
  }
  .monitoring-table tbody tr.urgency-24-36,
  .archive-table tbody tr.urgency-24-36 {
    border-color: rgba(167, 139, 250, 0.35);
    background: linear-gradient(145deg, rgba(76, 29, 149, 0.18), rgba(15, 23, 42, 0.85));
  }

  .monitoring-table tbody tr.urgency-48-60,
  .archive-table tbody tr.urgency-48-60 {
    border-color: rgba(234, 179, 8, 0.48);
    background: linear-gradient(145deg, rgba(120, 83, 5, 0.2), rgba(15, 23, 42, 0.85));
  }
  .monitoring-table tbody tr.urgency-48-72,
  .monitoring-table tbody tr.urgency-60-72,
  .archive-table tbody tr.urgency-48-72,
  .archive-table tbody tr.urgency-60-72 {
    border-color: rgba(249, 115, 22, 0.5);
    background: linear-gradient(145deg, rgba(124, 52, 8, 0.22), rgba(15, 23, 42, 0.85));
  }
  .monitoring-table tbody tr.urgency-72-up,
  .archive-table tbody tr.urgency-72-up {
    border-color: rgba(239, 68, 68, 0.52);
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.24), rgba(15, 23, 42, 0.85));
  }

  .monitoring-table tbody tr.is-updated,
  .archive-table tbody tr.is-updated {
    border-color: rgba(52, 211, 153, 0.5);
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.25), rgba(15, 23, 42, 0.85));
  }

  /* Reset default td styles in card layout */
  .monitoring-table tbody td,
  .archive-table tbody td {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .monitoring-table tbody td:first-child,
  .archive-table tbody td:first-child {
    padding: 0 !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
  }

  .monitoring-table tbody td::before,
  .archive-table tbody td::before,
  .monitoring-table tbody td::after,
  .archive-table tbody td::after {
    display: none;
  }

  .monitoring-table tbody td .cell-value,
  .archive-table tbody td .cell-value {
    min-width: 0;
    grid-column: unset;
  }

  /* KARTU TERPILIH: Berubah jadi Hijau Emerald Glowing */
  .monitoring-table tbody tr.is-selected,
  .monitoring-table tbody tr:has(.monitoring-select-checkbox:checked),
  .archive-table tbody tr.is-selected,
  .archive-table tbody tr:has(.archive-select-checkbox:checked) {
    border-color: rgba(52, 211, 153, 0.8) !important;
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.52), rgba(15, 23, 42, 0.94)) !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3) !important;
  }

  .monitoring-table tbody tr.is-selected td:first-child::before,
  .monitoring-table tbody tr:has(.monitoring-select-checkbox:checked) td:first-child::before,
  .archive-table tbody tr.is-selected td:first-child::before,
  .archive-table tbody tr:has(.archive-select-checkbox:checked) td:first-child::before {
    background: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9) !important;
  }

  .monitoring-table tbody tr.is-selected .col-check input[type="checkbox"]:checked,
  .monitoring-table tbody tr:has(.monitoring-select-checkbox:checked) .col-check input[type="checkbox"]:checked,
  .archive-table tbody tr.is-selected .col-check input[type="checkbox"]:checked,
  .archive-table tbody tr:has(.archive-select-checkbox:checked) .col-check input[type="checkbox"]:checked {
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    border-color: #6ee7b7 !important;
  }

  /* BARIS 1: Checkbox + Waybill rapat (kiri) & Badge Stuck (kanan) */
  .col-check {
    grid-column: 1;
    grid-row: 1;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
  }
  .col-check input[type="checkbox"] {
    width: 19px !important;
    height: 19px !important;
    border-radius: 6px !important;
    cursor: pointer;
    margin: 0 !important;
  }

  .col-waybill {
    grid-column: 2 / 4;
    grid-row: 1;
    font-size: 0.79rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .col-waybill .cell-value {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
  }

  .col-stuck {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
  }
  .col-stuck .badge-stuck,
  .col-stuck .badge {
    font-size: 0.63rem !important;
    padding: 2px 5px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  /* BARIS 2: Rute Outlet ➔ TLC (kiri) & Tanggal (kanan) */
  .col-outlet {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 1px;
    white-space: nowrap;
  }
  .col-outlet::before {
    content: "🏢 ";
    font-size: 0.72rem;
    opacity: 0.85;
    display: inline-block;
  }

  .col-tlc {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    padding-top: 1px;
    white-space: nowrap;
    margin-left: -2px;
  }
  .col-tlc::before {
    content: "➔ ";
    color: #38bdf8;
    font-weight: 900;
    margin-right: 3px;
    display: inline-block;
  }

  .archive-table .col-outlet {
    grid-column: 1 / 4;
  }

  .col-tanggal {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
    font-size: 0.74rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 1px;
    white-space: nowrap;
  }
  .col-tanggal::before {
    content: "📅 ";
    font-size: 0.7rem;
    opacity: 0.85;
    display: inline-block;
  }

  /* BARIS 3: Nama Barang / Aksi (kiri) & Status Badge (kanan) */
  .col-barang,
  .col-aksi-text {
    grid-column: 1 / 4;
    grid-row: 3;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 2px;
    margin: 2px 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.12);
    border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.38;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
    border-radius: 6px;
    max-width: 100% !important;
    min-width: 0;
  }

  .col-barang:active,
  .col-aksi-text:active {
    background: rgba(96, 165, 250, 0.1);
  }

  .col-barang::before {
    content: "📦 ";
    font-size: 0.76rem;
    opacity: 0.85;
    flex-shrink: 0;
    display: inline-block;
    margin-top: 1px;
  }

  .col-barang .cell-value,
  .col-aksi-text .cell-value {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    flex: 1;
    min-width: 0;
    max-width: 100% !important;
  }

  .col-barang::after,
  .col-aksi-text::after {
    content: "▾";
    font-size: 0.72rem;
    color: #64748b;
    opacity: 0.75;
    margin-left: auto;
    padding-left: 6px;
    align-self: flex-start;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  /* KETIKA DI-TAP / DI-KLIK: MEKAR LENGKAP */
  .col-barang.is-expanded,
  .col-aksi-text.is-expanded {
    background: rgba(15, 30, 60, 0.6);
    padding: 6px 6px;
    border-color: rgba(96, 165, 250, 0.35);
  }

  .col-barang.is-expanded .cell-value,
  .col-aksi-text.is-expanded .cell-value {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    color: #f8fafc;
  }

  .col-barang.is-expanded::after,
  .col-aksi-text.is-expanded::after {
    content: "▴";
    color: #38bdf8;
    opacity: 1;
  }

  .col-aksi-text::before {
    content: "⚡ Aksi: ";
    font-weight: 700;
    color: #60a5fa;
    display: inline-block;
    margin-top: 1px;
    flex-shrink: 0;
  }

  .col-status {
    grid-column: 4;
    grid-row: 3;
    justify-self: end;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 2px 0;
    padding: 5px 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.12);
    border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
  }
  .col-status .status {
    height: 24px;
    min-height: 24px;
    font-size: 0.68rem !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: capitalize;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* BARIS 4: Diupdate Oleh (kiri luas) & Tombol Aksi (kanan) */
  .col-updated {
    grid-column: 1 / 3;
    grid-row: 4;
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
  }
  .col-updated::before {
    content: "👤 ";
    font-size: 0.72rem;
    opacity: 0.85;
    display: inline-block;
    flex-shrink: 0;
  }
  .col-updated .cell-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .col-aksi {
    grid-column: 3 / 5;
    grid-row: 4;
    justify-self: end;
    display: flex !important;
    align-items: center;
    gap: 5px;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    padding-top: 1px !important;
    flex-shrink: 0;
  }

  .col-aksi::before {
    display: none !important;
  }

  .col-aksi .action-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
  }

  .col-aksi .table-btn {
    height: 25px;
    min-height: 25px;
    padding: 0 10px;
    font-size: 0.69rem;
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.03em;
    cursor: pointer;
    white-space: nowrap;
    min-width: unset;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    transition: all 0.18s ease;
  }

  .col-aksi .table-btn svg {
    width: 11px;
    height: 11px;
  }

  .col-aksi .read-only-label {
    font-size: 0.7rem;
    color: #64748b;
    font-style: italic;
    padding: 2px 6px;
  }

  .monitoring-table tbody td[data-label="Nama Barang"] {
    padding-top: 12px;
  }

  .monitoring-table .empty-state,
  .archive-table .empty-state {
    display: block;
    text-align: center;
  }
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: 16px;
  padding: 16px;
}

.config-card {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.config-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f1f5f9;
}

.config-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: #cbd5f5;
}

.permissions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.permission-row.is-allowed {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(20, 83, 45, 0.25);
}

.permission-row.is-denied {
  border-color: rgba(239, 68, 68, 0.32);
}

.permission-row.is-locked {
  opacity: 0.7;
}

.permission-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.permission-meta strong {
  font-size: 0.92rem;
  color: #f8fafc;
}

.permission-desc {
  font-size: 0.74rem;
  color: #94a3b8;
}

.permission-key {
  font-size: 0.66rem;
  color: #64748b;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  letter-spacing: 0.04em;
}

.permission-toggle {
  width: 38px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .config-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.user-pill.is-super-admin {
  background: linear-gradient(120deg, rgba(217, 119, 6, 0.45), rgba(220, 38, 38, 0.45));
  border-color: rgba(245, 158, 11, 0.65);
  color: #fff7ed;
  font-weight: 700;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.32);
}

.role-badge-super {
  background: linear-gradient(120deg, rgba(217, 119, 6, 0.4), rgba(220, 38, 38, 0.4));
  color: #fff7ed;
  border-color: rgba(245, 158, 11, 0.6);
}

.promote-btn {
  background: linear-gradient(120deg, rgba(217, 119, 6, 0.9), rgba(180, 83, 9, 0.9));
  border-color: rgba(245, 158, 11, 0.7);
  color: #fff7ed;
}

.promote-btn:hover {
  filter: brightness(1.08);
}

.gm-only {
  position: relative;
}

.gm-only::before {
  content: '🔒 GM';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ===================================================
   MONITORING ADVANCED FILTER & TOOLBAR MODERN
   =================================================== */

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-counter-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  letter-spacing: 0.02em;
  transition: all 0.22s ease;
}

/* Active Card Theming on Monitoring Panel & Counter Badge */
#monitoringPanel[data-active-card="card-1-12"],
.panel[data-active-card="card-1-12"] {
  border-color: rgba(45, 212, 191, 0.42);
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.16);
}
#monitoringPanel[data-active-card="card-1-12"] .panel-counter-badge,
.panel[data-active-card="card-1-12"] .panel-counter-badge {
  background: rgba(13, 148, 136, 0.22) !important;
  border-color: rgba(45, 212, 191, 0.55) !important;
  color: #5eead4 !important;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.35) !important;
}

#monitoringPanel[data-active-card="card-12-24"],
.panel[data-active-card="card-12-24"] {
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.16);
}
#monitoringPanel[data-active-card="card-12-24"] .panel-counter-badge,
.panel[data-active-card="card-12-24"] .panel-counter-badge {
  background: rgba(37, 99, 235, 0.22) !important;
  border-color: rgba(96, 165, 250, 0.55) !important;
  color: #93c5fd !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.35) !important;
}

#monitoringPanel[data-active-card="card-24-36"],
.panel[data-active-card="card-24-36"] {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.18);
}
#monitoringPanel[data-active-card="card-24-36"] .panel-counter-badge,
.panel[data-active-card="card-24-36"] .panel-counter-badge {
  background: rgba(124, 58, 237, 0.25) !important;
  border-color: rgba(192, 132, 252, 0.6) !important;
  color: #f3e8ff !important;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4) !important;
}

#monitoringPanel[data-active-card="card-36-48"],
.panel[data-active-card="card-36-48"] {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.18);
}
#monitoringPanel[data-active-card="card-36-48"] .panel-counter-badge,
.panel[data-active-card="card-36-48"] .panel-counter-badge {
  background: rgba(217, 119, 6, 0.25) !important;
  border-color: rgba(251, 191, 36, 0.6) !important;
  color: #fef08a !important;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4) !important;
}

#monitoringPanel[data-active-card="card-48-60"],
.panel[data-active-card="card-48-60"] {
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.18);
}
#monitoringPanel[data-active-card="card-48-60"] .panel-counter-badge,
.panel[data-active-card="card-48-60"] .panel-counter-badge {
  background: rgba(234, 88, 12, 0.25) !important;
  border-color: rgba(251, 146, 60, 0.6) !important;
  color: #fed7aa !important;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.4) !important;
}

#monitoringPanel[data-active-card="card-60-72"],
#monitoringPanel[data-active-card="card-48-72"],
.panel[data-active-card="card-60-72"],
.panel[data-active-card="card-48-72"] {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 6px 24px rgba(194, 65, 12, 0.2);
}
#monitoringPanel[data-active-card="card-60-72"] .panel-counter-badge,
#monitoringPanel[data-active-card="card-48-72"] .panel-counter-badge,
.panel[data-active-card="card-60-72"] .panel-counter-badge,
.panel[data-active-card="card-48-72"] .panel-counter-badge {
  background: rgba(194, 65, 12, 0.28) !important;
  border-color: rgba(249, 115, 22, 0.65) !important;
  color: #ffedd5 !important;
  box-shadow: 0 0 10px rgba(194, 65, 12, 0.4) !important;
}

#monitoringPanel[data-active-card="card-72-up"],
.panel[data-active-card="card-72-up"] {
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.2);
}
#monitoringPanel[data-active-card="card-72-up"] .panel-counter-badge,
.panel[data-active-card="card-72-up"] .panel-counter-badge {
  background: rgba(220, 38, 38, 0.28) !important;
  border-color: rgba(248, 113, 113, 0.65) !important;
  color: #fecaca !important;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.45) !important;
}

#monitoringPanel[data-active-card="card-updated"],
.panel[data-active-card="card-updated"] {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.18);
}
#monitoringPanel[data-active-card="card-updated"] .panel-counter-badge,
.panel[data-active-card="card-updated"] .panel-counter-badge {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: rgba(52, 211, 153, 0.6) !important;
  color: #a7f3d0 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

/* ============================================================ */
/* EXECUTIVE CYBER COMMAND CONSOLE (BULK CONTROLS)             */
/* ============================================================ */
.monitoring-bulk-controls {
  display: none;
}

.monitoring-bulk-controls.has-selection {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  z-index: 1000 !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(800px, calc(100% - 24px)) !important;
  gap: 10px !important;
  padding: 13px 18px 14px 18px !important;
  background: linear-gradient(155deg, rgba(13, 20, 36, 0.97) 0%, rgba(8, 13, 24, 0.99) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.38) !important;
  border-radius: 20px !important;
  box-shadow:
    0 24px 60px -10px rgba(0, 0, 0, 0.88),
    0 0 40px -5px rgba(56, 189, 248, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  animation: bulkDockSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes bulkDockSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Glowing top accent line */
.bulk-dock-glow-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 35%, #ec4899 70%, #34d399 100%);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

/* Header Bar: Title, Count, and Clear */
.bulk-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.bulk-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
}

.bulk-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseGreenDock 1.8s infinite ease-in-out;
}

@keyframes pulseGreenDock {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.bulk-title-text {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  text-transform: uppercase;
  user-select: none;
}

.bulk-count-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

#selectedMonitoringCountBadge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.bulk-count-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.bulk-header-right {
  display: flex;
  align-items: center;
}

.bulk-clear-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bulk-clear-btn:hover {
  background: rgba(239, 68, 68, 0.28) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35) !important;
}

/* Waybill Selection Strip (Tags Preview) */
.bulk-waybill-preview-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.bulk-waybill-chips-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 5px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
}

.bulk-waybill-chips-strip::-webkit-scrollbar {
  height: 4px;
}
.bulk-waybill-chips-strip::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}

.bulk-waybill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.bulk-waybill-tag:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(30, 41, 59, 1);
}

.bulk-waybill-tag .wb-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 9px;
  line-height: 1;
  transition: all 0.15s ease;
}

.bulk-waybill-tag .wb-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.bulk-waybill-more {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Direct 1-Touch Quick Action Chips */
.bulk-quick-chips-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.bulk-chips-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.bulk-quick-chips-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: 100%;
}

.bulk-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 11px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
  white-space: nowrap;
}

.bulk-quick-chip:hover {
  background: rgba(51, 65, 85, 0.75);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.bulk-quick-chip.is-active {
  background: rgba(14, 165, 233, 0.18) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.chip-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.bulk-quick-chip:hover .chip-icon-box,
.bulk-quick-chip.is-active .chip-icon-box {
  transform: scale(1.08);
}

.chip-icon-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.chip-icon-blue {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.32);
}

.chip-icon-rose {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.32);
}

.chip-icon-purple {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.32);
}

.chip-icon-amber {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.chip-icon-cyan {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.32);
}

.chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Manual Input Row */
.bulk-input-row {
  width: 100%;
}

.bulk-manual-wrapper {
  width: 100%;
}

.bulk-action-manual {
  width: 100% !important;
  height: 38px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s ease;
}

.bulk-action-manual:focus {
  outline: none;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35) !important;
}

/* Footer Execution Buttons */
.bulk-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.bulk-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.bulk-btn-update {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.55) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.bulk-btn-update:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6), 0 0 18px rgba(56, 189, 248, 0.4) !important;
  transform: translateY(-1px);
}

.bulk-btn-update:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.bulk-btn-arrow {
  color: #67e8f9;
  font-weight: 800;
}

.bulk-btn-target {
  color: #ffffff;
  font-weight: 800;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-btn-restore {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
}

.bulk-btn-restore:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.28) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3) !important;
  transform: translateY(-1px);
}

.bulk-btn-archive {
  background: rgba(30, 41, 59, 0.75) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: #cbd5e1 !important;
}

.bulk-btn-archive:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.85) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  transform: translateY(-1px);
}

.bulk-btn-delete {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16) 0%, rgba(159, 18, 57, 0.28) 100%) !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  color: #fb7185 !important;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.bulk-btn-delete:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.32) 0%, rgba(159, 18, 57, 0.5) 100%) !important;
  border-color: rgba(251, 113, 133, 0.75) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.45), 0 0 14px rgba(244, 63, 94, 0.35) !important;
  transform: translateY(-1px);
}

.bulk-btn-delete:active:not(:disabled) {
  transform: translateY(0px) scale(0.98);
}

.bulk-btn-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

/* Mobile Responsiveness for Cyber Dock */
@media (max-width: 640px) {
  .monitoring-bulk-controls.has-selection {
    bottom: 10px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    transform: none !important;
    padding: 12px 12px !important;
    border-radius: 16px !important;
    gap: 8px !important;
  }

  .bulk-quick-chips-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
  }

  .bulk-quick-chip {
    padding: 5px 8px !important;
    font-size: 0.7rem !important;
  }

  .chip-icon-box {
    width: 20px !important;
    height: 20px !important;
  }

  .chip-icon-box svg {
    width: 12px !important;
    height: 12px !important;
  }

  .bulk-footer-actions {
    flex-direction: column !important;
    gap: 6px !important;
  }

  .bulk-footer-actions .bulk-btn-action {
    width: 100% !important;
    justify-content: center !important;
    height: 36px !important;
    font-size: 0.76rem !important;
  }
}

/* TOOLBAR PENCARIAN & FILTER */
.monitoring-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.45);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  flex-wrap: wrap;
}

.filter-search-box {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}

.search-box-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.filter-search-box input {
  width: 100% !important;
  max-width: none !important;
  height: 38px !important;
  padding: 8px 34px 8px 34px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 10px !important;
  color: var(--white) !important;
  font-size: 0.88rem !important;
  transition: all 0.2s ease !important;
}

.filter-search-box input:focus {
  border-color: #3b82f6 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16) !important;
  outline: none !important;
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  border: none;
  color: #cbd5e1;
  font-size: 0.7rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.clear-search-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  transform: scale(1.08);
}

.filter-controls-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-select-item {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-icon-prefix {
  position: absolute;
  left: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.tlc-combobox-wrap:focus-within .filter-icon-prefix,
.tlc-combobox-wrap.is-open .filter-icon-prefix {
  color: #38bdf8;
}

.filter-select-item .filter-select {
  width: auto !important;
  min-width: 150px;
  height: 38px !important;
  padding: 8px 28px 8px 32px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 10px !important;
  color: var(--white) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
}

.filter-select-item .filter-select:hover {
  border-color: rgba(148, 163, 184, 0.45) !important;
}

.filter-select-item .filter-select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16) !important;
  outline: none;
}

.btn-table-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  padding: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16) 0%, rgba(2, 132, 199, 0.26) 100%);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #38bdf8;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}

.btn-table-refresh span {
  display: none !important;
}

.btn-table-refresh svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.35));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.btn-table-refresh:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.32) 0%, rgba(2, 132, 199, 0.48) 100%);
  border-color: rgba(56, 189, 248, 0.82);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4), 0 0 14px rgba(56, 189, 248, 0.32);
}

.btn-table-refresh:hover:not(:disabled) svg {
  transform: rotate(90deg);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

.btn-table-refresh:active:not(:disabled) {
  transform: translateY(0) scale(0.94);
}

.btn-table-refresh.is-loading {
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-table-refresh.is-loading svg,
.btn-table-refresh .refresh-spinner {
  animation: refresh-spin 0.75s linear infinite !important;
}

.btn-reset-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-reset-filter:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  transform: translateY(-1px);
}

/* COMBOBOX TLC SEARCHABLE */
.tlc-combobox-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tlc-combobox-input {
  width: 170px !important;
  height: 38px !important;
  padding: 8px 46px 8px 32px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 10px !important;
  color: var(--white) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  outline: none;
  transition: all 0.2s ease;
}

.tlc-combobox-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.tlc-combobox-input:hover {
  border-color: rgba(148, 163, 184, 0.45) !important;
}

.tlc-combobox-input:focus,
.tlc-combobox-wrap.is-open .tlc-combobox-input {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16) !important;
  background: rgba(15, 23, 42, 0.9) !important;
}

.tlc-combobox-wrap .clear-input-btn {
  position: absolute;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  border: none;
  color: #94a3b8;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: all 0.15s ease;
}

.tlc-combobox-wrap .clear-input-btn svg {
  pointer-events: none;
}

.tlc-combobox-wrap .clear-input-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  transform: scale(1.1);
}

.tlc-combobox-wrap .combobox-arrow {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
  z-index: 2;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tlc-combobox-wrap .combobox-arrow svg {
  pointer-events: none;
}

.tlc-combobox-wrap.is-open .combobox-arrow {
  transform: rotate(180deg);
  color: #38bdf8;
}

.tlc-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 260px;
  max-height: 240px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 100;
  padding: 4px;
}

.tlc-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.tlc-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

.tlc-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tlc-option-item:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.tlc-option-item.is-selected {
  background: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
}

.tlc-opt-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tlc-item-icon {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.tlc-option-item:hover .tlc-item-icon,
.tlc-option-item.is-selected .tlc-item-icon {
  color: #38bdf8;
}

.tlc-opt-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  flex-shrink: 0;
}

.tlc-option-item.is-selected .tlc-opt-badge {
  background: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.tlc-option-empty {
  padding: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}

/* QUICK CHIPS TLC */
.tlc-quick-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(15, 23, 42, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  position: relative;
}

.chips-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.chips-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.chips-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 3px 2px;
  width: 100%;
}

.chips-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.chips-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.7), 0 0 8px rgba(56, 189, 248, 0.25);
  transition: all 0.18s ease;
  padding: 0;
}

.chips-nav-arrow:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.45);
}

.chips-arrow-left {
  left: 0;
}

.chips-arrow-right {
  right: 0;
}

.tlc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.tlc-chip:hover {
  color: var(--white);
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.tlc-chip.active {
  color: #eff6ff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border-color: #60a5fa;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.tlc-chip .chip-count {
  display: inline-block;
  padding: 1.5px 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}

.tlc-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* RESPONSIVE FILTER KHUSUS HP (HEMAT TEMPAT, TIGHT & RAPI) */
@media (max-width: 768px) {
  .panel-header {
    padding: 12px 14px 10px !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  .panel-title-wrap {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .panel-title-wrap h2 {
    font-size: 1.05rem !important;
  }
  .panel-counter-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
  }
  .monitoring-filter-bar {
    padding: 8px 12px !important;
    gap: 8px !important;
    flex-direction: column;
    align-items: stretch;
  }
  .filter-search-box {
    width: 100% !important;
    flex: none !important;
  }
  .filter-search-box input {
    height: 36px !important;
    font-size: 0.84rem !important;
    padding: 6px 30px 6px 32px !important;
    border-radius: 9px !important;
  }
  .search-box-icon {
    left: 10px;
  }
  .filter-controls-cluster {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }
  .filter-select-item {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .filter-select-item .filter-select {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    font-size: 0.82rem !important;
    padding: 6px 24px 6px 28px !important;
    border-radius: 9px !important;
  }
  .tlc-combobox-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    font-size: 0.82rem !important;
    padding: 6px 44px 6px 28px !important;
    border-radius: 9px !important;
  }
  .tlc-dropdown-menu {
    width: 100% !important;
    max-width: 100% !important;
  }
  .btn-table-refresh {
    height: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .btn-table-refresh svg {
    width: 15px !important;
    height: 15px !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .btn-reset-filter {
    height: 36px !important;
    padding: 0 11px !important;
    font-size: 0.78rem !important;
    border-radius: 9px !important;
  }
  .tlc-quick-chips {
    padding: 6px 10px !important;
    gap: 8px !important;
  }
  .chips-label {
    font-size: 0.68rem !important;
  }
  .tlc-chip {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
  }
  .tlc-chip .chip-count {
    font-size: 0.64rem !important;
    padding: 1px 4px !important;
  }
  .chips-nav-arrow {
    width: 22px !important;
    height: 22px !important;
  }
}

/* ========================================================
   SCANNER MODAL STYLES (RUGGED CONTRAST INDUSTRIAL DESIGN)
   ======================================================== */
.nav-pda-tag {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  text-transform: uppercase;
}

.scanner-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.scanner-topbar-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.25));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

/* EXECUTIVE SCANNER BUTTON (CYBER HIGH-TECH GLASS) */
.btn-executive-scanner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18) 0%, rgba(2, 132, 199, 0.28) 45%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(2, 132, 199, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 0 1px rgba(56, 189, 248, 0.8) !important;
  position: relative;
  overflow: hidden;
  gap: 9px !important;
  padding: 7px 14px 7px 12px !important;
}

.btn-executive-scanner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.btn-executive-scanner:hover::before {
  left: 150%;
  transition: left 0.75s ease-in-out;
}

.btn-executive-scanner:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(2, 132, 199, 0.45) 45%, rgba(15, 23, 42, 0.95) 100%) !important;
  border-color: rgba(56, 189, 248, 0.85) !important;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(2, 132, 199, 0.45),
    0 0 22px rgba(56, 189, 248, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.btn-executive-scanner:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3) !important;
}

.scanner-icon-circle {
  background: rgba(56, 189, 248, 0.16) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  transition: all 0.25s ease;
}

.btn-executive-scanner:hover .scanner-icon-circle {
  transform: scale(1.1);
  background: rgba(56, 189, 248, 0.3) !important;
  border-color: rgba(56, 189, 248, 0.8) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
}

.scanner-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 2px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.scanner-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399, 0 0 12px rgba(52, 211, 153, 0.6);
  display: inline-block;
  animation: liveScannerBlink 1.8s ease-in-out infinite;
}

@keyframes liveScannerBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #34d399, 0 0 12px rgba(52, 211, 153, 0.6);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
    box-shadow: 0 0 2px #34d399;
  }
}

.scanner-modal-overlay {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.scanner-modal-overlay.hidden {
  display: none !important;
}

#scannerQuickAddModal {
  z-index: 10005 !important;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  padding: 16px;
  overflow-y: auto;
}
#scannerQuickAddModal.hidden {
  display: none !important;
}
#scannerQuickAddModal .modal-content {
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(16, 185, 129, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-alert-modal {
  z-index: 10010 !important;
}

.scanner-modal-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  color: #f8fafc;
  position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.scanner-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scanner-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}
.scanner-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.scanner-title-row h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}
.scanner-subtext {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.scanner-hardware-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseLight 1.5s infinite;
}
@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.scanner-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scanner-tool-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scanner-tool-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.4);
}
.scanner-tool-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: #38bdf8;
}
.scanner-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
  transition: all 0.2s ease;
}
.scanner-close-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.scanner-mode-bar {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.scanner-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scanner-mode-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #f1f5f9;
}
.scanner-mode-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(2, 132, 199, 0.3));
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.scanner-update-config-bar {
  padding: 10px 20px 12px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  animation: fadeInDown 0.2s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.config-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.config-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.config-label-wrap .label-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.05em;
  background: rgba(251, 191, 36, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* HORIZONTAL QUICK ACTION CHIPS (TOUCH JEMPOL) */
.scanner-action-chips-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scanner-action-chips-bar::-webkit-scrollbar {
  display: none;
}
.action-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  touch-action: manipulation;
}
.action-chip-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.25);
}
.action-chip-pill:active {
  transform: scale(0.95);
}
.chip-dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  transition: all 0.16s ease;
}

/* ACTIVE STATE CHIPS BERDASARKAN WARNA */
.action-chip-pill.active.chip-kirim {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}
.action-chip-pill.active.chip-kirim .chip-dot-indicator {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.action-chip-pill.active.chip-tangguh {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
.action-chip-pill.active.chip-tangguh .chip-dot-indicator {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.action-chip-pill.active.chip-missroute {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #fb7185;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}
.action-chip-pill.active.chip-missroute .chip-dot-indicator {
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
}

.action-chip-pill.active.chip-crosslabel {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  color: #c084fc;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}
.action-chip-pill.active.chip-crosslabel .chip-dot-indicator {
  background: #8b5cf6;
  box-shadow: 0 0 6px #8b5cf6;
}

.action-chip-pill.active.chip-manual {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.scanner-manual-action-wrap {
  width: 100%;
  animation: fadeInDown 0.16s ease;
}
.scanner-manual-action-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #06b6d4;
  border-radius: 8px;
  padding: 7px 12px;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.25);
}

.config-counter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  color: #34d399;
  font-size: 0.78rem;
}
.config-counter-pill .counter-value {
  font-size: 0.92rem;
  font-weight: 800;
  color: #10b981;
}

/* SCAN CARD CORRECTIVE BAR (Salah Aksi? Ubah Langsung) */
.scan-card-corrective-box {
  margin-top: 12px;
  padding: 9px 12px 11px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.corrective-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.corrective-header svg {
  color: #38bdf8;
  flex-shrink: 0;
}
.corrective-chips-grid {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-correct-chip {
  padding: 5px 9px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  color: #cbd5e1;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}
.btn-correct-chip:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-correct-chip:active {
  transform: scale(0.95);
}
.btn-correct-chip.is-current {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
  cursor: default;
}

.scanner-camera-area {
  padding: 14px 24px;
  background: #030712;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.scanner-camera-box {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(56, 189, 248, 0.4);
}
#scannerVideoElement {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-scan-reticle {
  position: absolute;
  inset: 20px;
  pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.reticle-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #38bdf8;
  border-style: solid;
}
.corner-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.corner-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.corner-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.corner-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }
.reticle-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444, 0 0 18px #ef4444;
  animation: laserScanLine 2s linear infinite alternate;
}
@keyframes laserScanLine {
  from { top: 5%; }
  to { top: 95%; }
}
.camera-overlay-note {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  pointer-events: none;
}
.camera-close-action {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.scanner-input-container {
  padding: 18px 24px 10px;
  flex-shrink: 0;
}
.scanner-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #1e293b;
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 4px 6px 4px 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.scanner-input-wrapper:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 6px 20px rgba(56, 189, 248, 0.15);
}
.scanner-input-icon {
  color: #38bdf8;
  display: flex;
  align-items: center;
  margin-right: 10px;
}
.scanner-barcode-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 0;
  font-family: 'Consolas', 'Courier New', monospace;
}
.scanner-barcode-input::placeholder {
  color: #64748b;
  font-family: inherit;
  font-weight: 400;
  font-size: 0.9rem;
}
.scanner-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  padding: 6px 10px;
  cursor: pointer;
}
.scanner-clear-btn:hover {
  color: #f1f5f9;
}
.scanner-submit-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}
.scanner-submit-btn:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
}
.scanner-guidance-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: #64748b;
}
.guide-laser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.scanner-result-area {
  padding: 10px 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 0 auto;
  min-height: 0;
}

.scanner-idle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  margin: auto 0;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.3);
}
.idle-radar-pulse {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  margin-bottom: 12px;
}
.idle-radar-pulse .radar-circle {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  animation: radarRipple 2s cubic-bezier(0.1, 0.7, 0.1, 1) infinite;
}
@keyframes radarRipple {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.scanner-idle-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #cbd5e1;
}
.scanner-idle-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  max-width: 440px;
  line-height: 1.4;
}

.scanner-dynamic-card {
  animation: resultSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes resultSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.scan-card-found {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.scan-card-found.border-safe { border-left: 5px solid #10b981; }
.scan-card-found.border-warning { border-left: 5px solid #eab308; }
.scan-card-found.border-alert { border-left: 5px solid #f97316; }
.scan-card-found.border-danger { border-left: 5px solid #ef4444; }
.scan-card-found.border-updated { border-left: 5px solid #8b5cf6; }

.scan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 10px;
}
.scan-card-waybill-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.scan-card-waybill-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}
.scan-card-waybill {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: 'Consolas', 'Courier New', monospace;
  letter-spacing: 0.04em;
}

.fifo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.fifo-badge-safe {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.fifo-badge-warning {
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
}
.fifo-badge-alert {
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fb923c;
}
.fifo-badge-danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}
.fifo-badge-updated {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.scan-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 18px;
}
@media (max-width: 600px) {
  .scan-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.scan-data-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scan-data-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}
.scan-data-value {
  font-size: 0.88rem;
  color: #f1f5f9;
  font-weight: 600;
}
.scan-data-value.highlight-age {
  color: #38bdf8;
  font-weight: 800;
}

.scan-card-not-found {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(127, 29, 29, 0.25));
  border: 2px solid #ef4444;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
  animation: shakeAlert 0.4s ease-in-out;
}
@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.not-found-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.not-found-icon-pulse {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  flex-shrink: 0;
}
.not-found-title-wrap h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.02em;
}
.not-found-title-wrap p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #cbd5e1;
}
.not-found-waybill-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(239, 68, 68, 0.5);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.scanned-wb-code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f87171;
  letter-spacing: 0.05em;
}
.scanned-wb-time {
  font-size: 0.74rem;
  color: #94a3b8;
}

.not-found-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-quick-register {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}
.btn-quick-register:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}
.btn-note-unregistered {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-note-unregistered:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.scanner-recent-section {
  padding: 12px 24px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.recent-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.recent-badge {
  font-size: 0.7rem;
  color: #64748b;
}
.scanner-recent-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.recent-empty-hint {
  font-size: 0.76rem;
  color: #64748b;
  font-style: italic;
}
.recent-scan-chip {
  flex-shrink: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-family: 'Consolas', 'Courier New', monospace;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.recent-scan-chip:hover {
  border-color: #38bdf8;
  background: #334155;
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.chip-dot.dot-safe { background: #10b981; box-shadow: 0 0 5px #10b981; }
.chip-dot.dot-warning { background: #eab308; box-shadow: 0 0 5px #eab308; }
.chip-dot.dot-alert { background: #f97316; box-shadow: 0 0 5px #f97316; }
.chip-dot.dot-danger { background: #ef4444; box-shadow: 0 0 5px #ef4444; }
.chip-dot.dot-updated { background: #8b5cf6; box-shadow: 0 0 5px #8b5cf6; }
.chip-dot.dot-unknown { background: #dc2626; box-shadow: 0 0 5px #dc2626; }

.scanner-footer-bar {
  padding: 10px 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  background: #0f172a;
  flex-shrink: 0;
}
.scanner-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scanner-drawer-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.unknown-scans-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 380px;
  background: #0f172a;
  border-top: 2px solid #ef4444;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  z-index: 20;
  display: flex;
  flex-direction: column;
  animation: drawerSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drawerSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-header h4 {
  margin: 0;
  font-size: 0.92rem;
  color: #fca5a5;
}
.close-btn-mini {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
}
.drawer-body {
  padding: 12px 20px;
  overflow-y: auto;
  flex: 1;
}
.drawer-tip {
  margin: 0 0 10px;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.4;
}
.unknown-scans-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.unknown-empty-state {
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
  padding: 8px 0;
}
.unknown-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.8rem;
}
.unknown-item-wb {
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 700;
  color: #fca5a5;
}
.unknown-item-time {
  font-size: 0.72rem;
  color: #64748b;
}
.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.9);
}

@media (max-width: 640px) {
  .scanner-modal-overlay {
    padding: 0 !important;
  }

  .scanner-modal-card {
    border-radius: 0 !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    background: #0a0f1d !important;
  }

  /* Compact PDA Header */
  .scanner-header {
    padding: 9px 12px 7px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #0f172a !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
  }
  .scanner-brand-wrap {
    gap: 8px !important;
  }
  .scanner-brand-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }
  .scanner-brand-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .scanner-title-row {
    gap: 6px !important;
    align-items: center !important;
  }
  .scanner-title-row h3 {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }
  .scanner-hardware-badge {
    padding: 1px 6px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.02em !important;
  }
  .scanner-subtext {
    display: none !important;
  }
  .scanner-header-actions {
    gap: 5px !important;
  }
  .scanner-tool-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 7px !important;
  }
  .scanner-tool-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .scanner-close-btn {
    font-size: 1.1rem !important;
    padding: 2px 6px !important;
  }

  /* Compact Mode Bar */
  .scanner-mode-bar {
    padding: 6px 12px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .scanner-mode-btn {
    font-size: 0.72rem !important;
    padding: 6px 6px !important;
    border-radius: 8px !important;
    gap: 4px !important;
  }
  .scanner-mode-btn .mode-icon {
    font-size: 0.82rem !important;
  }

  /* Compact Mode 2 Config Bar (Clean 2-Row Stack to Prevent Overlapping) */
  .scanner-update-config-bar {
    padding: 7px 12px 8px !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95)) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25) !important;
    flex-shrink: 0 !important;
  }
  .config-bar-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .config-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .config-label-wrap .label-badge {
    font-size: 0.62rem !important;
    padding: 3px 6px !important;
    letter-spacing: 0.03em !important;
  }
  .scanner-action-chips-bar {
    display: flex !important;
    gap: 6px !important;
    padding: 1px 0 3px !important;
    overflow-x: auto !important;
    width: 100% !important;
  }
  .action-chip-pill {
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    border-radius: 999px !important;
  }
  .config-counter-pill {
    padding: 3px 8px !important;
    font-size: 0.7rem !important;
    border-radius: 999px !important;
  }
  .config-counter-pill .counter-value {
    font-size: 0.84rem !important;
  }

  /* Compact Input Box */
  .scanner-input-container {
    padding: 8px 12px 6px !important;
    flex-shrink: 0 !important;
  }
  .scanner-input-wrapper {
    padding: 2px 4px 2px 10px !important;
    border-radius: 9px !important;
  }
  .scanner-input-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .scanner-barcode-input {
    font-size: 0.88rem !important;
    padding: 6px 0 !important;
  }
  .scanner-barcode-input::placeholder {
    font-size: 0.75rem !important;
  }
  .scanner-submit-btn {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    border-radius: 7px !important;
  }
  .scanner-guidance-pill {
    display: none !important;
  }

  /* Result Area & Card */
  .scanner-result-area {
    padding: 6px 12px 10px !important;
    flex: 1 0 auto !important;
    min-height: auto !important;
  }
  .scan-card-found {
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  }
  .scan-card-header {
    padding: 8px 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }
  .scan-card-waybill-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .scan-card-waybill-label {
    font-size: 0.65rem !important;
  }
  .scan-card-waybill {
    font-size: 1.02rem !important;
    word-break: break-all !important;
  }
  .fifo-badge {
    font-size: 0.66rem !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
  }
  .scan-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px 10px !important;
    padding: 10px 12px !important;
  }
  .scan-data-label {
    font-size: 0.58rem !important;
  }
  .scan-data-value {
    font-size: 0.78rem !important;
    word-break: break-word !important;
  }
  .scan-data-value.highlight-age {
    font-size: 0.85rem !important;
  }
  .scan-data-item[style*="grid-column"] {
    padding-top: 6px !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
  }

  /* Recent Scans Strip */
  .scanner-recent-section {
    padding: 8px 12px !important;
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
  }
  .recent-header {
    margin-bottom: 5px !important;
  }
  .recent-title {
    font-size: 0.68rem !important;
  }
  .recent-badge {
    font-size: 0.65rem !important;
  }
  .recent-scan-chip {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
  }

  /* Footer Drawer */
  .scanner-footer-bar {
    padding: 8px 12px 10px !important;
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
  }
  .scanner-drawer-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 7px 10px !important;
    font-size: 0.74rem !important;
  }
}

/* =================================================== */
/* HISTORY UPDATE TABLE & CARD REDESIGN               */
/* =================================================== */
.history-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.history-header-titles {
  display: flex;
  align-items: center;
  gap: 14px;
}

.history-header-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.22);
  flex-shrink: 0;
}

.history-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-header-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #60a5fa;
  text-transform: uppercase;
}

.history-header-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.history-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
  font-size: 0.76rem;
  font-weight: 700;
}

.history-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.history-search-input {
  width: 280px;
  min-width: 240px;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  border-radius: 10px !important;
  color: #f8fafc !important;
  padding: 0 14px !important;
  font-size: 0.84rem !important;
  line-height: 42px !important;
  transition: all 0.2s ease;
}

.history-search-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  outline: none;
}

/* History table desktop styling */
.history-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(15, 23, 42, 0.22);
  border-radius: 12px;
  overflow: hidden;
}

.history-table th {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  white-space: nowrap;
}

.history-table th.history-th-waybill {
  min-width: 160px;
  width: auto !important;
  text-align: left !important;
  padding-left: 18px !important;
}

.history-table tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  transition: background 0.18s ease;
}

.history-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.06);
}

.history-table td {
  padding: 12px 14px;
  font-size: 0.84rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.history-table td.history-col-waybill {
  padding-left: 18px !important;
  width: auto !important;
  text-align: left !important;
}

.history-waybill-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.26);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.history-outlet-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 2.5px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.history-aksi-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d8b4fe;
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(147, 51, 234, 0.25);
  padding: 2.5px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.history-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

.history-user-badge svg {
  color: #60a5fa;
}

.history-time-badge {
  font-size: 0.76rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Responsive / Mobile History Card Mode */
@media (max-width: 900px) {
  .history-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .history-panel-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .history-search-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex: none !important;
    box-sizing: border-box !important;
    line-height: 42px !important;
    padding: 0 14px !important;
  }

  .history-panel-actions .btn-danger-modern {
    width: 100%;
    min-height: 42px;
    height: 42px;
    justify-content: center;
  }

  .history-table {
    min-width: 0;
    display: block;
    background: transparent;
    border: none;
  }

  .history-table thead {
    display: none;
  }

  .history-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
  }

  .history-table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.7));
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.4);
    margin-bottom: 2px;
  }

  .history-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    min-width: 0 !important;
    padding: 6px 0 !important;
    border: none !important;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.1) !important;
    background: transparent !important;
    position: static !important;
    text-align: right !important;
  }

  .history-table tbody td:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .history-table tbody td::before {
    content: attr(data-label) !important;
    color: #94a3b8 !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    flex-shrink: 0 !important;
    margin-right: 14px !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
  }

  .history-table tbody td .cell-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    min-width: 0;
    flex: 1 1 auto;
  }

  .history-table tbody td.history-col-waybill {
    padding-bottom: 10px !important;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3) !important;
  }

  .history-table tbody td.history-col-waybill::before {
    color: #60a5fa !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
  }

  .history-table tbody td.history-col-waybill .history-waybill-badge {
    font-size: 0.98rem;
    padding: 4px 10px;
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  }
}


/* =================================================== */
/* MODUL REKONSILIASI MUAT - BONGKAR & NON-AWB HUNTER  */
/* =================================================== */

.reconcile-panel {
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.35);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .reconcile-panel {
    padding: 16px 14px;
    border-radius: 14px;
  }
}

.reconcile-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 22px;
}

.reconcile-header-titles {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.reconcile-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(2, 132, 199, 0.35));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}

.reconcile-header-text {
  flex: 1;
}

.reconcile-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #38bdf8;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.reconcile-title {
  margin: 0 0 6px 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.reconcile-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 860px;
}

/* TABS MODE */
.reconcile-mode-tabs {
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  align-self: flex-start;
}

.reconcile-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.reconcile-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(148, 163, 184, 0.08);
}

.reconcile-tab-btn.active {
  background: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.18);
}

.tab-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

/* DROPZONE MODE 1 */
.reconcile-dropzone {
  border: 2px dashed rgba(56, 189, 248, 0.35);
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.06) 0%, rgba(15, 23, 42, 0.4) 100%);
  border-radius: 16px;
  padding: 44px 24px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  margin-bottom: 20px;
}

.reconcile-dropzone:hover,
.reconcile-dropzone.drag-over {
  border-color: #38bdf8;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.14) 0%, rgba(15, 23, 42, 0.6) 100%);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.22);
  transform: translateY(-1px);
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dropzone-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.dropzone-text h3 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
}

.dropzone-text h3 span {
  color: #38bdf8;
}

.dropzone-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.reconcile-btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.reconcile-btn-browse:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.dropzone-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
}

.hint-dot {
  color: #475569;
}

/* MULTI UPLOAD GRID */
.multi-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .multi-upload-grid {
    grid-template-columns: 1fr;
  }
}

.multi-upload-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.multi-upload-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-cyan {
  background: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.card-header-title h4 {
  margin: 0 0 2px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.card-header-title p {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.mini-dropzone {
  border: 2px dashed rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.84rem;
  background: rgba(2, 6, 23, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-dropzone:hover,
.mini-dropzone.drag-over {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.08);
}

.mini-dropzone .link-btn {
  background: none;
  border: none;
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.selected-files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.selected-file-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #e2e8f0;
}

.file-pill-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-pill-name {
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-pill-rows {
  color: #38bdf8;
  font-size: 0.74rem;
}

.file-pill-remove {
  background: none;
  border: none;
  color: #f87171;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
}

.multi-upload-action-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.reconcile-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

.reconcile-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-1px);
}

.reconcile-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* PROGRESS BAR */
.reconcile-progress-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  margin-bottom: 20px;
}

.progress-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.progress-text-group {
  display: flex;
  flex-direction: column;
}

.progress-main-text {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.9rem;
}

.progress-sub-text {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* KPI CARDS (3 KARTU BERSIH & RESPONSIF) */
.reconcile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .reconcile-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.reconcile-kpi-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.reconcile-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.4);
  border-color: rgba(148, 163, 184, 0.45);
}

.reconcile-kpi-card.is-active {
  transform: translateY(-2px);
}

.card-total.is-active {
  border-color: #38bdf8 !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.38) !important;
}

.card-matched.is-active {
  border-color: #34d399 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.38) !important;
}

.card-missing.is-active {
  border-color: #fb7185 !important;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.45) !important;
}

.reconcile-kpi-card .kpi-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-total {
  border-color: rgba(56, 189, 248, 0.28);
}
.card-total .kpi-icon-wrap {
  background: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.card-matched {
  border-color: rgba(52, 211, 153, 0.28);
}
.card-matched .kpi-icon-wrap {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.card-missing {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(15, 23, 42, 0.7) 100%);
}
.card-missing .kpi-icon-wrap {
  background: rgba(244, 63, 94, 0.18);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

/* STATUS SCAN BADGES */
.reconcile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.reconcile-status-badge.status-missing {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.reconcile-status-badge.status-matched {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.card-koli {
  border-color: rgba(168, 85, 247, 0.28);
}
.card-koli .kpi-icon-wrap {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.kpi-val {
  margin: 2px 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #f8fafc;
}

.card-missing .kpi-val {
  color: #fb7185;
}

.kpi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* NON-AWB HUNTER BOX */
.non-awb-hunter-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.3);
}

.hunter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 14px;
}

.hunter-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.hunter-title {
  margin: 0 0 4px 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #f1f5f9;
}

.hunter-desc {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.btn-hunter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-hunter-reset:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #f1f5f9;
}

.hunter-filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hunter-filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 200px;
}

.hunter-filter-item.flex-2 {
  flex: 2 1 300px;
}

.hunter-filter-item label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-input-wrap input,
.hunter-filter-item select {
  width: 100%;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.filter-input-wrap input:focus,
.hunter-filter-item select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.clear-input-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ACTIONS TOOLBAR */
.reconcile-actions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.results-count-badge {
  font-size: 0.84rem;
  color: #94a3b8;
}

.results-count-badge strong {
  color: #38bdf8;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-toolbar-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
}

.btn-toolbar-primary:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-1px);
}

.btn-toolbar-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(14, 165, 233, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toolbar-secondary:hover {
  background: rgba(14, 165, 233, 0.24);
}

.btn-toolbar-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toolbar-subtle:hover {
  color: #f1f5f9;
  background: rgba(148, 163, 184, 0.18);
}

/* RECONCILE TABLE */
.reconcile-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
}

.reconcile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.reconcile-table th {
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  white-space: nowrap;
}

.reconcile-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
  vertical-align: middle;
}

.reconcile-table tr:hover td {
  background: rgba(14, 165, 233, 0.05);
}

/* WAYBILL CELL & COPY BUTTON */
.reconcile-waybill-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reconcile-waybill-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.02em;
}

.btn-copy-waybill {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-copy-waybill:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  transform: scale(1.08);
}

.btn-copy-waybill.copied {
  background: #059669;
  border-color: #34d399;
  color: #ffffff;
}

/* NAMA BARANG HIGHLIGHT */
.reconcile-barang-name {
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  font-size: 0.86rem;
  max-width: 360px;
}

.reconcile-barang-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 5px;
  width: fit-content;
}

/* BERAT & KOLI */
.reconcile-weight-primary {
  font-weight: 800;
  color: #f1f5f9;
}

.reconcile-weight-sub {
  font-size: 0.74rem;
  color: #fbbf24;
  margin-top: 2px;
}

/* RUTE BADGE */
.reconcile-route-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.route-arrow {
  color: #38bdf8;
  font-size: 0.85rem;
}

/* EMPTY STATES */
.reconcile-empty-card {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-icon-wrap {
  font-size: 2.4rem;
  margin-bottom: 4px;
}

.reconcile-empty-card h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #f8fafc;
}

.reconcile-empty-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #94a3b8;
  max-width: 460px;
}

/* RECONCILE SORTABLE HEADERS */
.reconcile-table th.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.reconcile-table th.sortable-th:hover {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #38bdf8 !important;
}

.reconcile-table th .sort-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.72rem;
  color: #64748b;
  vertical-align: middle;
}

.reconcile-table th.sort-asc .sort-icon,
.reconcile-table th.sort-desc .sort-icon {
  color: #38bdf8;
  font-weight: bold;
}

/* RECONCILE PAGINATION BAR */
.reconcile-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-top: none;
  border-radius: 0 0 12px 12px;
  font-size: 0.83rem;
  color: #cbd5e1;
}

.reconcile-pagination-bar .page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

.reconcile-page-select {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.reconcile-page-select:focus {
  border-color: #38bdf8;
}

.page-info-text strong {
  color: #38bdf8;
}

.reconcile-pagination-bar .pagination-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-page-nav {
  padding: 6px 14px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-page-nav:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-page-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ==========================================================================
   MONITORING KENDARAAN & CAPACITY REPORT MODULE STYLES
   ========================================================================== */

.kendaraan-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.35);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .kendaraan-panel {
    padding: 16px 14px;
    border-radius: 14px;
    gap: 18px;
  }
}

/* Kendaraan Header */
.kendaraan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.kendaraan-header-titles {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kendaraan-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 95, 70, 0.4));
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.25);
}

.kendaraan-title {
  margin: 0 0 4px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.kendaraan-subtitle {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
  max-width: 650px;
  line-height: 1.45;
}

.kendaraan-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .kendaraan-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.btn-kendaraan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-kendaraan-action.btn-sync {
  background: rgba(30, 41, 59, 0.85);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.btn-kendaraan-action.btn-sync:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.btn-kendaraan-action.btn-sync.is-loading svg {
  animation: spin 1s linear infinite;
}

.btn-kendaraan-action.btn-gateways {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.btn-kendaraan-action.btn-gateways:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: #c084fc;
  transform: translateY(-1px);
}

.btn-kendaraan-action.btn-danger-action {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-kendaraan-action.btn-danger-action:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #f87171;
  transform: translateY(-1px);
}

.btn-kendaraan-action.btn-danger-action.is-loading svg {
  animation: spin 1s linear infinite;
}

.btn-kendaraan-action.btn-add {

  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-kendaraan-action.btn-add:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* 4 Executive KPI Cards */
.kendaraan-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.kendaraan-kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.kendaraan-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.22s;
}

.kendaraan-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.3);
}

.kendaraan-kpi-card.is-active {
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

.card-kpi-green::before { background: #10b981; }
.card-kpi-green.is-active { border-color: rgba(16, 185, 129, 0.5); background: rgba(6, 78, 59, 0.25); }
.card-kpi-green:hover { border-color: rgba(16, 185, 129, 0.4); }

.card-kpi-blue::before { background: #38bdf8; }
.card-kpi-blue.is-active { border-color: rgba(56, 189, 248, 0.5); background: rgba(7, 89, 133, 0.25); }
.card-kpi-blue:hover { border-color: rgba(56, 189, 248, 0.4); }

.card-kpi-cyan::before { background: #06b6d4; }
.card-kpi-cyan.is-active { border-color: rgba(6, 182, 212, 0.5); background: rgba(21, 94, 117, 0.25); }
.card-kpi-cyan:hover { border-color: rgba(6, 182, 212, 0.4); }

.card-kpi-rose::before { background: #f43f5e; }
.card-kpi-rose.is-active { border-color: rgba(244, 63, 94, 0.5); background: rgba(136, 19, 55, 0.25); }
.card-kpi-rose:hover { border-color: rgba(244, 63, 94, 0.4); }

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-wrap.icon-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.kpi-icon-wrap.icon-blue  { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.kpi-icon-wrap.icon-cyan  { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.kpi-icon-wrap.icon-rose  { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.kpi-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.kpi-val {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}

.kpi-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Matriks Breakdown Table */
.kendaraan-matrix-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  padding: 16px 20px;
}

.matrix-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.matrix-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.matrix-badge {
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.matrix-header-title h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f1f5f9;
}

.matrix-header-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

.kendaraan-matrix-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
}

.kendaraan-matrix-table td {
  padding: 10px 12px;
  font-size: 0.84rem;
}

.kendaraan-matrix-table tr.row-total-matrix {
  background: rgba(30, 41, 59, 0.8);
  font-weight: 700;
  border-top: 2px solid rgba(148, 163, 184, 0.3);
}

.kendaraan-matrix-table tr.row-total-matrix td {
  color: #f8fafc;
  font-size: 0.9rem;
}

/* 2 Generator Tools */
.kendaraan-generators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.generator-box {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.generator-box.box-wa {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 20px -5px rgba(16, 185, 129, 0.1);
}

.generator-box.box-feishu {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 4px 20px -5px rgba(168, 85, 247, 0.1);
}

.generator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.gen-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.gen-badge-green {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.gen-badge-purple {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.gen-title-group h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.gen-title-group p {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.gen-actions-dual {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-copy-template {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-copy-wa {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

.btn-copy-wa:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: #34d399;
  color: #ffffff;
}

.btn-copy-doc {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.3);
}

.btn-copy-doc:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}

.btn-feishu-push {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  transition: all 0.2s;
}

.btn-feishu-push:hover {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

.btn-feishu-push.is-loading svg {
  animation: spin 1s linear infinite;
}

.generator-preview {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 180px;
  overflow-y: auto;
}

/* Kendaraan Table Section */
.kendaraan-table-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kendaraan-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.15);
  cursor: pointer;
  transition: all 0.18s;
}

.filter-tab-btn:hover {
  background: rgba(51, 65, 85, 0.7);
  color: #f1f5f9;
}

.filter-tab-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
}

.filter-tab-btn.tab-green.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
}

.filter-tab-btn.tab-rose.active {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.45);
}

.filter-tab-btn.tab-pnk.active {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
}

.filter-tab-btn.tab-bdj.active {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.45);
}

.toolbar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
}

.toolbar-search-wrap input {
  width: 100%;
  padding: 7px 32px 7px 12px;
  font-size: 0.82rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  outline: none;
  transition: border-color 0.2s;
}

.toolbar-search-wrap input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.toolbar-search-wrap .btn-clear-search {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
}

/* AppSheet Style Minimalist Kendaraan Modal */
.modal-kendaraan-appsheet {
  width: min(440px, 94%);
  max-height: 92vh;
  overflow-y: auto;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.15);
}

.appsheet-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.appsheet-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appsheet-field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.appsheet-field-label .required-star {
  color: #38bdf8;
  font-size: 1.05rem;
}

.appsheet-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.appsheet-input {
  width: 100%;
  padding: 11px 44px 11px 14px;
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.65);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  font-size: 0.98rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.appsheet-input:focus {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.appsheet-input-icon {
  position: absolute;
  right: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.appsheet-input-icon:hover {
  color: #38bdf8;
}

.appsheet-btn-group-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.appsheet-btn-group-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.appsheet-toggle-btn {
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.appsheet-toggle-btn:hover {
  border-color: rgba(148, 163, 184, 0.5);
  color: #f8fafc;
}

.appsheet-toggle-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.appsheet-toggle-btn[data-group="dokumen"][data-val="Tidak"].active {
  background: rgba(244, 63, 94, 0.16);
  border-color: #fb7185;
  color: #fb7185;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.25);
}

.appsheet-toggle-btn[data-group="dokumen"][data-val="Lengkap"].active {
  background: rgba(16, 185, 129, 0.16);
  border-color: #34d399;
  color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

/* Stepper Input */
.appsheet-stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.65);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
}

.appsheet-stepper-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  background: transparent;
  border: none;
  outline: none;
  width: 70px;
}

.appsheet-stepper-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.appsheet-stepper-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s;
}

.appsheet-stepper-btn:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

/* Textarea */
.appsheet-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.65);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 60px;
}

.appsheet-textarea:focus {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.modal-gateways-wide {
  width: min(960px, 96%);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.gateways-modal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.gateways-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.gateways-search-wrap input {
  width: 100%;
  padding: 8px 32px 8px 12px;
  font-size: 0.84rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  outline: none;
}

.gateways-search-wrap input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.gateways-search-wrap .btn-clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
}

.gateways-stat-badge {
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.8);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.gateways-table-wrap {
  max-height: 480px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.input-with-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-action input {
  flex: 1;
}

.btn-input-scan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.btn-input-scan:hover {
  background: rgba(56, 189, 248, 0.25);
}

/* Badges for Kendaraan Table */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag-pnk { background: rgba(217, 119, 6, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.tag-bdj { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }
.tag-lainnya { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

.tag-dok-lengkap { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.4); }
.tag-dok-tidak { background: rgba(244, 63, 94, 0.2); color: #fb7185; border: 1px solid rgba(251, 113, 133, 0.4); }

.tag-spl { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.tag-motor-bensin { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.tag-motor-listrik { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.tag-status-siap { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tag-status-hold { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

.wa-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  transition: all 0.15s;
}

.wa-btn-link:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #ffffff;
}

.table-action-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-action-icon {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #cbd5e1;
  padding: 4px 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action-icon:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: #38bdf8;
}

.btn-action-icon.btn-delete:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: #fb7185;
}

/* ==========================================================================
   GENERATOR FEISHU - MONITORING DOKUMEN KENDARAAN STYLES
   ========================================================================== */

.feishu-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.35);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .feishu-panel {
    padding: 16px 14px;
    border-radius: 14px;
    gap: 16px;
  }
}

.feishu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.feishu-header-titles {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feishu-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(124, 58, 237, 0.4));
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.25);
}

.feishu-title {
  margin: 0 0 4px 0;
  font-size: 1.28rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.feishu-subtitle {
  margin: 0;
  font-size: 0.83rem;
  color: #94a3b8;
  max-width: 650px;
  line-height: 1.4;
}

.feishu-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .feishu-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.btn-feishu-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-feishu-action.btn-pull {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.btn-feishu-action.btn-pull:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #fb7185;
  transform: translateY(-1px);
}

.btn-feishu-action.btn-paste {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-feishu-action.btn-paste:hover {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.btn-feishu-action.btn-gateways {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.25);
}

.btn-feishu-action.btn-gateways:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #ffffff;
}

/* Stat Strip */
.feishu-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feishu-stat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feishu-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.feishu-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.feishu-stat-val {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.feishu-stat-badge {
  font-size: 0.73rem;
  color: #64748b;
  font-weight: 600;
}

/* Workspace Grid */
.feishu-workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 1024px) {
  .feishu-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Table Card */
.feishu-table-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feishu-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.feishu-topbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feishu-topbar-title h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.feishu-topbar-title .badge-count {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.feishu-table-search input {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  outline: none;
  min-width: 220px;
}

.feishu-table-search input:focus {
  border-color: #a855f7;
}

/* Right Generator Card */
.feishu-generator-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 30px -10px rgba(168, 85, 247, 0.15);
  position: sticky;
  top: 20px;
}

.feishu-gen-header .gen-title-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gen-tag-purple {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
}

.gen-title-box h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.gen-title-box p {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Greeting Chips */
.greeting-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.greeting-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 4px;
}

.chip-greeting {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: all 0.15s;
}

.chip-greeting:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #ffffff;
}

.chip-greeting.active {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-color: #a855f7;
}

/* Preview Box */
.generator-preview-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.preview-hint {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: none;
  font-weight: 500;
}

.feishu-preview-content {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
}

/* Generator Action Buttons */
.feishu-gen-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-feishu-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-copy-whatsapp {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-copy-whatsapp:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-send-bot {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-send-bot:hover {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

.btn-send-bot.is-loading svg {
  animation: spin 1s linear infinite;
}

.feishu-gen-footer-hint {
  font-size: 0.73rem;
  color: #94a3b8;
  text-align: center;
  padding-top: 4px;
  border-top: 1px dashed rgba(148, 163, 184, 0.15);
}

/* ============================================================
   EXCEL-LIKE SPREADSHEET INPUT TABLE STYLES
   ============================================================ */
.feishu-excel-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-feishu-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
  transition: all 0.15s ease;
}

.btn-feishu-mini:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(148, 163, 184, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-feishu-mini.btn-add-row {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-feishu-mini.btn-add-row:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.btn-feishu-mini.btn-clear-all {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.btn-feishu-mini.btn-clear-all:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fda4af;
}

.excel-paste-hint-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin: 10px 14px 4px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  color: #7dd3fc;
  font-size: 0.76rem;
  line-height: 1.4;
}

.excel-paste-hint-banner code {
  background: rgba(15, 23, 42, 0.6);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  color: #38bdf8;
}

.feishu-excel-wrap {
  padding: 0 10px;
}

.feishu-excel-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 6px;
}

.feishu-excel-grid thead th {
  background: rgba(30, 41, 59, 0.95);
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 2px solid rgba(148, 163, 184, 0.25);
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  position: sticky;
  top: 0;
  z-index: 2;
}

.feishu-excel-grid thead th:first-child {
  border-left: 1px solid rgba(148, 163, 184, 0.1);
}

.feishu-excel-grid tbody tr {
  transition: background 0.1s ease;
}

.feishu-excel-grid tbody tr:hover {
  background: rgba(30, 41, 59, 0.45);
}

.feishu-excel-grid tbody td {
  padding: 3px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  vertical-align: middle;
}

.feishu-excel-grid tbody td:first-child {
  border-left: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  user-select: none;
}

.excel-cell-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 9px;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  transition: all 0.15s ease;
}

.excel-cell-input:hover {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

.excel-cell-input:focus {
  outline: none;
  background: #020617;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.excel-cell-input.outlet-cell {
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 600;
}

.excel-cell-input::placeholder {
  color: #475569;
  font-size: 0.78rem;
}

.excel-cell-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  min-height: 28px;
}

.badge-gw-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-pic-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 6px;
  color: #c084fc;
  font-size: 0.76rem;
  font-weight: 700;
}

.cell-empty-dash {
  color: #475569;
  font-size: 0.8rem;
}

.btn-grid-row-del {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.15s ease;
}

.btn-grid-row-del:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.feishu-excel-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.4);
}




/* ========================================================================== */
/* ADVANCE MODULE: SUBNAV & SUB-TAB SWITCHER                                 */
/* ========================================================================== */
.advance-subnav-bar {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.advance-subnav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  flex-wrap: wrap;
  gap: 12px;
}

.advance-subnav-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.advance-subnav-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advance-subnav-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}

.advance-subnav-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.advance-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 9999px;
  color: #d8b4fe;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.advance-role-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: pulse-glow 2s infinite;
}

.advance-tabs-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 1200px) {
  .advance-tabs-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .advance-tabs-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .advance-tabs-container::-webkit-scrollbar {
    display: none;
  }
  .advance-tab-btn {
    flex-shrink: 0;
    min-width: 175px;
    padding: 10px 12px;
  }
}

.advance-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  min-height: 50px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.advance-tab-btn .tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
}

.advance-tab-btn .tab-label {
  flex: 1;
  line-height: 1.25;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advance-tab-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f1f5f9;
  transform: translateY(-1px);
}

.advance-tab-btn.active {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.8));
  border-color: rgba(56, 189, 248, 0.5);
  color: #f8fafc;
  box-shadow: 0 4px 15px -3px rgba(14, 165, 233, 0.25), inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.advance-tab-btn.active[data-advance-tab="reconcile"] {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 4px 15px -3px rgba(14, 165, 233, 0.3), inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.advance-tab-btn.active[data-advance-tab="kendaraan"] {
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.3), inset 0 0 0 1px rgba(52, 211, 153, 0.3);
}

.advance-tab-btn.active[data-advance-tab="generator-feishu"] {
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 4px 15px -3px rgba(168, 85, 247, 0.3), inset 0 0 0 1px rgba(192, 132, 252, 0.3);
}

.advance-tab-btn.active[data-advance-tab="jfs"] {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 4px 15px -3px rgba(245, 158, 11, 0.3), inset 0 0 0 1px rgba(251, 191, 36, 0.3);
}

.advance-tab-btn.active[data-advance-tab="pto"] {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 4px 15px -3px rgba(6, 182, 212, 0.3), inset 0 0 0 1px rgba(34, 211, 238, 0.3);
}

.advance-tab-pill {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
}

.advance-tab-pill.pill-blue {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.advance-tab-pill.pill-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.advance-tab-pill.pill-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.advance-tab-pill.pill-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.advance-tab-pill.pill-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.advance-pane {
  display: block;
}

.advance-pane.hidden {
  display: none !important;
}

/* ============================================================ */
/* JFS EXECUTIVE BUTTON & QUICK BAR CHIP                        */
/* ============================================================ */
.btn-executive-jfs {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.28) 45%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(217, 119, 6, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 0 1px rgba(251, 191, 36, 0.8) !important;
  position: relative;
  overflow: hidden;
  gap: 9px !important;
  padding: 7px 14px 7px 12px !important;
}

.btn-executive-jfs::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.btn-executive-jfs:hover::before {
  left: 150%;
  transition: left 0.75s ease-in-out;
}

.btn-executive-jfs:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.45) 45%, rgba(15, 23, 42, 0.95) 100%) !important;
  border-color: rgba(251, 191, 36, 0.85) !important;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(217, 119, 6, 0.45),
    0 0 22px rgba(251, 191, 36, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.btn-executive-jfs:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.3) !important;
}

.jfs-spin-icon {
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  transition: all 0.25s ease;
}

.btn-executive-jfs:hover .jfs-spin-icon {
  transform: scale(1.1);
  background: rgba(245, 158, 11, 0.3) !important;
  border-color: rgba(251, 191, 36, 0.8) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.55);
}

.jfs-spin-icon.is-spinning svg,
.btn-jfs-icon.is-spinning svg {
  animation: jfsSpin 0.9s linear infinite;
}

@keyframes jfsSpin {
  100% { transform: rotate(360deg); }
}

.quick-status-chip.live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-status-chip.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseLiveDot 1.8s infinite;
}

@keyframes pulseLiveDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ============================================================ */
/* JFS ADVANCE PANEL STYLES                                     */
/* ============================================================ */
.jfs-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.35);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .jfs-panel {
    padding: 16px 14px;
    border-radius: 14px;
    gap: 18px;
  }
}

.jfs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jfs-header-titles {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.jfs-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.4));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.jfs-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fbbf24;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.jfs-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.jfs-desc {
  font-size: 0.87rem;
  color: #94a3b8;
  margin: 0;
  max-width: 620px;
  line-height: 1.45;
}

.jfs-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.jfs-status-pill.connected {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
}

.jfs-status-pill.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
}

.jfs-status-pill.idle {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

/* METRICS OVERVIEW */
.jfs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.jfs-metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.jfs-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.3);
}

.jfs-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jfs-metric-icon.icon-gateway {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.jfs-metric-icon.icon-sync {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.jfs-metric-icon.icon-count {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.jfs-metric-icon.icon-worker {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.jfs-metric-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.jfs-metric-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.jfs-metric-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

/* MAIN GRID LAYOUT */
.jfs-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 960px) {
  .jfs-grid-layout {
    grid-template-columns: 1fr;
  }
}

.jfs-action-card,
.jfs-config-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jfs-card-top h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.jfs-card-top p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* BIG SYNC BUTTON */
.btn-jfs-sync-big {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.4) 50%, rgba(15, 23, 42, 0.95) 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  text-align: left;
}

.btn-jfs-sync-big:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.45);
}

.btn-jfs-sync-big:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-jfs-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-jfs-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-jfs-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-jfs-text small {
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* RESULT BOX */
.jfs-sync-result-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jfs-sync-result-box.error {
  border-color: rgba(248, 113, 113, 0.3);
}

.sync-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sync-result-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.sync-result-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sync-result-badge.error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.sync-result-time {
  font-size: 0.75rem;
  color: #94a3b8;
}

.sync-result-msg {
  font-size: 0.85rem;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.4;
}

.sync-stats-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.sync-stat-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

/* GUIDE BOX */
.jfs-guide-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
}

.guide-steps code {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
}

/* CONFIG FORM */
.jfs-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group-jfs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-jfs label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}

.btn-text-action {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.btn-text-action:hover {
  text-decoration: underline;
}

.jfs-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.85rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.jfs-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  padding-right: 42px;
}

.btn-input-copy {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.btn-input-copy:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.form-row-jfs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.jfs-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-jfs-primary,
.btn-jfs-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-jfs-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #fbbf24;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-jfs-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
}

.btn-jfs-secondary {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.btn-jfs-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* LOGS CARD */
.jfs-logs-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jfs-logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jfs-logs-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.jfs-logs-header p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.btn-refresh-logs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-logs:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.jfs-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.jfs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.jfs-table th {
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.jfs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  white-space: nowrap;
}

.jfs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-log-type {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-log-type.auto {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.badge-log-type.manual {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.badge-log-status {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-log-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-log-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ========================================================= */
/* MODUL 3: PC ONLY LIVE FLOW SPEEDOMETER GW (JFS)           */
/* ========================================================= */
.pc-only-flow-widget {
  display: block;
}

@media (max-width: 992px) {
  .pc-only-flow-widget {
    display: none !important;
  }
}

.jfs-flow-strip {
  margin: 12px 0 16px;
  padding: 14px 18px 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.jfs-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.jfs-flow-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jfs-flow-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: jfsPulseAnim 2s infinite ease-in-out;
}

@keyframes jfsPulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.jfs-flow-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.jfs-flow-site-chip {
  padding: 2px 7px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.04em;
}

.jfs-flow-time {
  font-size: 0.74rem;
  color: #94a3b8;
}

.btn-flow-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flow-refresh:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.jfs-flow-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.jfs-flow-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.jfs-flow-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.flow-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.flow-card-icon.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.25);
}

.flow-card-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
}

.flow-card-icon.icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.25);
}

.flow-card-info {
  flex: 1;
  min-width: 0;
}

.flow-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-card-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.flow-badge-alert {
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  letter-spacing: 0.03em;
}

.flow-card-metrics {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 2px 0;
}

.flow-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.flow-number.text-amber {
  color: #fbbf24;
}

.flow-number.text-emerald {
  color: #34d399;
}

.flow-number.text-indigo {
  color: #a5b4fc;
}

.flow-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.flow-subtext {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================= */
/* MODUL 4: MODERN JFS BOOKMARKLET CARD                     */
/* ========================================================= */
.jfs-bookmarklet-card {
  margin: 16px 0;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bookmarklet-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.bookmarklet-icon-box {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(129, 140, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
}

.bookmarklet-titles h4 {
  margin: 4px 0 2px;
  font-size: 0.95rem;
  color: #f8fafc;
  font-weight: 700;
}

.bookmarklet-titles p {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

.bookmarklet-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.bookmarklet-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bookmarklet-drag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: grab;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
  user-select: none;
}

.bookmarklet-drag-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
  border-color: rgba(255, 255, 255, 0.35);
}

.bookmarklet-drag-pill:active {
  cursor: grabbing;
}

.btn-copy-bookmarklet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-bookmarklet:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.35);
}

/* ========================================================= */
/* MODUL 1 & 5: EXECUTIVE SHIFT ARCHIVE & BULK IMPORT BUTTONS */
/* ========================================================= */
.btn-executive-shift {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-executive-shift:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
  border-color: rgba(52, 211, 153, 0.6);
  color: #a7f3d0;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

/* ========================================================= */
/* MODUL 2: OUTLET ASAL & TUJUAN COLUMNS                     */
/* ========================================================= */
.col-outlet-asal {
  color: #93c5fd;
  font-weight: 600;
}

.col-outlet-tujuan {
  color: #cbd5e1;
}

.outlet-route-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
}

.route-arrow {
  color: #64748b;
  font-weight: bold;
}

/* ========================================================= */
/* WAYBILL INTERACTIVE LINK & DETAIL MODAL                   */
/* ========================================================= */
.waybill-interactive-link {
  background: transparent;
  border: none;
  padding: 3px 6px;
  margin: -3px -6px;
  cursor: pointer;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  border-radius: 6px;
  transition: all 0.15s ease;
  user-select: text;
}

.waybill-interactive-link:hover {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}

.waybill-interactive-link:hover .cell-value {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.waybill-link-icon {
  opacity: 0.35;
  color: #94a3b8;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.waybill-interactive-link:hover .waybill-link-icon {
  opacity: 1;
  color: #38bdf8;
  transform: translate(1px, -1px);
}

.waybill-detail-modal-card {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Accordion Styling for Manual Guide */
.jfs-guide-accordion summary {
  transition: color 0.15s ease;
}

.jfs-guide-accordion summary:hover {
  color: #f8fafc;
}

/* ========================================================= */
/* JFS FLOW MODAL DRILL-DOWN STYLES                          */
/* ========================================================= */
.btn-flow-awb-drilldown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-flow-awb-drilldown:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-flow-awb-drilldown:active {
  transform: translateY(0) scale(0.98);
}

.btn-flow-awb-drilldown .drilldown-number {
  letter-spacing: -0.01em;
}

.btn-flow-awb-drilldown .drilldown-icon {
  opacity: 0.7;
  color: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.btn-flow-awb-drilldown:hover .drilldown-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.flow-wb-copyable {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  transition: all 0.15s ease;
  user-select: all;
}

.flow-wb-copyable:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
  text-decoration: underline;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

#btnBackToFlowTrend:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3) !important;
}

/* ========================================================= */
/* OUTLET REGISTRATION INLINE & TOOLBAR STYLES              */
/* ========================================================= */
.btn-inline-register-outlet {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-inline-register-outlet:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.btn-inline-register-outlet:active {
  transform: translateY(0);
}

.btn-feishu-action.btn-add-outlet {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-feishu-action.btn-add-outlet:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* ========================================================= */
/* STATUS REPORT PILL & ULTIMATUM STYLES                     */
/* ========================================================= */
.btn-report-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-report-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.btn-report-pill:active {
  transform: translateY(0) scale(0.97);
}

.pill-rep-1 {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.pill-rep-1:hover {
  background: rgba(56, 189, 248, 0.22);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

.pill-rep-2 {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}
.pill-rep-2:hover {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.pill-rep-3 {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(244, 63, 94, 0.6);
  color: #fda4af;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}
.pill-rep-3:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #f43f5e;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.45);
}

.pulse-red-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #f43f5e;
  animation: pulseRedDot 1.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
  flex-shrink: 0;
}

@keyframes pulseRedDot {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.8);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(244, 63, 94, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    transform: scale(0.95);
  }
}

.row-report-ultimatum {
  background: rgba(239, 68, 68, 0.08) !important;
}

.row-report-ultimatum:hover {
  background: rgba(239, 68, 68, 0.14) !important;
}

/* ========================================================= */
/* MODUL PTO - PELACAKAN TOTAL ORDER (OMS JFS) STYLES       */
/* ========================================================= */
.pill-cyan {
  background: rgba(6, 182, 212, 0.16) !important;
  color: #22d3ee !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
}

.pto-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.35);
  margin-bottom: 24px;
  animation: fadeIn 0.25s ease-out;
}

@media (max-width: 768px) {
  .pto-panel {
    padding: 16px 14px;
    border-radius: 14px;
    gap: 16px;
  }
}

.pto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.4));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
}

.pto-header-titles {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pto-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  flex-shrink: 0;
}

.pto-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}

.pto-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 3px 0 0 0;
  max-width: 680px;
  line-height: 1.4;
}

.pto-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pto-account-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
}

.pto-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseGreenDock 1.6s infinite ease-in-out;
}

.btn-pto-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pto-ghost:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.4);
}

/* FILTER CARD */
.pto-filter-card {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pto-preset-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pto-chip-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  margin-right: 4px;
}

.pto-chip {
  padding: 4px 11px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  transition: all 0.15s ease;
}

.pto-chip:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #f1f5f9;
  border-color: rgba(56, 189, 248, 0.4);
}

.pto-chip.active {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
  font-weight: 700;
}

.pto-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 14px;
}

.pto-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pto-field-group.full-width {
  grid-column: 1 / -1;
}

.pto-field-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pto-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.83rem;
  outline: none;
  transition: all 0.15s ease;
}

.pto-input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.pto-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pto-search-input-wrap .btn-clear-input {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
}

.pto-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.pto-spacer {
  flex: 1;
}

.btn-pto-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.35);
  transition: all 0.2s ease;
}

.btn-pto-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45);
}

.btn-pto-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-pto-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pto-secondary:hover {
  background: rgba(51, 65, 85, 0.85);
  color: #f8fafc;
}

.btn-pto-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pto-tool:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* KPI STRIP */
.pto-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.pto-kpi-item {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pto-kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}

.pto-kpi-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.pto-kpi-value.highlight-cyan {
  color: #22d3ee;
}

.pto-kpi-value.highlight-amber {
  color: #fbbf24;
}

/* TABLE STYLING */
.pto-table-container {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  overflow: hidden;
}

.pto-table-responsive {
  width: 100%;
  overflow-x: auto;
  max-height: 560px;
}

.pto-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.pto-data-table thead {
  position: sticky;
  top: 0;
  background: #0f172a;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.2);
}

.pto-data-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
}

.pto-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: middle;
}

.pto-data-table tbody tr {
  transition: background 0.12s ease;
}

.pto-data-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.5);
}

.pto-awb-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pto-awb-text {
  font-family: monospace;
  font-size: 0.86rem;
  color: #38bdf8;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.pto-awb-text:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

.btn-pto-copy-awb {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}

.btn-pto-copy-awb:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.pto-goods-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #f1f5f9;
}

.pto-origin-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.74rem;
}

.pto-sorting-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.74rem;
}

.pto-source-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: capitalize;
}

.pto-badge-shopee {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.pto-badge-tokopedia {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pto-badge-tiktok {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.pto-badge-reguler {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-pto-view-detail {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.14);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pto-view-detail:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
}

/* PAGINATION BAR */
.pto-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.85);
}

.pto-pagination-info {
  font-size: 0.78rem;
  color: #94a3b8;
}

.pto-pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pto-page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-page {
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-page:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-page.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* SPINNER */
.pto-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: ptoSpin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes ptoSpin {
  to { transform: rotate(360deg); }
}

.pto-empty-state {
  text-align: center;
  padding: 50px 20px;
}

.pto-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* DETAIL MODAL STYLING */
.pto-detail-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pto-detail-card-section {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.pto-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  margin: 0 0 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 8px;
}

.pto-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 14px;
}

.pto-detail-grid.single-col {
  grid-template-columns: 1fr;
}

.pto-detail-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .pto-detail-2col {
    grid-template-columns: 1fr;
  }
}

.pto-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pto-detail-item.full-width {
  grid-column: 1 / -1;
}

.pto-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.pto-val {
  font-size: 0.84rem;
  color: #f8fafc;
  word-break: break-word;
}

.pto-val.text-amber {
  color: #fbbf24;
}

.pto-val.text-cyan {
  color: #22d3ee;
}

.pto-val-address {
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.4;
  margin: 0;
  background: rgba(15, 23, 42, 0.5);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  word-break: break-word;
}






