/* ============================================================
   Anota AI Design System — anota-theme.css
   Version 1.0 — Full visual reskin for Anchieta.es
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Icons+Outlined');

/* ── CSS Variables (Design Tokens) ────────────────────────── */
:root {
  --brand:       #003e63;
  --brand-2:     #004878;
  --blue-mid:    #0067ac;
  --primary:     #0098fc;
  --link:        #0188e0;
  --menu-text:   #6b92a9;
  --highlight:   #e6f2fa;
  --analise:     #e74c03;
  --producao:    #df9403;
  --pronto:      #23d35f;
  --trial:       #f1953b;
  --bg:          #f6f7f8;
  --border:      #e1e1e1;
  --radius:      5px;
  --radius-lg:   8px;
  --sidebar-w:   220px;
  --white:       #ffffff;
  --text:        #1a2a36;
  --text-muted:  #6b7280;
  --success:     #23d35f;
  --danger:      #e74c03;
  --warning:     #df9403;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  color: var(--text);
  margin-top: 0;
}

h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
h4 { font-size: 15px; }

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--primary);
}

/* ── Material Icons helper ─────────────────────────────────── */
.mat-icon {
  font-family: 'Material Icons Outlined', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* ── Shell Layout ──────────────────────────────────────────── */
.anota-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar-anota {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

/* scrollbar inside sidebar */
.sidebar-anota::-webkit-scrollbar { width: 4px; }
.sidebar-anota::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }

.sidebar-anota .sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
}

.sidebar-anota .sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-anota .sidebar-logo .logo-icon .mat-icon {
  font-size: 18px;
  color: #fff;
}

.sidebar-anota .sidebar-store {
  padding: 10px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-anota .sidebar-store .store-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-anota .sidebar-store .store-plan {
  font-size: 11px;
  color: var(--menu-text);
  margin-top: 2px;
}

.sidebar-anota nav {
  flex: 1;
  padding: 12px 0;
}

.sidebar-anota .nav-group {
  margin-bottom: 8px;
}

.sidebar-anota .nav-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--menu-text);
  padding: 8px 16px 4px;
  opacity: .7;
}

.sidebar-anota .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 16px;
  margin: 1px 8px;
  border-radius: var(--radius);
  color: var(--menu-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
  position: relative;
}

.sidebar-anota .nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
}

.sidebar-anota .nav-item.active {
  background: var(--primary);
  color: #fff;
}

.sidebar-anota .nav-item .mat-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-anota .nav-item .nav-badge {
  margin-left: auto;
  background: var(--analise);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-anota .nav-item.active .nav-badge {
  background: rgba(255,255,255,.3);
}

.sidebar-anota .sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar-anota .sidebar-footer .nav-item {
  margin: 1px 0;
}

/* ── Main content area ─────────────────────────────────────── */
.main-anota {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-topbar .page-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.main-topbar .topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-topbar .store-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
}

.main-content {
  padding: 24px;
  flex: 1;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb-anota {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb-anota a {
  color: var(--link);
}

.breadcrumb-anota .sep {
  font-size: 14px;
  color: var(--border);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card-anota {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}

.card-anota .card-header {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-anota {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, background .15s;
  line-height: 1.4;
}

.btn-anota:hover { opacity: .88; }
.btn-anota:active { opacity: .75; }

.btn-anota .mat-icon {
  font-size: 16px;
}

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

.btn-secondary {
  background: transparent;
  color: var(--link);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
}

.btn-secondary:hover {
  background: var(--highlight);
  opacity: 1;
}

.btn-danger {
  background: var(--analise);
  color: #fff;
}

.btn-success {
  background: var(--pronto);
  color: #fff;
}

.btn-warning {
  background: var(--producao);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  opacity: 1;
}

/* ── Tables ────────────────────────────────────────────────── */
.table-anota {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-anota th {
  background: var(--highlight);
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-anota td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text);
  vertical-align: middle;
}

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

.table-anota tr:hover td {
  background: #f9fbfd;
}

.table-anota-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Form controls ─────────────────────────────────────────── */
.input-anota {
  width: 100%;
  padding: 8px 12px;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s;
}

.input-anota:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,152,252,.15);
}

.label-anota {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
}

/* ── Badges / Chips ────────────────────────────────────────── */
.badge-anota {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-primary   { background: rgba(0,152,252,.12); color: var(--primary); }
.badge-success   { background: rgba(35,211,95,.12);  color: #18a34a; }
.badge-warning   { background: rgba(223,148,3,.12);  color: var(--producao); }
.badge-danger    { background: rgba(231,76,3,.12);   color: var(--analise); }
.badge-info      { background: var(--highlight);     color: var(--blue-mid); }
.badge-muted     { background: #f0f0f0;              color: var(--text-muted); }

/* ── Search bar ────────────────────────────────────────────── */
.search-anota {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  height: 36px;
}

.search-anota input {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: Roboto, sans-serif;
  color: var(--text);
  background: transparent;
  flex: 1;
  min-width: 0;
}

.search-anota .mat-icon {
  font-size: 17px;
  color: var(--menu-text);
  flex-shrink: 0;
}

/* ── Toggle switch ─────────────────────────────────────────── */
.toggle-anota {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-anota input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 11px;
  cursor: pointer;
  transition: .2s;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.toggle-anota input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-anota input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* ── Kanban columns ────────────────────────────────────────── */
.kanban-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 3px solid;
}

.kanban-col-header .col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.kanban-col-header .col-count {
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.kanban-col.col-analise .kanban-col-header { border-color: var(--analise); }
.kanban-col.col-analise .col-count         { background: var(--analise); }

.kanban-col.col-producao .kanban-col-header { border-color: var(--producao); }
.kanban-col.col-producao .col-count         { background: var(--producao); }

.kanban-col.col-pronto .kanban-col-header { border-color: var(--pronto); }
.kanban-col.col-pronto .col-count         { background: var(--pronto); }

/* ── Order card ────────────────────────────────────────────── */
.order-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.order-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,152,252,.1);
}

.order-card .oc-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.order-card .oc-customer {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-top: 2px;
}

.order-card .oc-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Topbar auto-accept row ────────────────────────────────── */
.board-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.board-topbar .auto-accept-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── KPI / Stat card ───────────────────────────────────────── */
.kpi-anota {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-anota .kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}

.kpi-anota .kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.kpi-anota .kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Alerts / Flash messages ───────────────────────────────── */
.alert-anota {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.alert-anota.success {
  background: rgba(35,211,95,.1);
  color: #156e38;
  border: 1px solid rgba(35,211,95,.25);
}

.alert-anota.error {
  background: rgba(231,76,3,.1);
  color: #a82d00;
  border: 1px solid rgba(231,76,3,.25);
}

.alert-anota.warning {
  background: rgba(223,148,3,.1);
  color: #8a5900;
  border: 1px solid rgba(223,148,3,.25);
}

.alert-anota.info {
  background: var(--highlight);
  color: var(--blue-mid);
  border: 1px solid rgba(0,152,252,.2);
}

/* ── Period selector ───────────────────────────────────────── */
.period-select {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}

.period-select button {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.period-select button.active {
  background: var(--primary);
  color: #fff;
}

/* ── Table status legend ───────────────────────────────────── */
.table-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.table-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.dot-livre    { background: var(--pronto); }
.dot-ocupada  { background: var(--analise); }
.dot-fechando { background: var(--producao); }

/* ── Shortcut badges ───────────────────────────────────────── */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: monospace;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* ── PWA Garçom banner ─────────────────────────────────────── */
.pwa-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pwa-banner .pwa-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-banner .pwa-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner .pwa-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pwa-banner .pwa-sub {
  font-size: 12px;
  opacity: .8;
}

.pwa-banner .pwa-link {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}

.pwa-banner .pwa-link:hover {
  background: rgba(255,255,255,.3);
  color: #fff;
}

/* ── Auth layout ───────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--blue-mid) 100%);
  padding: 24px;
}

.auth-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-card .auth-logo .logo-mark {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.auth-card .auth-logo .logo-mark .mat-icon {
  font-size: 26px;
  color: #fff;
}

.auth-card .auth-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  text-align: center;
  margin-bottom: 4px;
}

.auth-card .auth-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

/* ── Responsive: hide sidebar on mobile ────────────────────── */
@media (max-width: 768px) {
  .sidebar-anota {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .sidebar-anota.open {
    transform: translateX(0);
  }

  .main-anota {
    margin-left: 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 99;
  }

  .sidebar-overlay.open {
    display: block;
  }
}

/* ── Utility classes ───────────────────────────────────────── */
.text-brand  { color: var(--brand); }
.text-primary { color: var(--primary); }
.text-muted  { color: var(--text-muted); }
.text-success { color: #18a34a; }
.text-danger  { color: var(--analise); }
.text-warning { color: var(--producao); }

.bg-brand     { background: var(--brand); }
.bg-primary   { background: var(--primary); }
.bg-highlight { background: var(--highlight); }
.bg-content   { background: var(--bg); }

.rounded-anota    { border-radius: var(--radius); }
.rounded-anota-lg { border-radius: var(--radius-lg); }

.border-anota { border: 1px solid var(--border); }

.shadow-anota { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.gap-anota    { gap: 16px; }
.p-anota      { padding: 20px 24px; }
.px-anota     { padding-left: 24px; padding-right: 24px; }
.py-anota     { padding-top: 16px; padding-bottom: 16px; }

.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

/* ── Scrollbar global ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b0b8c1; }

/* ══════════════════════════════════════════════════════════════
   Anota AI Sidebar v2 — sb-* components
   These classes mirror the gestor.blade.php sidebar design
   and are used by app.blade.php (the shell for sub-pages)
══════════════════════════════════════════════════════════════ */

/* Override sidebar background to match Anota AI dark navy */
.sidebar-anota {
  background: linear-gradient(180deg, #1B2B4B 0%, #162340 100%) !important;
  width: 240px !important;
  font-family: 'Inter', 'Roboto', sans-serif;
}

/* ── Logo ─────────────────────────────────────────────────── */
.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.sb-logo .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #2D8CFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-logo .logo-icon .mi {
  font-size: 18px;
  color: #fff;
}

/* ── Search ───────────────────────────────────────────────── */
.sb-search {
  margin: 10px 10px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 7px 10px;
  flex-shrink: 0;
}

.sb-search .mi {
  font-size: 16px;
  color: rgba(255,255,255,.4);
  font-family: 'Material Icons Round', sans-serif;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

.sb-search input {
  background: none;
  border: none;
  outline: none;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  width: 100%;
  font-family: inherit;
}

.sb-search input::placeholder {
  color: rgba(255,255,255,.35);
}

/* ── Plan card ────────────────────────────────────────────── */
.sb-plan-card {
  margin: 4px 10px 4px;
  border-radius: 10px;
  background: rgba(45,140,255,.15);
  border: 1px solid rgba(45,140,255,.25);
  padding: 10px 12px;
  flex-shrink: 0;
}

.sb-plan-title {
  font-size: 11px;
  font-weight: 700;
  color: #7EC8FF;
  margin-bottom: 6px;
}

.sb-plan-bar {
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  height: 5px;
  overflow: hidden;
  margin-bottom: 6px;
}

.sb-plan-fill {
  background: #2D8CFF;
  height: 100%;
  border-radius: 20px;
  transition: width .3s;
}

.sb-plan-days {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}

.sb-plan-btn {
  display: block;
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  background: #2D8CFF;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity .15s;
}

.sb-plan-btn:hover {
  opacity: .85;
  color: #fff;
}

/* ── Nav scroll area ──────────────────────────────────────── */
.sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.sb-nav::-webkit-scrollbar {
  display: none;
}

/* ── Section labels ───────────────────────────────────────── */
.sb-section-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 10px 14px 3px;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Nav items inside .sb-nav ─────────────────────────────── */
.sb-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 1px 6px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  transition: background .12s, color .12s;
}

.sb-nav a:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
}

.sb-nav a.active {
  background: #2D8CFF;
  color: #fff;
  font-weight: 700;
}

.sb-nav a .mi {
  font-size: 18px;
  flex-shrink: 0;
  font-family: 'Material Icons Round', sans-serif;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

.sb-nav a .sb-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Badges & Tags ────────────────────────────────────────── */
.sb-badge {
  margin-left: auto;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 20px;
  padding: 2px 7px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sb-nav a.active .sb-badge {
  background: rgba(255,255,255,.3);
}

.sb-tag {
  margin-left: auto;
  background: #22A45D;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 5px;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: .4px;
}

.sb-tag.orange { background: #F59E0B; }
.sb-tag.new    { background: #FF4D6D; }

/* ── Promo nav item ───────────────────────────────────────── */
.sb-promo-navitem {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}

.sb-promo-navitem .mi {
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Material Icons Round', sans-serif;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

.pni-t1 {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  display: block;
}

.pni-t2 {
  font-size: 9.5px;
  color: rgba(255,255,255,.8);
  display: block;
}

.pni-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: rgba(255,255,255,.7);
}

.pni-arrow .mi {
  font-size: 14px;
}

/* ── Sidebar Footer ───────────────────────────────────────── */
.sb-footer {
  padding: 10px 6px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sb-store-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2D8CFF;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.sb-store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sb-store-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sb-store-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-store-user {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #22A45D;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 5px;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: 2px;
}

.sb-open-badge.closed {
  background: #EF4444;
}

.sb-open-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
}

.sb-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, color .12s;
}

.sb-logout:hover {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
}

.sb-logout .mi {
  font-size: 16px;
  font-family: 'Material Icons Round', sans-serif;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

/* ── Material Icons Round helper (for app.blade.php) ───────── */
.material-icons-round.mi,
.mi {
  font-family: 'Material Icons Round', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* ── Override old sidebar-footer with sb-footer ──────────────── */
.sidebar-anota .sidebar-footer {
  display: none;
}

/* Override main-anota margin for wider sidebar */
.main-anota {
  margin-left: 240px !important;
}

/* ── Anota AI form components ────────────────────────────── */
.aa-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.aa-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1B2B4B;
  margin-bottom: 4px;
}

.aa-card-sub {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 16px;
}

.aa-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6B7280;
  display: block;
  margin-bottom: 6px;
}

.aa-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13px;
  color: #1a2a36;
  background: #fff;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}

.aa-input:focus {
  border-color: #2D8CFF;
}

.aa-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13px;
  color: #1a2a36;
  background: #fff;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.aa-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13px;
  color: #1a2a36;
}

.aa-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.aa-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.aa-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #D1D5DB;
  border-radius: 20px;
  transition: .2s;
}

.aa-toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.aa-toggle input:checked + .aa-toggle-slider {
  background: #2D8CFF;
}

.aa-toggle input:checked + .aa-toggle-slider::before {
  transform: translateX(16px);
}

.aa-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2D8CFF;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: opacity .15s;
}

.aa-btn-primary:hover {
  opacity: .88;
  color: #fff;
}

.aa-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #2D8CFF;
  border: 1px solid #2D8CFF;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .15s;
}

.aa-btn-secondary:hover {
  background: #EBF4FF;
  color: #2D8CFF;
}

.aa-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F4F6F9;
  color: #1a2a36;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .15s;
}

.aa-btn-ghost:hover {
  background: #E5E7EB;
}

/* ── Printer page specific ───────────────────────────────── */
.printer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  margin-bottom: 10px;
}

.printer-icon-wrap {
  width: 44px;
  height: 44px;
  background: #EBF4FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.printer-icon-wrap .mi {
  font-size: 22px;
  color: #2D8CFF;
}

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

.printer-name {
  font-size: 14px;
  font-weight: 700;
  color: #1B2B4B;
}

.printer-model {
  font-size: 12px;
  color: #6B7280;
  margin-top: 1px;
}

.printer-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.printer-status.connected {
  background: #D1FAE5;
  color: #065F46;
}

.printer-status.disconnected {
  background: #FEE2E2;
  color: #991B1B;
}

.printer-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.receipt-preview {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #1a2a36;
  max-width: 280px;
}

.receipt-preview .rp-store {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.receipt-preview .rp-sub {
  text-align: center;
  font-size: 11px;
  color: #6B7280;
  margin-bottom: 8px;
}

.receipt-preview .rp-divider {
  border: none;
  border-top: 1px dashed #D1D5DB;
  margin: 8px 0;
}

.receipt-preview .rp-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 11px;
}

.receipt-preview .rp-total {
  font-weight: 700;
  font-size: 13px;
}
