/* Layout and cards */
.gsv2-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;margin-top:24px}
.gsv2-left,.gsv2-right{display:grid;gap:20px;align-content:start}
.gsv2-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}
.gsv2-metric,.gsv2-panel,.gsv2-side-card,.gsv2-alert{border:1px solid rgba(255,255,255,.09);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)),var(--fived-input);box-shadow:0 20px 60px rgba(0,0,0,.2)}
.gsv2-metric{min-height:128px;padding:20px;display:grid;align-content:center}
.gsv2-metric strong{display:block;color:#fff;font-size:32px;font-weight:800;margin-top:9px}
.gsv2-metric small{color:var(--gsv2-muted);margin-top:4px}
.gsv2-panel,.gsv2-side-card{padding:20px}
.gsv2-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}
.gsv2-panel-head h2,.gsv2-side-card h3{font-family:var(--gsv2-serif);color:#fff;font-size:30px;font-weight:500;margin:4px 0}
.gsv2-panel-head p{color:var(--gsv2-muted);margin:4px 0 0;line-height:1.55}
.gsv2-tabs{display:flex;gap:8px;flex-wrap:wrap}
.gsv2-tab{border:1px solid rgba(255,255,255,.1);border-radius:999px;background:var(--fived-ink);color:#d8d0c7;min-height:36px;padding:0 13px;font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;cursor:pointer}
.gsv2-tab.active,.gsv2-tab:hover{border-color:var(--gsv2-gold-border);background:rgba(201,168,76,.1);color:var(--gsv2-gold-light)}


/* 5D fix: alinhar o topo dos KPIs com os widgets laterais do Painel Staff */
.ge-staff-v2 .gsv2-layout {
  align-items: start;
}

.ge-staff-v2 .gsv2-kpi-row {
  margin-top: 0 !important;
  margin-bottom: 20px;
}

.ge-staff-v2 .gsv2-right {
  margin-top: 0 !important;
}

/* 5D fix: KPIs do Painel Staff sem cards, separados por linhas verticais douradas */
.ge-staff-v2 .gsv2-kpi-row {
  gap: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 22px !important;
}

.ge-staff-v2 .gsv2-kpi-row .gsv2-metric {
  position: relative;
  min-height: 118px;
  padding: 18px 24px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ge-staff-v2 .gsv2-kpi-row .gsv2-metric:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  width: 1px;
  height: calc(100% - 36px);
  background: linear-gradient(
    180deg,
    rgba(201, 168, 76, 0),
    rgba(201, 168, 76, .7),
    rgba(201, 168, 76, 0)
  );
}

.ge-staff-v2 .gsv2-kpi-row .gsv2-metric:first-child {
  padding-left: 0;
}

.ge-staff-v2 .gsv2-kpi-row .gsv2-metric:last-child {
  padding-right: 0;
}

@media (max-width: 1024px) {
  .ge-staff-v2 .gsv2-kpi-row {
    gap: 14px !important;
  }

  .ge-staff-v2 .gsv2-kpi-row .gsv2-metric {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)),var(--fived-input) !important;
  }

  .ge-staff-v2 .gsv2-kpi-row .gsv2-metric::after {
    display: none;
  }
}

/* 5D fix: tabs da fila de reservas apenas como texto, sem containers */
.ge-staff-v2 .gsv2-panel-head .gsv2-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.ge-staff-v2 .gsv2-panel-head .gsv2-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  text-align: center;
  line-height: 1.2;
}

.ge-staff-v2 .gsv2-panel-head .gsv2-tab.active,
.ge-staff-v2 .gsv2-panel-head .gsv2-tab:hover,
.ge-staff-v2 .gsv2-panel-head .gsv2-tab:focus-visible {
  background: transparent !important;
  color: var(--gsv2-gold-light, var(--fived-gold-light)) !important;
}

@media (max-width: 1024px) {
  .ge-staff-v2 .gsv2-panel-head .gsv2-tabs {
    justify-content: flex-start;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .ge-staff-v2 .gsv2-panel-head .gsv2-tabs {
    gap: 12px 14px;
    overflow: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .ge-staff-v2 .gsv2-panel-head .gsv2-tab {
    min-height: 22px;
    font-size: 9px;
    white-space: nowrap;
  }
}

/* 5D fix: tabs da fila centralizadas no mobile. */
@media (max-width: 768px) {
  .ge-staff-v2 #reservas .gsv2-panel-head {
    align-items: center !important;
    text-align: center !important;
  }

  .ge-staff-v2 #reservas .gsv2-panel-head > div:first-child {
    width: 100% !important;
  }

  .ge-staff-v2 #reservas .gsv2-panel-head .gsv2-tabs {
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px 14px !important;
    text-align: center !important;
  }

  .ge-staff-v2 #reservas .gsv2-panel-head .gsv2-tab {
    justify-content: center !important;
    text-align: center !important;
  }
}

/* 5D fix: valores dos KPIs do Painel Staff com escala e cores refinadas */
.ge-staff-v2 .gsv2-kpi-row .gsv2-metric > strong,
.ge-staff-v2 .gsv2-kpi-row .gsv2-metric > strong.revenue,
.ge-staff-v2 .gsv2-kpi-row .gsv2-metric > strong.debt {
  display: block !important;
  width: 219px;
  max-width: 100%;
  height: 38.75px;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  line-height: 38.75px !important;
  padding: 0 !important;
  margin: 9px 0 0 !important;
  border-radius: 0;
  transition: all;
}

.ge-staff-v2 .gsv2-kpi-row .gsv2-metric > strong.revenue {
  color: #ffffff !important;
}

.ge-staff-v2 .gsv2-kpi-row .gsv2-metric > strong.debt {
  color: #ff5252 !important;
}

@media (max-width: 768px) {
  .ge-staff-v2 .gsv2-kpi-row .gsv2-metric > strong,
  .ge-staff-v2 .gsv2-kpi-row .gsv2-metric > strong.revenue,
  .ge-staff-v2 .gsv2-kpi-row .gsv2-metric > strong.debt {
    width: auto;
    height: auto;
    font-size: 23px !important;
    line-height: 1.25 !important;
  }
}
