/* Camada visual das janelas, tabelas e cartões (Clientes, Serviços, Equipe, Usuários, Configurações, Relatórios, Financeiro).
   Carregada depois do visual.css; para voltar ao visual anterior basta remover o <link> deste arquivo. */

/* ===== Título das telas (as mesmas proporções da Agenda) ===== */
.shell .main > .page-heading {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}
.shell .main > .page-heading h1 {
  font: 800 clamp(30px, 3.2vw, 42px) / 1.05 var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.shell .main > .page-heading .subtitle {
  margin-top: 8px;
  font: 600 clamp(15px, 1.4vw, 19px) var(--f-display, "Manrope"), sans-serif;
  color: var(--muted);
}
.shell .main {
  background:
    radial-gradient(640px 320px at 90% -6%, rgb(59 130 246 / 0.08), transparent 70%),
    radial-gradient(520px 280px at 8% -4%, rgb(139 108 240 / 0.07), transparent 70%),
    var(--bg);
}

/* ===== Janelas (modais) ===== */
dialog {
  padding: 0;
  border: 0;
  border-radius: 28px;
  width: min(740px, calc(100% - 24px));
  max-height: min(92vh, 900px);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgb(15 27 51 / 0.05),
    0 8px 16px rgb(15 27 51 / 0.06),
    0 40px 90px -20px rgb(15 27 51 / 0.45);
}
dialog[open] {
  display: flex;
  animation: dlg-in 0.34s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
dialog::backdrop {
  background:
    radial-gradient(60% 60% at 50% 40%, rgb(30 58 120 / 0.38), transparent 80%),
    rgb(9 16 38 / 0.62);
  backdrop-filter: blur(6px);
  animation: dlg-fade 0.3s both;
}
@keyframes dlg-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dlg-fade {
  from {
    opacity: 0;
  }
}
dialog form {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  max-height: inherit;
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in oklab, var(--primary) 14%, white), transparent 70%),
    #fff;
}
dialog header > div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.dlg-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(
    145deg,
    color-mix(in oklab, var(--primary) 78%, white),
    var(--primary)
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    0 14px 24px -10px color-mix(in oklab, var(--primary) 80%, transparent);
}
dialog header .eyebrow {
  margin: 0 0 2px;
  font: 800 10.5px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--primary) 80%, #0f1b33);
}
dialog header h2 {
  margin: 0;
  font: 800 clamp(20px, 2.4vw, 25px) / 1.15 var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.03em;
}
dialog button.icon.close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition:
    transform 0.2s,
    color 0.2s;
}
dialog button.icon.close:hover {
  transform: rotate(90deg);
  color: var(--ink);
}
dialog .form-grid {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px 28px 8px;
  gap: 18px 16px;
  align-content: start;
}
dialog .form-error {
  margin: 0;
  padding: 0 28px;
  color: #b3263e;
  font: 700 13px / 1.5 var(--f-body, "DM Sans"), sans-serif;
}
dialog .form-error:not(:empty) {
  padding-block: 10px;
  background: #fff1f1;
}
dialog footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 16px 28px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fafcff, #f2f6fc);
}

/* Campos */
dialog label,
.shell .dt-filters label {
  gap: 7px;
  color: #36445f;
  font: 700 12.5px var(--f-display, "Manrope"), sans-serif;
}
dialog input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
dialog select,
dialog textarea,
.dt-search input,
.dt-filters select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid #dfe6f2;
  border-radius: 14px;
  background: #f7f9fd;
  box-shadow: inset 0 1px 2px rgb(15 27 51 / 0.05);
  color: var(--ink);
  font: 600 14.5px var(--f-body, "DM Sans"), sans-serif;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
dialog textarea {
  padding: 12px 14px;
  min-height: 92px;
  line-height: 1.5;
}
dialog select,
.dt-filters select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366738b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
dialog input:hover,
dialog select:hover,
dialog textarea:hover,
.dt-search input:hover,
.dt-filters select:hover {
  border-color: #c3cfe4;
}
dialog input:focus,
dialog select:focus,
dialog textarea:focus,
.dt-search input:focus,
.dt-filters select:focus {
  outline: 0;
  border-color: var(--primary);
  background-color: #fff;
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--primary) 18%, transparent),
    inset 0 1px 2px rgb(15 27 51 / 0.03);
}
dialog .check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #dfe6f2;
  border-radius: 14px;
  background: #f7f9fd;
  font-weight: 700;
  cursor: pointer;
}
dialog input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--primary);
}
dialog .help {
  margin: 0;
  color: var(--muted);
  font: 500 12.5px / 1.55 var(--f-body, "DM Sans"), sans-serif;
}

/* Divisores de seção dentro das janelas */
.form-sect {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 -2px;
  color: var(--muted);
  font: 800 11px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-sect:first-child {
  margin-top: 0;
}
.form-sect::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.form-sect .ic {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* Horários livres como pílulas */
.slot-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f5f8ff, #eef3fc);
  box-shadow: inset 0 0 0 1px rgb(15 27 51 / 0.05);
}
.slot-box button#available {
  justify-self: start;
}
.slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot-chips:empty {
  display: none;
}
.slot-chips .slot-none {
  color: var(--muted);
  font: 600 13px var(--f-body, "DM Sans"), sans-serif;
}
dialog button.slot-chip {
  display: grid;
  gap: 1px;
  padding: 9px 15px;
  border: 1.5px solid #d8e1f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--ink);
  text-align: left;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
dialog button.slot-chip strong {
  font: 800 16px var(--f-display, "Manrope"), sans-serif;
}
dialog button.slot-chip small {
  color: var(--muted);
  font: 600 11.5px var(--f-body, "DM Sans"), sans-serif;
}
dialog button.slot-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
dialog button.slot-chip.on {
  border-color: transparent;
  background: linear-gradient(
    160deg,
    color-mix(in oklab, var(--primary) 82%, white),
    var(--primary)
  );
  color: #fff;
  box-shadow: 0 14px 24px -10px color-mix(in oklab, var(--primary) 80%, transparent);
}
dialog button.slot-chip.on small {
  color: rgb(255 255 255 / 0.8);
}

/* Botões dentro das janelas (ficam fora do .shell, por isso precisam do seu próprio estilo) */
dialog button.primary,
dialog button.secondary,
dialog button.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font: 800 14px var(--f-display, "Manrope"), sans-serif;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
dialog button.primary {
  border: 0;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--primary) 82%, white),
    var(--primary)
  );
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 12px 26px -10px color-mix(in oklab, var(--primary) 75%, transparent);
}
dialog button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--ink);
}
dialog button.danger {
  border: 0;
  background: linear-gradient(180deg, #f26a6a, #dc3b3b);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgb(220 59 59 / 0.7);
}
dialog button.primary:hover,
dialog button.secondary:hover,
dialog button.danger:hover {
  filter: none;
  transform: translateY(-2px);
}
dialog button:disabled {
  opacity: 0.6;
  transform: none;
}

/* ===== Tabelas de dados (Clientes, Serviços) ===== */
.dt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-2);
}
.dt-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}
.dt-search .ic {
  position: absolute;
  left: 15px;
  top: 50%;
  translate: 0 -50%;
  color: var(--muted);
  pointer-events: none;
}
.dt-search input {
  padding-left: 44px;
}
.dt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dt-filters label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.dt-filters select {
  min-height: 44px;
  width: auto;
}
.dt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}
.shell .dt-actions button,
.shell .dt-row-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.shell button:disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}
.dt-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-2);
  animation: rise 0.5s both;
}
.dt-scroll {
  overflow: auto;
}
.dt table,
.shell .table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font: 500 14px var(--f-body, "DM Sans"), sans-serif;
}
.dt th,
.shell .table-wrap th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafcff, #f0f4fb);
  color: #55637d;
  font: 800 11.5px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.dt th.num,
.dt td.num,
.fin-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dt th[data-sort] {
  cursor: pointer;
  user-select: none;
}
.dt th[data-sort]:hover {
  color: var(--ink);
}
.dt th[data-sort]::after {
  content: "↕";
  margin-left: 6px;
  opacity: 0.35;
}
.dt th[aria-sort="ascending"]::after {
  content: "↑";
  opacity: 1;
  color: var(--primary);
}
.dt th[aria-sort="descending"]::after {
  content: "↓";
  opacity: 1;
  color: var(--primary);
}
.dt td,
.shell .table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid #edf1f8;
  vertical-align: middle;
}
.dt td small,
.shell .table-wrap td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.dt tbody tr,
.shell .table-wrap tbody tr {
  transition: background 0.18s;
}
.dt tbody tr:hover td,
.shell .table-wrap tbody tr:hover td {
  background: #f4f8ff;
}
.dt tbody tr[data-row] {
  cursor: pointer;
}
.dt tbody tr.sel td {
  background: color-mix(in oklab, var(--primary) 9%, white);
}
.dt tbody tr:last-child td {
  border-bottom: 0;
}
.dt .who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.dt .who strong {
  display: block;
  font: 800 14.5px var(--f-display, "Manrope"), sans-serif;
  color: var(--ink);
}
.dt .who .avatar {
  width: 40px;
  height: 40px;
}
.dt .dt-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.dt .dt-row-actions button {
  padding: 8px 12px;
  font-size: 13px;
}
.dt-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fafcff;
  color: var(--muted);
  font: 600 13px var(--f-body, "DM Sans"), sans-serif;
}
.dt-empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.dt-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font: 800 18px var(--f-display, "Manrope"), sans-serif;
}
.money {
  font: 800 14.5px var(--f-display, "Manrope"), sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.shell .dt a {
  color: color-mix(in oklab, var(--primary) 85%, #0f1b33);
  font-weight: 700;
  text-decoration: none;
}

/* Barra de filtros dos relatórios, no mesmo padrão das tabelas */
.shell .main .toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 24px 0 18px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-2);
}
.shell .main .toolbar label {
  display: grid;
  gap: 6px;
  color: #36445f;
  font: 700 12px var(--f-display, "Manrope"), sans-serif;
}
.shell .main .toolbar input,
.shell .main .toolbar select {
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid #dfe6f2;
  border-radius: 14px;
  background: #f7f9fd;
  box-shadow: inset 0 1px 2px rgb(15 27 51 / 0.05);
  color: var(--ink);
  font: 600 14px var(--f-body, "DM Sans"), sans-serif;
}
.shell .main .toolbar input:focus,
.shell .main .toolbar select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 18%, transparent);
}

/* Grupo de avatares (quem atende cada serviço) */
.stack {
  display: flex;
  align-items: center;
}
.stack .avatar {
  width: 32px;
  height: 32px;
  margin-left: -9px;
  font-size: 11px;
}
.stack .avatar:first-child {
  margin-left: 0;
}
.stack-more {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -9px;
  border-radius: 50%;
  background: #e8edf6;
  box-shadow: 0 0 0 2px #fff;
  color: #55637d;
  font: 800 11px var(--f-display, "Manrope"), sans-serif;
}

/* Etiquetas coloridas */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--c1, #eef2fa);
  color: var(--ink2, #39486a);
  font: 800 12px var(--f-display, "Manrope"), sans-serif;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, #6b7fb0);
}
.pill.ok {
  --c1: #e8f8ee;
  --ink2: #12502b;
  --dot: var(--c-confirmed);
}
.pill.off {
  --c1: #eef1fa;
  --ink2: #39486a;
  --dot: #8c98b5;
}
.pill.time {
  --c1: #e8f4ff;
  --ink2: #164a78;
  --dot: var(--c-arrived);
}
.pill.warn {
  --c1: #fff4e5;
  --ink2: #7a4410;
  --dot: var(--c-reserved);
}
.pill.vio {
  --c1: #f3eeff;
  --ink2: #44289a;
  --dot: var(--c-service);
}
.pill.plain::before {
  display: none;
}

/* ===== Cartões de números coloridos (Financeiro e Relatórios) ===== */
.fin-cards,
.report-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.fin-card,
.report-grid > .card {
  --k: #3b82f6;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px 20px 18px;
  border: 1px solid color-mix(in oklab, var(--k) 20%, white);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, var(--k) 20%, white), transparent 62%),
    linear-gradient(180deg, color-mix(in oklab, var(--k) 7%, white), #fff);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.9) inset,
    0 2px 4px rgb(15 27 51 / 0.05),
    0 18px 32px -14px color-mix(in oklab, var(--k) 55%, transparent);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.fin-card:hover,
.report-grid > .card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.9) inset,
    0 4px 8px rgb(15 27 51 / 0.06),
    0 26px 40px -14px color-mix(in oklab, var(--k) 65%, transparent);
}
.fin-card:nth-child(1),
.report-grid > .card:nth-child(1) {
  --k: #3b82f6;
}
.fin-card:nth-child(2),
.report-grid > .card:nth-child(2) {
  --k: #22b573;
}
.fin-card:nth-child(3),
.report-grid > .card:nth-child(3) {
  --k: #14a3a3;
}
.fin-card:nth-child(4),
.report-grid > .card:nth-child(4) {
  --k: #f59e3b;
}
.fin-card:nth-child(5),
.report-grid > .card:nth-child(5) {
  --k: #ec5b8b;
}
.fin-card:nth-child(6),
.report-grid > .card:nth-child(6) {
  --k: #8b6cf0;
}
.fin-card:nth-child(7) {
  --k: #4f6bed;
}
.fin-ico {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(145deg, color-mix(in oklab, var(--k) 70%, white), var(--k));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    0 12px 20px -8px color-mix(in oklab, var(--k) 80%, transparent);
}
.fin-card p,
.report-grid > .card .eyebrow {
  margin: 0;
  max-width: calc(100% - 56px);
  min-height: 44px;
  color: color-mix(in oklab, var(--k) 40%, #36445f);
  font: 800 12.5px / 1.3 var(--f-display, "Manrope"), sans-serif;
  letter-spacing: 0.01em;
}
.report-grid > .card .eyebrow {
  letter-spacing: 0.08em;
  font-size: 11px;
  text-transform: uppercase;
}
.fin-card strong,
.report-grid > .card strong {
  margin-top: 6px;
  font: 800 clamp(26px, 2.4vw, 32px) / 1.1 var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fin-card small,
.report-grid > .card p:last-child {
  margin: 0;
  color: var(--muted);
  font: 500 12.5px / 1.45 var(--f-body, "DM Sans"), sans-serif;
}
/* Os cartões do relatório ganham o mesmo selo colorido no canto */
.report-grid > .card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(145deg, color-mix(in oklab, var(--k) 70%, white), var(--k));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    0 12px 20px -8px color-mix(in oklab, var(--k) 80%, transparent);
  opacity: 0.95;
}

/* ===== Painéis e gráficos do Financeiro ===== */
.fin-panel,
.report-breakdown,
.shell .card.report-breakdown {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgb(15 27 51 / 0.05);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-2);
}
.fin-panel h3,
.report-breakdown h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 800 17px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.02em;
}
.fin-panel h3::before,
.report-breakdown h3::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 5px;
  background: linear-gradient(145deg, #7fb0ff, var(--primary));
  box-shadow: 0 6px 12px -4px color-mix(in oklab, var(--primary) 80%, transparent);
}
.fin-bar {
  padding: 10px 0;
}
.fin-bar strong {
  font: 800 14px var(--f-display, "Manrope"), sans-serif;
}
.fin-bar > b {
  font: 800 15px var(--f-display, "Manrope"), sans-serif;
  font-variant-numeric: tabular-nums;
}
.fin-bar-track {
  height: 14px;
  background: #edf1f8;
  box-shadow: inset 0 1px 3px rgb(15 27 51 / 0.12);
}
.fin-bar-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b9bff, #3b6bf0);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    0 4px 10px -3px rgb(59 107 240 / 0.6);
  transform-origin: left;
  animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fin-bar:nth-child(2) .fin-bar-track i {
  background: linear-gradient(90deg, #4fd29b, #1fa66e);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    0 4px 10px -3px rgb(31 166 110 / 0.6);
}
.fin-bar:nth-child(3) .fin-bar-track i {
  background: linear-gradient(90deg, #ffc46b, #f08f1f);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    0 4px 10px -3px rgb(240 143 31 / 0.6);
}
.fin-bar:nth-child(4) .fin-bar-track i {
  background: linear-gradient(90deg, #b79dff, #7b57e6);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    0 4px 10px -3px rgb(123 87 230 / 0.6);
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
}
.fin-table tbody td:last-child strong,
.fin-table .num strong {
  color: color-mix(in oklab, var(--primary) 70%, #0f1b33);
}
.fin-table tfoot td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #22345c, #0f1b33);
  color: #fff;
  font: 800 14px var(--f-display, "Manrope"), sans-serif;
}
.fin-table tfoot td:first-child {
  border-bottom-left-radius: 14px;
}
.fin-table tfoot td:last-child {
  border-bottom-right-radius: 14px;
}
.fin-head {
  padding: 22px 24px;
  border-radius: 24px;
  background:
    radial-gradient(90% 160% at 100% 0%, rgb(255 255 255 / 0.16), transparent 60%),
    linear-gradient(135deg, #22345c, #0f1b33);
  box-shadow: var(--shadow-3);
  color: #fff;
}
.fin-head .eyebrow {
  color: #9fc0ff;
}
.fin-head h2 {
  color: #fff;
}
.fin-head .muted {
  color: rgb(255 255 255 / 0.7);
}
.shell .fin-head button.secondary {
  border-color: rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18);
  backdrop-filter: blur(4px);
}
.shell .fin-head button.secondary:hover {
  background: rgb(255 255 255 / 0.2);
}
.fin-filters {
  border: 1px solid rgb(15 27 51 / 0.05);
}
.shell .notice {
  border: 1px solid #dbe6ff;
  background: linear-gradient(180deg, #f6f9ff, #eef4ff);
  color: #3f5688;
  border-radius: 16px;
  font-weight: 600;
}
.report-breakdowns {
  gap: 16px;
}
.shell .main h3 {
  font-family: var(--f-display, "Manrope"), sans-serif;
}

/* ===== Cartões das demais telas (Equipe, Usuários, Configurações) ===== */
.shell .main .cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.shell .main .cards > .card,
.shell .main > .card,
.shell .main section.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgb(15 27 51 / 0.05);
  border-radius: 24px;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in oklab, var(--primary) 9%, white), transparent 60%),
    #fff;
  box-shadow: var(--shadow-2);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  animation: rise 0.5s both;
}
.shell .main .cards > .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}
.shell .main .card h3 {
  margin: 4px 0 6px;
  font: 800 18px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.shell .main .card p {
  color: var(--muted);
  font: 500 14px / 1.5 var(--f-body, "DM Sans"), sans-serif;
}
.shell .main .card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 10%, white);
  color: color-mix(in oklab, var(--primary) 75%, #0f1b33);
  font: 800 10.5px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: 0.1em;
}
.shell .main .card-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.shell .main .card-footer strong {
  font: 800 18px var(--f-display, "Manrope"), sans-serif;
}
.shell .main .card .avatar {
  width: 56px;
  height: 56px;
}

@media (max-width: 760px) {
  dialog {
    width: calc(100% - 12px);
    max-height: 94vh;
    border-radius: 24px;
  }
  dialog header,
  dialog .form-grid,
  dialog footer,
  dialog .form-error {
    padding-inline: 18px;
  }
  dialog .form-grid {
    grid-template-columns: 1fr;
  }
  .dt-actions {
    margin-left: 0;
    width: 100%;
  }
  .dt-actions button {
    flex: 1;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog[open],
  dialog::backdrop,
  .fin-bar-track i,
  .dt-card {
    animation: none;
  }
}
@media print {
  .fin-head {
    background: none;
    color: #000;
    box-shadow: none;
  }
  .fin-head h2,
  .fin-head .eyebrow,
  .fin-head .muted {
    color: #000;
  }
  .fin-card,
  .report-grid > .card {
    box-shadow: none;
    border: 1px solid #d5dbe6;
  }
  .fin-table tfoot td {
    background: #eee;
    color: #000;
  }
}
