/*==============================================================
  Maquete do portal AngoWatt

  Reprodução estática dos ecrãs reais da aplicação
  (COAIoT/portal). As medidas, as cores e os textos vêm do
  código-fonte e dos ficheiros de tradução messages/pt.json,
  para que o que se vê no site seja o que o cliente recebe.
==============================================================*/

.aw-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / .28) transparent;
}
.aw-row::-webkit-scrollbar { height: 6px; }
.aw-row::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .25); border-radius: 3px; }

.aw-col { flex: 0 0 auto; width: 300px; }
.aw-caption {
  margin: 14px 2px 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: rgb(209 250 229 / .6);
}
.aw-caption b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* moldura */
.aw-phone {
  width: 300px;
  background: #0b1220;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 30px;
  padding: 9px;
  box-shadow: 0 18px 40px -20px rgb(0 0 0 / .6);
}
.aw-screen {
  background: #f6f7f9;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 552px;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

/* barra de topo da aplicação */
.aw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  flex: none;
}
.aw-logo { display: flex; align-items: center; gap: 7px; }
.aw-logo .mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: #065f46;
  color: #fde047;
  display: grid;
  place-items: center;
}
.aw-logo .mark svg { width: 15px; height: 15px; }
.aw-logo .name { font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: #111827; }
.aw-logo .name em { font-style: normal; color: #059669; }
.aw-online { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }

/* corpo com deslocamento interno */
.aw-body { flex: 1; overflow: hidden; padding: 0 14px 10px; }
.aw-body > * + * { margin-top: 11px; }

.aw-greet { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px; }
.aw-greet b { font-size: 14px; font-weight: 700; color: #111827; }
.aw-greet span { font-size: 10.5px; color: #9ca3af; }

/* cartão herói verde escuro */
.aw-hero {
  background: #064e3b;
  border-radius: 20px;
  padding: 15px;
  color: #fff;
}
.aw-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.aw-hero-head .lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(209 250 229 / .7);
}
.aw-pill {
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgb(52 211 153 / .15);
  color: #a7f3d0;
}
.aw-hero-val { display: flex; align-items: baseline; gap: 7px; margin-top: 9px; }
.aw-hero-val b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.aw-hero-val span { font-size: 11px; color: rgb(209 250 229 / .6); }

.aw-bar { height: 9px; border-radius: 999px; background: rgb(255 255 255 / .1); overflow: hidden; margin-top: 12px; }
.aw-bar i { display: block; height: 100%; border-radius: 999px; background: #6ee7b7; }
.aw-hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  font-size: 10px;
  color: rgb(209 250 229 / .7);
}
.aw-hero-meta b { color: rgb(255 255 255 / .9); font-weight: 700; }
.aw-hero-note { margin: 7px 0 0; font-size: 10px; font-weight: 600; color: rgb(167 243 208 / .9); }
.aw-hero-btn {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #064e3b;
  background: #fff;
  border-radius: 9px;
  padding: 7px;
}

/* cartão branco */
.aw-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(16 24 40 / .04);
  padding: 12px;
}
.aw-card .cap {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.aw-card .big { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #111827; margin-top: 3px; }
.aw-card .sub { font-size: 10px; color: #9ca3af; margin-top: 1px; }
.aw-bar-light { height: 7px; border-radius: 999px; background: #f3f4f6; overflow: hidden; margin-top: 10px; }
.aw-bar-light i { display: block; height: 100%; border-radius: 999px; background: #10b981; }
.aw-center { text-align: center; margin-top: 9px; }
.aw-center .days { font-size: 12px; font-weight: 700; color: #047857; }
.aw-center .next { font-size: 10px; font-weight: 600; font-style: italic; color: #d97706; margin-top: 1px; }

/* poupança */
.aw-saving {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ecfdf5;
  border-radius: 14px;
  padding: 12px 15px;
}
.aw-saving b { display: block; font-size: 12px; font-weight: 600; color: #064e3b; }
.aw-saving span { font-size: 10px; color: rgb(4 120 87 / .65); }
.aw-saving .amt { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: #047857; }

/* alerta */
.aw-alert { display: flex; align-items: flex-start; gap: 9px; }
.aw-alert svg { width: 14px; height: 14px; color: #f43f5e; flex: none; margin-top: 1px; }
.aw-alert p { margin: 0; font-size: 11px; line-height: 1.45; color: #4b5563; }

/* título de ecrã */
.aw-title { font-size: 16px; font-weight: 800; color: #111827; padding: 0 2px; letter-spacing: -.02em; }
.aw-subtitle { font-size: 10.5px; color: #9ca3af; padding: 0 2px; margin-top: 0; }

/* separadores de período */
.aw-tabs { display: flex; gap: 4px; background: #eef0f3; border-radius: 10px; padding: 3px; }
.aw-tabs span {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #6b7280;
  border-radius: 8px;
  padding: 5px 0;
}
.aw-tabs span.on { background: #fff; color: #047857; box-shadow: 0 1px 2px rgb(16 24 40 / .06); }

.aw-toggle { display: flex; gap: 5px; align-items: center; }
.aw-toggle span {
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 11px;
  border: 1px solid #e2e5ea;
  color: #6b7280;
  background: #fff;
}
.aw-toggle span.on { background: #059669; border-color: #059669; color: #fff; }

/* gráfico */
.aw-chart-head { display: flex; align-items: baseline; justify-content: space-between; }
.aw-chart-head b { font-size: 12px; font-weight: 700; color: #111827; }
.aw-chart-head span { font-size: 10px; color: #6b7280; }
.aw-chart { margin-top: 8px; }
.aw-chart svg { display: block; width: 100%; height: auto; }
.aw-legend { display: flex; justify-content: center; gap: 14px; margin-top: 7px; font-size: 9.5px; color: #6b7280; }
.aw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.aw-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* repartição por equipamento */
.aw-dev { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.aw-dev + .aw-dev { border-top: 1px solid #f3f4f6; }
.aw-dev .nm { flex: 1; font-size: 11px; color: #374151; }
.aw-dev .track { width: 62px; height: 6px; border-radius: 999px; background: #f3f4f6; overflow: hidden; }
.aw-dev .track i { display: block; height: 100%; background: #10b981; border-radius: 999px; }
.aw-dev .v { font-size: 10.5px; font-weight: 600; color: #111827; min-width: 48px; text-align: right; }

/* formulário de recarga */
.aw-field { margin-top: 9px; }
.aw-field label { display: block; font-size: 10px; font-weight: 500; color: #374151; margin-bottom: 4px; }
.aw-field .inp {
  border: 1px solid #e2e5ea;
  border-radius: 9px;
  background: #fff;
  padding: 7px 10px;
  font-size: 11.5px;
  color: #9ca3af;
}
.aw-field .inp.filled { color: #111827; }
.aw-submit {
  display: block;
  width: 100%;
  margin-top: 11px;
  text-align: center;
  background: #059669;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 9px;
  padding: 8px;
}
.aw-hist { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; }
.aw-hist + .aw-hist { border-top: 1px solid #f3f4f6; }
.aw-hist .l { font-size: 11px; color: #374151; }
.aw-hist .d { font-size: 9.5px; color: #9ca3af; }
.aw-hist .a { font-size: 11.5px; font-weight: 700; color: #047857; }

/* barra de navegação inferior */
.aw-nav {
  flex: none;
  display: flex;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}
.aw-nav span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 8px;
  font-size: 8.5px;
  font-weight: 500;
  color: #9ca3af;
}
.aw-nav span.on { color: #059669; }
.aw-nav svg { width: 17px; height: 17px; }

@media (max-width: 575px) {
  .aw-row { gap: 20px; }
}
