/* Engrenou v2 - mockup navegável - VERSÃO DESKTOP
   Complementa styles.css (os tokens vivem no :root de lá).
   Nada aqui altera as páginas mobile. */

/* ============================================================
   PALCO DESKTOP
   ============================================================ */
.stage-desk { padding: 34px 20px 64px; }

.stage-desk .frame-meta { max-width: 1180px; }

.frame-meta .meta-right {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.frame-meta .twin {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--brand-strong);
  text-decoration: none;
}
.frame-meta .twin:hover { text-decoration: underline; }

/* ============================================================
   FRAME DE NAVEGADOR
   ============================================================ */
.browser {
  position: relative;
  width: 100%;
  max-width: 1180px;
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid rgba(12, 29, 27, .08);
  box-shadow: 0 30px 70px rgba(12, 29, 27, .22), 0 6px 18px rgba(12, 29, 27, .10);
  overflow: hidden;
}

.browser-bar {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px) 1fr;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.b-dots { display: flex; gap: 7px; }
.b-dots span { width: 12px; height: 12px; border-radius: 50%; }
.b-dots .r { background: #F26D5F; }
.b-dots .y { background: #F5BE4F; }
.b-dots .g { background: #59C36A; }

.b-addr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  border-radius: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
.b-addr i { font-size: 13px; }

/* ============================================================
   CASCA DO APP: SIDEBAR + CONTEÚDO
   ============================================================ */
.app-shell {
  position: relative;
  display: flex;
  height: 720px;
  align-items: stretch;
}

.sidebar {
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 18px 14px 16px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 16px;
}
.side-brand .tile {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #FCEFF4, #F8E3EC);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex: 0 0 auto;
}
.side-brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}
.side-brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

.side-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  border-radius: var(--r-btn);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 181, 166, .3);
  margin-bottom: 16px;
  transition: background .12s ease, transform .12s ease;
}
.side-new:hover { background: var(--brand-strong); }
.side-new:active { transform: scale(.97); }
.side-new i { font-size: 18px; }

.side-nav { display: flex; flex-direction: column; gap: 3px; }

.side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.side-item i { font-size: 20px; }
.side-item:hover { background: var(--paper); color: var(--ink); }
.side-item.active { background: var(--brand-soft); color: var(--brand-strong); }
.side-item.active i { color: var(--brand); }

.side-foot {
  margin-top: auto;
  border-top: 1px solid #EDF3F0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-foot a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.side-foot a i { font-size: 17px; }
.side-foot a:hover { background: var(--paper); color: var(--ink); }

.dmain {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  padding: 26px 30px 34px;
}

/* Header das telas */
.dhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dhead .greeting { font-size: 26px; }
.dhead .subgreeting { font-size: 14px; }
.dhead .actions { display: flex; gap: 10px; flex: 0 0 auto; }

/* Grades */
.dgrid { display: grid; gap: 14px; align-items: start; }
.dgrid-8-4 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.dgrid-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.dgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dcol { min-width: 0; }
.dcol > .card + .card,
.dcol > * + * { margin-top: 12px; }

/* Título de seção um pouco maior no desktop */
.dmain .section-title { font-size: 16px; margin: 6px 0 12px; }
.dmain .section-title:first-of-type { margin-top: 0; }

/* Tríade compacta na lateral: sem quebra de linha nos valores */
body.desk .money-mini .cell .val { white-space: nowrap; }
body.desk .money-mini .cell.sobrou .val { font-size: 17px; }

/* Card de pedido largo: botão de ação à direita */
.order-card.wide { padding: 16px 18px; }
.order-card.wide .order-foot { margin-top: 14px; }

/* ============================================================
   QUADRO DA SEMANA (desktop-pedidos)
   ============================================================ */
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

.bcol {
  background: #EBF2EF;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 430px;
}
.bcol.today { background: #E3F3F0; border-color: #BFE8E2; }
.bcol.late { background: #F8F0DE; border-color: #F2DCAE; }

.bcol-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px 6px;
}
.bcol-head h3 {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bcol.today .bcol-head h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.bcol.late .bcol-head h3 { color: #8a6000; }
.bcol-head small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.bcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 12px;
}
.bcard .bc-top { display: flex; align-items: center; gap: 9px; }
.bcard .bc-top .avatar { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.bcard .order-name { font-size: 14px; }
.bcard .order-items { font-size: 12px; margin-top: 1px; }
.bcard .bc-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--muted);
}
.bcard .bc-meta .t { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.bcard .badges { margin-top: 9px; }
.bcard .btn { margin-top: 10px; min-height: 42px; font-size: 12.5px; width: 100%; }
.bcard .btn i { font-size: 16px; }

.bcol .more-row { margin-top: 0; padding: 10px; font-size: 12px; background: transparent; }
.bcol .empty-day { border-color: #D3E0DA; background: transparent; padding: 28px 10px; font-size: 13px; }

/* ============================================================
   DINHEIRO DESKTOP
   ============================================================ */
.money-hero.big { padding: 34px 26px 30px; height: 100%; }
.money-hero.big .money-cell .val { font-size: 26px; }
.money-hero.big .money-cell .lbl { font-size: 12px; }
.money-hero.big .money-op { font-size: 22px; }
.money-hero.big .money-sobrou { margin-top: 22px; padding-top: 22px; }
.money-hero.big .money-sobrou .val { font-size: 56px; }
.money-hero.big .money-sobrou .hint { font-size: 13.5px; margin-top: 6px; }

.dmain .month-nav { margin: 0; justify-content: flex-end; }
.dmain .month-nav button { width: 40px; height: 40px; }
.dmain .month-nav .month { min-width: 90px; font-size: 16px; }

.dmain .bars { height: 130px; }

/* ============================================================
   HUB MEU NEGÓCIO DESKTOP
   ============================================================ */
.dmain .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dmain .hub-card { min-height: 118px; padding: 17px 16px; transition: transform .12s ease, box-shadow .12s ease; }
.dmain .hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.dmain .hub-card h3 { font-size: 15px; }
.dmain .hub-card p { font-size: 12.5px; }

/* ============================================================
   KANBAN DESKTOP (4 colunas fixas)
   ============================================================ */
.kanban-desk {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.kanban-desk .kcol { min-height: 420px; }

/* Overlay do modo simples dentro do frame de navegador */
.app-shell .gate { border-radius: 0; }
.app-shell .gate .card { max-width: 420px; }

/* Toast fora do frame de celular: fixa na tela */
body.desk .toast { position: fixed; bottom: 40px; }

/* ============================================================
   CAPA: seção "E no computador?"
   ============================================================ */
.desk-lede {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 720px;
  margin: -4px 0 18px;
}

.screen-card.desk { border-color: #CFE0DA; background: linear-gradient(180deg, #FFFFFF, #F6FAF8); }
.screen-card.desk .desk-ic {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.screen-card.desk h3 i { color: var(--muted); font-size: 16px; }

/* Responsivo do próprio mockup (só pra não quebrar em janelas menores) */
@media (max-width: 1080px) {
  .dgrid-8-4, .dgrid-7-5, .dgrid-3 { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban-desk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell { height: auto; min-height: 720px; }
}
