:root {
  --laranja: #D9772B;
  --laranja-escuro: #B5611F;
  --laranja-suave: #FBF4EE;
  --cinza: #9A938C;
  --linha: #EFE4DA;
  --erro: #B3402A;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #fff;
  color: var(--laranja);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }

/* logótipo do Abrigo: mesmo triângulo (path SVG) e Playfair Display do abrigolagos.pt */
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo svg { width: 32px; height: 32px; }
.logo .nome { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: .08em; margin-top: 3px; }
.logo .ano { font-size: 8px; font-weight: 400; letter-spacing: .4em; padding-left: .4em; color: var(--cinza); margin-top: 4px; }
.logo.grande svg { width: 72px; height: 72px; }
.logo.grande .nome { font-size: 44px; margin-top: 8px; }
.logo.grande .ano { font-size: 12px; margin-top: 10px; }

/* barra de topo */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--linha);
  position: sticky; top: 0; background: #fff; z-index: 5;
}
.btn-menu {
  width: 44px; height: 44px;
  border: 1px solid var(--laranja); border-radius: 4px;
  background: #fff; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  transition: background .2s;
}
.btn-menu span { display: block; width: 20px; height: 1.5px; background: var(--laranja); }
.btn-menu:hover { background: var(--laranja-suave); }

/* menu lateral */
.fundo {
  position: fixed; inset: 0; background: rgba(40, 30, 20, .18);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 10;
}
nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 84vw);
  background: #fff; border-right: 1px solid var(--linha);
  transform: translateX(-100%); transition: transform .3s ease; z-index: 11;
  padding: 34px 0 24px; overflow-y: auto;
}
body.aberto .fundo { opacity: 1; pointer-events: auto; }
body.aberto nav { transform: none; }
nav .logo { padding: 0 28px 30px; }
nav .logo svg { width: 44px; height: 44px; }
nav .logo .nome { font-size: 30px; }
nav .logo .ano { font-size: 10px; }
nav a {
  display: block; position: relative;
  padding: 14px 28px; color: var(--laranja); text-decoration: none;
  font-size: 13px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
nav a:hover { background: var(--laranja-suave); color: var(--laranja-escuro); }
nav a.ativo { color: var(--laranja-escuro); font-weight: 500; }
nav a.ativo::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 2px; background: var(--laranja);
}
nav a.breve { color: var(--cinza); }
nav a.breve::after { content: "em breve"; font-size: 9px; letter-spacing: .14em; margin-left: 8px; }
nav hr { border: 0; border-top: 1px solid var(--linha); margin: 14px 28px; }

/* conteúdo */
main { max-width: 760px; margin: 0 auto; padding: 36px 20px 48px; }
.titulo-pag { font-family: var(--serif); font-weight: 400; font-size: 34px; }
.titulo-sec {
  font-size: 11px; font-weight: 500; letter-spacing: .3em; color: var(--cinza);
  margin: 40px 0 14px; text-transform: uppercase;
}
.nota-esboco {
  margin-top: 40px; font-size: 11px; letter-spacing: .14em; color: var(--cinza); text-align: center;
}

/* cartão de identificação */
.cartao-id {
  border: 1px solid var(--linha); border-radius: 6px;
  padding: 28px 24px; display: flex; gap: 22px; align-items: center;
}
.avatar {
  width: 76px; height: 76px; border-radius: 50%; flex: none;
  border: 1px solid var(--laranja);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 32px; font-weight: 400;
}
.avatar.pequeno { width: 46px; height: 46px; font-size: 20px; }
.avatar { overflow: hidden; position: relative; }
.avatar.editavel { cursor: pointer; overflow: visible; }
.avatar.editavel img { border-radius: 50%; }
.avatar-editar {
  position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 1px solid var(--laranja); display: flex; align-items: center; justify-content: center;
}
.avatar-editar svg { width: 15px; height: 15px; }
.link-foto {
  display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--laranja); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag-exemplo {
  font-family: var(--sans); font-size: 9px; letter-spacing: .18em; font-weight: 500;
  border: 1px solid var(--linha); border-radius: 10px; padding: 2px 7px; margin-left: 6px; vertical-align: middle;
  color: var(--cinza);
}

/* cartão de identificação (O meu ID) */
.cartao-identidade {
  max-width: 340px; margin: 0 auto; border: 1px solid var(--linha); border-radius: 10px;
  padding: 26px 24px 22px; text-align: center; position: relative; overflow: hidden;
}
.cartao-identidade::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--laranja); }
.cartao-identidade .logo svg { width: 26px; height: 26px; }
.cartao-identidade .logo .nome { font-size: 16px; }
.cartao-identidade .logo .ano { font-size: 7px; }
.foto-id {
  width: 168px; height: 168px; margin: 22px auto 18px; border-radius: 50%;
  border: 1px solid var(--laranja); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 64px; background: var(--laranja-suave);
}
.foto-id img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cartao-identidade .nome-id { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.cartao-identidade .dados-id {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px;
  border-top: 1px solid var(--linha); text-align: left;
}
.cartao-identidade .dados-id div { padding: 12px 4px 0; }
.cartao-identidade .dados-id small { display: block; font-size: 9px; letter-spacing: .24em; color: var(--cinza); font-weight: 500; }
.cartao-identidade .dados-id b { font-weight: 400; font-size: 15px; color: #4A403A; }
.cartao-identidade .dados-id b.num-id { font-family: var(--serif); font-size: 22px; color: var(--laranja); letter-spacing: .06em; }
.botoes-foto { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cartao-id h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.papel {
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  margin-top: 8px;
}
.meta { font-size: 13px; color: var(--cinza); margin-top: 6px; letter-spacing: .04em; }

/* blocos de números */
.grelha {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--linha); border-left: 1px solid var(--linha);
}
.bloco {
  border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha);
  padding: 22px 18px; min-height: 110px; color: inherit; text-decoration: none;
}
a.bloco:hover { background: var(--laranja-suave); }
.bloco .num { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; }
.bloco .txt {
  font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  margin-top: 12px; color: var(--laranja-escuro);
}
@media (min-width: 640px) { .grelha { grid-template-columns: repeat(4, 1fr); } }

/* botões e formulários */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--laranja); background: var(--laranja); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; transition: background .2s;
}
.btn:hover { background: var(--laranja-escuro); border-color: var(--laranja-escuro); }
.btn.contorno { background: #fff; color: var(--laranja); }
.btn.contorno:hover { background: var(--laranja-suave); }
.btn.pequeno { padding: 8px 12px; font-size: 10px; letter-spacing: .16em; }
.btn.largo { width: 100%; }

.campo { display: block; margin-bottom: 18px; }
.campo span {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--laranja-escuro); margin-bottom: 7px;
}
.campo input, .campo select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--linha); border-radius: 4px;
  background: #fff; color: #4A403A; font-weight: 400; outline: none;
}
.campo input:focus, .campo select:focus { border-color: var(--laranja); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.erro { color: var(--erro); font-size: 14px; font-weight: 400; margin: -4px 0 16px; min-height: 1em; }

.painel {
  border: 1px solid var(--linha); border-radius: 6px; padding: 26px 22px; margin-top: 24px;
}
.painel h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 20px; }
.escondido { display: none !important; }

/* credenciais (ID + senha) */
.credenciais {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--linha); border: 1px solid var(--linha); border-radius: 4px; margin: 18px 0;
}
.credenciais div { background: var(--laranja-suave); padding: 14px 16px; }
.credenciais small { display: block; font-size: 10px; letter-spacing: .24em; color: var(--cinza); font-weight: 500; }
.credenciais strong { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: .08em; }

/* lista do staff */
.filtros { display: flex; gap: 8px; margin: 26px 0 6px; }
.filtros button {
  border: 1px solid var(--linha); background: #fff; border-radius: 20px; cursor: pointer;
  padding: 7px 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.filtros button.ativo { border-color: var(--laranja); background: var(--laranja-suave); font-weight: 500; }
.pessoa {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--linha);
}
.pessoa.inativa { opacity: .5; }
.pessoa .nome-p { font-family: var(--serif); font-size: 21px; }
.pessoa .acesso {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 13px; color: #4A403A; font-weight: 400;
}
.pessoa .acesso b { font-weight: 500; letter-spacing: .1em; color: var(--laranja-escuro); }
.pessoa .acesso .rotulo { font-size: 10px; letter-spacing: .2em; color: var(--cinza); margin-right: 4px; }
.pessoa .acoes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.vazio { padding: 30px 0; color: var(--cinza); text-align: center; font-size: 14px; }

/* página de login */
.ecra-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.caixa-login { width: 100%; max-width: 360px; }
.caixa-login .logo { margin-bottom: 44px; }
.caixa-login p.ajuda { font-size: 13px; color: var(--cinza); text-align: center; margin-top: 22px; line-height: 1.6; }

.aviso {
  background: var(--laranja-suave); border-left: 2px solid var(--laranja);
  padding: 12px 14px; font-size: 13px; color: #4A403A; font-weight: 400; line-height: 1.5; margin-bottom: 20px;
}

/* ponto */
.ponto { border: 1px solid var(--linha); border-radius: 6px; padding: 22px; margin-top: 24px; }
.ponto-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ponto-turno { font-family: var(--serif); font-size: 24px; margin-top: 6px; }
.chip-wifi {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: #2E7D4F; border: 1px solid #BFE0CB; background: #EEF8F1; border-radius: 14px; padding: 5px 10px;
}
.chip-wifi::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2E7D4F; margin-right: 6px; vertical-align: 1px; }
.ponto-estado { font-family: var(--serif); font-size: 30px; margin-top: 22px; }
.ponto-estado.por-entrar { color: var(--cinza); }
.ponto-detalhe { font-size: 14px; color: #4A403A; font-weight: 400; margin-top: 4px; min-height: 1.2em; line-height: 1.5; }
.ponto-botoes { display: flex; gap: 10px; margin-top: 20px; }
.ponto-botoes .btn { flex: 1; }
.btn-ponto { position: relative; overflow: hidden; padding: 22px 16px; font-size: 14px; user-select: none; -webkit-user-select: none; touch-action: none; }
.btn-ponto::after {
  content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .3);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.btn-ponto.contorno::after { background: rgba(217, 119, 43, .18); }
.btn-ponto.a-segurar::after { transform: scaleX(1); transition: transform .9s linear; }
.ponto-dica { font-size: 11px; letter-spacing: .1em; color: var(--cinza); text-align: center; margin-top: 10px; }

/* avisos de atraso */
.alerta { border-radius: 4px; padding: 12px 14px; margin-top: 18px; font-size: 14px; font-weight: 400; line-height: 1.4; border-left: 3px solid; }
.alerta b { font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.alerta small { display: block; font-size: 12px; margin-top: 3px; opacity: .85; }
.alerta.amarelo  { background: #FFF8DB; border-color: #E0B100; color: #7A6000; }
.alerta.laranja  { background: #FDEBDD; border-color: var(--laranja); color: #8A4A12; }
.alerta.vermelho { background: #FBE7E4; border-color: #C0392B; color: #8E2A1F; }
.alerta.verde    { background: #EEF8F1; border-color: #2E7D4F; color: #22603C; }

.relogio-teste { margin-top: 40px; padding: 16px; border: 1px dashed var(--linha); border-radius: 6px; }
.relogio-teste input { padding: 8px 10px; border: 1px solid var(--linha); border-radius: 4px; color: #4A403A; }

/* gorjetas */
/* gorjetas durante o serviço */
.turno-servico { padding: 20px 18px; margin-top: 14px; }
.ts-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ts-topo h2 { margin: 0; font-size: 22px; }
.ts-total { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--laranja); white-space: nowrap; transition: transform .2s; }
.ts-total.somou { transform: scale(1.12); }
.ts-form { display: flex; gap: 10px; }
.ts-form label { flex: 1; position: relative; }
.ts-form label::before { content: "€"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cinza); }
.ts-form input {
  width: 100%; padding: 14px 14px 14px 32px; border: 1px solid var(--linha); border-radius: 4px;
  font-size: 18px; color: #4A403A; outline: none; background: #fff;
}
.ts-form input:focus { border-color: var(--laranja); }
.ts-form .erro { margin: 8px 0 0; }
.dia-servico { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 4px; }
.dia-servico b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--laranja); }

.total-mes { margin-bottom: 14px; }
.total-mes .valor { font-family: var(--serif); font-size: 44px; line-height: 1.1; }
.tabela { border-top: 1px solid var(--linha); }
.tabela .linha {
  display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--linha);
}
.tabela .linha span { flex: 1; font-size: 15px; font-weight: 400; color: #4A403A; }
.tabela .linha small { display: block; font-size: 12px; color: var(--cinza); margin-top: 2px; }
.tabela .linha b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--laranja); white-space: nowrap; }
.tabela .apagar {
  border: 1px solid var(--linha); background: #fff; border-radius: 50%; width: 28px; height: 28px;
  cursor: pointer; color: var(--cinza); font-size: 16px; line-height: 1;
}
.tabela .apagar:hover { color: var(--erro); border-color: var(--erro); }
.grelha-pesos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0 14px; }
.mes-hist { border-bottom: 1px solid var(--linha); }
.mes-hist summary {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; cursor: pointer; list-style: none;
}
.mes-hist summary::-webkit-details-marker { display: none; }
.mes-hist summary span { font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.mes-hist summary b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.mes-hist .tabela { margin: 0 0 14px 12px; }

/* calendário da escala */
.calendario { margin-top: 24px; }
.cal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-mes { font-family: var(--serif); font-size: 24px; }
.cal-seta {
  width: 40px; height: 40px; border: 1px solid var(--linha); border-radius: 50%; background: #fff;
  cursor: pointer; font-size: 22px; line-height: 1; color: var(--laranja);
}
.cal-seta:hover { border-color: var(--laranja); }
.cal-grelha { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cab { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--cinza); text-align: center; padding: 4px 0 6px; font-weight: 500; }
.cal-dia {
  aspect-ratio: 1 / 1.1; min-width: 0; border: 1px solid var(--linha); border-radius: 6px; background: #fff;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 2px; transition: border-color .15s;
}
.cal-dia .n { font-family: var(--serif); font-size: 17px; line-height: 1; color: #4A403A; }
.cal-dia .t { font-size: 9px; letter-spacing: .02em; font-weight: 500; line-height: 1; white-space: nowrap; overflow: hidden; max-width: 100%; }
.cal-dia.turno { background: var(--laranja-suave); }
.cal-dia.turno .t { color: var(--laranja-escuro); }
.cal-dia.folga { background: #F3F1EE; }
.cal-dia.folga .t { color: var(--cinza); }
.cal-dia.ferias { background: #EEF8F1; }
.cal-dia.ferias .t { color: #2E7D4F; }
.cal-dia.hoje .n { color: var(--laranja); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.cal-dia.sel { border: 2px solid var(--laranja); }
.cal-dia:hover { border-color: var(--laranja); }
.cal-legenda { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--cinza); }
.cal-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--linha); }
.cal-legenda i.turno { background: var(--laranja-suave); }
.cal-legenda i.folga { background: #F3F1EE; }
.cal-legenda i.ferias { background: #EEF8F1; }
.tipos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tipos button {
  border: 1px solid var(--linha); background: #fff; border-radius: 20px; cursor: pointer;
  padding: 8px 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.tipos button.ativo { border-color: var(--laranja); background: var(--laranja-suave); font-weight: 500; }

/* horas */
.cal-dia.extra { background: var(--laranja-suave); border-color: var(--laranja); }
.cal-dia.extra .t { color: var(--laranja-escuro); }
.cal-legenda i.extra { background: var(--laranja-suave); border-color: var(--laranja); }
.tabela .linha .avatar.pequeno { width: 38px; height: 38px; font-size: 16px; }

.cal-dia.feriado .n::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #C0392B; margin-left: 2px; vertical-align: super; }
.cal-legenda i.feriado { background: #C0392B; border-color: #C0392B; border-radius: 50%; width: 7px; height: 7px; }
.tabela .linha.destaque { background: var(--laranja-suave); padding-left: 10px; padding-right: 10px; }

/* calendário de meses (gorjetas) */
.cal-meses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
@media (min-width: 640px) { .cal-meses { grid-template-columns: repeat(4, 1fr); } }
.cal-mes-q {
  border: 1px solid var(--linha); border-radius: 8px; background: #fff; cursor: pointer;
  padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 84px;
}
.cal-mes-q .n { font-family: var(--serif); font-size: 18px; text-transform: capitalize; color: #4A403A; }
.cal-mes-q .t { font-size: 13px; font-weight: 500; color: var(--cinza); }
.cal-mes-q.turno { background: var(--laranja-suave); }
.cal-mes-q.turno .t { color: var(--laranja-escuro); font-family: var(--serif); font-size: 16px; font-weight: 400; }
.cal-mes-q.extra { border-color: var(--laranja); border-style: dashed; }
.cal-mes-q.extra .t { color: var(--laranja); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.cal-mes-q.sel { border: 2px solid var(--laranja); }
.cal-mes-q:hover { border-color: var(--laranja); }

/* fornecedores */
.empresa { border-bottom: 1px solid var(--linha); }
.empresa summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; cursor: pointer; list-style: none; }
.empresa summary::-webkit-details-marker { display: none; }
.empresa .seta { font-size: 24px; color: var(--cinza); transition: transform .2s; }
.empresa[open] .seta { transform: rotate(90deg); }
.empresa-corpo { padding: 0 2px 22px; }
.dias-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dias-chips span {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  background: var(--laranja-suave); color: var(--laranja-escuro); border-radius: 10px; padding: 3px 8px;
}
.dias-chips span.vazio-chip { background: #F3F1EE; color: var(--cinza); }
.tabela .linha .btn.pequeno { padding: 7px 10px; }
.barra-linha { margin-bottom: 14px; }
.barra-txt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.barra-txt span { font-size: 15px; font-weight: 400; color: #4A403A; }
.barra-txt small { font-size: 12px; color: var(--cinza); }
.barra-txt b { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.barra { height: 6px; background: #F3F1EE; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--laranja); border-radius: 3px; }

/* pedido a fornecedor (estilo do pedido da loja Beija-Flor) */
.produto {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 2px; border-bottom: 1px solid var(--linha);
}
.produto.no-carrinho { background: var(--laranja-suave); margin: 0 -8px; padding: 14px 10px; }
.p-nome { font-size: 15.5px; font-weight: 400; color: #4A403A; }
.p-preco { font-size: 13px; color: var(--cinza); margin-top: 3px; }
.p-preco b { color: var(--laranja-escuro); font-weight: 500; }
.qtd { display: flex; align-items: center; border: 1px solid var(--laranja); border-radius: 22px; overflow: hidden; flex: none; background: #fff; }
.qtd button {
  width: 38px; height: 38px; border: 0; background: #fff; color: var(--laranja); font-size: 20px; line-height: 1; cursor: pointer;
}
.qtd button:hover:not(:disabled) { background: var(--laranja-suave); }
.qtd button:disabled { color: #D8CFC6; cursor: default; }
.qtd span { min-width: 34px; text-align: center; font-family: var(--serif); font-size: 17px; color: #4A403A; }

.barra-carrinho {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 8; max-width: 728px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--laranja); color: #fff; box-shadow: 0 6px 22px rgba(120, 60, 10, .25);
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.barra-carrinho .saco { position: relative; display: flex; }
.barra-carrinho .saco svg { width: 24px; height: 24px; }
.barra-carrinho .saco b {
  position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px;
  background: #fff; color: var(--laranja-escuro); font-size: 11px; letter-spacing: 0; display: flex; align-items: center; justify-content: center;
}
.barra-carrinho .barra-txt { flex: 1; text-align: left; }
.barra-carrinho .barra-total { font-family: var(--serif); font-size: 19px; letter-spacing: 0; text-transform: none; font-weight: 400; }

.sc-fundo { position: fixed; inset: 0; z-index: 20; background: rgba(40, 30, 20, .25); display: flex; justify-content: flex-end; opacity: 0; transition: opacity .25s; }
.sc-fundo.aberto { opacity: 1; }
.sc-cx { background: #fff; width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; transform: translateX(30px); transition: transform .25s; }
.sc-fundo.aberto .sc-cx { transform: none; }
.sc-topo { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; border-bottom: 1px solid var(--linha); }
.sc-topo h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.sc-fechar { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--cinza); }
.sc-lista { flex: 1; overflow-y: auto; padding: 6px 24px; }
.sc-vazio { padding: 40px 0; color: var(--cinza); font-size: 14px; text-align: center; }
.sc-l { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "t t x" "q p p"; gap: 10px 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.sc-l .sc-t { grid-area: t; }
.sc-l .qtd { grid-area: q; justify-self: start; }
.sc-l .sc-p { grid-area: p; justify-self: end; }
.sc-l .sc-x { grid-area: x; }
.sc-t span { display: block; font-size: 15px; color: #4A403A; font-weight: 400; }
.sc-t i { display: block; font-style: normal; font-size: 12px; color: var(--cinza); margin-top: 3px; }
.sc-p { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.sc-x { background: none; border: 0; cursor: pointer; color: var(--cinza); font-size: 20px; line-height: 1; }
.sc-x:hover { color: var(--erro); }
.sc-pe { border-top: 1px solid var(--linha); padding: 18px 24px 24px; }
.sc-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sc-total span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cinza); font-weight: 500; }
.sc-total b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.sc-zap {
  display: block; text-align: center; text-decoration: none; background: #25D366; color: #fff; border-radius: 6px;
  padding: 15px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.sc-zap:hover { background: #1FB855; }
.sc-nota { margin-top: 12px; font-size: 12px; color: var(--cinza); line-height: 1.55; text-align: center; }
.sc-limpar { display: block; margin: 14px auto 0; background: none; border: 0; cursor: pointer; font-size: 12px; color: var(--cinza); text-decoration: underline; text-underline-offset: 3px; }
.sc-limpar.certo { color: var(--erro); }
.sc-fundo[hidden], .sc-pe[hidden] { display: none; }

.empresa .total-empresa { margin-left: auto; margin-right: 12px; font-family: var(--serif); font-size: 18px; color: var(--laranja); white-space: nowrap; }
.grelha .bloco .num:not(:empty) { word-break: break-word; }
#c-semana, #c-mes, #c-ano { font-size: 24px; }

/* vendas e balanço */
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
@media (max-width: 420px) { .tres { grid-template-columns: 1fr 1fr; } .tres .campo:last-child { grid-column: 1 / -1; } }
.balanco { border: 1px solid var(--linha); border-radius: 6px; padding: 6px 20px 16px; margin-top: 10px; }
.b-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.b-linha span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--cinza); }
.b-linha b { font-family: var(--serif); font-weight: 400; font-size: 28px; white-space: nowrap; }
.b-linha.compras b { color: #8A6A52; }
.b-linha.saldo { border-bottom: 0; }
.b-linha.saldo span { color: var(--laranja-escuro); }
.b-linha.saldo b { font-size: 36px; color: #2E7D4F; }
.b-linha.saldo.negativo b { color: var(--erro); }
.balanco .meta { margin-top: 0; }
.so-impressao { display: none; }

@media print {
  header, nav, .fundo, .so-ecra { display: none !important; }
  .so-impressao { display: block; }
  .logo-impressao { margin-bottom: 18px; }
  body { color: #B5611F; }
  main { padding: 0; max-width: none; }
  .cal-topo { justify-content: center; }
  .balanco, .bloco, .grelha { break-inside: avoid; }
}
.barra.compras i { background: #8A6A52; }

/* a trabalhar agora */
.num.verde { color: #2E7D4F; }
.num.amarelo { color: #B98F00; }
.num.vermelho { color: #C0392B; }
.agora-linha .avatar { position: relative; overflow: visible; }
.agora-linha .avatar img { border-radius: 50%; }
.ponto-estado-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #C9C2BA; }
.agora-linha.a-trabalhar .ponto-estado-dot { background: #2E7D4F; }
.agora-linha.pausa .ponto-estado-dot { background: #E0B100; }
.agora-linha.atrasado .ponto-estado-dot { background: #C0392B; }
.agora-linha.saiu { opacity: .6; }
.agora-linha .estado-txt { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 500; }
.agora-linha.a-trabalhar .estado-txt { color: #2E7D4F; }
.agora-linha.pausa .estado-txt { color: #B98F00; }
.agora-linha.atrasado .estado-txt { color: #C0392B; }
.chip { display: inline-block; font-size: 11px; font-weight: 500; border-radius: 10px; padding: 1px 8px; margin-left: 2px; }
.chip.amarelo { background: #FFF8DB; color: #7A6000; }
.chip.laranja { background: #FDEBDD; color: #8A4A12; }
.chip.vermelho { background: #FBE7E4; color: #8E2A1F; }
.ausentes { margin-top: 12px; }
.ausentes b { font-weight: 500; color: #4A403A; }
