/* ═══════════════════════════════════════════════════
   PrintFlow — Modern UI
   Font: Inter | Color: Indigo-based palette
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Brand */
  --indigo-50:  #EEF2FF;
  --indigo-100: #E0E7FF;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;

  /* Semantic */
  --c-primary:   #4F46E5;
  --c-primary-h: #4338CA;
  --c-primary-l: #EEF2FF;
  --c-success:   #10B981;
  --c-success-l: #D1FAE5;
  --c-warning:   #F59E0B;
  --c-warning-l: #FEF3C7;
  --c-danger:    #EF4444;
  --c-danger-l:  #FEE2E2;
  --c-info:      #3B82F6;
  --c-info-l:    #DBEAFE;
  --c-orange:    #F97316;
  --c-orange-l:  #FFEDD5;

  /* Neutrals */
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Layout */
  --sidebar-w: 300px; /* mobile drawer */
  --topbar-h:  68px;
  --bottomnav-h: 68px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-indigo: 0 8px 32px rgba(79,70,229,.35);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-800);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }

/* ── Top loading bar ── */
#topbar-loader {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 9999; pointer-events: none;
}
#topbar-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--violet-500));
  width: 0%;
  transition: width .3s ease;
  border-radius: 999px;
}

/* ── Utility ── */
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: .8125rem; }
.fw-700 { font-weight: 700; }
.w-full { width: 100%; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 20px; right: 16px;
  display: flex; flex-direction: column-reverse; gap: .5rem;
  z-index: 8888; width: min(340px, 92vw);
}
.toast {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .875rem 1.1rem;
  border-radius: var(--radius);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
  cursor: pointer;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}
.toast-icon { font-size: 1.15rem; flex-shrink: 0; }
.toast.success { background: linear-gradient(135deg,#059669,#10B981); }
.toast.error   { background: linear-gradient(135deg,#DC2626,#EF4444); }
.toast.info    { background: linear-gradient(135deg,var(--c-primary),var(--violet-500)); }
.toast.warning { background: linear-gradient(135deg,#D97706,#F59E0B); }
@keyframes toastIn { from { opacity:0; transform:translateX(20px) scale(.95); } to { opacity:1; transform:none; } }

/* ══════════════════════════════════════
   CONFIRM POPUP
══════════════════════════════════════ */
#confirm-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.confirm-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  width: 100%; max-width: 360px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}
.confirm-icon  { font-size: 3rem; margin-bottom: .75rem; }
.confirm-title { font-size: 1.15rem; font-weight: 800; color: var(--gray-900); margin-bottom: .5rem; }
.confirm-msg   { font-size: .9rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 1.5rem; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes popIn   { from { opacity:0; transform:scale(.85); } to { opacity:1; transform:none; } }

/* ══════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════ */
#page-login {
  min-height: 100dvh;
  display: flex;
  background: var(--gray-900);
  overflow: hidden;
  position: relative;
}

/* Animated gradient blobs */
.login-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width:500px; height:500px; background:radial-gradient(circle, #6366F1 0%, transparent 70%); top:-200px; left:-100px; animation-delay: 0s; }
.blob-2 { width:400px; height:400px; background:radial-gradient(circle, #8B5CF6 0%, transparent 70%); bottom:-150px; right:-100px; animation-delay: -3s; }
.blob-3 { width:300px; height:300px; background:radial-gradient(circle, #3B82F6 0%, transparent 70%); top:40%; left:60%; animation-delay: -5s; }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(20px,-15px) scale(1.05); } 66% { transform: translate(-10px,10px) scale(.97); } }

.login-card-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh; width: 100%; padding: 1.5rem;
}

/* Desktop: split layout */
@media (min-width: 900px) {
  #page-login { flex-direction: row; }
  .login-left {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem;
    position: relative; z-index: 1;
  }
  .login-left-content { max-width: 420px; }
  .login-card-wrap { flex: 0 0 440px; background: white; min-height: 100dvh; box-shadow: -20px 0 60px rgba(0,0,0,.3); }
}

.login-card {
  width: 100%; max-width: 400px;
  padding: 2.5rem 2rem;
}

/* Desktop card tidak perlu background sendiri */
@media (min-width: 900px) {
  .login-card { max-width: 100%; padding: 3rem 2.5rem; }
}
@media (max-width: 899px) {
  .login-card {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-xl);
    color: white;
  }
}

.login-logo {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 2rem;
}
.login-logo-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--c-primary), var(--violet-500));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-indigo);
}
.login-logo-text h1 { font-size: 1.6rem; font-weight: 900; letter-spacing: -.5px; }
.login-logo-text p  { font-size: .775rem; opacity: .7; margin-top: 1px; }

/* Mobile: white text; Desktop: dark text */
@media (max-width: 899px) {
  .login-logo-text h1 { color: white; }
  .login-logo-text p  { color: rgba(255,255,255,.7); }
}
@media (min-width: 900px) {
  .login-logo-text h1 { color: var(--gray-900); }
  .login-logo-text p  { color: var(--gray-500); }
}

.login-section-label {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: .9rem;
}
@media (max-width: 899px) { .login-section-label { color: rgba(255,255,255,.5); } }
@media (min-width: 900px) { .login-section-label { color: var(--gray-400); } }

/* Role cards */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: .25rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.role-card {
  border-radius: var(--radius);
  padding: 1.1rem .5rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  border: 2px solid transparent;
  position: relative; overflow: hidden;
}
@media (max-width: 899px) {
  .role-card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
  .role-card:hover, .role-card.selected { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); transform: translateY(-2px); }
  .role-card .role-name { color: white; font-size: .8rem; font-weight: 700; margin-top: .4rem; }
  .role-card .role-sub  { color: rgba(255,255,255,.5); font-size: .68rem; }
}
@media (min-width: 900px) {
  .role-card { background: var(--gray-50); border-color: var(--gray-200); }
  .role-card:hover { border-color: var(--c-primary); background: var(--indigo-50); transform: translateY(-3px); box-shadow: var(--shadow); }
  .role-card.selected { border-color: var(--c-primary); background: var(--indigo-50); transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(79,70,229,.12), var(--shadow); }
  .role-card .role-name { color: var(--gray-700); font-size: .8rem; font-weight: 700; margin-top: .4rem; }
  .role-card .role-sub  { color: var(--gray-400); font-size: .68rem; }
}
.role-card .role-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto;
  transition: all .2s;
}
.role-card[data-role="admin"]  .role-icon-wrap { background: linear-gradient(135deg,#6366F1,#8B5CF6); }
.role-card[data-role="kantor"] .role-icon-wrap { background: linear-gradient(135deg,#10B981,#059669); }
.role-card[data-role="mesin"]  .role-icon-wrap { background: linear-gradient(135deg,#F59E0B,#EF4444); }
.role-card.selected .role-icon-wrap { transform: scale(1.1); }

/* PIN area */
#pin-section { margin-top: 1.25rem; }

.selected-role-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(79,70,229,.15);
  border: 1px solid rgba(79,70,229,.3);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .8rem; font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: all .15s;
}
.selected-role-pill:hover { background: rgba(79,70,229,.25); }
@media (max-width: 899px) {
  .selected-role-pill { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: white; }
  .selected-role-pill:hover { background: rgba(255,255,255,.2); }
}

.pin-dots {
  display: flex; justify-content: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  border: 2px solid rgba(255,255,255,.3);
}
.pin-dot.filled {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(79,70,229,.2);
}
@media (min-width: 900px) {
  .pin-dot { border-color: var(--gray-300); }
  .pin-dot.filled { background: var(--c-primary); border-color: var(--c-primary); }
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  max-width: 280px;
  margin: 0 auto;
}
.pin-key {
  aspect-ratio: 1.2;
  border: none;
  border-radius: var(--radius);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  position: relative; overflow: hidden;
}
@media (max-width: 899px) {
  .pin-key { background: rgba(255,255,255,.08); color: white; }
  .pin-key:hover { background: rgba(255,255,255,.16); }
  .pin-key:active { transform: scale(.91); background: rgba(255,255,255,.22); }
  .pin-key.del { background: rgba(239,68,68,.15); color: #FCA5A5; }
}
@media (min-width: 900px) {
  .pin-key { background: var(--gray-100); color: var(--gray-800); }
  .pin-key:hover { background: var(--indigo-50); color: var(--c-primary); }
  .pin-key:active { transform: scale(.91); background: var(--indigo-100); }
  .pin-key.del { background: var(--c-danger-l); color: var(--c-danger); }
}
.pin-key.zero { grid-column: 2; }
.pin-key::after {
  content: ''; position: absolute; inset: 0;
  background: white; border-radius: inherit;
  opacity: 0; transform: scale(0);
  transition: opacity .3s, transform .3s;
}
.pin-key:active::after { opacity: .08; transform: scale(2); transition: none; }

.btn-login {
  margin-top: 1.25rem;
  width: 100%; padding: 1rem;
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; letter-spacing: .02em;
  cursor: pointer;
  transition: all .2s;
  background: linear-gradient(135deg, var(--c-primary), var(--violet-500));
  color: white;
  box-shadow: var(--shadow-indigo);
}
.btn-login:hover   { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(79,70,229,.45); }
.btn-login:active  { transform: translateY(0); }
.btn-login:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Desktop left panel content */
.login-left-content h2 {
  font-size: 2.5rem; font-weight: 900; color: white;
  line-height: 1.15; margin-bottom: 1rem;
}
.login-left-content h2 span { color: var(--indigo-500); }
.login-left-content p { color: rgba(255,255,255,.6); font-size: 1rem; line-height: 1.6; }
.login-features { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.login-feature {
  display: flex; align-items: center; gap: .9rem;
  color: rgba(255,255,255,.8); font-size: .9rem;
}
.login-feature-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* ══════════════════════════════════════
   APP SHELL LAYOUT
══════════════════════════════════════ */

/* Layout: topbar + main */
.app-body {
  min-height: 100dvh;
  padding-top: var(--topbar-h);
  padding-bottom: 1.5rem;
}

/* Desktop: sidebar + main */
@media (min-width: 900px) {
  :root { --sidebar-w: clamp(280px, 30vw, 460px); }
  #app-shell { display: flex; }
  .app-body { flex: 1; padding-left: var(--sidebar-w); padding-top: var(--topbar-h); padding-bottom: 0; }
  #mobile-menu-btn { display: none; }
  /* Sidebar chat tinggi penuh di desktop */
  .sidebar-nav { flex: 0 0 auto !important; }
  .sidebar-chat { flex: 1 !important; max-height: none !important; min-height: 300px; }
}

/* ── Sidebar ── */
#sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100dvh;
  background: var(--gray-900);
  display: flex; flex-direction: column;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 900px) {
  #sidebar { transform: translateX(0); }
}
#sidebar.open { transform: translateX(0); }

.sidebar-brand {
  display: flex; align-items: center; gap: .875rem;
  padding: 1.4rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sb-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--c-primary), var(--violet-500));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(79,70,229,.4);
  flex-shrink: 0;
}
.sb-name { font-size: 1.05rem; font-weight: 800; color: white; }
.sb-sub  { font-size: .68rem; color: rgba(255,255,255,.4); margin-top: 1px; }

.sidebar-nav {
  flex: 1; overflow-y: auto;
  padding: 1rem .875rem;
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.25);
  padding: .9rem .5rem .3rem;
}

.sb-nav-item {
  display: flex; align-items: center; gap: .875rem;
  padding: .7rem .875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: rgba(255,255,255,.55);
  font-size: .875rem; font-weight: 500;
  transition: all .18s;
  border: none; background: none; text-align: left; width: 100%;
  position: relative;
}
.sb-nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.sb-nav-item.active {
  color: white;
  background: linear-gradient(135deg, rgba(79,70,229,.5), rgba(139,92,246,.3));
  box-shadow: inset 3px 0 0 var(--c-primary);
  font-weight: 600;
}
.sb-nav-icon {
  width: 32px; height: 32px;
  border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: rgba(255,255,255,.06);
  transition: background .18s;
}
.sb-nav-item.active .sb-nav-icon { background: rgba(79,70,229,.4); }
.sb-nav-item:hover .sb-nav-icon  { background: rgba(255,255,255,.1); }
.sb-notif-badge {
  margin-left: auto;
  background: var(--c-danger);
  color: white;
  border-radius: 999px;
  font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.sidebar-user {
  padding: 1rem .875rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-user-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: background .18s;
}
.sidebar-user-card:hover { background: rgba(255,255,255,.09); }
.su-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--violet-500));
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; color: white;
  flex-shrink: 0;
}
.su-name { font-size: .8rem; font-weight: 600; color: white; }
.su-role { font-size: .68rem; color: rgba(255,255,255,.4); }
.su-logout { margin-left: auto; font-size: 1rem; opacity: .4; }

/* ── Drawer backdrop ── */
#drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 199;
  backdrop-filter: blur(2px);
}

/* ── Topbar ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  padding: 0 1rem;
  gap: .75rem;
  z-index: 100;
  box-shadow: 0 1px 0 var(--gray-200), 0 2px 8px rgba(0,0,0,.04);
}
@media (min-width: 900px) {
  .topbar { left: var(--sidebar-w); }
}
.topbar-menu {
  width: 36px; height: 36px;
  border: none; background: none;
  border-radius: var(--radius-sm);
  font-size: 1.2rem; color: var(--gray-600);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.topbar-menu:hover { background: var(--gray-100); }
.topbar-title {
  font-size: 1rem; font-weight: 700;
  color: var(--gray-900); flex: 1;
  display: flex; align-items: center;
  overflow: hidden;
}
.topbar-right {
  display: flex; align-items: center; gap: .5rem;
}
.topbar-btn {
  width: 36px; height: 36px;
  border: none; background: var(--gray-100);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  position: relative;
}
.topbar-btn:hover { background: var(--gray-200); }
.topbar-notif-badge {
  position: absolute; top: 2px; right: 2px;
  width: 8px; height: 8px;
  background: var(--c-danger);
  border-radius: 50%;
  border: 2px solid white;
}

/* ── Bottom Nav ── */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: white;
  border-top: 1px solid var(--gray-200);
  display: flex;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer;
  color: var(--gray-400);
  font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  border: none; background: none;
  transition: color .2s;
  position: relative;
  padding: .5rem 0;
}
.bnav-item .bnav-icon { font-size: 1.3rem; line-height: 1; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.bnav-item.active { color: var(--c-primary); }
.bnav-item.active .bnav-icon { transform: scale(1.15); }
.bnav-item::before {
  content: ''; position: absolute; top: 0; left: 30%; right: 30%;
  height: 2.5px; border-radius: 0 0 4px 4px;
  background: var(--c-primary);
  transform: scaleX(0); transition: transform .2s;
}
.bnav-item.active::before { transform: scaleX(1); }

/* Create button in nav */
.bnav-create {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer;
  border: none; background: none;
  font-size: .62rem; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .04em;
}
.bnav-create-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--c-primary), var(--violet-500));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white;
  box-shadow: 0 4px 14px rgba(79,70,229,.45);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.bnav-create:hover .bnav-create-icon { transform: scale(1.08) rotate(5deg); }

/* Notif badge on bottom nav */
.bnav-notif-wrap { position: relative; }
.bnav-badge {
  position: absolute; top: -3px; right: -4px;
  background: var(--c-danger); color: white;
  border-radius: 999px; font-size: .55rem; font-weight: 700;
  min-width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid white;
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
#main-content {
  padding: 1.25rem 1rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  #main-content { padding: 1.75rem 2rem 2rem; max-width: 100%; }
}
/* Panel mesin: padding minimal agar kolom pakai tinggi penuh */
#main-content:has(.mesin-layout) {
  padding: .75rem 1rem 0;
}

/* ── Page header ── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; gap: 1rem;
}
.page-header h2 { font-size: 1.35rem; font-weight: 800; color: var(--gray-900); }

/* ── Section header ── */
.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.25rem 0 .75rem;
}
.section-hd h3 { font-size: .9rem; font-weight: 700; color: var(--gray-700); }
.section-hd .see-all { font-size: .78rem; color: var(--c-primary); font-weight: 600; cursor: pointer; }

.section-divider {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gray-400);
  padding: 1rem 0 .4rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: .75rem;
}

/* ══════════════════════════════════════
   SUMMARY STAT CARDS
══════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 600px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: relative; overflow: hidden;
  transition: all .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.stat-card.blue::before   { background: linear-gradient(90deg,#6366F1,#8B5CF6); }
.stat-card.yellow::before { background: linear-gradient(90deg,#F59E0B,#F97316); }
.stat-card.green::before  { background: linear-gradient(90deg,#10B981,#059669); }
.stat-card.red::before    { background: linear-gradient(90deg,#EF4444,#DC2626); }

.stat-icon {
  font-size: 1.35rem; margin-bottom: .5rem;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
}
.stat-card.blue   .stat-icon { background: var(--indigo-50); }
.stat-card.yellow .stat-icon { background: var(--c-warning-l); }
.stat-card.green  .stat-icon { background: var(--c-success-l); }
.stat-card.red    .stat-icon { background: var(--c-danger-l); }

.stat-num {
  font-size: 2rem; font-weight: 900; line-height: 1;
  margin-bottom: .25rem;
}
.stat-card.blue   .stat-num { color: var(--c-primary); }
.stat-card.yellow .stat-num { color: var(--c-warning); }
.stat-card.green  .stat-num { color: var(--c-success); }
.stat-card.red    .stat-num { color: var(--c-danger); }

.stat-label { font-size: .75rem; color: var(--gray-500); font-weight: 500; }

/* ══════════════════════════════════════
   WARNING BANNERS
══════════════════════════════════════ */
.warn-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.25rem; }
.warn-banner {
  display: flex; align-items: center; gap: .875rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .85rem; font-weight: 600;
  border-left: 4px solid;
}
.warn-banner .wb-icon { font-size: 1.25rem; flex-shrink: 0; }
.warn-banner .wb-body { flex: 1; }
.warn-banner .wb-body b { display: block; }
.warn-banner .wb-body span { font-size: .78rem; font-weight: 400; opacity: .8; }
.wb-count {
  font-size: 1.3rem; font-weight: 900;
  min-width: 32px; text-align: right;
}

.warn-banner.danger  { background: var(--c-danger-l);  border-color: var(--c-danger);  color: #991B1B; }
.warn-banner.orange  { background: var(--c-orange-l);  border-color: var(--c-orange);  color: #9A3412; }
.warn-banner.yellow  { background: var(--c-warning-l); border-color: var(--c-warning); color: #92400E; }
.warn-banner.info    { background: var(--c-info-l);    border-color: var(--c-info);    color: #1E40AF; }

/* Inline order warning */
.order-warn-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px;
}
.order-warn-tag.terlambat    { background: var(--c-danger-l);  color: var(--c-danger); }
.order-warn-tag.jatuh_tempo  { background: var(--c-orange-l);  color: var(--c-orange); }
.order-warn-tag.cetak_belum  { background: var(--c-warning-l); color: #92400E; }
.order-warn-tag.mendatang    { background: var(--c-info-l);    color: var(--c-info); }

/* ══════════════════════════════════════
   BADGE TIPE PAPAN — BIG & MENCOLOK
══════════════════════════════════════ */
.badge-papan {
  display: inline-flex; flex-direction: column; align-items: center;
  border-radius: 10px;
  padding: .5rem .75rem;
  min-width: 88px; text-align: center;
  flex-shrink: 0;
}
.badge-papan .bp-tipe  { font-size: 1rem; font-weight: 900; letter-spacing: .02em; color: white; line-height: 1.2; }
.badge-papan .bp-ukuran{ font-size: .62rem; font-weight: 600; color: rgba(255,255,255,.8); margin-top: 2px; }

/*  🔵 STD    = Biru        */
.badge-papan.STD    { background: linear-gradient(135deg,#1D4ED8,#3B82F6); box-shadow: 0 4px 12px rgba(29,78,216,.35); }
/*  🟢 MDM    = Hijau Emerald */
.badge-papan.MDM    { background: linear-gradient(135deg,#065F46,#10B981); box-shadow: 0 4px 12px rgba(16,185,129,.35); }
/*  🟠 DSTD   = Oranye       */
.badge-papan.DSTD   { background: linear-gradient(135deg,#C2410C,#F97316); box-shadow: 0 4px 12px rgba(249,115,22,.35); }
/*  🩵 DMDM   = Teal         */
.badge-papan.DMDM   { background: linear-gradient(135deg,#0F766E,#14B8A6); box-shadow: 0 4px 12px rgba(20,184,166,.35); }
/*  🩷 MINI   = Pink/Rose    */
.badge-papan.MINI   { background: linear-gradient(135deg,#BE185D,#EC4899); box-shadow: 0 4px 12px rgba(236,72,153,.35); }
/*  🟣 CUSTOM = Ungu         */
.badge-papan.CUSTOM { background: linear-gradient(135deg,#6D28D9,#8B5CF6); box-shadow: 0 4px 12px rgba(109,40,217,.35); }

/* ── Status badge ── */
.status-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.status-badge::before { content: '●'; font-size: .6rem; }
.status-badge.baru          { background: var(--indigo-50);  color: var(--c-primary); }
.status-badge.proses_cetak  { background: var(--c-warning-l); color: #92400E; }
.status-badge.selesai_cetak { background: var(--c-success-l); color: #065F46; }
.status-badge.terkirim      { background: var(--gray-100);    color: var(--gray-600); }

/* ══════════════════════════════════════
   ADMIN TWO-COLUMN HOME
══════════════════════════════════════ */
.admin-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: .25rem;
}
@media (min-width: 900px) {
  .admin-two-col { grid-template-columns: 1fr 1fr; align-items: start; }
}
.admin-box {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-box-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.admin-box-hd-title {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--gray-500);
}
.admin-box-count {
  font-size: .7rem; font-weight: 700;
  background: var(--c-primary); color: white;
  border-radius: 999px; min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
.admin-box-count.done { background: var(--c-success); }
.admin-box .order-list { padding: .75rem; display: flex; flex-direction: column; gap: .6rem; }
.admin-box .order-list.compact-list { padding: .5rem; gap: 0; }
.admin-box .compact-list .compact-card { border-radius: 0; border-left: none; border-right: none; border-top: none; }
.admin-box .compact-list .compact-card:first-of-type { border-top: none; }
.admin-box .compact-list .cc-detail { border-radius: 0; }
.admin-box .order-card { margin-bottom: 0; }
.admin-box .empty-state { padding: 2rem 1rem; }

/* ── Mesin layout: fixed-height columns with inner scroll ── */
@media (min-width: 900px) {
  .admin-two-col.mesin-layout {
    height: calc(100dvh - var(--topbar-h) - 2rem);
    align-items: stretch;
  }
  .admin-two-col.mesin-layout .admin-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }
  .admin-two-col.mesin-layout .admin-box .order-list {
    flex: 1 1 0;
    overflow-y: auto;
    padding-bottom: 1rem;
  }
  /* Scrollbar tipis */
  .admin-two-col.mesin-layout .admin-box .order-list::-webkit-scrollbar { width: 4px; }
  .admin-two-col.mesin-layout .admin-box .order-list::-webkit-scrollbar-track { background: transparent; }
  .admin-two-col.mesin-layout .admin-box .order-list::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 999px; }

  /* ── Kartu COMPACT di panel mesin ──
     Operator cuma butuh: tipe + nama + tombol
     Sembunyikan detail yang tidak perlu                    */
  .admin-two-col.mesin-layout .order-card .oc-body {
    padding: .55rem .875rem .4rem;
  }
  .admin-two-col.mesin-layout .order-card .oc-top {
    gap: .55rem;
  }
  /* Badge papan lebih kecil */
  .admin-two-col.mesin-layout .badge-papan {
    padding: .4rem .5rem;
    min-width: 66px;
    border-radius: 8px;
  }
  .admin-two-col.mesin-layout .badge-papan .bp-tipe   { font-size: .78rem; }
  .admin-two-col.mesin-layout .badge-papan .bp-ukuran { font-size: .54rem; }
  /* Nama & nomor order */
  .admin-two-col.mesin-layout .oc-customer { font-size: .85rem; }
  .admin-two-col.mesin-layout .oc-nomor    { font-size: .68rem; }
  .admin-two-col.mesin-layout .oc-badges   { margin-top: .3rem; }
  /* SEMBUNYIKAN baris Cetak/Kirim/Jml/Admin — tidak perlu di panel mesin */
  .admin-two-col.mesin-layout .oc-meta     { display: none; }
  /* Progress bar tipis */
  .admin-two-col.mesin-layout .oc-progress { margin-top: .4rem; }
  .admin-two-col.mesin-layout .oc-step     { height: 3px; }
  /* Footer tombol super rapat */
  .admin-two-col.mesin-layout .oc-footer {
    padding: .4rem .875rem;
  }
  .admin-two-col.mesin-layout .oc-footer .btn {
    font-size: .78rem;
    padding: .38rem .8rem;
  }
}

/* ══════════════════════════════════════
   MESIN ORDER CARD — kartu compact horizontal
   Tinggi tetap ~90px, tombol selalu kelihatan
══════════════════════════════════════ */
.moc {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: .85rem 1rem;
  cursor: pointer;
  transition: box-shadow .15s;
  min-height: 90px;
}
.moc:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.moc-left {
  display: flex; align-items: center; gap: .65rem;
  flex: 1; min-width: 0; overflow: hidden;
}
.moc .badge-papan {
  flex-shrink: 0;
  padding: .5rem .55rem;
  min-width: 68px;
  border-radius: 9px;
}
.moc .badge-papan .bp-tipe   { font-size: .78rem; }
.moc .badge-papan .bp-ukuran { font-size: .55rem; }
.moc-info { flex: 1; min-width: 0; overflow: hidden; }
.moc-name { font-size: .88rem; font-weight: 700; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moc-num  { font-size: .68rem; color: var(--gray-400); margin-top: 1px; }
.moc-catatan {
  font-size: .72rem;
  color: var(--gray-500);
  margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.moc-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: .4rem;
  flex-shrink: 0;
}
.moc-progress {
  display: flex; gap: 3px; margin-top: 0; width: 90px;
}
.moc-progress .oc-step { height: 4px; }
.moc-actions { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.moc-actions .btn { font-size: .78rem; padding: .4rem .85rem; white-space: nowrap; }

/* ══════════════════════════════════════
   ORDER NEW — lampu kedip untuk status baru
══════════════════════════════════════ */

/* Dot merah berkedip di samping badge — inline dalam konten, tidak terpotong */
.new-blink-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  animation: dot-blink 1s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(239,68,68,0);
    transform: scale(1.25);
  }
}

/* Border kiri merah tebal + glow lembut di kartu */
.order-card--new {
  border-left: 4px solid #ef4444 !important;
  animation: card-glow-new 2s ease-in-out infinite;
}
@keyframes card-glow-new {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0), var(--shadow-sm); }
  50%       { box-shadow: 0 0 0 4px rgba(239,68,68,0.15), var(--shadow-sm); }
}

/* ══════════════════════════════════════
   STEP FLOW BUTTONS (operator progress)
══════════════════════════════════════ */
.step-flow {
  display: flex; align-items: center;
  gap: .35rem; flex-wrap: wrap;
}
.step-done {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .32rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .75rem; font-weight: 600;
  background: var(--gray-100); color: var(--gray-400);
  border: 1px solid var(--gray-200);
  cursor: default; white-space: nowrap;
}
.step-arrow {
  color: var(--gray-300); font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0; line-height: 1;
}

/* ══════════════════════════════════════
   ORDER CARDS
══════════════════════════════════════ */
.order-list { display: flex; flex-direction: column; gap: .75rem; }

.order-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}
.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}
.order-card.warn-terlambat            { border-left: 3px solid var(--c-danger); }
.order-card.warn-jatuh_tempo_hari_ini { border-left: 3px solid var(--c-orange); }
.order-card.warn-cetak_belum_diambil  { border-left: 3px solid var(--c-warning); }

.oc-body { padding: 1rem; }
.oc-top  { display: flex; align-items: flex-start; gap: .875rem; }
.oc-info { flex: 1; overflow: hidden; }
.oc-customer { font-size: 1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 2px; }
.oc-nomor    { font-size: .75rem; color: var(--gray-400); font-weight: 500; }

.oc-badges   { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }

.oc-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .25rem .5rem;
  margin-top: .75rem;
  font-size: .77rem; color: var(--gray-500);
}
.oc-meta b { color: var(--gray-700); }

/* Progress bar 5 steps */
.oc-progress {
  display: flex; gap: 3px; margin-top: .875rem;
}
.oc-step {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--gray-200);
  transition: background .3s;
}
.oc-step.done { background: var(--c-success); }
.oc-step.active { background: var(--c-warning); }

.oc-footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--gray-100);
  display: flex; gap: .5rem; flex-wrap: wrap;
  background: var(--gray-50);
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  border: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.btn:active   { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

.btn-primary { background: linear-gradient(135deg,var(--c-primary),var(--violet-500)); color: white; box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(79,70,229,.4); transform: translateY(-1px); }

.btn-success { background: var(--c-success); color: white; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.btn-success:hover { background: #059669; transform: translateY(-1px); }

.btn-danger  { background: var(--c-danger); color: white; box-shadow: 0 4px 12px rgba(239,68,68,.25); }
.btn-danger:hover { background: #DC2626; transform: translateY(-1px); }

.btn-warning { background: var(--c-warning); color: white; }
.btn-warning:hover { background: #D97706; transform: translateY(-1px); }

.btn-outline {
  background: white; color: var(--c-primary);
  border: 2px solid var(--indigo-100);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--c-primary); background: var(--indigo-50); }

.btn-ghost { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-200); }

.btn-sm  { padding: .4rem .9rem; font-size: .775rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: .875rem 1.75rem; font-size: .95rem; }
.btn-xl  { padding: 1.1rem 2rem; font-size: 1.05rem; font-weight: 700; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }

/* Big create order button */
.btn-create-big {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--violet-500) 100%);
  color: white; border: none;
  border-radius: var(--radius-lg);
  font-size: 1.05rem; font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  box-shadow: var(--shadow-indigo);
  margin-bottom: 1.25rem;
}
.btn-create-big:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(79,70,229,.4); }
.btn-create-big .bcb-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

/* ══════════════════════════════════════
   FILTER TABS (pill style)
══════════════════════════════════════ */
.filter-tabs {
  display: flex; gap: .4rem; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 2px;
  margin-bottom: 1rem;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.ftab {
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: white;
  font-size: .8rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  color: var(--gray-500);
  transition: all .18s;
  box-shadow: var(--shadow-sm);
}
.ftab:hover  { border-color: var(--c-primary); color: var(--c-primary); background: var(--indigo-50); }
.ftab.active { background: var(--c-primary); border-color: var(--c-primary); color: white; box-shadow: 0 4px 12px rgba(79,70,229,.3); }

/* ══════════════════════════════════════
   SEARCH BAR
══════════════════════════════════════ */
.search-bar {
  display: flex; align-items: center; gap: .6rem;
  background: white; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .6rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--c-primary); }
.search-bar .search-icon { color: var(--gray-400); font-size: .95rem; }
.search-bar input {
  flex: 1; border: none; outline: none;
  font-size: .875rem; background: none; color: var(--gray-800);
}
.search-bar input::placeholder { color: var(--gray-400); }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-group  { margin-bottom: 1.1rem; }
.form-label  {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: .4rem;
}
.form-label .req { color: var(--c-danger); margin-left: 2px; }

.form-control {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .9rem; background: white;
  color: var(--gray-800);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-control.error { border-color: var(--c-danger); box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 82px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center; cursor: pointer;
  transition: all .2s;
  background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--c-primary); background: var(--indigo-50);
}
.uz-icon { font-size: 2.2rem; margin-bottom: .6rem; }
.uz-title { font-weight: 700; color: var(--gray-700); margin-bottom: .25rem; }
.uz-sub   { font-size: .78rem; color: var(--gray-400); }

.file-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--indigo-50); border: 1px solid var(--indigo-100);
  border-radius: var(--radius-sm);
  padding: .4rem .75rem;
  font-size: .8rem; font-weight: 500; color: var(--c-primary);
  margin: .25rem .25rem 0 0;
}
.file-chip .fc-del { cursor: pointer; opacity: .6; }
.file-chip .fc-del:hover { opacity: 1; color: var(--c-danger); }

/* ══════════════════════════════════════
   MODAL / SHEET
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
@media (min-width: 600px) {
  .modal-overlay { align-items: center; }
}

.modal-sheet {
  background: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 680px;
  max-height: 92dvh;
  overflow-y: auto;
  animation: slideUp .3s cubic-bezier(.34,1.2,.64,1);
}
@media (min-width: 600px) {
  .modal-sheet {
    border-radius: var(--radius-xl);
    max-height: 88dvh;
    animation: popIn .3s cubic-bezier(.34,1.2,.64,1);
  }
}

.modal-header {
  position: sticky; top: 0;
  background: white;
  padding: 1.25rem 1.25rem 0;
  z-index: 1;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: .875rem;
}
.modal-handle {
  width: 40px; height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 0 auto .875rem;
}
@media (min-width: 600px) { .modal-handle { display: none; } }
.modal-title { font-size: 1.05rem; font-weight: 800; color: var(--gray-900); }
.modal-close {
  position: absolute; top: .875rem; right: 1rem;
  width: 30px; height: 30px;
  border: none; background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer; font-size: .9rem; color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.modal-close:hover { background: var(--gray-200); }
.modal-body   { padding: 1.25rem; }
.modal-footer { padding: .875rem 1.25rem 1.5rem; display: flex; gap: .6rem; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── Detail rows ── */
.detail-grid { display: flex; flex-direction: column; gap: 0; }
.detail-row {
  display: flex; gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .875rem;
}
.detail-row:last-child { border-bottom: none; }
.dr-label { min-width: 120px; color: var(--gray-400); font-size: .78rem; font-weight: 500; padding-top: 2px; }
.dr-val   { font-weight: 500; color: var(--gray-800); flex: 1; }

/* ── Progress steps in detail ── */
.progress-track {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.progress-track::before {
  content: ''; position: absolute; left: 13px; top: 14px; bottom: 14px;
  width: 2px; background: var(--gray-200);
}
.pstep {
  display: flex; align-items: flex-start; gap: .875rem;
  padding: .7rem 0;
  position: relative;
}
.pstep-circle {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
  flex-shrink: 0; z-index: 1;
  border: 2px solid var(--gray-300);
  background: white;
  color: var(--gray-400);
  transition: all .2s;
}
.pstep.done .pstep-circle {
  background: var(--c-success); border-color: var(--c-success);
  color: white; font-size: .8rem;
  box-shadow: 0 4px 10px rgba(16,185,129,.35);
}
.pstep-body { flex: 1; }
.pstep-title { font-size: .875rem; font-weight: 700; color: var(--gray-700); }
.pstep.done .pstep-title { color: var(--gray-900); }
.pstep-meta { font-size: .75rem; color: var(--gray-400); margin-top: 2px; }
.pstep.done .pstep-meta { color: var(--c-success); }

/* ══════════════════════════════════════
   NOTIFICATIONS
══════════════════════════════════════ */
.notif-list { display: flex; flex-direction: column; }
.notif-item {
  display: flex; gap: .875rem; align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background .15s;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--indigo-50); }
.ni-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-primary); flex-shrink: 0; margin-top: 5px;
}
.notif-item:not(.unread) .ni-dot { background: transparent; }
.ni-body { flex: 1; }
.ni-msg  { font-size: .875rem; font-weight: 500; color: var(--gray-700); line-height: 1.4; }
.ni-time { font-size: .72rem; color: var(--gray-400); margin-top: .2rem; }

/* ══════════════════════════════════════
   PROFILE / SETTINGS
══════════════════════════════════════ */
.profile-hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1E1B4B 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center; margin-bottom: 1.25rem;
  position: relative; overflow: hidden;
}
.profile-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(99,102,241,.3) 0%, transparent 60%),
              radial-gradient(circle at 30% 80%, rgba(139,92,246,.2) 0%, transparent 60%);
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--violet-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 1rem;
  border: 3px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 24px rgba(79,70,229,.4);
  position: relative; z-index: 1;
}
.profile-name { font-size: 1.4rem; font-weight: 800; color: white; position: relative; z-index: 1; }
.profile-role-badge {
  display: inline-block; margin-top: .5rem;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: .3rem .9rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  position: relative; z-index: 1;
}

.settings-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  overflow: hidden; margin-bottom: 1rem;
}
.menu-item {
  display: flex; align-items: center; gap: .875rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
  font-size: .9rem; font-weight: 500; color: var(--gray-700);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--gray-50); }
.menu-item .mi-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.menu-item.danger { color: var(--c-danger); }
.menu-item .mi-arrow { margin-left: auto; color: var(--gray-400); font-size: .8rem; }

/* User rows */
.user-row {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.user-row:last-child { border-bottom: none; }
.ua-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800; color: white; flex-shrink: 0;
}
.ua-info { flex: 1; overflow: hidden; }
.ua-name { font-size: .875rem; font-weight: 700; color: var(--gray-800); }
.ua-meta { font-size: .75rem; color: var(--gray-400); display: flex; align-items: center; gap: .4rem; margin-top: 2px; }

.role-pill {
  display: inline-block; padding: .15rem .6rem; border-radius: 999px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.role-pill.admin  { background: var(--indigo-50); color: var(--c-primary); }
.role-pill.kantor { background: var(--c-success-l); color: #065F46; }
.role-pill.mesin  { background: var(--c-warning-l); color: #92400E; }

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 3.5rem 1.5rem;
  color: var(--gray-400);
}
.es-icon  { font-size: 3.5rem; margin-bottom: 1rem; opacity: .6; }
.es-title { font-size: 1rem; font-weight: 700; color: var(--gray-600); margin-bottom: .4rem; }
.es-sub   { font-size: .85rem; line-height: 1.5; }

/* ══════════════════════════════════════
   SKELETON LOADER
══════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-line  { height: 12px; margin-bottom: 8px; border-radius: 6px; }
.sk-card  { height: 100px; border-radius: var(--radius); margin-bottom: .75rem; }

/* ══════════════════════════════════════
   LOG TABLE
══════════════════════════════════════ */
.log-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: .82rem;
}
.log-badge {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: var(--radius-sm);
  background: var(--indigo-50); color: var(--c-primary);
  flex-shrink: 0; white-space: nowrap;
}
.log-info { flex: 1; }
.log-who  { font-weight: 700; color: var(--gray-800); }
.log-desc { color: var(--gray-500); margin-top: 1px; }
.log-time { font-size: .7rem; color: var(--gray-400); white-space: nowrap; }

/* ══════════════════════════════════════
   RESPONSIVE helpers
══════════════════════════════════════ */
@media (max-width: 899px) {
  .desk-only { display: none !important; }
}
@media (min-width: 900px) {
  .mob-only { display: none !important; }
}

/* Grid 2 col on desktop */
@media (min-width: 900px) {
  .order-list.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
  .order-list.grid-2 .order-card { margin-bottom: 0; }
}

/* Wide layout for desktop main */
@media (min-width: 900px) {
  .dash-layout {
    display: grid; grid-template-columns: 1fr 360px;
    gap: 1.5rem; align-items: start;
  }
}

/* ══════════════════════════════════════
   TOGGLE SWITCH — pengaturan notifikasi
══════════════════════════════════════ */
.pf-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.pf-toggle input {
  opacity: 0; width: 0; height: 0; position: absolute;
}
.pf-toggle-track {
  width: 44px; height: 24px;
  border-radius: 999px;
  background: var(--gray-300);
  transition: background .25s;
  position: relative;
  display: block;
}
.pf-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .25s;
}
.pf-toggle input:checked + .pf-toggle-track {
  background: var(--c-primary);
}
.pf-toggle input:checked + .pf-toggle-track::after {
  transform: translateX(20px);
}

/* ══════════════════════════════════════
   SIDEBAR CHAT BOX
══════════════════════════════════════ */
.sidebar-chat {
  display: flex; flex-direction: column;
  margin: 0 .75rem .5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(6,182,212,.25);   /* teal border biar keliatan */
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 260px;
  flex-shrink: 0;
}
.sc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .875rem;
  border-bottom: 1px solid rgba(6,182,212,.2);
  background: linear-gradient(135deg, rgba(8,145,178,.35), rgba(6,182,212,.2));
}
.sc-title { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .06em; }
.sc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 2px rgba(16,185,129,.3);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 2px rgba(16,185,129,.3); }
  50%      { box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
}
.sc-messages {
  flex: 1; overflow-y: auto;
  padding: .5rem .75rem;
  display: flex; flex-direction: column; gap: .4rem;
  scroll-behavior: smooth;
}
.sc-messages::-webkit-scrollbar { width: 3px; }
.sc-messages::-webkit-scrollbar-track { background: transparent; }
.sc-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.sc-msg {
  display: flex; flex-direction: column;
  max-width: 92%;
}
.sc-msg.me { align-self: flex-end; align-items: flex-end; }
.sc-msg.other { align-self: flex-start; }
.sc-msg-name {
  font-size: .6rem; font-weight: 600;
  color: rgba(255,255,255,.4);
  margin-bottom: 2px; padding: 0 4px;
}
.sc-msg.me .sc-msg-name { color: rgba(99,102,241,.7); }
.sc-msg-bubble {
  font-size: .75rem; line-height: 1.4;
  padding: .35rem .65rem;
  border-radius: 10px;
  word-break: break-word;
}
.sc-msg.me .sc-msg-bubble {
  background: var(--c-primary);
  color: white;
  border-bottom-right-radius: 3px;
}
.sc-msg.other .sc-msg-bubble {
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-bottom-left-radius: 3px;
}
.sc-msg-time {
  font-size: .58rem; color: rgba(255,255,255,.25);
  margin-top: 2px; padding: 0 4px;
}
.sc-input-row {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .6rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sc-input {
  flex: 1; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  color: white; font-size: .75rem;
  padding: .4rem .75rem;
  outline: none; font-family: var(--font);
}
.sc-input::placeholder { color: rgba(255,255,255,.3); }
.sc-input:focus { border-color: rgba(99,102,241,.5); background: rgba(255,255,255,.12); }
.sc-send {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  border: none; color: white; cursor: pointer;
  font-size: .9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity .15s;
  box-shadow: 0 2px 8px rgba(8,145,178,.4);
}
.sc-send:hover { opacity: .85; }

/* ══════════════════════════════════════
   DATE NAV (← tanggal →) di box header
══════════════════════════════════════ */
.date-nav {
  display: flex; align-items: center; gap: .4rem;
}
.date-nav-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--gray-200);
  cursor: pointer; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); transition: background .15s;
  flex-shrink: 0;
}
.date-nav-btn:hover { background: var(--gray-100); }
.date-nav-btn:disabled { opacity: .35; cursor: default; }
.date-nav-label {
  font-size: .68rem; font-weight: 600;
  color: var(--gray-600); white-space: nowrap;
}

/* ══════════════════════════════════════
   COMPACT CARD (kolom kanan operator)
══════════════════════════════════════ */
.compact-card {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  position: relative;
}
.compact-card:hover { background: var(--gray-50); box-shadow: var(--shadow-sm); }
.compact-card.expanded { background: var(--indigo-50); border-color: var(--indigo-100); }
.cc-badge {
  flex-shrink: 0;
  font-size: .6rem; font-weight: 800;
  padding: .25rem .4rem;
  border-radius: 5px;
  background: var(--c-primary); color: white;
  text-transform: uppercase; letter-spacing: .03em;
  min-width: 36px; text-align: center;
}
.cc-info { flex: 1; min-width: 0; }
.cc-name {
  font-size: .78rem; font-weight: 700;
  color: var(--gray-800); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.cc-sub {
  font-size: .67rem; color: var(--gray-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-time { font-size: .65rem; color: var(--gray-400); flex-shrink: 0; }

/* Expanded detail panel */
.cc-detail {
  display: none;
  padding: .6rem .75rem;
  background: var(--indigo-50);
  border-top: 1px solid var(--indigo-100);
  font-size: .75rem;
  animation: slideDown .18s ease;
}
.compact-card.expanded + .cc-detail { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cc-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .35rem .75rem; margin-bottom: .6rem;
}
.cc-detail-row { display: flex; flex-direction: column; }
.cc-detail-label { font-size: .62rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cc-detail-val   { font-size: .75rem; color: var(--gray-700); font-weight: 600; margin-top: 1px; }


/* ══════════════════════════════════════
   FLOATING CHAT (Admin)
══════════════════════════════════════ */
#float-chat {
  position: fixed;
  /* Naik lebih tinggi di HP + hormati safe area (notch/home indicator) */
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: .75rem;
}
@media (min-width: 900px) {
  #float-chat { bottom: 28px; right: 28px; }
}
#float-chat.hidden { display: none !important; }

#fc-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  border: none; cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(8,145,178,.50);
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  /* Hapus highlight abu-abu saat tap di mobile */
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  user-select: none;
}
#fc-toggle:hover  { transform: scale(1.08); box-shadow: 0 6px 28px rgba(8,145,178,.65); }
#fc-toggle:active { transform: scale(0.96); }
#fc-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--c-danger);
  color: white; font-size: .58rem; font-weight: 800;
  border-radius: 999px; min-width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
}
#fc-badge.show { display: inline-flex; }

#fc-panel {
  width: min(360px, 96vw);
  height: min(480px, 72vh);
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,.2);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: fcOpen .22s cubic-bezier(.34,1.56,.64,1);
  border: 1px solid var(--gray-200);
}
@media (max-width: 899px) {
  #fc-panel {
    position: fixed;
    bottom: 80px; right: 8px; left: 8px;
    width: auto;
    border-radius: 16px;
  }
}
#fc-panel.hidden { display: none; }
@keyframes fcOpen {
  from { opacity:0; transform: scale(.85) translateY(12px); }
  to   { opacity:1; transform: none; }
}

.fc-header {
  display: flex; align-items: center; gap: .6rem;
  padding: .875rem 1.1rem;
  background: linear-gradient(135deg, #0e7490, #0891b2);
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.fc-title { flex: 1; font-size: .82rem; font-weight: 700; color: white; }
.fc-close {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none; color: rgba(255,255,255,.7); cursor: pointer;
  font-size: .8rem; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.fc-close:hover { background: rgba(255,255,255,.22); }

.fc-messages {
  flex: 1; overflow-y: auto; padding: .875rem;
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--gray-50);
  scroll-behavior: smooth;
}
.fc-messages::-webkit-scrollbar { width: 4px; }
.fc-messages::-webkit-scrollbar-track { background: transparent; }
.fc-messages::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

.fc-msg { display: flex; flex-direction: column; max-width: 85%; }
.fc-msg.me { align-self: flex-end; align-items: flex-end; }
.fc-msg.other { align-self: flex-start; }
.fc-msg-name { font-size: .62rem; font-weight: 700; color: var(--gray-400); margin-bottom: 2px; padding: 0 6px; }
.fc-msg.me .fc-msg-name { color: var(--c-primary); }
.fc-msg-bubble {
  font-size: .82rem; line-height: 1.45;
  padding: .45rem .8rem;
  border-radius: 12px;
  word-break: break-word;
}
.fc-msg.me .fc-msg-bubble {
  background: linear-gradient(135deg, var(--c-primary), var(--violet-500));
  color: white;
  border-bottom-right-radius: 3px;
}
.fc-msg.other .fc-msg-bubble {
  background: white;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 3px;
}
.fc-msg-time { font-size: .6rem; color: var(--gray-400); margin-top: 2px; padding: 0 6px; }

.fc-input-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem .875rem;
  border-top: 1px solid var(--gray-200);
  background: white;
  flex-shrink: 0;
}
.fc-input {
  flex: 1; border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: .5rem .9rem;
  font-size: .83rem; outline: none;
  font-family: var(--font);
  background: var(--gray-50);
  transition: border-color .15s;
}
.fc-input:focus { border-color: var(--c-primary); background: white; }
.fc-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--violet-500));
  border: none; color: white; cursor: pointer;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity .15s;
}
.fc-send:hover { opacity: .85; }
