/* ==========================================
   Boat Inventory — Modern Stylesheet
   ========================================== */

:root {
  --bg: #f5f6fa;
  --bg-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --text: #0f1729;
  --text-2: #4a5670;
  --text-3: #8e96a8;
  --border: #e8ebf2;
  --border-2: #dde1ea;

  --navy: #0f1e36;
  --navy-2: #1a2d4d;
  --navy-3: #243d66;
  --accent: #ffb627;
  --accent-2: #ff8c42;

  --green: #10b981;
  --green-soft: #d1fae5;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --violet: #8b5cf6;
  --violet-soft: #ede9fe;
  --blue: #3b82f6;
  --blue-soft: #dbeafe;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 54, 0.04);
  --shadow: 0 1px 3px rgba(15, 30, 54, 0.04), 0 4px 12px rgba(15, 30, 54, 0.04);
  --shadow-lg: 0 4px 16px rgba(15, 30, 54, 0.06), 0 20px 40px rgba(15, 30, 54, 0.06);
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
  font-family: "IBM Plex Sans Thai", "Sukhumvit Set", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--text-3); }

/* ============= LOGIN v2 ============= */
.login2-wrap {
  min-height: 100vh;
  background: #0a0e1a;
  display: grid; place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login2-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.login2-bg::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 39, 0.18) 0%, transparent 65%);
  top: 10%; left: 5%;
  filter: blur(20px);
}
.login2-bg::after {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 65%);
  bottom: 0%; right: 0%;
  filter: blur(30px);
}
.login2-card {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1180px;
  min-height: 720px;
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.9), rgba(15, 20, 35, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

.login2-left {
  padding: 56px 48px;
  display: flex; flex-direction: column;
  color: #fff;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.login2-logo-card {
  width: 132px; height: 132px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
  border-radius: 22px;
  display: grid; place-items: center;
  margin-bottom: 36px;
  position: relative;
  box-shadow: 0 20px 50px rgba(255, 182, 39, 0.2);
  padding: 12px;
}
.login2-logo {
  font-size: 56px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.login2-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}
.login2-logo-label {
  position: absolute;
  bottom: 12px;
  font-size: 9px;
  font-weight: 800;
  color: #0f1e36;
  letter-spacing: 1.5px;
  text-align: center;
  line-height: 1.2;
}
.login2-logo-label span { font-size: 8px; opacity: 0.7; letter-spacing: 1.2px; }
.login2-headline {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login2-tag {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600;
  color: #fff;
}
.login2-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 36px;
}
.login2-features {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: auto;
}
.login2-feat {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: all 0.15s;
}
.login2-feat:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  transform: translateX(2px);
}
.login2-feat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 18px;
  color: #fff;
  flex: none;
}
.login2-feat-title { font-size: 14px; font-weight: 700; color: #fff; }
.login2-feat-sub { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }

.login2-clock {
  padding-top: 22px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.login2-time {
  font-size: 38px; font-weight: 200;
  letter-spacing: 4px;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.login2-date { font-size: 12px; color: rgba(255,255,255,0.5); }

/* RIGHT */
.login2-right {
  padding: 56px 48px;
  display: flex; flex-direction: column;
  color: #fff;
  overflow-y: auto;
  max-height: 100vh;
}
.login2-form-label {
  font-size: 11px;
  font-weight: 800;
  color: #ffb627;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.login2-form-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.5px;
}
.login2-form-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 32px;
}

.login2-form { display: flex; flex-direction: column; gap: 16px; }
.login2-field { display: flex; flex-direction: column; gap: 7px; }
.login2-field-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
}
.login2-input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0 16px;
  transition: all 0.15s;
}
.login2-input-wrap:focus-within {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255, 182, 39, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 182, 39, 0.12);
}
.login2-input-icon { font-size: 16px; opacity: 0.55; margin-right: 12px; }
.login2-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  padding: 14px 0;
}
.login2-input-wrap input::placeholder { color: rgba(255,255,255,0.35); }
.login2-input-wrap input:focus { box-shadow: none; }

.login2-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 8px;
}
.login2-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}
.login2-check input { accent-color: #ffb627; width: 16px; height: 16px; cursor: pointer; }
.login2-link {
  background: none; border: none; color: #ffb627;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.login2-link:hover { text-decoration: underline; }
.login2-link b { color: #ffb627; font-weight: 700; }

.login2-err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
}
.login2-btn {
  width: 100%;
  padding: 16px;
  margin-top: 12px;
  background: linear-gradient(135deg, #ffb627 0%, #ff8c42 100%);
  color: #0f1e36;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 30px rgba(255, 140, 66, 0.35);
}
.login2-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 140, 66, 0.5);
}
.login2-btn:active { transform: translateY(0); }

.login2-divider {
  margin: 28px 0 18px;
  text-align: center;
  position: relative;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}
.login2-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.login2-divider span {
  background: #141a2a;
  padding: 0 14px;
  position: relative;
}

.login2-demo-list { display: flex; flex-direction: column; gap: 8px; }
.login2-demo {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  color: #fff;
}
.login2-demo:hover {
  background: rgba(255, 182, 39, 0.08);
  border-color: rgba(255, 182, 39, 0.3);
  transform: translateX(2px);
}
.login2-demo-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #ffb627, #ff8c42);
  color: #0f1e36;
  font-weight: 800;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
}
.login2-demo-name { font-size: 14px; font-weight: 700; }
.login2-demo-sub { font-size: 12px; color: rgba(255,255,255,0.5); }
.login2-demo-arrow { color: rgba(255,255,255,0.4); font-size: 22px; }

.login2-footer {
  margin-top: auto;
  padding: 16px 18px 0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 28px;
}

@media (max-width: 960px) {
  .login2-card { grid-template-columns: 1fr; min-height: auto; }
  .login2-left, .login2-right { padding: 40px 28px; }
  .login2-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .login2-headline { font-size: 36px; }
  .login2-form-title { font-size: 28px; }
}


.login-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  background: var(--surface);
}
.login-left {
  background: linear-gradient(135deg, #050d1c 0%, #0f1e36 50%, #1e3a5f 100%);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: "";
  position: absolute;
  right: -150px; top: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 39, 0.25) 0%, transparent 65%);
}
.login-left::after {
  content: "";
  position: absolute;
  left: -100px; bottom: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 65%);
}
.login-brand {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 1;
}
.login-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(255, 182, 39, 0.4);
}
.login-brand-name {
  font-size: 22px; font-weight: 800; letter-spacing: 3px;
}
.login-brand-sub {
  font-size: 11px; opacity: 0.6; letter-spacing: 2px; text-transform: uppercase;
}
.login-headline {
  font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -1px;
  margin: auto 0 16px; position: relative; z-index: 1;
}
.login-tag {
  font-size: 16px; line-height: 1.7; opacity: 0.75; margin: 0 0 32px;
  position: relative; z-index: 1;
  max-width: 420px;
}
.login-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px;
  margin-bottom: 32px; position: relative; z-index: 1;
}
.lf {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 14px;
  border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}
.lf span { font-size: 18px; }
.login-clock {
  position: relative; z-index: 1;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.login-time {
  font-size: 42px; font-weight: 200; letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}
.login-date { opacity: 0.7; font-size: 13px; margin-top: 4px; }

.login-right {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px;
  background: var(--bg);
}
.login-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.login-card-head h2 { font-size: 28px; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.3px; }
.login-card-head p { margin: 0 0 28px; }
.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff; border: none;
  border-radius: var(--r);
  font-size: 15px; font-weight: 600;
  margin-top: 8px;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(15, 30, 54, 0.25);
}
.login-btn:hover { box-shadow: 0 10px 30px rgba(15, 30, 54, 0.35); transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }
.login-err {
  background: var(--red-soft); color: #991b1b;
  padding: 10px 14px; border-radius: var(--r-sm);
  margin: 12px 0; font-size: 13px;
}
.login-demo {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.demo-creds { margin-top: 8px; font-size: 13px; line-height: 1.8; }
.login-footer {
  text-align: center; color: var(--text-3); font-size: 12px;
  margin-top: 24px;
}

/* ============= SHELL ============= */
.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  background: linear-gradient(180deg, #0a1426 0%, #0f1e36 100%);
  color: #cdd6e4;
  padding: 22px 0 14px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 22px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(255, 182, 39, 0.3);
}
.brand-name { font-weight: 800; font-size: 16px; color: #fff; letter-spacing: 2px; }
.brand-sub { font-size: 10px; opacity: 0.55; letter-spacing: 1.5px; text-transform: uppercase; }

.nav { flex: 1; overflow-y: auto; padding: 16px 0; }
.nav-group { margin-bottom: 18px; }
.nav-group-title {
  padding: 4px 22px 8px;
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
}
.nav-item {
  width: calc(100% - 16px);
  margin: 1px 8px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: transparent; border: none;
  color: #b8c1d4;
  font-size: 13.5px;
  text-align: left;
  border-radius: 10px;
  transition: all 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 182, 39, 0.18), rgba(255, 140, 66, 0.1));
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 182, 39, 0.18);
}
.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.user-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  margin: 0 12px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; color: #fff; font-weight: 600; }
.user-role { font-size: 11px; opacity: 0.55; }
.icon-btn {
  background: transparent; border: 1px solid transparent;
  color: inherit; padding: 6px 8px;
  border-radius: 6px; font-size: 14px;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.icon-btn.danger:hover { background: var(--red-soft); color: #991b1b; }
.reset-btn {
  margin: 6px 12px 0;
  padding: 8px;
  background: transparent;
  color: rgba(255,255,255,0.35);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 11px;
}
.reset-btn:hover { color: #fff; background: rgba(255,255,255,0.04); }

/* ============= MAIN ============= */
.main {
  padding: 28px 32px;
  max-width: 1600px;
  width: 100%;
}
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}
.page-head h1 { margin: 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
.page-head p { margin: 0; font-size: 13.5px; }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  background: var(--green-soft);
  color: #065f46;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--green);
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ============= CARDS ============= */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card.no-pad { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.card-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.1px; }
.link {
  background: none; border: none; color: var(--navy);
  font-size: 12px; font-weight: 600;
  padding: 4px 8px; border-radius: 6px;
}
.link:hover { background: var(--bg-2); }
.legend {
  display: flex; gap: 14px; font-size: 11px; color: var(--text-2); font-weight: 500;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
}

.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.grid-3 {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 1200px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ============= STAT GRID ============= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-card .stat-spark {
  position: absolute; right: 0; bottom: 0; width: 100%; height: 50%;
  opacity: 0.18; pointer-events: none;
}
.stat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.stat-label { color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: 0.2px; }
.stat-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 18px;
}
.stat-value {
  font-size: 34px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1; letter-spacing: -1px;
  position: relative; z-index: 1;
}
.stat-sub {
  color: var(--text-3); font-size: 12px; margin-top: 8px;
  display: flex; align-items: center; gap: 6px;
  position: relative; z-index: 1;
}
.stat-trend {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.stat-trend.up { background: var(--green-soft); color: #065f46; }
.stat-trend.down { background: var(--red-soft); color: #991b1b; }
.stat-trend.flat { background: var(--bg-2); color: var(--text-2); }

/* ============= CATEGORY GRID ============= */
.cat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.cat-tile {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--cat-color);
}
.cat-tile-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.cat-tile-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 20px;
}
.cat-tile-name { font-weight: 700; font-size: 14px; }
.cat-tile-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.cat-tile-num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1; }
.cat-tile-unit { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.warn-pill {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px;
  font-size: 11px;
  background: var(--red-soft);
  color: #991b1b;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 600;
}

/* ============= CHART ============= */
.chart-bars, .chart-area { width: 100%; height: auto; }
.kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.kpi { padding: 0 4px; }
.kpi-label { font-size: 11px; color: var(--text-3); font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.kpi-val { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }

.donut { width: 180px; flex: none; }
.legend-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.legend-row:last-child { border-bottom: none; }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }

/* ============= LOW STOCK / ACTIVITY ============= */
.lowstock-list { display: flex; flex-direction: column; gap: 14px; }
.lowstock-row {
  display: grid; grid-template-columns: 1.3fr 1fr 0.9fr;
  align-items: center; gap: 14px;
  font-size: 13px;
}
.lowstock-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lowstock-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lowstock-bar {
  width: 100%; height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden;
}
.lowstock-bar-fill { height: 100%; transition: width 0.5s; border-radius: 4px; }
.lowstock-num { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }

.activity-list { display: flex; flex-direction: column; gap: 4px; max-height: 480px; overflow-y: auto; }
.activity-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background 0.12s;
}
.activity-row:hover { background: var(--bg-2); }
.activity-kind {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
}
.activity-title {
  font-weight: 600; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.activity-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.activity-right { text-align: right; font-size: 13px; }

/* ============= TABLES ============= */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table thead th {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border-2);
  position: sticky; top: 0;
}
.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table.compact th, .data-table.compact td { padding: 9px 12px; }
.num-col { text-align: right; font-variant-numeric: tabular-nums; }
.matrix td.num-col { padding: 12px 16px; }

/* ============= FILTERS ============= */
.filter-bar {
  display: flex; gap: 12px;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-left, .filter-right {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
}
.filter-left label, .filter-right label { font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.chip-group {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-2);
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 500;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active {
  background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600;
}

input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 12px;
  border-radius: 9px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(36, 61, 102, 0.12);
}

.toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2);
  cursor: pointer;
}
.toggle input { margin: 0; }

/* ============= BADGES / PILLS ============= */
.cat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}
.cat-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ============= BUTTONS ============= */
.btn-primary, .btn-ghost, .btn-danger {
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(15, 30, 54, 0.18);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 30, 54, 0.25); }
.btn-ghost {
  background: var(--surface); color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn-danger {
  background: var(--surface); color: #991b1b;
  border-color: #fecaca;
}
.btn-danger:hover { background: var(--red-soft); }
.icon-btn.danger { color: #991b1b; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.row-actions .icon-btn { color: var(--text-2); }
.row-actions .icon-btn:hover { background: var(--bg-2); }

/* ============= TABS ============= */
.tab-bar {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.tab {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--navy); }
.tab.active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

/* ============= MODAL ============= */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 30, 54, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn 0.15s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  max-height: 90vh;
  overflow: auto;
  animation: slideUp 0.2s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-body { padding: 22px; }
.modal-head .icon-btn { color: var(--text-3); font-size: 16px; }

/* ============= FORM ============= */
.form-grid {
  display: flex; flex-direction: column; gap: 14px;
}
.field {
  display: flex; flex-direction: column; gap: 5px;
}
.field-label {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.field input, .field select, .field textarea {
  width: 100%;
}
.field-hint {
  font-size: 11px; color: var(--text-3);
}
.form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============= PROJECTS ============= */
.project-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.project-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.project-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.project-code {
  background: var(--navy); color: #fff;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  font-family: ui-monospace, monospace;
}
.project-name { margin: 0 0 12px; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.2px; }
.project-meta { margin-bottom: 14px; font-size: 13px; }
.project-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px 0; margin-bottom: 14px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.project-stats > div { font-size: 11px; }
.project-stats b { display: block; font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.project-actions {
  display: flex; gap: 8px; margin-top: auto;
}
.project-actions button { flex: 1; }

/* ============= PROJECT SELECTOR ============= */
.proj-selector {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.proj-selector-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.proj-selector-label {
  font-size: 11px; font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.proj-selector-controls {
  display: flex; gap: 6px;
}
.proj-scroll-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}
.proj-scroll-btn:hover:not(:disabled) {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: scale(1.05);
}
.proj-scroll-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.proj-selector-wrap {
  position: relative;
}
.proj-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 1;
}
.proj-fade-l { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.proj-fade-r { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.proj-selector-list {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding: 4px;
  margin: -4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.proj-selector-list::-webkit-scrollbar { display: none; }
.proj-chip {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 180px;
  text-align: left;
}
.proj-chip:hover {
  border-color: var(--navy-3);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.proj-chip.active {
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(15, 30, 54, 0.25);
}
.proj-chip.active .proj-chip-name,
.proj-chip.active .proj-chip-stat { color: rgba(255,255,255,0.7); }
.proj-chip.active .proj-chip-icon { background: rgba(255, 182, 39, 0.2) !important; color: var(--accent) !important; }
.proj-chip-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: grid; place-items: center;
  font-family: ui-monospace, monospace;
  flex: none;
}
.proj-chip-body {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.proj-chip-code {
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
}
.proj-chip-name {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.proj-chip-stat {
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.proj-chip-add {
  border-style: dashed;
  border-color: var(--border-2);
  color: var(--text-2);
}
.proj-chip-add:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: var(--surface);
}
.proj-chip-add .proj-chip-icon {
  font-size: 18px;
  font-weight: 400;
}


/* ============= NOTIFICATION BELL ============= */
.brand-text { flex: 1; }
.notif-wrap { position: relative; }
.notif-bell {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  display: grid; place-items: center;
}
.notif-bell:hover { background: rgba(255,255,255,0.1); color: #fff; }
.notif-bell.has-pending { animation: bellShake 2.5s ease-in-out infinite; }
@keyframes bellShake {
  0%, 95%, 100% { transform: rotate(0); }
  87% { transform: rotate(-10deg); }
  90% { transform: rotate(10deg); }
  93% { transform: rotate(-6deg); }
}
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: grid; place-items: center;
  border: 2px solid #0f1e36;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}
.notif-pop {
  position: absolute;
  top: 44px; right: -8px;
  width: 340px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  z-index: 50;
  overflow: hidden;
  animation: slideUp 0.15s;
  color: var(--text);
}
.notif-pop-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.notif-list {
  max-height: 360px;
  overflow-y: auto;
}
.notif-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.notif-item {
  display: flex; gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background 0.12s;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item:last-child { border-bottom: none; }
.notif-item-icon {
  width: 36px; height: 36px;
  background: #ede9fe;
  color: #6d28d9;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px;
  flex: none;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 11px; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: 0.5px; }
.notif-item-sub { font-size: 13px; margin-top: 2px; }
.notif-item-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.notif-foot {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--surface-2);
  border: none;
  border-top: 1px solid var(--border);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.notif-foot:hover { background: var(--bg-2); }

.nav-item-badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: grid; place-items: center;
}

/* ============= ALERT BANNERS ============= */
.alert-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  border: 1px solid #ddd6fe;
  border-left: 4px solid #8b5cf6;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
}
.alert-banner.alert-warn {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border-color: #fde68a;
  border-left-color: #f59e0b;
}

/* ============= TRANSFER WORKFLOW ============= */
.row-pending td { background: linear-gradient(90deg, #fffbeb 0%, transparent 80%); }
.row-pending:hover td { background: linear-gradient(90deg, #fef3c7 0%, var(--surface-2) 80%); }
.row-rejected td { opacity: 0.55; }
.row-rejected td b { text-decoration: line-through; }

.approve-btn {
  background: #10b981; color: #fff;
  border: none;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.approve-btn:hover { background: #059669; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); transform: translateY(-1px); }

.reject-btn {
  background: var(--surface);
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.reject-btn:hover { background: #fee2e2; }


.adjust-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--bg-2);
  padding: 5px;
  border-radius: 12px;
}
.adjust-tog {
  background: transparent;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.15s;
  cursor: pointer;
}
.adjust-tog:hover { background: var(--surface); }
.adjust-tog.active.in {
  background: #10b981; color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.adjust-tog.active.out {
  background: #ef4444; color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ============= STOCK PAGE — single project ============= */
.stock-summary {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stock-summary-item {
  border-right: 1px solid var(--border);
  padding-right: 14px;
}
.stock-summary-label {
  font-size: 10px; font-weight: 700;
  color: var(--text-3);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 6px;
}
.stock-summary-name { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; }
.stock-summary-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stock-summary-stat { padding: 0 6px; }
.ss-label { font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: 0.3px; }
.ss-num { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1.1; margin-top: 4px; }
.ss-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.stock-section { margin-bottom: 14px; }
.stock-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}
.stock-section-title { display: flex; align-items: center; gap: 12px; }
.stock-section-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 20px;
}
.stock-section-name { font-size: 15px; font-weight: 800; }

.stock-actions { display: flex; gap: 6px; }
.qa-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.15s;
  white-space: nowrap;
}
.qa-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qa-btn.qa-in:hover:not(:disabled) {
  background: #10b981; color: #fff; border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}
.qa-btn.qa-out:hover:not(:disabled) {
  background: #ef4444; color: #fff; border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .stock-summary { grid-template-columns: 1fr 1fr; }
  .stock-summary-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; grid-column: span 2; }
}

.empty {
  padding: 50px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

/* ============= TOAST ============= */
.toast-wrap {
  position: fixed; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 200;
}
.toast {
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 11px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  min-width: 240px;
  animation: slideInRight 0.2s;
}
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.toast-warn { background: #92400e; }
.toast-warn .toast-dot { background: var(--accent); }

/* ============= PRINT ============= */
@media print {
  .sidebar, .page-head button, .filter-bar, .row-actions { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
  body { background: #fff; }
}

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-left { padding: 32px; }
  .login-headline { font-size: 36px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .main { padding: 20px; }
}
