/* ═══════════════════════════════════════════
   Article Master — Clean Minimal Theme
   Inspired by Cash Sale (POS) kiosk styling.
   Scoped to #articlesTab only.
   ═══════════════════════════════════════════ */

#articlesTab {
  background: #fafafa;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

/* ─── Mode Tabs (Create / Change / Display) ─── */
#articlesTab .article-mode-tabs {
  display: flex;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}
#articlesTab .article-mode-btn {
  flex: 1;
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: none !important;
}
#articlesTab .article-mode-btn:hover { background: #f9fafb; color: #111827; }
#articlesTab .article-mode-btn.active {
  background: #111827;
  color: #ffffff !important;
}

/* ─── Form sections: white cards, soft borders ─── */
#articlesTab .form-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: none;
  margin-bottom: 14px;
}

#articlesTab .section-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px 0;
  padding: 0 0 12px 0;
  border-bottom: 1px solid #e5e7eb;
  background: none;
  text-transform: none;
  letter-spacing: -0.015em;
}
#articlesTab .section-title::before { content: none; }

#articlesTab .bp-section {
  padding: 14px 0;
  border-top: 1px solid #f3f4f6;
  margin-top: 8px;
}
#articlesTab .bp-section:first-child,
#articlesTab .form-section > .bp-section:first-of-type {
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}
#articlesTab .bp-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #111827;
}

/* ─── Form fields ─── */
#articlesTab .form-group label {
  font-size: 12px;
  color: #374151;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
#articlesTab .form-group label.required::after {
  color: #dc2626;
}
#articlesTab .form-group input[type="text"],
#articlesTab .form-group input[type="number"],
#articlesTab .form-group select,
#articlesTab .form-group textarea,
#articlesTab textarea {
  padding: 8px 11px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
  color: #111827;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#articlesTab .form-group input:focus,
#articlesTab .form-group select:focus,
#articlesTab .form-group textarea:focus,
#articlesTab textarea:focus {
  border-color: #111827;
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,24,39,0.08);
}

/* ─── Brand Details items section ─── */
#articlesTab .items-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: none;
}
#articlesTab .items-table th {
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e5e7eb;
}
#articlesTab .items-table td input,
#articlesTab .items-table td select {
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

/* ─── Action buttons ─── */
#articlesTab .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0;
}
#articlesTab .btn {
  font-weight: 500;
  border-radius: 6px;
  font-size: 13px;
  padding: 9px 18px;
  transition: background 0.15s, border-color 0.15s;
}
#articlesTab .btn-primary {
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
  box-shadow: none;
}
#articlesTab .btn-primary:hover { background: #374151; border-color: #374151; }
#articlesTab .btn-outline {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}
#articlesTab .btn-outline:hover { background: #f9fafb; border-color: #111827; }

/* ─── Article List table ─── */
#articlesTab .excel-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #ffffff;
}
#articlesTab .excel-table { font-size: 12px; }
#articlesTab .excel-table th {
  background: #f9fafb !important;
  color: #6b7280 !important;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 7px 8px;
  white-space: nowrap;
}
#articlesTab .excel-table td { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
#articlesTab .excel-table tr:hover { background: #f9fafb; cursor: default; }
#articlesTab .excel-table tr.row-clickable:hover { cursor: pointer; background: #eef2ff; }

/* Brand column: single line, takes as much width as needed */
#articlesTab .col-brands { min-width: 320px; white-space: nowrap; }
#articlesTab .col-brands > div { display: inline; margin: 0; }
#articlesTab .col-brands > div > div {
  display: inline;
  border-bottom: none !important;
  padding: 0 !important;
  margin-left: 6px;
}
#articlesTab .excel-btn {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}
#articlesTab .excel-btn:hover { background: #f9fafb; }
#articlesTab .excel-btn-warn   { border-color: #d97706; color: #d97706; }
#articlesTab .excel-btn-danger { border-color: #dc2626; color: #dc2626; }
#articlesTab .excel-btn-success{ border-color: #16a34a; color: #16a34a; }

/* ─── Search input ─── */
#articlesTab #articleSearchBox {
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid #d1d5db !important;
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#articlesTab #articleSearchBox:focus {
  border-color: #111827 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,24,39,0.08);
}
