/* Cenas do serviço Aplicativos e Sistemas:
   1) app-barbearia: aplicativo próprio de barbearia + painel sincronizado
   2) sistema-gestao: painel executivo sob medida com KPIs, fila, estoque e relatórios */

/* ========== CENA 1: APP BARBEARIA ========== */
.ab-palco {
  display: grid;
  grid-template-columns: 228px 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 2px 0;
  align-items: stretch;
}

.ab-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #110d0a 0%, #0b0806 100%);
  border: 3px solid #2b221c;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, .75),
    0 0 0 1px rgba(212, 154, 98, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.ab-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 3px;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  color: #e9dfd5;
}
.ab-island {
  width: 58px;
  height: 13px;
  border-radius: 99px;
  background: #040302;
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}
.ab-island i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a2430;
  box-shadow: inset 0 0 2px #3b607a;
}
.ab-sys-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ab-sys-icons svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.ab-push {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 22px;
  z-index: 6;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 13px;
  background: rgba(24, 18, 14, .96);
  border: 1px solid rgba(212, 154, 98, .52);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .72);
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.ab-push.on {
  opacity: 1;
  transform: translateY(0);
}
.ab-push-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, #d49a62, #8d572d);
  color: #130c07;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ab-push-txt { min-width: 0; }
.ab-push-txt b { display: block; font-size: 10px; color: #f6ede4; line-height: 1.2; }
.ab-push-txt span { display: block; font-size: 9px; color: #cbb9a8; line-height: 1.25; }

.ab-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 11px 7px;
  border-bottom: 1px solid rgba(212, 154, 98, .14);
  background: rgba(20, 15, 11, .75);
  flex-shrink: 0;
}
.ab-brand { display: flex; align-items: center; gap: 7px; }
.ab-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #d89f68, #8c552b);
  color: #140c07;
  font-weight: 800;
  font-size: 10px;
  display: grid;
  place-items: center;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(212, 154, 98, .28);
}
.ab-brand b { display: block; font-size: 11px; color: #f6eee5; line-height: 1.15; }
.ab-brand small { display: block; font-size: 9px; color: #d49a62; }
.ab-pts {
  font-size: 9px;
  font-weight: 700;
  color: #f0c58e;
  background: rgba(212, 154, 98, .14);
  border: 1px solid rgba(212, 154, 98, .35);
  padding: 2px 7px;
  border-radius: 99px;
}

.ab-body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  overflow: hidden;
}

.ab-screen {
  position: absolute;
  inset: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.ab-screen.ativo {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.ab-hero {
  padding: 8px 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, #241a13, #17110d);
  border: 1px solid rgba(212, 154, 98, .26);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ab-hero b { display: block; font-size: 10.5px; color: #f7efe7; }
.ab-hero small { display: block; font-size: 9px; color: #c7b3a0; margin-top: 1px; }
.ab-hero-tag {
  font-size: 8.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 7px;
  background: rgba(212, 154, 98, .18);
  color: #ebbd88;
  white-space: nowrap;
}

.ab-sec-tit {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #a9927d;
}

.ab-srv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #17120e;
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.ab-srv.sel {
  border-color: #d49a62;
  background: rgba(212, 154, 98, .15);
  transform: scale(1.015);
}
.ab-srv b { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #f5ede4; }
.ab-srv small { display: block; font-size: 9px; color: #9c8a79; margin-top: 1px; }
.ab-srv strong { font-size: 10.5px; color: #e5b37c; white-space: nowrap; }
.ab-pop {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(212, 154, 98, .22);
  color: #f0c58e;
}

.ab-sel-resumo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(212, 154, 98, .11);
  border: 1px solid rgba(212, 154, 98, .28);
  font-size: 9.5px;
  color: #edd8c2;
}
.ab-sel-resumo strong { color: #f1c38d; }

.ab-dias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.ab-dia {
  text-align: center;
  padding: 4px;
  border-radius: 8px;
  background: #17120e;
  border: 1px solid rgba(255, 255, 255, .06);
  font-size: 9px;
  color: #a99787;
}
.ab-dia.sel {
  background: rgba(212, 154, 98, .18);
  border-color: #d49a62;
  color: #f5e6d6;
  font-weight: 700;
}

.ab-barbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ab-barber {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 9px;
  background: #17120e;
  border: 1px solid rgba(255, 255, 255, .07);
}
.ab-barber.sel {
  border-color: #d49a62;
  background: rgba(212, 154, 98, .15);
}
.ab-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2b2017;
  border: 1px solid rgba(212, 154, 98, .42);
  color: #e9bb86;
  font-size: 9.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ab-barber b { display: block; font-size: 10px; color: #f4ece3; line-height: 1.15; }
.ab-barber small { display: block; font-size: 8.5px; color: #a79482; white-space: nowrap; }

.ab-horas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.ab-hora {
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #d7c7b7;
  background: #17120e;
  border: 1px solid rgba(255, 255, 255, .07);
}
.ab-hora.sel {
  background: linear-gradient(135deg, #d49a62, #a66a3a);
  color: #140c06;
  border-color: #e3ad76;
  font-weight: 800;
}

.ab-cta {
  margin-top: auto;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 800;
  background: linear-gradient(135deg, #d89f68, #9c6234);
  color: #140c06;
  box-shadow: 0 6px 18px rgba(212, 154, 98, .28);
  transition: transform .2s ease;
}
.ab-cta.pulse { transform: scale(.96); }

.ab-status-card {
  padding: 9px 10px;
  border-radius: 11px;
  background: #17120e;
  border: 1px solid rgba(212, 154, 98, .3);
}
.ab-status-card b { display: block; font-size: 11px; color: #f6eee5; }
.ab-status-card small { display: block; font-size: 9px; color: #b5a18e; margin-top: 2px; }
.ab-steps { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ab-step { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: #8c7a6b; }
.ab-step i { width: 8px; height: 8px; border-radius: 50%; background: #2d231b; flex-shrink: 0; }
.ab-step.done { color: #f4e6d7; font-weight: 600; }
.ab-step.done i { background: #d49a62; box-shadow: 0 0 8px rgba(212, 154, 98, .75); }

.ab-vip-card {
  padding: 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, #251a12, #140e0a);
  border: 1px solid rgba(212, 154, 98, .42);
}
.ab-vip-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.ab-vip-top b { font-size: 10.5px; color: #eec28c; }
.ab-vip-top span { font-size: 9px; color: #cbb8a5; }
.ab-vip-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 6px 0; }
.ab-vip-dots i {
  height: 17px;
  border-radius: 6px;
  background: #120d0a;
  border: 1px solid rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9.5px;
  color: #e8ba84;
}
.ab-vip-dots i.ok {
  background: rgba(212, 154, 98, .22);
  border-color: rgba(212, 154, 98, .58);
}

.ab-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(212, 154, 98, .14);
  background: #090705;
  flex-shrink: 0;
  padding-top: 4px;
}
.ab-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 3px 4px 4px;
  font-size: 8.5px;
  color: #7d6d5f;
  font-weight: 600;
}
.ab-nav svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ab-nav span.ativo { color: #e2ad75; }

.ab-home-bar {
  width: 72px;
  height: 3px;
  border-radius: 99px;
  background: rgba(245, 237, 228, .35);
  margin: 2px auto 5px;
  flex-shrink: 0;
}

/* Painel da barbearia (direita) */
.ab-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background: #0d1624;
  border: 1px solid rgba(255, 255, 255, .08);
  min-width: 0;
}
.ab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.ab-panel-head b {
  font-size: 12px;
  color: #edf5f7;
}
.ab-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #6be7e8;
  font-weight: 600;
}
.ab-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3cd0d2;
  box-shadow: 0 0 8px #3cd0d2;
}

.ab-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.ab-kpi {
  padding: 8px 9px;
  border-radius: 10px;
  background: #121e2f;
  border: 1px solid rgba(255, 255, 255, .06);
}
.ab-kpi b {
  display: block;
  font-size: 15px;
  color: #f2f8f9;
  line-height: 1.15;
}
.ab-kpi small {
  display: block;
  font-size: 9.5px;
  color: #84a0ad;
  margin-top: 2px;
}

.ab-agenda-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.ab-agenda-box h5 {
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7ea3b0;
}
.ab-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #121e2f;
  border: 1px solid rgba(255, 255, 255, .06);
  font-size: 11px;
  color: #d7e7ed;
}
.ab-slot em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  color: #9eb9c4;
}
.ab-slot.novo {
  border-color: rgba(60, 208, 210, .48);
  background: rgba(60, 208, 210, .11);
  animation: asPop .35s ease;
}
.ab-slot.novo em {
  background: rgba(60, 208, 210, .2);
  color: #6be7e8;
}

.ab-sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(60, 208, 210, .09);
  border: 1px solid rgba(60, 208, 210, .25);
  font-size: 10.5px;
  color: #c5e8ea;
}
.ab-sync-bar b {
  color: #5ee3e5;
}

/* ========== CENA 2: PAINEL DE GESTÃO ========== */
.sg-palco {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 2px 0;
}

.sg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 11px;
  background: #0d1624;
  border: 1px solid rgba(255, 255, 255, .08);
}
.sg-top-esq {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sg-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(60, 208, 210, .14);
  color: #64e4e6;
  border: 1px solid rgba(60, 208, 210, .3);
}
.sg-top b {
  font-size: 12px;
  color: #eff7f8;
}
.sg-user {
  font-size: 10px;
  color: #89a6b2;
}

.sg-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sg-kpi {
  padding: 9px 10px;
  border-radius: 11px;
  background: #0e1827;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .3s ease;
}
.sg-kpi.hl {
  border-color: rgba(60, 208, 210, .5);
}
.sg-kpi small {
  display: block;
  font-size: 9.5px;
  color: #86a3b0;
}
.sg-kpi b {
  display: block;
  font-size: 16px;
  color: #f3f9fa;
  margin: 2px 0 1px;
}
.sg-kpi span {
  font-size: 9.5px;
  color: #5ee3e5;
}

.sg-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 9px;
}

.sg-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: #0d1624;
  border: 1px solid rgba(255, 255, 255, .08);
  min-height: 0;
}
.sg-card h5 {
  margin: 0 0 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7ea3b0;
  display: flex;
  justify-content: space-between;
}

.sg-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 9px;
  background: #121f30;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color .3s ease, background .3s ease;
}
.sg-row.novo {
  border-color: rgba(60, 208, 210, .5);
  background: rgba(60, 208, 210, .1);
  animation: asPop .35s ease;
}
.sg-row b {
  display: block;
  font-size: 11px;
  color: #eef6f7;
}
.sg-row small {
  display: block;
  font-size: 9.5px;
  color: #84a0ad;
}
.sg-st {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.sg-st.pend {
  background: rgba(255, 196, 86, .14);
  color: #ffd37a;
}
.sg-st.exec {
  background: rgba(60, 208, 210, .18);
  color: #6ae7e8;
}
.sg-st.ok {
  background: rgba(66, 214, 134, .18);
  color: #6ee8a6;
}

.sg-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 82px;
  padding: 8px 6px 4px;
  border-radius: 9px;
  background: #111c2c;
}
.sg-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.sg-bar {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #4ce2e4, #1b7e86);
  height: 14%;
  transition: height .55s cubic-bezier(.22, 1, .36, 1);
}
.sg-bar-col span {
  font-size: 9px;
  color: #83a0ad;
}

.sg-logs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
}
.sg-log {
  font-size: 10px;
  color: #a9c4ce;
  padding: 5px 7px;
  border-radius: 7px;
  background: #121e2e;
  border-left: 2px solid #3cd0d2;
  opacity: .55;
  transition: opacity .3s ease;
}
.sg-log.on {
  opacity: 1;
  color: #e9f6f7;
}

.sg-export {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(66, 214, 134, .12);
  border: 1px solid rgba(66, 214, 134, .34);
  font-size: 10.5px;
  color: #baf5d3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.sg-export.on {
  opacity: 1;
  transform: translateY(0);
}

@keyframes asPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .ab-palco { grid-template-columns: 1fr; }
  .ab-panel { display: none; }
  .sg-grid { grid-template-columns: 1fr; }
}
