/* ==========================================================================
   ORBE — Design System v3
   Camada visual unificada (landing + portais cliente/fornecedor/admin).
   Paleta dark premium aprovada: rosa neon, roxo e laranja.
   Tudo tokenizado para reuso e futura integracao (API / FlutterFlow / mobile).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- Cores base (fundo dark premium) ---- */
  --o-bg: #0a0610;
  --o-bg-2: #0e0916;
  --o-surface: #140d1f;
  --o-surface-2: #181024;
  --o-surface-3: #1d1430;
  --o-elevated: #211633;

  /* ---- Marca ---- */
  --o-pink: #ff2d8e;
  --o-pink-2: #ff4d9e;
  --o-magenta: #e0218a;
  --o-purple: #8b5cf6;
  --o-purple-2: #7c3aed;
  --o-orange: #ff7a3d;

  /* ---- Gradientes ---- */
  --o-grad-main: linear-gradient(100deg, #7c3aed 0%, #e0218a 52%, #ff7a3d 100%);
  --o-grad-pink: linear-gradient(100deg, #c026d3 0%, #ff2d8e 100%);
  --o-grad-purple: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --o-grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(224, 33, 138, 0.18));
  --o-grad-ring: conic-gradient(from 220deg, #7c3aed, #e0218a, #ff7a3d, #7c3aed);

  /* ---- Texto ---- */
  --o-text: #f5f2fa;
  --o-text-soft: #cabfd9;
  --o-text-muted: #897e9c;
  --o-text-dim: #5f5673;

  /* ---- Linhas / bordas ---- */
  --o-border: rgba(255, 255, 255, 0.07);
  --o-border-2: rgba(255, 255, 255, 0.11);
  --o-border-glow: rgba(224, 33, 138, 0.32);

  /* ---- Status ---- */
  --o-green: #34d399;
  --o-green-bg: rgba(52, 211, 153, 0.13);
  --o-amber: #fbbf24;
  --o-amber-bg: rgba(251, 191, 36, 0.13);
  --o-red: #fb7185;
  --o-red-bg: rgba(251, 113, 133, 0.13);
  --o-info: #a855f7;
  --o-info-bg: rgba(168, 85, 247, 0.15);

  /* ---- Sombras ---- */
  --o-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --o-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --o-shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
  --o-glow-pink: 0 10px 40px rgba(224, 33, 138, 0.35);
  --o-glow-purple: 0 10px 40px rgba(124, 58, 237, 0.35);

  /* ---- Raio ---- */
  --o-r-sm: 10px;
  --o-r: 14px;
  --o-r-md: 18px;
  --o-r-lg: 24px;
  --o-r-pill: 999px;

  /* ---- Espacamento ---- */
  --o-space: 24px;

  /* ---- Tipografia ---- */
  --o-font-display: 'Sora', system-ui, sans-serif;
  --o-font-body: 'Inter', system-ui, sans-serif;

  /* ---- Layout ---- */
  --o-sidebar-w: 268px;
  --o-maxw: 1500px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html.orbe-v3 { background: var(--o-bg); }

.orbe-v3 body,
body.orbe-v3 {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 82% -8%, rgba(124, 58, 237, 0.14), transparent 60%),
    radial-gradient(900px 600px at 4% 4%, rgba(224, 33, 138, 0.1), transparent 55%),
    var(--o-bg);
  color: var(--o-text);
  font-family: var(--o-font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.orbe-v3 h1, .orbe-v3 h2, .orbe-v3 h3, .orbe-v3 h4 {
  font-family: var(--o-font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
.orbe-v3 p { margin: 0; }
.orbe-v3 a { color: inherit; text-decoration: none; }
.orbe-v3 img { max-width: 100%; display: block; }
.orbe-v3 button { font-family: inherit; cursor: pointer; }
.orbe-v3 ::selection { background: rgba(224, 33, 138, 0.35); color: #fff; }

/* Tamanho padrao dos icones (evita SVGs gigantes sem container) */
.orbe-v3 svg { width: 18px; height: 18px; flex-shrink: 0; }
.orbe-v3 .ic-12 { width: 12px; height: 12px; }
.orbe-v3 .ic-13 { width: 13px; height: 13px; }
.orbe-v3 .ic-14 { width: 14px; height: 14px; }
.orbe-v3 .ic-16 { width: 16px; height: 16px; }
.orbe-v3 .ic-20 { width: 20px; height: 20px; }
.orbe-v3 .ic-22 { width: 22px; height: 22px; }
.orbe-v3 .ic-24 { width: 24px; height: 24px; }
.orbe-v3 .ic-26 { width: 26px; height: 26px; }
.orbe-v3 .ic-28 { width: 28px; height: 28px; }

.o-gradient-text {
  background: var(--o-grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Logo / marca
   ========================================================================== */
.o-brand { display: inline-flex; align-items: center; gap: 12px; }
.o-brand-mark {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--o-grad-pink);
  display: grid; place-items: center;
  font-family: var(--o-font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--o-glow-pink);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.o-brand-mark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.35), transparent 45%);
}
.o-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.o-brand-kicker {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--o-text-muted); font-weight: 600;
}
.o-brand-name {
  font-family: var(--o-font-display); font-weight: 800; font-size: 1.18rem;
  color: var(--o-text); letter-spacing: 0.04em;
}

/* ==========================================================================
   Botoes
   ========================================================================== */
.o-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px;
  border-radius: var(--o-r-pill);
  border: 1px solid transparent;
  font-family: var(--o-font-body);
  font-weight: 600; font-size: 0.92rem;
  color: var(--o-text);
  background: transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.o-btn svg { width: 18px; height: 18px; }
.o-btn:hover { transform: translateY(-1px); }

.o-btn-primary {
  background: var(--o-grad-main);
  color: #fff;
  box-shadow: var(--o-glow-pink);
}
.o-btn-primary:hover { box-shadow: 0 16px 50px rgba(224, 33, 138, 0.5); }

.o-btn-pink { background: var(--o-grad-pink); color: #fff; box-shadow: var(--o-glow-pink); }
.o-btn-purple { background: var(--o-grad-purple); color: #fff; box-shadow: var(--o-glow-purple); }

.o-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--o-border-2);
  color: var(--o-text-soft);
}
.o-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--o-text); }

.o-btn-block { width: 100%; }
.o-btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.o-btn-lg { padding: 15px 26px; font-size: 1rem; }

/* ==========================================================================
   Cards / paineis
   ========================================================================== */
.o-card {
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: var(--o-r-md);
  padding: var(--o-space);
  box-shadow: var(--o-shadow-sm);
}
.o-card-pad-lg { padding: 28px; }

.o-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.o-card-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--o-font-display); font-weight: 700; font-size: 1.05rem;
}
.o-card-title svg { width: 19px; height: 19px; color: var(--o-pink); }

.o-link-more {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--o-pink-2); font-weight: 600; font-size: 0.86rem;
}
.o-link-more svg { width: 15px; height: 15px; }
.o-link-more:hover { color: var(--o-pink); }

/* ---- Card de metrica ---- */
.o-metric {
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: var(--o-r-md);
  padding: 20px;
}
.o-metric-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--o-grad-soft);
  border: 1px solid var(--o-border-2);
  color: var(--o-pink-2);
  margin-bottom: 14px;
}
.o-metric-ico svg { width: 21px; height: 21px; }
.o-metric-label { color: var(--o-text-muted); font-size: 0.86rem; }
.o-metric-value {
  font-family: var(--o-font-display); font-weight: 800; font-size: 2rem;
  margin: 2px 0 6px;
}
.o-metric-delta { font-size: 0.8rem; font-weight: 600; color: var(--o-pink-2); display: inline-flex; align-items: center; gap: 4px; }
.o-metric-delta.is-down { color: var(--o-red); }

/* ==========================================================================
   Tags / status
   ========================================================================== */
.o-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: var(--o-r-pill);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.o-tag-new { color: #c4b5fd; background: var(--o-info-bg); border-color: rgba(168,85,247,0.4); }
.o-tag-open { color: var(--o-orange); background: rgba(255,122,61,0.13); border-color: rgba(255,122,61,0.4); }
.o-tag-ok { color: var(--o-green); background: var(--o-green-bg); border-color: rgba(52,211,153,0.4); }
.o-tag-wait { color: var(--o-amber); background: var(--o-amber-bg); border-color: rgba(251,191,36,0.4); }
.o-tag-bad { color: var(--o-red); background: var(--o-red-bg); border-color: rgba(251,113,133,0.4); }
.o-tag-muted { color: var(--o-text-muted); background: rgba(255,255,255,0.05); border-color: var(--o-border-2); }
.o-tag-premium { color: #fff; background: var(--o-grad-main); }

.o-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--o-r-pill);
  background: rgba(255,255,255,0.05); border: 1px solid var(--o-border-2);
  font-size: 0.8rem; color: var(--o-text-soft);
}
.o-pill svg { width: 14px; height: 14px; }
.o-pill-close { cursor: pointer; color: var(--o-text-muted); }
.o-pill-close:hover { color: var(--o-pink); }

/* ==========================================================================
   Inputs
   ========================================================================== */
.o-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.o-label { font-size: 0.84rem; font-weight: 600; color: var(--o-text-soft); }
.o-input, .o-select, .o-textarea {
  width: 100%;
  background: var(--o-bg-2);
  border: 1px solid var(--o-border-2);
  border-radius: var(--o-r-sm);
  padding: 12px 14px;
  color: var(--o-text);
  font-family: inherit; font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.o-input::placeholder, .o-textarea::placeholder { color: var(--o-text-dim); }
.o-input:focus, .o-select:focus, .o-textarea:focus {
  outline: none;
  border-color: var(--o-pink);
  box-shadow: 0 0 0 3px rgba(224, 33, 138, 0.16);
}

/* Toggle */
.o-toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.o-toggle input { opacity: 0; width: 0; height: 0; }
.o-toggle-track {
  position: absolute; inset: 0; border-radius: var(--o-r-pill);
  background: rgba(255,255,255,0.12); transition: background 0.2s ease;
}
.o-toggle-track::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform 0.2s ease;
}
.o-toggle input:checked + .o-toggle-track { background: var(--o-grad-pink); }
.o-toggle input:checked + .o-toggle-track::before { transform: translateX(20px); }

/* ==========================================================================
   Tabela
   ========================================================================== */
.o-table { width: 100%; border-collapse: collapse; }
.o-table thead th {
  text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--o-text-muted); font-weight: 600; padding: 0 16px 14px;
}
.o-table tbody td { padding: 16px; border-top: 1px solid var(--o-border); vertical-align: middle; }
.o-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ==========================================================================
   Anel de progresso (conic)
   ========================================================================== */
.o-ring {
  --val: 65;
  width: 132px; height: 132px; border-radius: 50%;
  background: conic-gradient(from 180deg, #e0218a 0%, #7c3aed calc(var(--val) * 1%), rgba(255,255,255,0.07) 0);
  display: grid; place-items: center;
  position: relative; flex-shrink: 0;
}
.o-ring::before {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  background: var(--o-surface);
}
.o-ring-label { position: relative; text-align: center; z-index: 1; }
.o-ring-num { font-family: var(--o-font-display); font-weight: 800; font-size: 1.5rem; }
.o-ring-cap { font-size: 0.72rem; color: var(--o-text-muted); }

/* ==========================================================================
   Avatar
   ========================================================================== */
.o-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--o-grad-purple);
  display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 0.9rem; flex-shrink: 0;
}
.o-avatar-sm { width: 34px; height: 34px; font-size: 0.78rem; }

/* ==========================================================================
   Layout do portal (sidebar + conteudo)
   ========================================================================== */
.o-shell { display: flex; min-height: 100vh; }

.o-sidebar {
  width: var(--o-sidebar-w);
  flex-shrink: 0;
  background: var(--o-bg-2);
  border-right: 1px solid var(--o-border);
  padding: 26px 18px;
  display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.o-side-brand { padding: 0 8px; }

.o-nav { display: flex; flex-direction: column; gap: 4px; }
.o-nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; border-radius: var(--o-r);
  color: var(--o-text-muted); font-weight: 600; font-size: 0.92rem;
  transition: background 0.18s ease, color 0.18s ease;
}
.o-nav-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.o-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--o-text-soft); }
.o-nav-item.is-active {
  background: var(--o-grad-pink);
  color: #fff;
  box-shadow: var(--o-glow-pink);
}
.o-nav-badge {
  margin-left: auto; background: rgba(255,255,255,0.18);
  border-radius: var(--o-r-pill); padding: 1px 8px; font-size: 0.72rem; font-weight: 700;
}
.o-nav-item:not(.is-active) .o-nav-badge { background: var(--o-grad-pink); color: #fff; }

.o-side-spacer { flex: 1; }

.o-help-card {
  background: var(--o-surface); border: 1px solid var(--o-border);
  border-radius: var(--o-r-md); padding: 18px;
}
.o-help-card h4 { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; margin-bottom: 8px; }
.o-help-card h4 svg { width: 18px; height: 18px; color: var(--o-pink); }
.o-help-card p { color: var(--o-text-muted); font-size: 0.83rem; margin-bottom: 14px; }

.o-side-logout {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: var(--o-text-muted); font-weight: 600; font-size: 0.9rem; padding: 10px;
}
.o-side-logout:hover { color: var(--o-pink); }
.o-side-logout svg { width: 18px; height: 18px; }

/* Conteudo */
.o-main { flex: 1; min-width: 0; padding: 30px 34px 48px; }
.o-topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 30px;
}
.o-page-kicker {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--o-pink-2); font-weight: 700; margin-bottom: 8px;
}
.o-page-title { font-size: 2rem; display: flex; align-items: center; gap: 12px; }
.o-page-sub { color: var(--o-text-muted); margin-top: 8px; max-width: 560px; }

.o-topbar-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.o-icon-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--o-surface); border: 1px solid var(--o-border-2);
  color: var(--o-text-soft);
}
.o-icon-btn svg { width: 20px; height: 20px; }
.o-icon-btn:hover { color: var(--o-pink); border-color: var(--o-border-glow); }
.o-icon-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--o-r-pill);
  background: var(--o-grad-pink); color: #fff;
  font-size: 0.68rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--o-bg);
}
.o-notify,
.o-support { position: relative; display: block; }
.o-notify summary { list-style: none; }
.o-notify summary::-webkit-details-marker { display: none; }
.o-notify-panel,
.o-support-dialog {
  border-radius: var(--o-r-md);
  background: rgba(13, 9, 21, 0.96);
  border: 1px solid var(--o-border);
  box-shadow: var(--o-shadow-lg);
  backdrop-filter: blur(18px);
}
.o-notify-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(360px, 88vw);
  padding: 18px;
  z-index: 30;
}
.o-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--o-text-muted);
  font-size: 0.8rem;
}
.o-notify-item {
  display: block;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--o-border);
}
.o-notify-item:first-of-type { border-top: 0; }
.o-notify-item p,
.o-notify-empty p {
  margin: 6px 0 0;
  color: var(--o-text-muted);
  font-size: 0.83rem;
}
.o-notify-item span,
.o-notify-empty span:last-child {
  display: block;
  margin-top: 8px;
  color: var(--o-text-dim);
  font-size: 0.75rem;
}
.o-notify-item.is-unread { border-left: 2px solid var(--o-pink); padding-left: 12px; }
.o-notify-empty {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 4px 0;
}
.o-support .o-btn { width: 100%; justify-content: center; }
.o-support-modal-root[hidden] { display: none !important; }
.o-support-modal-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.o-support-modal-root.is-open {
  opacity: 1;
  pointer-events: auto;
}
.o-support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 12, 0.78);
  backdrop-filter: blur(10px);
}
.o-support-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 22px;
  z-index: 1;
}
.o-support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.o-support-copy {
  margin: 0 0 16px;
  color: var(--o-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.o-support-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--o-border-2);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--o-text-soft);
  display: grid;
  place-items: center;
}
.o-support-close:hover {
  border-color: var(--o-border-glow);
  color: var(--o-pink);
}
.o-support-actions {
  justify-content: flex-end;
  margin-top: 4px;
}
body.o-modal-open { overflow: hidden; }
.o-avatar-img,
.o-brand-photo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}
.o-brand-photo { width: 78px; height: 78px; border-radius: 22px; }
.o-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.o-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 15, 0.12) 0%, rgba(8, 7, 15, 0.7) 100%);
}
.o-media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 200px));
  justify-content: start;
  gap: 12px;
}
.o-media-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--o-r);
  border: 1px solid var(--o-border);
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(255,45,142,0.18));
}
.o-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.o-media-preview-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(10, 8, 17, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
}
.o-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  min-height: 170px;
  color: var(--o-text-soft);
  text-align: center;
  padding: 20px;
}
.o-media-placeholder .o-avatar {
  width: 68px;
  height: 68px;
  font-size: 1.1rem;
}
.o-upload-note {
  margin-top: 10px;
  color: var(--o-text-dim);
  font-size: 0.78rem;
  line-height: 1.45;
}
.o-user {
  display: flex; align-items: center; gap: 11px;
  background: var(--o-surface); border: 1px solid var(--o-border-2);
  border-radius: var(--o-r-pill); padding: 6px 14px 6px 6px;
}
.o-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.o-user-name { font-weight: 700; font-size: 0.9rem; }
.o-user-role { font-size: 0.76rem; color: var(--o-text-muted); }
.o-availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.o-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.o-status-dot.is-online {
  background: var(--o-green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}
.o-status-dot.is-offline {
  background: var(--o-red);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}
.o-availability-online {
  color: #d8fff0;
}
.o-availability-offline {
  color: #ffd7d7;
}

/* ==========================================================================
   Grades utilitarias
   ========================================================================== */
.o-grid { display: grid; gap: 18px; }
.o-grid-2 { grid-template-columns: repeat(2, 1fr); }
.o-grid-3 { grid-template-columns: repeat(3, 1fr); }
.o-grid-4 { grid-template-columns: repeat(4, 1fr); }
.o-layout-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start;
}
.o-stack { display: flex; flex-direction: column; gap: 18px; }
.o-flex { display: flex; gap: 14px; }
.o-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.o-flex-center { display: flex; align-items: center; gap: 10px; }

/* ==========================================================================
   Linha de item (lista)
   ========================================================================== */
.o-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--o-border);
}
.o-row:first-of-type { border-top: 0; }
.o-row-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--o-grad-soft); border: 1px solid var(--o-border-2);
  color: var(--o-pink-2);
}
.o-row-ico svg { width: 21px; height: 21px; }
.o-row-body { flex: 1; min-width: 0; }
.o-row-title { font-weight: 600; font-size: 0.95rem; }
.o-row-sub { color: var(--o-text-muted); font-size: 0.82rem; margin-top: 2px; }
.o-muted { color: var(--o-text-muted); }
.o-soft { color: var(--o-text-soft); }
.o-strong { font-weight: 700; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1180px) {
  .o-layout-main { grid-template-columns: 1fr; }
  .o-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .o-sidebar {
    position: fixed; left: 0; top: 0; z-index: 60;
    transform: translateX(-100%); transition: transform 0.25s ease;
  }
  .o-sidebar.is-open { transform: translateX(0); }
  .o-shell.is-portal .o-main { padding-top: 84px; }
  .o-mobile-bar { display: flex; }
}
@media (max-width: 760px) {
  .o-grid-2, .o-grid-3, .o-grid-4 { grid-template-columns: 1fr; }
  .o-main { padding: 20px 18px 40px; }
  .o-topbar { flex-direction: column; }
  .o-page-title { font-size: 1.6rem; }
  .o-topbar-actions { width: 100%; }
}

/* Barra mobile (botao do menu) */
.o-mobile-bar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(10, 6, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--o-border);
}
.o-mobile-burger {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--o-surface); border: 1px solid var(--o-border-2);
  color: var(--o-text); display: grid; place-items: center;
}
.o-mobile-burger svg { width: 20px; height: 20px; }
.o-backdrop {
  display: none; position: fixed; inset: 0; z-index: 55;
  background: rgba(0,0,0,0.55);
}
.o-backdrop.is-open { display: block; }

/* ==========================================================================
   Identidade visual do fornecedor (logo oficial -> placeholder com iniciais)
   ========================================================================== */
.o-brand-id {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--o-r);
  border: 1px solid var(--o-border-2);
  background: #ffffff;
}
.o-brand-id img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.o-brand-id-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--o-grad-main);
  color: #fff;
  font-family: var(--o-font-display, 'Sora', sans-serif);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.o-brand-id-sm { width: 44px; height: 44px; border-radius: var(--o-r-sm); }
.o-brand-id-sm .o-brand-id-fallback { font-size: 0.95rem; }
.o-brand-id-md { width: 56px; height: 56px; }
.o-brand-id-md .o-brand-id-fallback { font-size: 1.2rem; }
.o-brand-id-lg { width: 72px; height: 72px; border-radius: var(--o-r-md); }
.o-brand-id-lg .o-brand-id-fallback { font-size: 1.5rem; }
.o-brand-id-xl { width: 110px; height: 110px; border-radius: var(--o-r-md); }
.o-brand-id-xl .o-brand-id-fallback { font-size: 2.3rem; }
.o-brand-id-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--o-r);
  background: var(--o-grad-soft);
}
.o-brand-id-banner .o-brand-id-fallback { font-size: 2.6rem; }
.o-brand-id-banner img {
  width: auto;
  max-width: 72%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
  border-radius: var(--o-r-sm);
}
