/* EffortMart design system v1 - one set of rules for SellerZone, Admin and the Developer Portal (the shop has shell.css).
   Built on Bootstrap 5.3; this file only sets tokens and brings the Bootstrap components to one size, weight and surface.
   Loaded last in each app's <head>, selectors start with "html body" so older page stylesheets do not win.
   Scale:  text 14 | table 13 | label/badge 12 | section label 11 | page title 20 | section title 15
   Surface: white, 1px #E5E7EB border, radius 8 (controls 6), no shadow. Shadow only on menus/modals. */
:root {
  --ds-ink: #0F172A; --ds-text: #334155; --ds-mute: #64748B; --ds-line: #E2E8F0; --ds-line-strong: #CBD5E1; --ds-bg: #F8FAFC; --ds-surface: #fff;
  --ds-brand: var(--primary, #E97C43); --ds-brand-strong: var(--primary-dark, #C45A2A); --ds-brand-deep: var(--primary-dark, #973B14); --ds-brand-tint: var(--primary-light, #FFF3EA);
  --ds-ok: #15803D; --ds-ok-tint: #ECFDF3; --ds-warn: #B45309; --ds-warn-tint: #FFF7E6; --ds-bad: #B91C1C; --ds-bad-tint: #FEF2F2; --ds-info: #1D4ED8; --ds-info-tint: #EFF6FF;
  --ds-r: 8px; --ds-r-sm: 6px;
  --ds-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ds-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bs-body-font-family: var(--ds-font); --bs-body-font-size: 14px; --bs-body-color: var(--ds-text); --bs-border-color: var(--ds-line); --bs-border-radius: var(--ds-r-sm);
}
html body { font-family: var(--ds-font); font-size: 14px; line-height: 1.5; color: var(--ds-text); background: var(--ds-bg); -webkit-font-smoothing: antialiased; }
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 { font-family: var(--ds-font); color: var(--ds-ink); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
html body h1 { font-size: 20px; } html body h2 { font-size: 17px; } html body h3 { font-size: 15px; } html body h4, html body h5 { font-size: 14px; } html body h6 { font-size: 13px; }
html body small, html body .small, html body .text-muted { font-size: 12.5px; }
html body .text-muted { color: var(--ds-mute) !important; }
html body code, html body kbd, html body pre { font-family: var(--ds-mono); font-size: 12.5px; }
html body a { text-underline-offset: 2px; }
html body :focus-visible { outline: 2px solid var(--ds-brand); outline-offset: 2px; box-shadow: none; }

/* ---- surfaces: cards, panels, table wrappers ---- */
html body .card, html body .table-container, html body .em-table-container, html body .filter-section, html body .nav-card, html body .settings-nav,
html body .welcome-box, html body .desktop-stat, html body .desktop-chart, html body .desktop-todo, html body .dash-todo-item, html body .stat-card, html body .modal-content, html body .dropdown-menu {
  background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r); box-shadow: none; }
html body .dropdown-menu, html body .modal-content { box-shadow: 0 8px 24px rgba(17, 24, 39, .12); border-color: var(--ds-line); }
html body .card-header { background: none; border-bottom: 1px solid var(--ds-line); font-size: 14px; font-weight: 600; padding: 12px 16px; }
html body .card-body { padding: 16px; }
html body .modal-header, html body .modal-footer { padding: 12px 16px; border-color: var(--ds-line); }
html body .modal-title { font-size: 16px; font-weight: 600; }
html body .welcome-box { padding: 12px 16px; background: var(--ds-brand-tint); border-color: #F6D7C3; }

/* ---- buttons ---- */
html body .btn { --bs-btn-padding-x: 14px; --bs-btn-padding-y: 0; --bs-btn-font-size: 13.5px; --bs-btn-border-radius: var(--ds-r-sm); min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; letter-spacing: 0; box-shadow: none; transform: none; text-transform: none; }
html body .btn-sm { min-height: 30px; --bs-btn-padding-x: 10px; --bs-btn-font-size: 12.5px; }
html body .btn-lg { min-height: 42px; --bs-btn-font-size: 15px; }
html body .btn:hover, html body .btn:active, html body .btn:focus { box-shadow: none; transform: none; }
html body .btn-primary, html body .btn-brand { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }
html body .btn-primary:hover, html body .btn-primary:focus-visible { background: var(--ds-brand-strong); border-color: var(--ds-brand-strong); color: #fff; }
html body .btn-outline-primary { color: var(--ds-brand-strong); border-color: var(--ds-brand); background: #fff; }
html body .btn-outline-primary:hover { background: var(--ds-brand-tint); color: var(--ds-brand-deep); border-color: var(--ds-brand); }
html body .btn-outline-secondary, html body .btn-light { color: var(--ds-text); border-color: var(--ds-line-strong); background: #fff; }
html body .btn-outline-secondary:hover, html body .btn-light:hover { background: var(--ds-bg); color: var(--ds-ink); border-color: var(--ds-line-strong); }
html body .btn i, html body .btn .bi { font-size: 15px; }

/* ---- form controls ---- */
html body .form-control, html body .form-select { min-height: 36px; padding: 6px 12px; font-size: 13.5px; font-family: var(--ds-font); color: var(--ds-ink); background-color: #fff; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-sm); box-shadow: none; }
html body textarea.form-control { min-height: 72px; }
html body .form-control-sm, html body .form-select-sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
html body .form-control::placeholder { color: #9CA3AF; font-weight: 400; }
html body .form-control:focus, html body .form-select:focus { border-color: var(--ds-brand); box-shadow: none; outline: 2px solid color-mix(in srgb, var(--ds-brand) 35%, transparent); outline-offset: 0; }
html body .form-label, html body label { font-size: 12.5px; font-weight: 600; color: var(--ds-ink); margin-bottom: 4px; }
html body .form-check-input { width: 16px; height: 16px; margin-top: 2px; box-shadow: none; }
html body .form-check-input:checked { background-color: var(--ds-brand); border-color: var(--ds-brand); }
html body .input-group-text { font-size: 13px; background: var(--ds-bg); border-color: var(--ds-line-strong); }

/* ---- tables ---- */
html body table { font-size: 13px; }
html body .table > :not(caption) > * > * { padding: 10px 14px; border-color: var(--ds-line); vertical-align: middle; box-shadow: none; }
html body table thead th, html body .data-table th { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ds-mute); background: #F9FAFB; border-bottom: 1px solid var(--ds-line); white-space: nowrap; }
html body table tbody tr:hover > * { background: #FAFAFB; }
html body .table-responsive { border-radius: var(--ds-r); }

/* ---- badges and statuses ---- */
html body .badge { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 3px 8px; border-radius: 4px; box-shadow: none; }
html body .nav-badge { font-size: 11px; padding: 1px 6px; border-radius: 9px; }

/* ---- pagination, tabs ---- */
html body .page-link { font-size: 13px; min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ds-r-sm); box-shadow: none; }
html body .page-item.active .page-link { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }
html body .nav-tabs .nav-link, html body .nav-pills .nav-link { font-size: 13.5px; font-weight: 500; }

/* ---- sidebar navigation (SellerZone + Admin) ---- */
html body .sidebar .nav-link, html body .sidebar a.nav-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 12px; border-radius: var(--ds-r-sm); font-size: 13.5px; font-weight: 500; color: var(--ds-text); background: none; box-shadow: none; transform: none; }
html body .sidebar .nav-link i, html body .sidebar .nav-link .bi { font-size: 16px; width: 18px; text-align: center; color: var(--ds-mute); background: none; box-shadow: none; }
html body .sidebar .nav-link:hover { background: var(--ds-bg); color: var(--ds-ink); transform: none; }
html body .sidebar .nav-link.active, html body .sidebar a.nav-link.active { background: var(--ds-brand-tint) !important; color: var(--ds-brand-deep) !important; font-weight: 600; box-shadow: none !important; }
html body .sidebar .nav-link.active i, html body .sidebar .nav-link.active .bi { color: var(--ds-brand-strong); background: none; }
html body .nav-section, html body .nav-group-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-mute); }

/* ---- top bar and page header ---- */
html body .page-title, html body .dashboard-header h1, html body .top-header h1, html body .header-title { font-size: 18px; font-weight: 600; color: var(--ds-ink); }
html body .dashboard-header, html body .top-header, html body header.admin-header { background: #fff; border-bottom: 1px solid var(--ds-line); box-shadow: none; }

/* ---- alerts ---- */
html body .alert { font-size: 13px; padding: 10px 14px; border-radius: var(--ds-r-sm); box-shadow: none; }

@media (max-width: 991px) {
  html body .btn, html body .form-control, html body .form-select { min-height: 40px; }
  html body .btn-sm { min-height: 34px; }
  html body .form-control, html body .form-select { font-size: 16px; } /* no zoom-on-focus on iPhones */
}
@media (prefers-reduced-motion: reduce) { html body * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* sidebar rhythm */
html body .sidebar .nav-item { margin: 0 0 2px; padding: 0; }
html body .sidebar .nav-link { margin: 0; }
html body .sidebar .nav-group-label, html body .sidebar .nav-section { margin: 14px 12px 4px; padding: 0; }

/* page titles and bare filter fields (older pages use plain <label><select>) */
html body .em-page-title, html body .main-content h1, html body .content-wrapper h1 { font-size: 20px; font-weight: 600; margin: 0; }
html body label > select, html body label > input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]) {
  display: block; min-height: 36px; margin-top: 4px; padding: 6px 10px; font: 400 13.5px var(--ds-font); color: var(--ds-ink); background: #fff; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-sm); box-shadow: none; }
html body label > select:focus, html body label > input:focus { border-color: var(--ds-brand); outline: 2px solid color-mix(in srgb, var(--ds-brand) 35%, transparent); outline-offset: 0; }
html body label > select { max-width: 100%; }

/* mono metadata label, same as the shop kit (.k-eyebrow / .k-meta): use for eyebrows, counts, ids, timestamps */
html body .ds-mono { font-family: var(--ds-mono); font-size: 12px; letter-spacing: .02em; color: var(--ds-mute); }
html body .ds-eyebrow { display: block; margin: 0 0 6px; font: 600 12px/1 var(--ds-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-brand-strong); }
