:root{
  --bg:#050b14;
  --bg2:#07111f;
  --panel:#101d31;
  --panel2:#14243b;
  --panel3:#0c1728;
  --text:#f4f7fb;
  --muted:#9fb0c7;
  --soft:#c4d2e5;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.16);
  --gold:#f4c86a;
  --gold2:#ff9d4d;
  --danger:#ff6b6b;
  --ok:#46d39a;
  --blue:#5fb3ff;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 50% -8%,rgba(95,179,255,.18),transparent 32%),
    radial-gradient(circle at 12% 6%,rgba(244,200,106,.18),transparent 30%),
    linear-gradient(180deg,#07111f 0,#050b14 55%,#02050a 100%);
  color:var(--text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a{color:inherit;text-decoration:none}
.wrap{
  max-width:980px;
  margin:0 auto;
  padding:16px 14px 116px;
}
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(18px);
  background:linear-gradient(180deg,rgba(7,17,31,.94),rgba(7,17,31,.76));
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  max-width:980px;
  margin:0 auto;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:1000;
  letter-spacing:.2px;
}
.logo{
  width:44px;
  height:44px;
  border-radius:18px;
  background:
    radial-gradient(circle at 30% 20%,#ffe2a4 0,#f4c86a 34%,#ff9d4d 100%);
  display:grid;
  place-items:center;
  color:#181109;
  font-weight:1000;
  box-shadow:
    0 14px 34px rgba(244,200,106,.26),
    inset 0 1px 0 rgba(255,255,255,.42);
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
  padding:8px 11px;
  border-radius:999px;
  color:var(--soft);
  font-size:12px;
  font-weight:900;
}
.card{
  background:
    radial-gradient(circle at top left,rgba(244,200,106,.08),transparent 36%),
    linear-gradient(180deg,rgba(18,31,52,.96),rgba(7,15,27,.98));
  border:1px solid rgba(255,255,255,.09);
  border-radius:30px;
  box-shadow:
    0 24px 70px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.045);
  overflow:hidden;
}
.card.pad{padding:18px}
.hero{
  padding:20px;
  border-radius:30px;
  background:
    radial-gradient(circle at 18% 10%,rgba(244,200,106,.22),transparent 35%),
    radial-gradient(circle at 90% 8%,rgba(95,179,255,.16),transparent 30%),
    linear-gradient(160deg,rgba(31,59,98,.92),rgba(9,20,36,.98));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    0 22px 60px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.05);
}
h1{
  font-size:25px;
  margin:0 0 7px;
  line-height:1.05;
  font-weight:1000;
  letter-spacing:-.03em;
}
h2{
  font-size:18px;
  margin:0 0 13px;
  font-weight:1000;
  letter-spacing:-.02em;
}
p{
  color:var(--muted);
  margin:0;
  line-height:1.48;
}
.grid{display:grid;gap:12px}
.grid.two{grid-template-columns:1fr}
@media(min-width:760px){
  .grid.two{grid-template-columns:1fr 1fr}
  .grid.three{grid-template-columns:repeat(3,1fr)}
}
.stat{
  padding:16px;
  border-radius:24px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.032));
  border:1px solid rgba(255,255,255,.095);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.stat small{
  display:block;
  color:var(--muted);
  font-weight:900;
  margin-bottom:8px;
}
.stat b{
  font-size:23px;
  letter-spacing:-.03em;
}
.btn{
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 16px;
  border-radius:18px;
  font-weight:1000;
  cursor:pointer;
  background:
    radial-gradient(circle at 30% 20%,#ffe2a4 0,#f4c86a 34%,#ff9d4d 100%);
  color:#191407;
  box-shadow:
    0 16px 38px rgba(244,200,106,.24),
    inset 0 1px 0 rgba(255,255,255,.38);
}
.btn:active{transform:translateY(1px)}
.btn.alt{
  background:rgba(255,255,255,.08);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn.danger{
  background:rgba(255,107,107,.14);
  color:#ffd1d1;
  border:1px solid rgba(255,107,107,.32);
  box-shadow:none;
}
.btn.full{width:100%}
.row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.form{display:grid;gap:13px}
label{
  display:grid;
  gap:8px;
  color:#b8c7db;
  font-size:13px;
  font-weight:950;
}
input,select,textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  background-color:rgba(5,11,20,.76);
  background-image:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  color:var(--text);
  padding:15px 16px;
  outline:none;
  font-size:16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 10px 26px rgba(0,0,0,.10);
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(244,200,106,.54);
  box-shadow:
    0 0 0 4px rgba(244,200,106,.105),
    inset 0 1px 0 rgba(255,255,255,.045);
}
select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:48px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4c86a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"),
    linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  background-repeat:no-repeat,no-repeat;
  background-position:right 16px center,center;
  background-size:18px,auto;
}
select option{
  color:#f4f7fb;
  background:#101d31;
}
textarea{min-height:104px;resize:vertical}
.list{display:grid;gap:11px}
.expense{
  padding:14px;
  border-radius:24px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.064),rgba(255,255,255,.032));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.expense .title{font-weight:1000}
.expense .meta{
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
}
.value{
  font-weight:1000;
  color:#ffd783;
  letter-spacing:-.02em;
}
.status-paid{color:var(--ok);font-weight:950}
.status-pending{color:var(--danger);font-weight:950}
.alert{
  padding:13px 15px;
  border-radius:20px;
  border:1px solid rgba(244,200,106,.34);
  background:
    radial-gradient(circle at left,rgba(244,200,106,.18),transparent 40%),
    rgba(244,200,106,.10);
  color:#ffe4a6;
  font-weight:900;
}
.table-wrap{overflow:auto}
table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
}
th,td{
  padding:12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}
th{
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.login-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:18px;
}
.login-card{
  width:100%;
  max-width:430px;
}
.logo-big{
  width:66px;
  height:66px;
  border-radius:24px;
  font-size:28px;
}
.filters{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
}
@media(max-width:420px){
  .filters{grid-template-columns:1fr}
}

/* Dock premium inferior */
.nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:30;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(to top,rgba(2,8,18,.95),rgba(2,8,18,.72),transparent);
  border-top:none;
  backdrop-filter:blur(18px);
}
.nav-inner{
  max-width:980px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  padding:10px;
  border:1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 20% 0,rgba(244,200,106,.08),transparent 34%),
    rgba(10,18,32,.91);
  border-radius:28px;
  box-shadow:
    0 18px 54px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.055);
}
.nav a{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:70px;
  border-radius:22px;
  color:rgba(220,230,245,.72);
  font-size:11px;
  font-weight:950;
  letter-spacing:.02em;
  transition:transform .22s ease,color .22s ease,background .22s ease;
  -webkit-tap-highlight-color:transparent;
}
.nav a .icon-shell{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.07);
  transition:.22s ease;
}
.nav a .icon-shell svg{
  width:21px;
  height:21px;
  display:block;
  fill:currentColor;
}
.nav a:hover{
  color:#fff1c4;
  transform:translateY(-1px);
}
.nav a.active{
  color:#ffe4a1;
  background:linear-gradient(180deg,rgba(244,200,106,.17),rgba(244,200,106,.055));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
}
.nav a.active .icon-shell{
  background:
    radial-gradient(circle at 30% 20%,#ffe2a4 0,#f4c86a 34%,#ff9d4d 100%);
  color:#16120a;
  box-shadow:
    0 11px 27px rgba(244,200,106,.30),
    inset 0 1px 0 rgba(255,255,255,.42);
  border-color:rgba(255,255,255,.18);
}
.nav a.active::before{
  content:"";
  position:absolute;
  top:7px;
  width:26px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,#f4c86a,#ffb45f);
  box-shadow:0 0 13px rgba(244,200,106,.48);
}
.nav-label{
  line-height:1;
}

/* ==================================================
   V1.2 - Dropdown Premium Próprio
   Substitui visual padrão Android/Chrome do select
   ================================================== */
select.premium-native{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
  width:1px !important;
  height:1px !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  margin:0 !important;
}

.premium-select{
  position:relative;
  width:100%;
  z-index:2;
}

.premium-select.open{
  z-index:90;
}

.premium-select-button{
  width:100%;
  min-height:50px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  background:
    radial-gradient(circle at 12% 10%,rgba(244,200,106,.10),transparent 34%),
    linear-gradient(180deg,rgba(255,255,255,.060),rgba(255,255,255,.026)),
    rgba(5,11,20,.82);
  color:#f4f7fb;
  padding:14px 15px 14px 17px;
  outline:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:16px;
  font-weight:850;
  text-align:left;
  cursor:pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 26px rgba(0,0,0,.12);
}

.premium-select-button:focus,
.premium-select.open .premium-select-button{
  border-color:rgba(244,200,106,.58);
  box-shadow:
    0 0 0 4px rgba(244,200,106,.11),
    0 16px 34px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.premium-select-current{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.premium-select-arrow{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:
    radial-gradient(circle at 30% 20%,#ffe2a4 0,#f4c86a 34%,#ff9d4d 100%);
  color:#171107;
  box-shadow:0 10px 24px rgba(244,200,106,.24);
  transition:.22s ease;
}

.premium-select-arrow svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.premium-select.open .premium-select-arrow{
  transform:rotate(180deg);
}

.premium-select-menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 8px);
  max-height:292px;
  overflow:auto;
  padding:8px;
  border-radius:22px;
  border:1px solid rgba(244,200,106,.26);
  background:
    radial-gradient(circle at 10% 0,rgba(244,200,106,.12),transparent 38%),
    linear-gradient(180deg,rgba(18,31,52,.98),rgba(8,16,29,.99));
  box-shadow:
    0 24px 70px rgba(0,0,0,.50),
    inset 0 1px 0 rgba(255,255,255,.06);
  opacity:0;
  transform:translateY(-6px) scale(.985);
  pointer-events:none;
  transition:.18s ease;
}

.premium-select.open .premium-select-menu{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

.premium-select-option{
  width:100%;
  border:0;
  border-radius:16px;
  background:transparent;
  color:#dce8f7;
  padding:13px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:left;
  font-size:15px;
  font-weight:850;
  cursor:pointer;
}

.premium-select-option:hover{
  background:rgba(255,255,255,.070);
  color:#fff;
}

.premium-select-option.selected{
  background:
    linear-gradient(135deg,rgba(244,200,106,.25),rgba(255,157,77,.14));
  color:#ffe7ae;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.premium-select-option.selected::after{
  content:"";
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:999px;
  background:
    radial-gradient(circle at 30% 20%,#ffe2a4 0,#f4c86a 34%,#ff9d4d 100%);
  box-shadow:0 0 18px rgba(244,200,106,.28);
}

.premium-select-option.disabled{
  opacity:.45;
  cursor:not-allowed;
}

/* evita o dropdown de baixo ficar escondido atrás do menu fixo */
.form{
  padding-bottom:8px;
}

/* Nome novo com respiro visual melhor no topo */
.brand > div:last-child > div{
  line-height:1.05;
}

/* ==================================================
   V1.2.1 - Correção de camada do dropdown premium
   Faz a lista abrir por cima dos cards, relatórios e menu inferior
   ================================================== */
.wrap,
.form,
.card,
.hero,
.filters,
label{
  overflow:visible !important;
}

.card,
.hero,
.stat{
  position:relative;
}

.card:has(.premium-select.open),
.hero:has(.premium-select.open),
.form:has(.premium-select.open),
.filters:has(.premium-select.open),
label:has(.premium-select.open){
  z-index:5000 !important;
}

.premium-select{
  position:relative;
  z-index:20;
}

.premium-select.open{
  z-index:10000 !important;
}

.premium-select.open .premium-select-menu{
  z-index:10001 !important;
}

.premium-select-menu{
  z-index:10001 !important;
  isolation:isolate;
}

/* quando a lista estiver aberta, o dock inferior não cobre a escolha */
body:has(.premium-select.open) .nav{
  z-index:40;
}

/* Mais respiro no card de filtros para a lista não brigar com o próximo bloco */
.card.pad:has(.premium-select){
  margin-bottom:14px;
}

/* ==================================================
   V1.2.2 - Equilíbrio de camadas
   O dropdown abre por cima dos cards, mas nunca por cima do topo
   ================================================== */

/* topo sempre soberano */
.topbar{
  z-index:30000 !important;
  position:sticky !important;
}

/* dock inferior acima da página, mas abaixo do topo */
.nav{
  z-index:20000 !important;
}

/* desfaz exagero do fix anterior */
.card:has(.premium-select.open),
.hero:has(.premium-select.open),
.form:has(.premium-select.open),
.filters:has(.premium-select.open),
label:has(.premium-select.open){
  z-index:9000 !important;
}

/* dropdown acima dos cards, abaixo do topo */
.premium-select.open{
  z-index:12000 !important;
}

.premium-select.open .premium-select-menu,
.premium-select-menu{
  z-index:12001 !important;
}

/* o botão do select não invade visualmente o topo quando a tela está rolada */
.topbar + .wrap{
  position:relative;
  z-index:1;
}

/* quando abrir dropdown, mantém a área visível sem engolir o cabeçalho */
.premium-select-menu{
  max-height:min(292px, calc(100vh - 180px));
}

/* em telas pequenas, deixa o menu mais compacto */
@media(max-width:520px){
  .premium-select-menu{
    max-height:min(260px, calc(100vh - 190px));
  }

  .premium-select-option{
    padding:12px 13px;
  }
}


/* START V1.3.1 REPORT PICKER CSS */
/* Relatórios com Data base dinâmica */
.report-card{
  overflow:visible !important;
}

.report-form{
  overflow:visible !important;
}

.report-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
  align-items:start;
  overflow:visible !important;
}

.report-field{
  display:none;
}

.report-field.is-active{
  display:grid;
}

.field-hint{
  display:block;
  color:rgba(196,210,229,.72);
  font-size:11px;
  font-weight:800;
  line-height:1.25;
  margin-top:-2px;
}

input[type="date"],
input[type="week"],
input[type="month"]{
  min-height:50px;
  font-weight:850;
  color-scheme:dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator{
  opacity:1;
  cursor:pointer;
  filter:invert(83%) sepia(38%) saturate(592%) hue-rotate(350deg) brightness(101%) contrast(96%);
}

@media(max-width:520px){
  .report-grid{
    grid-template-columns:1fr;
  }
}
/* END V1.3.1 REPORT PICKER CSS */

