:root {
  --surface: #fcf9f4;
  --surface-low: #f6f3ee;
  --surface-container: #f0ede9;
  --surface-high: #e5e2dd;
  --ink: #1c1c19;
  --muted: #4e4639;
  --gold: #c5a059;
  --bronze: #775a19;
  --line: #d1c5b4;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(142, 115, 65, 0.14);
  --serif: "Bodoni Moda", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

.top-strip {
  background: var(--ink);
  color: var(--surface);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 10px 20px;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  align-items: center;
  background: rgba(252, 249, 244, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(209, 197, 180, 0.58);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  left: 0;
  padding: 18px clamp(20px, 5vw, 80px);
  position: sticky;
  right: 0;
  top: 0;
  transition: box-shadow 220ms ease, padding 220ms ease;
  z-index: 100;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(142, 115, 65, 0.08);
  padding-bottom: 14px;
  padding-top: 14px;
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
}

.main-nav,
.header-actions {
  align-items: center;
  display: flex;
  gap: 22px;
}

.main-nav a,
.text-button,
.cart-button,
.back-link,
.link-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.text-button:hover,
.cart-button:hover,
.back-link:hover,
.link-button:hover {
  color: var(--bronze);
}

.main-nav a.is-active {
  color: var(--bronze);
  position: relative;
}

.main-nav a.is-active::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

.header-actions {
  justify-content: flex-end;
}

.cart-button span {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  margin-left: 6px;
  min-width: 22px;
  padding: 0 7px;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 1px;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 18px;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu-head,
.mobile-menu-label,
.mobile-menu-categories,
.menu-scrim {
  display: none;
}

.screen {
  display: none;
  min-height: 76vh;
}

.screen.is-active {
  animation: pageIn 540ms ease both;
  display: block;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  min-height: calc(100vh - 112px);
  padding: clamp(36px, 6vw, 86px) clamp(20px, 6vw, 88px) clamp(52px, 7vw, 96px);
}

.hero-copy {
  align-self: center;
  max-width: 620px;
}

.eyebrow,
.section-kicker {
  color: var(--bronze);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

.hero h1,
.page-heading h1,
.confirmation h1 {
  font-size: clamp(50px, 8vw, 112px);
}

.hero p,
.page-heading p,
.intro-band p,
.journal-strip h2,
.confirmation p,
.description {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button {
  border-radius: 4px;
  min-height: 50px;
  padding: 0 24px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--white);
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--bronze);
  color: var(--bronze);
}

.primary-button:hover,
.ghost-button:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.wide {
  width: 100%;
}

.hero-media {
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  width: 100%;
}

.intro-band,
.journal-strip {
  margin: 0 auto;
  max-width: 1060px;
  padding: clamp(72px, 10vw, 132px) clamp(22px, 5vw, 64px);
  text-align: center;
}

.intro-band h2,
.journal-strip h2 {
  font-size: clamp(36px, 5vw, 72px);
}

.editorial-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr;
  padding: 0 clamp(20px, 6vw, 88px) clamp(80px, 12vw, 150px);
}

.editorial-card {
  background: var(--surface-low);
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.editorial-card.large {
  grid-row: span 2;
}

.editorial-card img {
  height: 100%;
  transition: transform 700ms ease;
  width: 100%;
}

.editorial-card:hover img {
  transform: scale(1.045);
}

.editorial-card > div,
.editorial-card > h3 {
  background: rgba(252, 249, 244, 0.86);
  bottom: 24px;
  left: 24px;
  padding: 22px;
  position: absolute;
  right: 24px;
}

.editorial-card > h3 {
  font-size: 34px;
}

.editorial-card > div {
  display: grid;
  gap: 8px;
}

.editorial-card > div h3 {
  font-size: 34px;
  line-height: 1.08;
}

.editorial-card > div .eyebrow {
  margin-bottom: 0;
}

.page-heading {
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(54px, 8vw, 100px) 22px 42px;
  text-align: center;
}

.shop-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 0 clamp(20px, 6vw, 88px) clamp(80px, 10vw, 120px);
}

.filters {
  align-self: start;
  background: var(--surface-low);
  padding: 24px;
  position: sticky;
  top: 112px;
}

.filter-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  display: block;
  margin-top: 10px;
  min-height: 42px;
  padding: 0 16px;
  text-align: left;
  width: 100%;
}

.filter-chip.is-active {
  background: var(--ink);
  color: var(--surface);
}

.product-grid {
  display: grid;
  column-gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 48px;
}

.product-card {
  background: transparent;
  border: 0;
  color: inherit;
  display: grid;
  gap: 16px;
  padding: 0;
  text-align: left;
}

.product-image {
  aspect-ratio: 3 / 4;
  background: var(--surface-container);
  display: block;
  overflow: hidden;
}

.product-image img {
  height: 100%;
  transition: transform 650ms ease;
  width: 100%;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-meta {
  display: grid;
  gap: 8px;
  min-height: 68px;
}

.product-meta h3 {
  font-size: 26px;
  line-height: 1.12;
}

.product-meta p {
  color: var(--bronze);
  margin: 0;
}

.product-detail {
  display: grid;
  gap: clamp(34px, 5vw, 76px);
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  padding: clamp(38px, 6vw, 78px) clamp(20px, 6vw, 88px) clamp(80px, 10vw, 120px);
}

.main-product-image {
  aspect-ratio: 4 / 5;
  width: 100%;
}

.thumb-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.thumb-row img {
  aspect-ratio: 1;
  width: 100%;
}

.product-copy {
  align-self: center;
  max-width: 560px;
}

.product-copy h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.price {
  color: var(--bronze);
  font-size: 22px;
  font-weight: 600;
  margin: 18px 0;
}

.option-block {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 28px 0;
  padding: 22px 0;
}

.option-block span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.size-options {
  display: flex;
  gap: 10px;
}

.size-options button {
  background: var(--surface-low);
  border: 1px solid var(--line);
  height: 44px;
  min-width: 52px;
  outline: 0;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.size-options button.is-selected {
  background: var(--ink);
  color: var(--surface);
}

.size-options button:hover,
.size-options button:focus-visible {
  border-color: var(--bronze);
  transform: translateY(-1px);
}

.detail-list {
  color: var(--muted);
  line-height: 2;
  margin-top: 26px;
  padding-left: 18px;
}

.confirmation {
  margin: 0 auto;
  max-width: 900px;
  padding: clamp(70px, 12vw, 140px) 22px;
  text-align: center;
}

.order-card {
  background: var(--surface-low);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin: 38px auto;
  max-width: 620px;
  padding: 28px;
  text-align: left;
}

.order-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-drawer {
  background: rgba(28, 28, 25, 0.36);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms ease;
  z-index: 120;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-left: auto;
  max-width: 440px;
  padding: 26px;
  transform: translateX(100%);
  transition: transform 320ms ease;
  width: min(100%, 440px);
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.cart-items {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}

.cart-item {
  display: grid;
  gap: 14px;
  grid-template-columns: 76px 1fr auto;
}

.cart-item img {
  aspect-ratio: 1;
  width: 76px;
}

.cart-item h4,
.cart-item p {
  margin: 0;
}

.cart-item h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.cart-item p,
.cart-empty {
  color: var(--muted);
}

.remove-button {
  background: transparent;
  border: 0;
  color: var(--bronze);
  font-size: 20px;
}

.cart-total {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 22px 0;
}

.toast {
  background: var(--ink);
  bottom: 24px;
  color: var(--surface);
  left: 50%;
  opacity: 0;
  padding: 14px 20px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 20px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 100;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  animation: revealUp 760ms ease both;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 240ms;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 14px 18px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    align-items: stretch;
    background: rgba(252, 249, 244, 0.98);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100dvh;
    left: 0;
    max-width: 390px;
    overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
    position: fixed;
    top: 0;
    transform: translateX(-104%);
    transition: transform 260ms ease;
    width: min(88vw, 390px);
    z-index: 130;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    border-bottom: 1px solid rgba(209, 197, 180, 0.72);
    color: var(--ink);
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    min-height: 54px;
    padding: 18px 14px;
    border-left: 3px solid transparent;
    transition: all 180ms ease;
  }

  .main-nav a::after {
    color: var(--bronze);
    content: ">";
    font-weight: 700;
  }

  .main-nav a.is-active {
    color: var(--bronze) !important;
    background-color: var(--surface-low);
    border-left-color: var(--gold);
    font-weight: 700;
  }
  
  .main-nav a.is-active::before {
    display: none;
  }

  .mobile-menu-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .mobile-menu-head span {
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1;
  }

  .mobile-menu-label {
    color: var(--bronze);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 22px 0 8px;
    text-transform: uppercase;
  }

  .mobile-menu-categories {
    display: grid;
    gap: 10px;
    padding-top: 8px;
  }

  .mobile-menu-categories .filter-chip {
    margin-top: 0;
    min-height: 48px;
  }

  .menu-scrim {
    background: rgba(28, 28, 25, 0.34);
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 220ms ease;
    z-index: 40;
  }

  body.menu-open .menu-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .text-button {
    display: none;
  }

  .hero,
  .product-detail,
  .shop-layout,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-media {
    min-height: 420px;
  }

  .filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px;
    position: static;
    scroll-snap-type: x proximity;
  }

  .filters .eyebrow {
    display: none;
  }

  .filter-chip {
    margin-top: 0;
    min-width: max-content;
    scroll-snap-align: start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .top-strip {
    font-size: 10px;
  }

  .site-header {
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    font-size: 24px;
  }

  .cart-button {
    font-size: 0;
  }

  .cart-button::before {
    content: "Bag";
    font-size: 11px;
  }

  .hero-actions {
    display: grid;
  }

  .hero,
  .product-detail,
  .shop-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-media {
    min-height: 340px;
  }

  .product-grid,
  .order-card {
    grid-template-columns: 1fr;
  }

  .editorial-card {
    min-height: 340px;
  }

  .cart-panel {
    max-width: none;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    min-height: 54px;
  }

  .size-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .size-options button {
    min-width: 0;
    width: 100%;
  }
}

/* ==========================================================================
   FINANCIAL CONTROL SYSTEM STYLES (FINANCEIRO)
   ========================================================================== */

.finance-container {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* Internal navigation tabs */
.finance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.finance-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 10px 18px;
  text-transform: uppercase;
  transition: all 180ms ease;
  border-radius: 4px;
}

.finance-tab-btn:hover {
  color: var(--bronze);
  background: var(--surface-low);
}

.finance-tab-btn.is-active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

/* Panel content visibility */
.finance-sub-screen {
  display: none;
  animation: pageIn 400ms ease both;
}

.finance-sub-screen.is-active {
  display: block;
}

/* Header and filters */
.finance-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.finance-header-row h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
}

.filter-bar, .report-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-bar label, .report-filters label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.premium-select, .premium-input {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 14px;
  outline: none;
  transition: border-color 180ms ease;
  border-radius: 4px;
}

.premium-select:focus, .premium-input:focus {
  border-color: var(--gold);
}

/* KPI metric cards grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  background: var(--surface-low);
  border-top: 3px solid var(--line);
  padding: 24px 20px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(142, 115, 65, 0.04);
  transition: transform 180ms ease, border-top-color 180ms ease;
  display: flex;
  flex-direction: column;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--gold);
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--ink);
  margin-bottom: 6px;
  white-space: nowrap;
}

.metric-subtext {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.8;
  line-height: 1.4;
}

/* Alerts and banners */
.alerts-section {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  margin-bottom: 40px;
}

.alerts-section h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 18px;
}

.alerts-list {
  display: grid;
  gap: 12px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  animation: revealUp 300ms ease both;
}

.alert-item.danger {
  background: #fdf3f2;
  border-left: 4px solid #b83b3b;
  color: #8c2828;
}

.alert-item.warning {
  background: #fdfaf2;
  border-left: 4px solid var(--gold);
  color: #85642a;
}

.alert-item.success {
  background: #f3f9f5;
  border-left: 4px solid #3b7a57;
  color: #27523a;
}

.alert-icon {
  font-weight: 800;
  font-size: 16px;
}

.alert-empty {
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
}

/* Action panels and titles */
.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-actions h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}

/* Table Responsive and styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
}

.finance-table th, .finance-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.finance-table th {
  background: var(--surface-low);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.finance-table tbody tr:last-child td {
  border-bottom: none;
}

.finance-table tbody tr:hover {
  background: var(--surface-low);
}

/* Overdue highlight on rows */
.finance-table tbody tr.row-overdue {
  background: #fff8f8;
}

.finance-table tbody tr.row-overdue:hover {
  background: #fdf0f0;
}

.finance-table tbody tr.row-overdue td {
  border-bottom-color: rgba(184, 59, 59, 0.15);
}

/* Badge styling */
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge.success {
  background: #e1f2e8;
  color: #27523a;
}

.badge.pending {
  background: #fdf2d9;
  color: #85642a;
}

.badge.danger {
  background: #fddddd;
  color: #b83b3b;
}

.badge.tipo-fixo {
  background: #eef2f6;
  color: #475569;
}

.badge.tipo-var {
  background: #f3eef6;
  color: #6b21a8;
}

.badge.tipo-custo {
  background: #fef3c7;
  color: #d97706;
}

/* Action button icons/links */
.btn-action-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color 180ms ease;
}

.btn-action-icon:hover {
  color: var(--bronze);
}

.btn-action-icon.btn-delete {
  color: #b83b3b;
}

.btn-action-icon.btn-delete:hover {
  color: #8c2828;
}

/* Two columns panels */
.grid-two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.categories-panel, .direct-costs-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 4px;
}

.categories-panel h3, .direct-costs-panel h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

/* Chip/Tag container */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  min-height: 48px;
}

.finance-chip {
  background: var(--surface-low);
  border: 1px solid var(--line);
  padding: 6px 12px 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.btn-delete-chip {
  background: transparent;
  border: none;
  color: #b83b3b;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.btn-delete-chip:hover {
  color: #8c2828;
}

/* Inline form for adding chips */
.premium-form-inline {
  display: flex;
  gap: 10px;
}

.premium-form-inline .premium-input {
  flex: 1;
}

.premium-form-inline button {
  min-height: 38px;
  font-size: 10px;
  padding: 0 16px;
}

/* Modals */
.finance-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 25, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 240ms ease;
  padding: 20px;
}

.finance-modal.is-open {
  display: flex;
  opacity: 1;
}

.finance-modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
  animation: revealUp 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}

.modal-header {
  background: var(--surface-low);
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0;
  color: var(--ink);
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.close-modal-btn:hover {
  color: var(--ink);
}

.premium-form {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.modal-footer button {
  min-height: 44px;
  font-size: 11px;
}

/* Reports and SVG Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.chart-card h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: center;
}

.chart-wrapper {
  height: 220px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-wrapper svg {
  width: 100%;
  height: 100%;
}

.report-summary-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 4px;
}

.report-summary-panel h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 20px;
}

/* Summary table specifics */
.summary-table th, .summary-table td {
  padding: 14px 18px;
}

.summary-table tbody tr.row-total {
  font-weight: 700;
  background: var(--surface-low);
}

/* Responsive Overrides */
@media (max-width: 980px) {
  .finance-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .premium-form-inline {
    flex-direction: column;
  }
  
  .premium-form-inline button {
    width: 100%;
  }

  .finance-tabs {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
  }

  .finance-tab-btn {
    scroll-snap-align: start;
  }
}

