/**
 * DVO B2B Portal Styles
 * Extracted from index.html for better maintainability
 */

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
  --primary: #E30613; /* Deveho Red */
  --sidebar: #2B2B2B; /* Dark Grey */
  --bg: #f4f7f9;
  --text: #333;
  --line: #e0e0e0;
  --white: #ffffff;
}

* { 
  box-sizing: border-box; 
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
}

body { 
  margin: 0; 
  background: var(--bg); 
  color: var(--text); 
  overflow: hidden; 
}

/* ==========================================================================
   Layout
   ========================================================================== */
.app-shell { 
  display: flex; 
  height: 100vh; 
}

.main { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  overflow: hidden; 
  background: #ffffff;
}

.content { 
  flex: 1; 
  overflow-y: auto; 
  padding: 30px; 
  background: var(--bg); 
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar { 
  width: 260px; 
  background: var(--sidebar); 
  color: white; 
  display: flex; 
  flex-direction: column; 
  padding: 20px 0; 
}

.brand { 
  padding: 0 25px 30px; 
  border-bottom: 1px solid rgba(255,255,255,0.1); 
  margin-bottom: 20px; 
}

.logo-text { 
  font-size: 26px; 
  font-weight: 900; 
  color: white; 
  letter-spacing: -1px; 
  display: flex; 
  align-items: center;
}

.logo-text span { 
  color: var(--primary); 
  font-size: 32px; 
  line-height: 0; 
  margin-left: 2px;
}

.brand-logo { 
  max-width: 150px; 
  max-height: 54px; 
  display: block; 
  object-fit: contain; 
}

.brand p { 
  font-size: 11px; 
  margin: 5px 0 0; 
  opacity: 0.7; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav { 
  flex: 1; 
  padding: 0 10px; 
  overflow-y: auto;
}

.nav-item { 
  width: 100%; 
  text-align: left; 
  background: none; 
  border: none; 
  color: rgba(255,255,255,0.7); 
  padding: 12px 15px; 
  cursor: pointer; 
  border-radius: 6px; 
  margin-bottom: 5px; 
  font-size: 14px; 
  transition: all 0.2s; 
  font-weight: 500;
}

.nav-item:hover { 
  background: rgba(255,255,255,0.1); 
  color: white; 
}

.nav-item.active { 
  background: var(--primary); 
  color: white; 
}

.logout { 
  margin: 10px; 
  padding: 12px; 
  background: rgba(255,255,255,0.1); 
  border: none; 
  color: white; 
  border-radius: 6px; 
  cursor: pointer; 
  font-size: 13px; 
  font-weight: bold; 
  transition: background 0.2s;
}

.logout:hover { 
  background: rgba(255,255,255,0.2); 
}

/* ==========================================================================
   Header
   ========================================================================== */
.page-head { 
  background: var(--white); 
  padding: 20px 30px; 
  border-bottom: 1px solid var(--line); 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.02); 
  z-index: 10;
}

.client-branding { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
}

.client-branding .divider { 
  width: 1px; 
  height: 30px; 
  background: var(--line); 
}

.client-branding h2 { 
  font-size: 16px; 
  margin: 0; 
  color: var(--sidebar); 
  font-weight: 700; 
  letter-spacing: 0.5px;
}

.header-brand-logo { 
  max-width: 118px; 
  max-height: 34px; 
  display: block; 
  object-fit: contain; 
}

.client-logo { 
  max-width: 120px; 
  max-height: 34px; 
  display: block; 
  object-fit: contain; 
}

.env-badge { 
  background: #f1f5f9; 
  border: 1px solid var(--line); 
  color: #475569; 
  padding: 4px 8px; 
  border-radius: 999px; 
  font-size: 11px; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: .4px; 
}

/* ==========================================================================
   Login Page
   ========================================================================== */
.login-page { 
  height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: #f0f2f5; 
}

.login-card { 
  background: white; 
  padding: 40px; 
  border-radius: 12px; 
  width: 380px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
  text-align: center; 
  border-top: 5px solid var(--primary); 
}

.login-brand-logo { 
  max-width: 180px; 
  max-height: 64px; 
  display: block; 
  object-fit: contain; 
  margin: 0 auto 10px; 
}

.login-card input { 
  width: 100%; 
  padding: 14px; 
  margin: 10px 0 20px; 
  border: 1px solid var(--line); 
  border-radius: 6px; 
  outline: none; 
  font-size: 14px;
}

.login-card input:focus { 
  border-color: var(--primary); 
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn { 
  background: var(--primary); 
  color: white; 
  border: none; 
  padding: 10px 20px; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: bold; 
  transition: background 0.2s; 
  font-size: 13px; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  display: inline-block;
}

.btn:hover { 
  background: #c20510; 
}

.upload-btn { 
  display: inline-block; 
  background: #475569; 
  color: white; 
  border-radius: 6px; 
  padding: 8px 12px; 
  cursor: pointer; 
  font-size: 11px; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: .4px; 
}

.upload-btn input { 
  display: none; 
}

/* ==========================================================================
   Language Selector
   ========================================================================== */
.lang-select { 
  border: 1px solid var(--line); 
  border-radius: 6px; 
  padding: 6px 8px; 
  background: white; 
  color: var(--sidebar); 
  font-weight: 700; 
  cursor: pointer; 
}

.login-card .lang-select { 
  margin-bottom: 18px; 
}

.lang-selector { 
  display: flex; 
  gap: 6px; 
  align-items: center; 
  justify-content: center;
}

.lang-btn { 
  background: rgba(255,255,255,0.1); 
  border: 2px solid transparent; 
  border-radius: 6px; 
  padding: 4px 8px; 
  cursor: pointer; 
  font-size: 18px; 
  line-height: 1;
  transition: all 0.2s;
}

.lang-btn:hover { 
  background: rgba(255,255,255,0.2); 
  transform: scale(1.1); 
}

.lang-btn.active { 
  border-color: var(--primary); 
  background: rgba(227, 6, 19, 0.2);
  box-shadow: 0 0 8px rgba(227, 6, 19, 0.3);
}

.page-head .lang-selector .lang-btn { 
  background: #f1f5f9; 
}

.page-head .lang-selector .lang-btn:hover { 
  background: #e2e8f0; 
}

.page-head .lang-selector .lang-btn.active { 
  background: rgba(227, 6, 19, 0.1); 
}

/* ==========================================================================
   Tables
   ========================================================================== */
table { 
  width: 100%; 
  border-collapse: collapse; 
  background: white; 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
  margin-top: 10px;
}

th { 
  text-align: left; 
  background: #f8fafc; 
  padding: 15px; 
  font-size: 12px; 
  text-transform: uppercase; 
  color: #64748b; 
  border-bottom: 1px solid var(--line); 
}

td { 
  padding: 15px; 
  border-bottom: 1px solid #f1f5f9; 
  font-size: 14px; 
  vertical-align: top; 
}

/* ==========================================================================
   Orders
   ========================================================================== */
.orders-table { 
  table-layout: fixed; 
}

.orders-table th:nth-child(1), 
.orders-table td:nth-child(1) { 
  width: 70px; 
}

.orders-table th:nth-child(2), 
.orders-table td:nth-child(2) { 
  width: 145px; 
}

.orders-table th:nth-child(3), 
.orders-table td:nth-child(3) { 
  width: 180px; 
}

.orders-table th:nth-child(4), 
.orders-table td:nth-child(4) { 
  width: 130px; 
}

.orders-table th:nth-child(5), 
.orders-table td:nth-child(5) { 
  width: 190px; 
}

.orders-table th:nth-child(6), 
.orders-table td:nth-child(6) { 
  width: 120px; 
}

.order-main-row td { 
  border-bottom: 0; 
  padding-bottom: 8px; 
}

.order-detail-row td { 
  padding-top: 0; 
  background: #fbfdff; 
  border-bottom: 1px solid #e5edf5; 
}

.mono-wrap { 
  font-family: Consolas, 'Courier New', monospace; 
  overflow-wrap: anywhere; 
  word-break: break-word; 
  white-space: normal; 
}

.order-details { 
  background: white; 
  border: 1px solid #e5edf5; 
  border-radius: 8px; 
  padding: 10px 12px; 
  margin-bottom: 8px; 
}

.order-lines, 
.order-lines-head { 
  display: flex; 
  flex-direction: column; 
  gap: 0; 
  min-width: 0; 
}

.order-lines-head, 
.order-line { 
  display: grid; 
  grid-template-columns: minmax(110px, 160px) minmax(260px, 1fr) 140px 140px 170px; 
  gap: 14px; 
  align-items: start; 
  min-width: 0; 
}

.order-lines-head { 
  color: #64748b; 
  font-size: 11px; 
  text-transform: uppercase; 
  font-weight: 800; 
  padding: 4px 0 8px; 
  border-bottom: 1px solid #e5edf5; 
}

.order-line { 
  padding: 10px 0; 
  border-top: 1px solid #f1f5f9; 
}

.order-line:first-child { 
  border-top: none; 
}

.order-line span { 
  min-width: 0; 
  overflow-wrap: anywhere; 
}

.order-line .code { 
  color:#64748b; 
}

.order-line .name { 
  font-weight: 600; 
  color: #1f2937; 
}

.order-sync-note { 
  margin-top: 8px; 
  color: #92400e; 
  background:#fffbeb; 
  border:1px solid #fde68a; 
  padding:8px 10px; 
  border-radius:6px; 
  font-size:12px; 
}

.log-details { 
  margin:0; 
  max-width:360px; 
  max-height:120px; 
  overflow:auto; 
  white-space:pre-wrap; 
  font-size:11px; 
  color:#475569; 
  background:#f8fafc; 
  border:1px solid #e5e7eb; 
  border-radius:6px; 
  padding:8px; 
}

.log-level-badge {
  display:inline-block;
  padding:2px 8px;
  border-radius:4px;
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
}
.log-level-info {
  background:#dbeafe;
  color:#1e40af;
}
.log-level-success {
  background:#d1fae5;
  color:#065f46;
}
.log-level-warn {
  background:#fef3c7;
  color:#92400e;
}
.log-level-error {
  background:#fee2e2;
  color:#991b1b;
}
.log-level-debug {
  background:#e0e7ff;
  color:#3730a3;
}

/* ==========================================================================
   Products
   ========================================================================== */
.grid-products { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 20px; 
}

.product-card { 
  background: white; 
  border-radius: 8px; 
  padding: 20px; 
  border: 1px solid var(--line); 
  display: flex; 
  flex-direction: column; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.02); 
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
}

.product-card h3 { 
  margin: 0 0 10px; 
  font-size: 16px; 
  color: var(--sidebar); 
  height: 40px; 
  overflow: hidden; 
  font-weight: 600;
}

.product-image-wrap { 
  width: 100%; 
  aspect-ratio: 4 / 3; 
  border: 1px solid #eef2f7; 
  background: #f8fafc; 
  border-radius: 8px; 
  margin-bottom: 14px; 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.product-image { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  display: block; 
  background: white; 
}

.product-image-placeholder-wrap {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.product-image-placeholder-wrap:has(.product-image-placeholder) {
  cursor: pointer;
}

.product-image-placeholder-wrap:has(.product-image-placeholder):hover {
  border-color: var(--primary);
  background: #fff1f2;
}

.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
}

.product-image-plus {
  font-size: 28px;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
}

.product-image-hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
}

/* Static placeholder for client catalog (non-clickable) */
.product-image-placeholder-static {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-image-placeholder-static svg {
  opacity: 0.5;
}

.admin-product-cell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-product-cell .product-image-wrap {
  margin: 0;
  align-items: center;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dashboard-hero { 
  background: linear-gradient(135deg, #2b2b2b, #111827); 
  color: white; 
  border-radius: 16px; 
  padding: 28px; 
  display: flex; 
  justify-content: space-between; 
  gap: 20px; 
  align-items: center; 
  margin-bottom: 22px; 
  box-shadow: 0 12px 30px rgba(17,24,39,.18); 
}

.dashboard-hero h1 { 
  margin: 0 0 8px; 
  font-size: 30px; 
  letter-spacing: -.5px; 
}

.dashboard-hero p { 
  margin: 0; 
  color: rgba(255,255,255,.72); 
}

.dashboard-badge { 
  background: var(--primary); 
  padding: 10px 14px; 
  border-radius: 999px; 
  font-weight: 900; 
  text-transform: uppercase; 
  font-size: 12px; 
  letter-spacing: .8px; 
  white-space: nowrap; 
}

.report-cards { 
  display: grid; 
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 16px; 
  margin-bottom: 20px; 
}

.report-card { 
  background: white; 
  border: 1px solid var(--line); 
  border-radius: 14px; 
  padding: 18px; 
  min-height: 126px; 
  box-shadow: 0 6px 20px rgba(15,23,42,.06); 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
}

.report-card span { 
  color: #64748b; 
  font-size: 12px; 
  font-weight: 900; 
  text-transform: uppercase; 
  letter-spacing: .5px; 
}

.report-card strong { 
  display: block; 
  color: var(--sidebar); 
  font-size: 28px; 
  line-height: 1.1; 
  overflow-wrap: anywhere; 
}

.report-card.wide strong { 
  font-size: 18px; 
}

.report-card small { 
  color: var(--primary); 
  font-weight: 800; 
}

.report-panel { 
  background: white; 
  border: 1px solid var(--line); 
  border-radius: 14px; 
  padding: 20px; 
  box-shadow: 0 6px 20px rgba(15,23,42,.06); 
}

.report-panel-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 18px; 
}

.report-panel-head h2 { 
  margin: 0; 
  color: var(--sidebar); 
  font-size: 20px; 
}

.report-panel-head span { 
  color: #64748b; 
  font-size: 13px; 
  font-weight: 700; 
}

.report-chart { 
  height: 190px; 
  display: grid; 
  grid-template-columns: repeat(12, 1fr); 
  gap: 10px; 
  align-items: end; 
  padding-top: 10px; 
  border-bottom: 1px solid #e5e7eb; 
}

.report-bar-wrap { 
  height: 180px; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end; 
  align-items: center; 
  gap: 6px; 
  min-width: 0; 
}

.report-bar { 
  width: 100%; 
  max-width: 42px; 
  background: linear-gradient(180deg, var(--primary), #991b1b); 
  border-radius: 8px 8px 0 0; 
  min-height: 8px; 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  position: relative; 
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); 
}

.report-bar span { 
  color: white; 
  font-size: 10px; 
  font-weight: 900; 
  padding-top: 5px; 
}

.report-bar-wrap small { 
  color: #64748b; 
  font-size: 11px; 
  font-weight: 800; 
  text-transform: capitalize; 
}

/* ==========================================================================
   Catalog
   ========================================================================== */
.catalog-layout { 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) 340px; 
  gap: 24px; 
  align-items: start; 
}

.catalog-main { 
  min-width: 0; 
}

.search-input { 
  width: 100%; 
  padding: 14px 15px; 
  border: 1px solid var(--line); 
  border-radius: 6px; 
  outline: none; 
  font-size: 15px; 
  transition: border-color 0.2s; 
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); 
  margin-bottom: 15px;
}

.search-input:focus { 
  border-color: var(--primary); 
}

/* ==========================================================================
   Cart
   ========================================================================== */
.cart-panel { 
  position: sticky; 
  top: 0; 
  background: var(--white); 
  border: 1px solid var(--line); 
  border-top: 4px solid var(--primary); 
  border-radius: 10px; 
  padding: 18px; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.06); 
  max-height: calc(100vh - 130px); 
  display: flex; 
  flex-direction: column; 
}

.cart-panel h3 { 
  margin: 0 0 8px; 
  color: var(--sidebar); 
}

.cart-summary { 
  color: #64748b; 
  font-size: 13px; 
  padding-bottom: 12px; 
  border-bottom: 1px solid #eef2f7; 
}

.cart-lines { 
  overflow-y: auto; 
  padding: 8px 0; 
}

.cart-line { 
  padding: 12px 0; 
  border-bottom: 1px solid #f1f5f9; 
}

.cart-line-info strong { 
  display: block; 
  font-size: 13px; 
  color: #1f2937; 
  line-height: 1.35; 
}

.cart-line-info span { 
  color: #64748b; 
  font-size: 12px; 
  font-family: Consolas, 'Courier New', monospace; 
}

.cart-line-actions { 
  display: flex; 
  gap: 8px; 
  margin-top: 8px; 
  align-items: center; 
  flex-wrap: wrap; 
}

.cart-line-actions input { 
  width: 82px; 
  padding: 7px; 
  border: 1px solid var(--line); 
  border-radius: 6px; 
  font-weight: 800; 
}

.cart-line-actions button { 
  border: 0; 
  background: #fee2e2; 
  color: #991b1b; 
  padding: 7px 9px; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: 800; 
  font-size: 11px; 
}

.cart-line-actions .cart-update-btn { 
  background: #eef2ff; 
  color: #3730a3; 
}

.empty-cart { 
  color: #94a3b8; 
  font-size: 13px; 
  line-height: 1.45; 
}

.cart-submit { 
  width: 100%; 
  margin-top: auto; 
}

.cart-submit:disabled { 
  background: #cbd5e1; 
  cursor: not-allowed; 
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.form-group input,
.form-group select {
  flex: 1;
  min-width: 140px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.box-panel { 
  background: white; 
  padding: 20px; 
  border-radius: 8px; 
  border: 1px solid var(--line); 
  margin-bottom: 20px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* ==========================================================================
   Reusable Status Borders
   ========================================================================== */
.status-border {
  border-top: 4px solid #bbb;
  transition: border-top-color 0.3s ease;
}

.status-border-left {
  border-left: 4px solid #bbb;
  transition: border-left-color 0.3s ease;
}

tr.status-border-left {
  border-left: none;
  box-shadow: inset 4px 0 0 #bbb;
  transition: box-shadow 0.3s ease;
}

.status-ok { border-top-color: #2e7d32 !important; }
.status-error { border-top-color: #c20510 !important; }
.status-pending { border-top-color: #bbb !important; }

.status-border-left.status-ok { border-left-color: #2e7d32 !important; }
.status-border-left.status-error { border-left-color: #c20510 !important; }
.status-border-left.status-pending { border-left-color: #bbb !important; }

tr.status-border-left.status-ok { box-shadow: inset 4px 0 0 #2e7d32; }
tr.status-border-left.status-error { box-shadow: inset 4px 0 0 #c20510; }
tr.status-border-left.status-pending { box-shadow: inset 4px 0 0 #bbb; }

tr.user-inactive {
  background: #f8fafc;
  opacity: 0.7;
}

tr.user-inactive td {
  color: #94a3b8;
}

tr.user-inactive .btn {
  opacity: 0.8;
}

/* ==========================================================================
   Page Layout
   ========================================================================== */
.page-title {
  color: var(--sidebar);
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-title {
  margin-top: 0;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
}

.section-text {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   Form Components
   ========================================================================== */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}

.form-row .form-group {
  flex: 1;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  display: block;
  margin-bottom: 6px;
}

.form-input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--primary);
}

.btn-secondary {
  background: white;
  color: var(--sidebar);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* ==========================================================================
   Settings Form
   ========================================================================== */
.drop-zone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
  margin-top: 6px;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--primary);
  background: #fff5f5;
}

.drop-zone input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.drop-icon {
  font-size: 24px;
  opacity: 0.6;
}

.drop-text {
  font-size: 14px;
  color: #666;
}

.file-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.hint {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast { 
  background: var(--sidebar); 
  color: white; 
  padding: 15px 25px; 
  border-radius: 6px; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
  border-left: 5px solid var(--primary); 
  animation: slideIn 0.3s ease-out; 
  font-weight: 500;
  white-space: nowrap;
}

.toast.error {
  background: #7f1d1d;
  border-left-color: #ef4444;
}

@keyframes slideIn { 
  from { 
    transform: translateX(100%); 
  } 
  to { 
    transform: translateX(0); 
  } 
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) { 
  .catalog-layout { 
    grid-template-columns: 1fr; 
  } 
  .cart-panel { 
    position: static; 
    max-height: none; 
  } 
  .report-cards { 
    grid-template-columns: repeat(2, 1fr); 
  } 
}

@media (max-width: 700px) { 
  .report-cards { 
    grid-template-columns: 1fr; 
  } 
  .dashboard-hero { 
    align-items: flex-start; 
    flex-direction: column; 
  } 
  .report-chart { 
    overflow-x: auto; 
    grid-template-columns: repeat(12, 46px); 
  } 
}

/* Modal styles for secure password input */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: white;
  border-radius: 8px;
  padding: 24px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-box h3 {
  margin-top: 0;
  color: var(--sidebar, #1e3a5f);
  font-size: 18px;
}

.modal-box p {
  color: #666;
  margin: 8px 0 16px 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

input[type="password"] {
  font-family: monospace;
  letter-spacing: 0.05em;
}
