/* Dropoint store portal. Bootstrap 5 (vendored with the admin panel) plus these. */
:root {
  --sp-navy: #0A2540;
  --sp-navy-2: #12345a;
  --sp-orange: #FF7A00;
  --sp-orange-soft: #fff1e3;
  --sp-bg: #f5f7fa;
  --sp-line: #e3e8ef;
  --sp-muted: #64748b;
  --sp-sidebar: 248px;
}
html, body { background: var(--sp-bg); }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: #111827; font-size: 14.5px; }
a { color: var(--sp-navy-2); }
.btn-brand { background: var(--sp-orange); border-color: var(--sp-orange); color: #fff; font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: #e96f00; border-color: #e96f00; color: #fff; }
.btn-navy { background: var(--sp-navy); border-color: var(--sp-navy); color: #fff; }
.btn-navy:hover { background: var(--sp-navy-2); color: #fff; }
.text-brand { color: var(--sp-orange) !important; }
.text-muted-2 { color: var(--sp-muted) !important; }

/* Layout */
.sp-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sp-sidebar); background: var(--sp-navy); color: #cfd8e3;
  overflow-y: auto; z-index: 1040; transition: transform .2s ease;
}
.sp-brand { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem; color: #fff; text-decoration: none; }
.sp-brand img { width: 30px; height: 30px; }
.sp-brand b { font-size: 1.05rem; }
.sp-brand small { display: block; color: #9fb2c8; font-size: .72rem; }
.sp-nav-title { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #7f93ab; padding: .9rem 1.2rem .3rem; }
.sp-nav a { display: flex; align-items: center; gap: .65rem; padding: .48rem 1.2rem; color: #d6dee8; text-decoration: none; border-left: 3px solid transparent; }
.sp-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sp-nav a.active { background: rgba(255,122,0,.14); color: #fff; border-left-color: var(--sp-orange); }
.sp-nav .badge { margin-left: auto; }
.sp-main { margin-left: var(--sp-sidebar); min-height: 100vh; }
.sp-top {
  position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--sp-line);
  display: flex; align-items: center; gap: .75rem; padding: .55rem 1.2rem;
}
.sp-top .store-name { font-weight: 600; }
.sp-content { padding: 1.25rem; max-width: 1400px; }
.sp-burger { display: none; }
@media (max-width: 991px) {
  .sp-sidebar { transform: translateX(-100%); }
  .sp-sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .sp-main { margin-left: 0; }
  .sp-burger { display: inline-flex; }
  .sp-content { padding: 1rem; }
}

/* Cards and tables */
.sp-card { background: #fff; border: 1px solid var(--sp-line); border-radius: 12px; }
.sp-card > .sp-card-h { padding: .85rem 1rem; border-bottom: 1px solid var(--sp-line); display: flex; align-items: center; gap: .5rem; }
.sp-card > .sp-card-h h6 { margin: 0; font-weight: 600; }
.sp-card > .sp-card-b { padding: 1rem; }
.sp-stat { background: #fff; border: 1px solid var(--sp-line); border-radius: 12px; padding: .9rem 1rem; height: 100%; }
.sp-stat .v { font-size: 1.55rem; font-weight: 700; line-height: 1.2; }
.sp-stat .l { color: var(--sp-muted); font-size: .8rem; }
.sp-table { width: 100%; }
.sp-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); font-weight: 600; white-space: nowrap; }
.sp-table td, .sp-table th { padding: .55rem .6rem; border-bottom: 1px solid var(--sp-line); vertical-align: middle; }
.sp-table tbody tr:hover { background: #fafbfd; }
.sp-table tr.clickable { cursor: pointer; }
.sp-empty { text-align: center; color: var(--sp-muted); padding: 2rem 1rem; }
.sp-page-h { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sp-page-h h4 { margin: 0; font-weight: 700; }
.sp-page-h .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.sp-filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.sp-filters .form-control, .sp-filters .form-select { width: auto; min-width: 140px; }
.sp-chip { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #eef2f7; color: #334155; white-space: nowrap; }
.sp-chip.s-searching { background: #fff4d6; color: #8a5a00; }
.sp-chip.s-moving { background: #e0efff; color: #1d4ed8; }
.sp-chip.s-done { background: #dcfce7; color: #166534; }
.sp-chip.s-bad { background: #fee2e2; color: #991b1b; }
.sp-chip.s-grey { background: #eef2f7; color: #475569; }
.sp-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--sp-line); margin-bottom: 1rem; overflow-x: auto; }
.sp-tabs button { border: 0; background: none; padding: .55rem .9rem; color: var(--sp-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.sp-tabs button.active { color: var(--sp-navy); border-bottom-color: var(--sp-orange); font-weight: 600; }
.sp-map { width: 100%; height: 420px; border-radius: 12px; border: 1px solid var(--sp-line); background: #e9eef5; }
.sp-map.tall { height: calc(100vh - 190px); min-height: 420px; }
.sp-steps { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sp-steps span { padding: .3rem .7rem; border-radius: 999px; background: #eef2f7; font-size: .8rem; color: var(--sp-muted); }
.sp-steps span.on { background: var(--sp-navy); color: #fff; }
.sp-option { border: 1.5px solid var(--sp-line); border-radius: 10px; padding: .7rem .85rem; cursor: pointer; background: #fff; }
.sp-option:hover { border-color: #c4cfdd; }
.sp-option.on { border-color: var(--sp-orange); background: var(--sp-orange-soft); }
.sp-option .price { font-weight: 700; }
.sp-timeline { list-style: none; padding: 0; margin: 0; }
.sp-timeline li { position: relative; padding: 0 0 .9rem 1.4rem; }
.sp-timeline li::before { content: ""; position: absolute; left: .32rem; top: .35rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--sp-orange); }
.sp-timeline li::after { content: ""; position: absolute; left: .55rem; top: 1rem; bottom: 0; width: 1px; background: var(--sp-line); }
.sp-timeline li:last-child::after { display: none; }
.sp-kv { display: grid; grid-template-columns: 150px 1fr; gap: .35rem .75rem; }
.sp-kv dt { color: var(--sp-muted); font-weight: 500; }
.sp-kv dd { margin: 0; }
.sp-grid-rows input, .sp-grid-rows select { min-width: 110px; }
.sp-row-bad { background: #fff5f5 !important; }
.sp-row-bad .err { color: #b91c1c; font-size: .78rem; }
.sp-group { border-left: 4px solid var(--sp-orange); }
.sp-drag { cursor: grab; }
.sp-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; }
.sp-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: linear-gradient(160deg, var(--sp-navy) 0%, #163d68 100%); }
.sp-auth .box { background: #fff; border-radius: 16px; padding: 2rem; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.sp-auth .logo { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.sp-auth .logo img { width: 38px; }
.toast-container { z-index: 1090; }
.sp-toast { min-width: 260px; }
@media print {
  .sp-sidebar, .sp-top, .no-print { display: none !important; }
  .sp-main { margin: 0; }
  .sp-content { padding: 0; max-width: none; }
  body { background: #fff; }
}
