/* ================================================
   TAKASHIMAYA DC SYSTEM — MAIN STYLES
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #b91c31;
  --primary-dark: #9b1728;
  --primary-hover: #d4213a;
  --primary-glow: rgba(185, 28, 49, 0.3);
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --bg: #08040506;
  --bg-main: #0a0507;
  --surface: #150b0d;
  --surface-2: #1c1010;
  --card: #201213;
  --border: #3a1e22;
  --border-light: #4d2a2e;
  --text: #f2eaea;
  --text-secondary: #a88e90;
  --text-muted: #6a5052;
  --success: #16a34a;
  --success-bg: #052e16;
  --success-border: #14532d;
  --error: #dc2626;
  --error-bg: #450a0a;
  --error-border: #7f1d1d;
  --warning: #d97706;
  --warning-bg: #1c1007;
  --inward-color: #2563eb;
  --inward-bg: #0c1a3d;
  --outward-color: #b91c31;
  --outward-bg: #2d0a0f;
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ===== VIEWS SYSTEM ===== */
.view {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%) translateX(100%);
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
}

.view.active {
  transform: translateX(-50%) translateX(0);
  opacity: 1;
  pointer-events: all;
}

.view.slide-back {
  transform: translateX(-50%) translateX(-30%);
}

/* ===== HEADER ===== */
.view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.btn-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.btn-back:hover { background: var(--border); }

.view-header h2 {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge.inward {
  background: var(--inward-bg);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge.outward {
  background: var(--outward-bg);
  color: #fca5a5;
  border: 1px solid rgba(185, 28, 49, 0.3);
}

/* ===== HOME VIEW ===== */
#view-home {
  z-index: 5;
  transform: translateX(-50%) translateX(0);
  opacity: 1;
  pointer-events: all;
}

.home-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 100vh;
}

.home-banner {
  background: linear-gradient(160deg, #1a0508 0%, #0d0305 40%, #0f0306 100%);
  padding: 48px 28px 36px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.home-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.home-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(185, 28, 49, 0.15);
  border: 1px solid rgba(185, 28, 49, 0.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.brand-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.home-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 8px;
}

.home-title span {
  color: var(--primary);
}

.home-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.home-actions {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.action-card.inward::before {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), transparent);
}

.action-card.outward::before {
  background: linear-gradient(135deg, rgba(185,28,49,0.1), transparent);
}

.action-card:active {
  transform: scale(0.98);
}

.action-card:active::before,
.action-card:hover::before {
  opacity: 1;
}

.action-card.inward {
  border-color: rgba(37, 99, 235, 0.3);
}

.action-card.outward {
  border-color: rgba(185, 28, 49, 0.3);
}

.action-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.action-card.inward .action-icon {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.action-card.outward .action-icon {
  background: rgba(185, 28, 49, 0.15);
  border: 1px solid rgba(185, 28, 49, 0.3);
}

.action-text {
  flex: 1;
}

.action-label {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.action-sub {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.action-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

.home-footer {
  padding: 0 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-dashboard:hover {
  border-color: var(--border-light);
  color: var(--text);
}

.version-info {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== SCROLL FORM ===== */
.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 120px;
}

.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.field {
  margin-bottom: 14px;
}

.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field label .required {
  color: var(--primary);
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 13px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.field input::placeholder {
  color: var(--text-muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Items Table (Outward) */
.items-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.items-header .section-title {
  margin: 0;
  padding: 0;
  border: none;
}

.btn-add-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--primary);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-add-item:hover { background: var(--primary-hover); }

.item-card {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.item-card:last-child { border-bottom: none; }

.item-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.item-card .field-row {
  grid-template-columns: 1fr 1fr;
}

.btn-remove-item {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 50%;
  color: var(--error);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.item-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 0;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.item-total-amount {
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
}

.grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.grand-total-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.grand-total-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

/* ===== STICKY BOTTOM ACTION ===== */
.sticky-action {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 16px 20px;
  background: linear-gradient(to top, var(--bg-main) 60%, transparent);
  z-index: 50;
}

.btn-primary {
  width: 100%;
  padding: 17px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary.inward-btn {
  background: var(--inward-color);
}

.btn-primary.inward-btn:hover {
  background: #1d4ed8;
}

.btn-secondary {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--surface-2);
}

/* ===== MD SIGN VIEW ===== */
.slip-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.preview-row:last-child { border-bottom: none; }

.preview-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.preview-value {
  font-weight: 600;
  text-align: right;
  max-width: 55%;
  word-break: break-word;
}

.preview-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
}

.preview-items-table th {
  background: var(--surface);
  padding: 8px;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.preview-items-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.preview-items-table tr:last-child td { border-bottom: none; }

.signature-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.signature-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.signature-header .section-title {
  margin: 0;
  padding: 0;
  border: none;
}

.btn-clear-sig {
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-clear-sig:hover {
  border-color: var(--error);
  color: var(--error);
}

.signature-canvas-wrap {
  padding: 10px;
  background: #fff;
  cursor: crosshair;
}

#signature-canvas {
  display: block;
  width: 100%;
  height: 180px;
  touch-action: none;
}

.signature-hint {
  padding: 10px 18px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ===== DC APPROVE VIEW ===== */
.approve-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}

.slip-no-display {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  text-align: center;
}

.slip-no-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.slip-no-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

.md-sig-display {
  background: #fff;
  border-radius: var(--radius-xs);
  padding: 10px;
  text-align: center;
  margin-top: 10px;
}

.md-sig-display img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.md-sig-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-top: 6px;
}

.password-field {
  margin-bottom: 14px;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 20px;
  font-family: 'Courier New', monospace;
  padding: 14px 50px 14px 16px;
  letter-spacing: 6px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.password-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.approve-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 20px;
}

.btn-approve {
  padding: 16px;
  background: var(--success);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-approve:active { transform: scale(0.97); }

.btn-reject {
  padding: 16px;
  background: var(--error-bg);
  border: 1.5px solid var(--error-border);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-reject:active { transform: scale(0.97); }

/* ===== SUCCESS VIEW ===== */
.success-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.success-icon {
  width: 90px;
  height: 90px;
  background: var(--success-bg);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 24px;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.success-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-slip-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 32px;
  width: 100%;
}

.success-slip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.success-slip-no {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
}

.success-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-pdf {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-home {
  width: 100%;
  padding: 15px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

/* ===== TOAST NOTIFICATION ===== */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: var(--shadow);
  max-width: 90vw;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast.success { border-color: var(--success); color: #4ade80; }
#toast.error { border-color: var(--error); color: #f87171; }

/* ===== LOADING ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 7, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.loading-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 28px 24px 40px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-box {
  transform: translateY(0);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== DASHBOARD ===== */
.dash-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-title {
  font-size: 18px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}

.filter-bar {
  padding: 0 20px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.slip-list {
  padding: 0 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slip-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.slip-item:hover {
  border-color: var(--border-light);
}

.slip-type-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.slip-type-dot.inward {
  background: var(--inward-bg);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.slip-type-dot.outward {
  background: var(--outward-bg);
  border: 1px solid rgba(185, 28, 49, 0.3);
}

.slip-info {
  flex: 1;
  min-width: 0;
}

.slip-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slip-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.slip-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-approved {
  background: var(--success-bg);
  color: #4ade80;
  border: 1px solid var(--success-border);
}

.status-pending { 
  background: var(--warning-bg);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.status-rejected {
  background: var(--error-bg);
  color: #f87171;
  border: 1px solid var(--error-border);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-text {
  font-size: 15px;
  font-weight: 500;
}

/* ===== UTILS ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-success { color: #4ade80; }
.text-error { color: #f87171; }
.font-mono { font-family: 'Courier New', monospace; }

.info-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.info-box strong {
  color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
  .home-title { font-size: 24px; }
  .action-label { font-size: 16px; }
  .success-slip-no { font-size: 26px; }
}
