/* =========================================================
   1) TOKENS / BASE
========================================================= */
:root{
  --bg0:#0a2f66;
  --bg1:#123f86;
  --bg2:#1a56a8;

  --card:rgba(183,28,43,.96);
  --card-2:#b71c2b;
  --surface:#c62839;
  --surface-2:#d63245;

  --stroke:rgba(255,255,255,.14);
  --stroke-strong:rgba(255,255,255,.22);

  --text:#ffffff;
  --muted:rgba(255,255,255,.78);
  --muted-2:rgba(255,255,255,.58);

  --red:#c61f33;
  --red-2:#e03147;
  --red-3:#991826;
  --red-soft:rgba(224,49,71,.16);

  --good:#e03147;
  --warn:#e03147;
  --bad:#ff4d62;

  --shadow:0 24px 60px rgba(3,18,43,.28);
  --shadow-soft:0 12px 28px rgba(3,18,43,.22);
  --shadow-strong:0 28px 70px rgba(3,18,43,.34);

  --radius-xl:24px;
  --radius-lg:20px;
  --radius-md:16px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.08), transparent 20%),
    radial-gradient(circle at top right, rgba(255,255,255,.05), transparent 18%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 42%, var(--bg0) 100%);
  color:var(--text);
  padding:18px;
}

/* =========================================================
   2) LAYOUT GERAL
========================================================= */
.page{
  max-width:1280px;
  margin:0 auto;
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.main{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.panel{
  position:relative;
  background:linear-gradient(180deg, rgba(198,31,51,.98) 0%, rgba(160,23,40,.98) 100%);
  border:1px solid var(--stroke);
  border-radius:var(--radius-xl);
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
  overflow:hidden;
}

.panel::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.45));
}

.header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.header-actions{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
}

/* =========================================================
   3) SIDEBAR
========================================================= */
.sidebar{
  position:sticky;
  top:16px;
  background:linear-gradient(180deg, rgba(174,23,40,.98) 0%, rgba(138,18,31,.98) 100%);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius-xl);
  padding:16px;
  box-shadow:var(--shadow-strong);
  backdrop-filter:blur(14px);
  overflow:hidden;
}

.sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255,255,255,.06), transparent 24%);
  pointer-events:none;
}

.brand{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
  gap:10px;
}

.brand .title{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:rgba(255,255,255,.86);
  font-weight:800;
}

.pill{
  padding:5px 11px;
  border-radius:999px;
  font-size:.72rem;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  color:#fff;
  white-space:nowrap;
  font-weight:800;
}

.nav{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}

.nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 13px;
  border-radius:15px;
  text-decoration:none;
  color:rgba(255,255,255,.96);
  border:1px solid transparent;
  background:rgba(255,255,255,.06);
  transition:.18s ease;
  font-weight:700;
}

.nav a:hover{
  border-color:rgba(255,255,255,.20);
  background:rgba(255,255,255,.12);
  transform:translateY(-1px);
}

.nav a.active{
  background:linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 100%);
  color:var(--red);
  font-weight:900;
  border-color:rgba(255,255,255,.42);
  box-shadow:0 14px 28px rgba(10,33,74,.18);
}

.nav a small{
  color:rgba(255,255,255,.86);
  font-weight:800;
}

.nav a.active small{
  color:var(--red-2);
}

/* =========================================================
   4) TIPOGRAFIA / TEXTOS
========================================================= */
h1{
  font-size:1.68rem;
  font-weight:950;
  color:#ffffff;
  margin-bottom:6px;
  letter-spacing:-.02em;
}

.sub{
  color:var(--muted);
  font-size:.92rem;
  line-height:1.35;
}

.info{
  font-size:.82rem;
  color:rgba(255,255,255,.82);
  margin-top:-4px;
}

.hint{
  color:var(--muted);
  font-size:.85rem;
}

.vazio{
  margin-top:10px;
  font-size:.95rem;
  color:var(--muted);
  text-align:center;
}

.dash-muted{
  color:var(--muted);
}

/* =========================================================
   5) INPUTS / FORMULÁRIOS
========================================================= */
form{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:10px;
}

label{
  font-size:.85rem;
  font-weight:800;
  margin-bottom:5px;
  display:block;
  color:#ffffff;
}

input,
.year-field select{
  width:100%;
  padding:11px 13px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  font-size:.95rem;
  outline:none;
  background:rgba(137,18,31,.62);
  color:#ffffff;
  transition:border-color .18s ease, box-shadow .18s ease, transform .06s ease, background .18s ease;
  box-shadow:0 4px 12px rgba(3,18,43,.14);
}

input::placeholder{
  color:rgba(255,255,255,.58);
}

input:hover,
.year-field select:hover{
  border-color:rgba(255,255,255,.24);
}

input:focus,
.year-field select:focus{
  border-color:rgba(255,255,255,.44);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.12),
    0 10px 18px rgba(3,18,43,.18);
  transform:translateY(-1px);
  background:rgba(137,18,31,.78);
}

input[type="month"]{
  width:100%;
  padding:11px 13px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(137,18,31,.62);
  color:#ffffff;
  outline:none;
  transition:.18s ease;
  box-shadow:0 4px 12px rgba(3,18,43,.14);
}

input[type="month"]:focus{
  border-color:rgba(255,255,255,.44);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.12),
    0 10px 18px rgba(3,18,43,.18);
  transform:translateY(-1px);
}

.month-field,
.year-field{
  min-width:190px;
}

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.row > div{
  flex:1;
  min-width:220px;
}

/* =========================================================
   6) BOTÕES
========================================================= */
button{
  margin-top:8px;
  padding:12px 15px;
  border-radius:999px;
  border:none;
  font-size:.95rem;
  font-weight:950;
  cursor:pointer;
  background:linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 100%);
  color:var(--red);
  box-shadow:0 14px 30px rgba(3,18,43,.16);
  transition:transform .12s ease, filter .15s ease, opacity .15s ease, box-shadow .18s ease;
  text-transform:uppercase;
  letter-spacing:.08em;
}

button:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
  box-shadow:0 18px 34px rgba(3,18,43,.20);
}

button:active{
  transform:translateY(0);
}

button:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  filter:none;
  box-shadow:none;
}

.btn-secondary{
  margin-top:0;
  padding:10px 13px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  font-size:.92rem;
  font-weight:900;
  cursor:pointer;
  background:rgba(255,255,255,.08);
  color:#ffffff;
  box-shadow:0 8px 18px rgba(3,18,43,.12);
  text-transform:none;
  letter-spacing:.02em;
  transition:.18s ease;
}

.btn-secondary:hover{
  border-color:rgba(255,255,255,.24);
  background:rgba(255,255,255,.14);
  color:#ffffff;
  transform:translateY(-1px);
}

.btn-produto{
  margin-top:0;
  padding:12px 15px;
  border-radius:999px;
  border:none;
  font-size:.95rem;
  font-weight:950;
  cursor:pointer;
  background:linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 100%);
  color:var(--red);
  box-shadow:0 14px 30px rgba(3,18,43,.16);
  transition:transform .12s ease, filter .15s ease, opacity .15s ease, box-shadow .18s ease;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.btn-produto:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
}

/* =========================================================
   7) CHIPS / ALERTAS / FEEDBACK
========================================================= */
.chip{
  padding:5px 11px;
  border-radius:999px;
  font-size:.72rem;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
  color:#ffffff;
  white-space:nowrap;
  height:fit-content;
  font-weight:900;
}

.alert{
  display:none;
  padding:13px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(135deg, rgba(138,18,31,.42), rgba(198,31,51,.40));
  box-shadow:var(--shadow-soft);
}

.alert .title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:950;
  letter-spacing:.02em;
  color:#ffffff;
}

.alert .title .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ffffff;
  box-shadow:0 0 0 4px rgba(255,255,255,.10);
  flex:0 0 auto;
}

.alert .desc{
  margin-top:6px;
  color:#ffffff;
  font-size:.92rem;
  line-height:1.32;
}

.alert .desc small{
  color:rgba(255,255,255,.76);
  font-weight:800;
}

.alert.danger{
  border-color:rgba(255,255,255,.18);
  background:linear-gradient(135deg, rgba(176,18,34,.48), rgba(128,14,28,.52));
}

.alert.danger .title .dot{
  background:#ffffff;
  box-shadow:0 0 0 4px rgba(255,255,255,.12);
}

.feedback{
  display:none;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
  color:#ffffff;
  font-size:.92rem;
  line-height:1.25;
}

.feedback.show{
  display:block;
}

.feedback.error{
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
}

.status-box{
  margin-top:10px;
  display:none;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:.9rem;
}

.status-box.show{
  display:block;
}

.status-box.error{
  border-color:rgba(255,255,255,.20);
  background:rgba(255,255,255,.08);
}

/* =========================================================
   8) AGENDAMENTO
========================================================= */
fieldset.grupo-opcoes{
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  padding:13px;
  margin-top:4px;
  background:linear-gradient(180deg, rgba(173,24,40,.36) 0%, rgba(138,18,31,.34) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

fieldset.grupo-opcoes legend{
  padding:0 8px;
  font-size:.85rem;
  font-weight:900;
  color:#ffffff;
  letter-spacing:.02em;
}

.opcoes-tipo{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin-top:10px;
}

.opcoes-tipo .opcao{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.9rem;
  color:#ffffff;
  white-space:nowrap;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  box-shadow:0 6px 14px rgba(3,18,43,.12);
}

.opcoes-tipo input[type="checkbox"],
.opcoes-tipo input[type="radio"]{
  width:16px;
  height:16px;
  cursor:pointer;
  accent-color:#ffffff;
}

.outro-valor{
  margin-top:10px;
  display:none;
}

.outro-valor.ativo{
  display:block;
}

.outro-valor label{
  font-size:.82rem;
}

/* =========================================================
   9) RESUMOS / KPIs
========================================================= */
.resumo-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.resumo-grid-3{
  grid-template-columns:repeat(3,1fr);
}

.card-resumo{
  position:relative;
  background:linear-gradient(180deg, rgba(164,22,38,.96) 0%, rgba(130,18,29,.96) 100%);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:15px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}

.card-resumo::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:rgba(255,255,255,.95);
}

.card-resumo::after{
  content:"";
  position:absolute;
  top:-30px;
  right:-30px;
  width:120px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.12), transparent 68%);
  pointer-events:none;
}

.resumo-titulo{
  color:rgba(255,255,255,.78);
  font-weight:900;
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.resumo-valor{
  margin-top:8px;
  font-size:1.38rem;
  font-weight:950;
  letter-spacing:-.02em;
  color:#ffffff;
}

.resumo-sub{
  margin-top:6px;
  font-size:.82rem;
  color:rgba(255,255,255,.76);
}

/* =========================================================
   10) FILTROS
========================================================= */
.filters{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:end;
  padding:12px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(165,22,39,.34) 0%, rgba(137,18,31,.32) 100%);
  box-shadow:var(--shadow-soft);
}

/* =========================================================
   11) AGENDA / PENDENTES
========================================================= */
.agenda-lista{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:14px;
}

.dia-bloco{
  border-radius:22px;
  padding:12px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(164,22,38,.96) 0%, rgba(130,18,29,.96) 100%);
  box-shadow:var(--shadow-soft);
}

.dia-header{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
  flex-wrap:wrap;
}

.dia-titulo{
  font-size:1rem;
  font-weight:950;
  text-transform:capitalize;
  color:#ffffff;
}

.dia-resumo{
  font-size:.84rem;
  color:rgba(255,255,255,.76);
  white-space:nowrap;
}

.dia-itens{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.card-agendamento{
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  gap:12px;
  padding:13px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(224,49,71,.92) 0%, rgba(177,23,42,.94) 100%);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 24px rgba(3,18,43,.14);
}

.col-hora{
  display:flex;
  flex-direction:column;
  gap:4px;
  justify-content:center;
  border-right:1px dashed rgba(255,255,255,.16);
  padding-right:10px;
}

.col-hora .hora{
  font-size:1.05rem;
  font-weight:950;
  color:#ffffff;
}

.col-hora .duracao{
  font-size:.78rem;
  color:rgba(255,255,255,.78);
}

.col-conteudo{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.linha-topo{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}

.cliente{
  font-size:1rem;
  font-weight:950;
  color:#ffffff;
}

.valor{
  font-size:.95rem;
  font-weight:950;
  color:#ffffff;
}

.linha-servicos{
  font-size:.88rem;
  color:rgba(255,255,255,.82);
}

.linha-rodape{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:2px;
}

.rodape-esquerda{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.chip-pagamento{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.74rem;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.10);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:950;
  white-space:nowrap;
  box-shadow:0 4px 10px rgba(3,18,43,.08);
}

.chip-pagamento::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:currentColor;
  display:inline-block;
}

.pag-pix,
.pag-cartao,
.pag-dinheiro,
.pag-pendente,
.pag-desconhecido{
  color:#ffffff;
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
}

/* =========================================================
   12) VENDA DE PRODUTOS
========================================================= */
.produto-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:12px;
}

.produto-card{
  position:relative;
  background:linear-gradient(180deg, rgba(164,22,38,.96) 0%, rgba(130,18,29,.96) 100%);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:14px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}

.produto-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 54%),
    radial-gradient(circle at bottom left, rgba(255,255,255,.06), transparent 45%);
  pointer-events:none;
  opacity:.95;
}

.produto-card > *{
  position:relative;
  z-index:1;
}

.kpi-card{
  grid-column:span 4;
}

.span-6{
  grid-column:span 6;
}

.span-12{
  grid-column:span 12;
}

.produto-kpi-titulo{
  color:rgba(255,255,255,.78);
  font-weight:900;
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.produto-kpi-valor{
  margin-top:8px;
  font-size:1.38rem;
  font-weight:950;
  letter-spacing:-.02em;
  color:#ffffff;
}

.produto-kpi-sub{
  margin-top:6px;
  font-size:.82rem;
  color:rgba(255,255,255,.76);
}

.form-produto{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:6px;
}

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:8px;
}

.item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(224,49,71,.90) 0%, rgba(177,23,42,.92) 100%);
  box-shadow:0 10px 20px rgba(3,18,43,.12);
  flex-wrap:wrap;
}

.item .left{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:220px;
}

.item .name{
  font-weight:950;
  font-size:1rem;
  color:#ffffff;
}

.item .meta{
  color:rgba(255,255,255,.78);
  font-size:.86rem;
}

.item .right{
  display:flex;
  align-items:center;
  gap:10px;
}

.price{
  font-weight:950;
  color:#ffffff;
  font-size:1rem;
}

/* =========================================================
   13) DASHBOARDS
========================================================= */
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:12px;
  margin-top:16px;
}

.dashboard-bloco{
  margin-top:16px;
  padding:12px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(164,22,38,.96) 0%, rgba(130,18,29,.96) 100%);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow-soft);
}

.dashboard-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.dashboard-header h2{
  font-size:1rem;
  color:#ffffff;
}

.dashboard-header span{
  color:rgba(255,255,255,.76);
  font-size:.8rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.chart-wrap{
  height:320px;
}

.chart-wrap.small{
  height:280px;
}

canvas{
  width:100% !important;
  height:100% !important;
}

.grafico{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.barra{
  display:flex;
  justify-content:space-between;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
}

/* =========================================================
   14) TABELAS
========================================================= */
.table-wrap{
  overflow:auto;
}

.dash-table{
  width:100%;
  border-collapse:collapse;
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
}

.dash-table thead th{
  text-align:left;
  font-size:.78rem;
  color:#ffffff;
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
  text-transform:uppercase;
  letter-spacing:.06em;
  background:rgba(255,255,255,.12);
}

.dash-table tbody td{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:.9rem;
  vertical-align:top;
  color:#ffffff;
}

.heatmap-table .heat-cell{
  font-size:.8rem;
  text-align:center;
}

/* =========================================================
   15) RESPONSIVO
========================================================= */
@media (max-width:980px){
  .page{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
    top:0;
  }

  .resumo-grid,
  .resumo-grid-3{
    grid-template-columns:1fr;
  }

  .card-agendamento{
    grid-template-columns:80px minmax(0,1fr);
  }

  .kpi-card,
  .span-6,
  .span-12{
    grid-column:span 12;
  }

  .chart-wrap{
    height:300px;
  }
}

@media (max-width:520px){
  body{
    padding:12px;
  }

  .row > div{
    min-width:100%;
  }

  .dia-resumo{
    white-space:normal;
  }

  .card-agendamento{
    grid-template-columns:1fr;
  }

  .col-hora{
    border-right:none;
    border-bottom:1px dashed rgba(255,255,255,.16);
    padding-right:0;
    padding-bottom:10px;
  }
}

.acoes-agendamento{
  display:inline-flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn-icon{
  margin-top:0;
  border-radius:999px;
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.10);
  color:#ffffff;
  font-size:.78rem;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:.16s ease;
  font-weight:900;
  text-transform:none;
  letter-spacing:.02em;
  box-shadow:0 8px 16px rgba(3,18,43,.08);
}

.btn-icon:hover{
  border-color:rgba(255,255,255,.24);
  background:rgba(255,255,255,.16);
  color:#ffffff;
  transform:translateY(-1px);
  filter:none;
}

.btn-icon--danger,
.btn-pay,
.btn-icon--edit{
  border-color:rgba(255,255,255,.14);
  color:#ffffff;
}

.btn-icon--danger:hover,
.btn-pay:hover,
.btn-icon--edit:hover{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.24);
}

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(8,30,68,.56);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:50;
  backdrop-filter:blur(4px);
  padding:16px;
}

.modal-backdrop.aberto{
  display:flex;
}

.modal{
  background:linear-gradient(180deg, rgba(164,22,38,.98) 0%, rgba(130,18,29,.98) 100%);
  border-radius:24px;
  padding:16px 16px 14px;
  max-width:420px;
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 30px 70px rgba(3,18,43,.26);
}

.modal h2{
  font-size:1.08rem;
  margin-bottom:10px;
  color:#ffffff;
}

.modal form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.modal label{
  font-size:.75rem;
  color:rgba(255,255,255,.76);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:6px;
  display:block;
}

.modal input,
.modal select{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(137,18,31,.66);
  color:#ffffff;
  font-size:.95rem;
  outline:none;
  transition:.18s ease;
  box-shadow:0 4px 12px rgba(3,18,43,.10);
}

.modal input:focus,
.modal select:focus{
  border-color:rgba(255,255,255,.42);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.12),
    0 10px 18px rgba(3,18,43,.16);
  transform:translateY(-1px);
}

.modal-acoes{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}

.btn-modal-secundario,
.btn-modal-primario{
  border-radius:999px;
  padding:10px 12px;
  font-size:.9rem;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:950;
  transition:.16s ease;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.btn-modal-secundario{
  background:rgba(255,255,255,.10);
  color:#ffffff;
  border:1px solid rgba(255,255,255,.14);
  text-transform:none;
  letter-spacing:.02em;
  box-shadow:none;
  margin-top:0;
}

.btn-modal-secundario:hover{
  border-color:rgba(255,255,255,.24);
  background:rgba(255,255,255,.16);
  color:#ffffff;
  transform:translateY(-1px);
  filter:none;
}

.btn-modal-primario{
  background:linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 100%);
  color:var(--red);
  box-shadow:0 14px 30px rgba(3,18,43,.16);
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-top:0;
}

.btn-modal-primario:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
}