* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
:root {
  --brand-orange: #f79c49;
  --orange-dark: #df6e10;
  --submit-blue: #2e4490;
  --cream: #f7f2ea;
  --charcoal: #1f2430;
  --panel: #fffdf9;
  --border: #e8ded0;
  --muted: #6f6a63;
  --green: #2f7d4a;
  --green-soft: #d9efe1;
  --red: #b14b43;
  --red-soft: #f7ddd8;
  --yellow: #a47a19;
  --yellow-soft: #f6eccb;
  --blue-soft: #dce9fb;
  --shadow: 0 20px 45px rgba(31, 36, 48, 0.08);
}
h2 {
  font-size: 1.4rem;
}
body {
  font-family: "Lato", sans-serif;
}

.site-footer {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding: 1.4rem 1rem;
  background: #20ae84;
  color: #fff;
}

.site-footer-inner {
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 1rem;
  align-items: center;
}

.site-footer-brand,
.site-footer-contact,
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.site-footer-brand,
.site-footer-contact {
  flex-direction: column;
}

.site-footer-brand strong {
  font-size: 1rem;
}

.site-footer span,
.site-footer address,
.site-footer a {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
}

.site-footer address {
  margin: 0;
  font-style: normal;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

.site-footer-links {
  justify-content: flex-end;
  white-space: nowrap;
}

.auth-layout {
  grid-template-rows: minmax(100vh, auto) auto;
}

.auth-layout .brand-panel,
.auth-layout .auth-panel {
  min-height: 100vh;
}

.auth-layout .site-footer {
  margin-top: 0;
}

.field .password-control {
  position: relative;
}

.field .password-control input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.password-toggle:hover,
.password-toggle:focus {
  background: rgba(31, 36, 48, 0.06);
  color: var(--charcoal);
}

.auth-home-link {
  margin-top: 0.7rem;
}

.auth-home-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.error-main {
  min-height: calc(100vh - 210px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.error-state {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-content .error-state {
  width: 100%;
}

.error-state-public {
  margin: 0 auto;
}

.error-code {
  display: grid;
  place-items: center;
  width: 124px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.error-copy h1,
.error-copy h2 {
  margin: 0.2rem 0 0.6rem;
  color: var(--charcoal);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.error-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .error-state {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .error-code {
    width: 96px;
    margin: 0 auto;
    font-size: 2.1rem;
  }

  .error-copy p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .error-actions {
    justify-content: center;
  }
}

.legal-page {
  min-height: 100vh;
  background: #f4f6f8;
  color: var(--charcoal);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  padding: 1rem 0;
}

.legal-header img {
  width: 125px;
  height: auto;
  object-fit: contain;
}

.legal-main {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.legal-document {
  display: grid;
  gap: 0.85rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-document h1,
.legal-document h2,
.legal-document p {
  margin: 0;
}

.legal-document h1 {
  color: #263a7c;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
}

.legal-document h2 {
  margin-top: 0.65rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.legal-document p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-document a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.legal-document a:hover,
.legal-document a:focus {
  text-decoration: underline;
}

.producer-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #e8fbff 0 420px, #f6fff5 420px 880px, #fffaf2 880px 100%);
  color: #18323a;
}

.producer-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.producer-brand img {
  width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.producer-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
}

.producer-nav-actions,
.producer-hero-actions,
.producer-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.producer-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(13, 74, 82, 0.12);
}

.producer-page .btn-light {
  border-color: #ff9f68;
  background: #ff9f68;
  color: #15313a;
}

.producer-page .btn-light:hover,
.producer-page .btn-light:focus {
  border-color: #ffb57f;
  background: #ffb57f;
  color: #15313a;
}

.producer-page .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.producer-page .btn-outline-light:hover,
.producer-page .btn-outline-light:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.producer-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: 7rem 1rem 4rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, #8edff0 0%, #bff2f3 50%, #6fcb74 100%);
  color: #fff;
}

.producer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 55, 67, 0.82) 0%,
      rgba(10, 92, 98, 0.54) 48%,
      rgba(255, 159, 104, 0.2) 100%
    ),
    linear-gradient(180deg, rgba(142, 223, 240, 0.24), rgba(61, 167, 102, 0.34));
}

.producer-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 130px;
  background:
    radial-gradient(ellipse at 8% 100%, rgba(48, 142, 65, 0.86) 0 26%, transparent 27%),
    radial-gradient(ellipse at 92% 100%, rgba(92, 184, 81, 0.72) 0 22%, transparent 23%),
    linear-gradient(180deg, rgba(21, 105, 86, 0), rgba(21, 105, 86, 0.52));
  pointer-events: none;
}

.producer-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.producer-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.producer-hero h1 {
  max-width: 780px;
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.producer-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 0 1.45rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.6;
}

.producer-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.producer-hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.producer-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 3.4rem 0;
}

.producer-section-head {
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.producer-section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0;
  color: #14343d;
}

.producer-section p {
  color: #5b6f6d;
  line-height: 1.6;
}

.producer-page .eyebrow {
  color: #118b72;
}

.producer-hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.producer-split-section {
  width: 100%;
  max-width: none;
  padding: 3.5rem max(1rem, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, rgba(232, 251, 255, 0.86), rgba(246, 255, 245, 0.94));
  border-top: 1px solid rgba(79, 174, 162, 0.22);
  border-bottom: 1px solid rgba(79, 174, 162, 0.22);
}

.producer-client-area {
  padding-top: 2rem;
}

.producer-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1rem;
  align-items: center;
}

.producer-pricing > div:first-child {
  max-width: 760px;
}

.producer-pricing-box {
  padding: 1.2rem;
  border: 1px solid rgba(32, 174, 132, 0.32);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.producer-pricing-box span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.producer-pricing-box strong {
  display: block;
  margin: 0.2rem 0;
  color: #20ae84;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  font-weight: 900;
}

.producer-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.producer-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.producer-capability-grid.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.producer-capability-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.producer-feature-card {
  min-height: 100%;
  padding: 1.1rem;
  border: 1px solid rgba(69, 169, 139, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(21, 77, 83, 0.08);
}

.producer-feature-card i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #dff7dc, #d7f4ff);
  color: #168c70;
  font-size: 1.25rem;
}

.producer-feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 900;
  color: #19383d;
}

.producer-feature-card p {
  margin: 0;
  font-size: 0.92rem;
}

.producer-cta {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.2rem max(1rem, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    linear-gradient(135deg, #0e5667 0%, #168c70 58%, #71bd4d 100%);
  color: #fff;
}

.producer-cta .eyebrow,
.producer-cta p,
.producer-cta h2 {
  color: #fff;
}

.producer-cta h2 {
  max-width: 760px;
}

.producer-page .site-footer {
  margin-top: 0;
  background: #0e5667;
}

@media (max-width: 820px) {
  .site-footer {
    margin-top: 1.25rem;
    padding: 1.25rem 0.75rem;
  }

  .site-footer-inner {
    width: min(100%, 560px);
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer-brand,
  .site-footer-contact,
  .site-footer-links {
    align-items: center;
    justify-content: center;
  }

  .site-footer-links {
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .producer-feature-grid,
  .producer-capability-grid.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .producer-nav {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  .producer-hero {
    min-height: 560px;
    padding-top: 8.5rem;
  }

  .producer-pricing,
  .producer-feature-grid,
  .producer-capability-grid,
  .producer-capability-grid.three-cols,
  .producer-capability-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .producer-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .auth-layout {
    grid-template-rows: auto auto auto;
  }

  .auth-layout .brand-panel {
    min-height: 260px;
  }

  .auth-layout .auth-panel {
    min-height: 0;
  }
}

button[type="submit"]:not(
    :where(
        .dashboard-sidebar,
        .dashboard-header,
        .navbar,
        .home-navbar,
        .cart-menu,
        .notification-menu
      )
      button
  ),
input[type="submit"],
.btn-success:not(
  :where(
      .dashboard-sidebar,
      .dashboard-header,
      .navbar,
      .home-navbar,
      .cart-menu,
      .notification-menu
    )
    .btn
),
.btn-primary:not(
  :where(
      .dashboard-sidebar,
      .dashboard-header,
      .navbar,
      .home-navbar,
      .cart-menu,
      .notification-menu
    )
    .btn
),
.submitbutton {
  min-height: 40px;
  border: 1px solid var(--submit-blue) !important;
  border-radius: 30px;
  background-color: var(--submit-blue) !important;
  color: #fff !important;
  font-weight: 700;
}

button[type="submit"]:not(
    :where(
        .dashboard-sidebar,
        .dashboard-header,
        .navbar,
        .home-navbar,
        .cart-menu,
        .notification-menu
      )
      button
  ):hover,
input[type="submit"]:hover,
.btn-success:not(
    :where(
        .dashboard-sidebar,
        .dashboard-header,
        .navbar,
        .home-navbar,
        .cart-menu,
        .notification-menu
      )
      .btn
  ):hover,
.btn-primary:not(
    :where(
        .dashboard-sidebar,
        .dashboard-header,
        .navbar,
        .home-navbar,
        .cart-menu,
        .notification-menu
      )
      .btn
  ):hover,
.submitbutton:hover {
  border-color: #263a7c !important;
  background-color: #263a7c !important;
  color: #fff !important;
}

.home-page {
  min-height: 100vh;
  background: white;
  color: var(--charcoal);
}

.home-navbar {
  border-bottom: 1px solid var(--border);
}

.home-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0;
  line-height: 1;
}

.home-navbar .navbar-brand img {
  display: block;
  width: 150px;
  max-height: 44px;
  height: auto;
  object-fit: contain;
}

.app-navbar {
  border-bottom: 1px solid var(--border);
}

.app-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.app-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.app-nav-actions .btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.app-nav-search {
  width: clamp(220px, 24vw, 340px);
  min-width: 0;
}

.app-nav-search input {
  border-radius: 30px;
  min-width: 0;
}

.app-nav-search .btn,
.notification-button {
  min-height: 40px;
}

.home-nav-actions .btn {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 30px;
}

.home-nav-actions .btn i {
  font-size: 1rem;
}
.home-navbar .container,
.home-nav-actions,
.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-navbar .container {
  justify-content: space-between;
}

.home-main {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.home-hero {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
}

.home-page.has-home-search .home-main {
  align-items: start;
  gap: 1rem;
  padding-top: 1.25rem;
}

.home-page.has-home-search .home-hero {
  display: grid;
  gap: 0.75rem;
}

.home-hero h1 {
  max-width: 880px;
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 900;
}

.home-page.has-home-search .home-hero h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.home-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.home-page.has-home-search .home-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
  line-height: 1.45;
}

.home-hero-actions {
  flex-wrap: wrap;
}

.home-search {
  max-width: 920px;
  display: flex;
  align-items: end;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-search label {
  display: grid;
  flex: 1;
  gap: 0.3rem;
  min-width: 0;
}

.home-search label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.home-search input {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  padding: 0.45rem 0.65rem;
  color: var(--charcoal);
}

.home-date-field {
  position: relative;
}

.home-date-field .home-date-placeholder {
  position: absolute;
  top: 50%;
  left: 0.65rem;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.home-date-field:not(.is-filled) input[type="date"] {
  color: transparent;
}

.home-date-field:not(.is-filled) input[type="date"]:focus {
  color: var(--charcoal);
}

.home-date-field.is-filled .home-date-placeholder,
.home-date-field:focus-within .home-date-placeholder {
  opacity: 0;
}

.home-search button {
  min-height: 48px;
  white-space: nowrap;
  padding: 10px 20px;
}

.home-search-progress {
  width: min(920px, 100%);
  display: none;
  gap: 0.5rem;
  margin-top: -0.35rem;
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 800;
}

.home-search-progress.is-visible {
  display: grid;
}

.home-search-progress-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(44, 188, 99, 0.16);
}

.home-search-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-green), #8be7ad);
  animation: home-search-progress 1.1s ease-in-out infinite;
}

@keyframes home-search-progress {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(240%);
  }
}

.home-page.has-home-search .home-search {
  margin-bottom: 0;
  padding: 0.55rem;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31, 36, 48, 0.1);
}

.home-page.has-home-search .home-search input,
.home-page.has-home-search .home-search button {
  min-height: 40px;
}

.home-page.has-home-search .home-search button {
  padding: 8px 16px;
}

.home-page.has-home-search .home-search-progress {
  margin-top: 0.65rem;
}

.home-results {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
}

.home-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-results-head h2 {
  margin: 0;
}

.home-results-head span {
  color: var(--muted);
  font-weight: 700;
}

.home-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-event-card {
  display: grid;
  gap: 0.75rem;
  min-height: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.home-event-card img,
.home-event-image-empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cream);
}

.home-event-image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 2rem;
}

.home-event-card strong,
.home-event-card span {
  display: block;
}

.home-event-company {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.home-event-company img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 0.18rem;
}

.home-event-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-event-price {
  margin-top: 0.45rem;
  color: var(--green) !important;
  font-size: 1rem !important;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .app-navbar .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-nav-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .app-nav-search {
    flex: 1 1 260px;
    width: auto;
  }
}

@media (max-width: 640px) {
  .home-navbar .container,
  .home-nav-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-navbar .container {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .home-nav-actions,
  .home-nav-actions .btn,
  .app-nav-search {
    width: 100%;
  }

  .home-navbar .container {
    align-items: center;
    padding-bottom: 0.65rem;
  }

  .home-nav-actions {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    width: 100%;
  }

  .home-nav-actions .btn {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .home-nav-actions .btn i {
    font-size: 0.85rem;
  }

  .home-nav-actions > .home-hero-actions {
    font-size: 0.85rem;
  }

  .home-nav-actions .notification-dropdown {
    position: static;
    width: auto;
  }

  .home-nav-actions .cart-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .app-nav-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 0.35rem;
  }

  .app-nav-actions .btn {
    min-height: 34px;
    padding: 6px 7px;
    border-radius: 16px;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .app-nav-actions .btn i {
    font-size: 0.86rem;
  }

  .app-nav-search {
    grid-column: 1 / -1;
    order: 10;
  }

  .app-nav-search input {
    min-height: 34px;
    font-size: 0.78rem;
  }

  .app-nav-search .btn,
  .notification-button {
    min-height: 34px;
  }

  .app-nav-search .btn {
    width: 34px;
    min-width: 34px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .notification-dropdown {
    width: 100%;
  }

  .home-search,
  .home-results-head {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search .btn {
    width: 100%;
  }

  .home-event-grid {
    grid-template-columns: 1fr;
  }
}
.nav-items {
  list-style: none;
}
.greeting {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  margin-top: 20px;
}

.home-page.has-home-search .greeting {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0;
}

.home-page.has-home-search .greeting h3 {
  margin: 0;
  font-size: 1rem;
}

.home-client-avatar {
  width: 84px;
  height: 84px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #2e4490;
  box-shadow: 0 12px 28px rgba(31, 36, 48, 0.14);
}

.home-page.has-home-search .home-client-avatar {
  width: 46px;
  height: 46px;
  border-width: 2px;
  box-shadow: 0 8px 18px rgba(31, 36, 48, 0.12);
}

.home-avatar-form {
  margin: 0;
}

.home-avatar-control {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.home-avatar-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.home-avatar-control span {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2e4490;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(31, 36, 48, 0.18);
}

.home-page.has-home-search .home-avatar-control span {
  width: 20px;
  height: 20px;
  border-width: 1px;
  font-size: 0.7rem;
}

.home-avatar-control:hover .home-client-avatar {
  filter: brightness(0.92);
}
/*icons */
.icon-plus {
  filter: brightness(0) invert(1);
}
.icon-plus-search {
  filter: invert(41%) sepia(86%) saturate(394%) hue-rotate(104deg)
    brightness(91%) contrast(85%);
}
.icon-plus-search:hover {
  filter: brightness(0) invert(1);
}
.resumo {
  border: 1px solid rgba(232, 222, 208, 0.9);
  border-radius: 10px;
  padding: 10px;
  color: white;
  background: #1eaf86;
}
.submitbutton {
  background: #f79c49;
  padding: 0.5em;
  font-size: 20px;
  border: none;
}
.submitbutton:hover {
  background: orange;
}
.grid-dashboard {
  margin: 10px;
  background-color: white;
  box-shadow: 2px 2px 2px 1px rgba(225, 225, 225, 0.2);
}
.grid-dashboard p {
  color: darkslategray;
}
.titlecard {
  font-size: 15px;
  font-weight: bold;
  padding: 10px;
}
.panel-card {
  border: 1px solid rgba(232, 222, 208, 0.9);
  border-radius: 10px;
  margin: 5px;
  padding: 10px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.event-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.event-table-admin {
  min-width: 1020px;
}

.event-table th,
.event-table td {
  padding: 0.72rem 0.78rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.event-table thead th {
  color: var(--muted);
  background: #fffaf3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-table tbody tr:last-child td {
  border-bottom: 0;
}

.event-cover-col {
  width: 74px;
}

.event-table-client .event-title-col {
  width: 26%;
}

.event-table-client .event-date-col {
  width: 15%;
}

.event-table-client .event-location-col {
  width: 25%;
}

.event-table-client .event-price-col {
  width: 12%;
}

.event-table-client .event-actions-col {
  width: 92px;
}

.event-table-admin .event-title-col {
  width: 19%;
}

.event-table-admin .event-date-col {
  width: 11%;
}

.event-table-admin .event-location-col {
  width: 18%;
}

.event-table-admin .event-price-col,
.event-table-admin .event-sold-col,
.event-table-admin .event-revenue-col,
.event-table-admin .event-status-col {
  width: 10%;
}

.event-table-admin .event-actions-col {
  width: 138px;
}

.event-img-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover; /* Faz a imagem preencher o quadrado sem distorcer */
  border-radius: 8px;
  background-color: #f0f0f0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}
/*-- STATUS --*/

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.status-pill.draft {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.status-pill.published {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.sold_out {
  background: var(--blue-soft);
  color: #2d64b4;
}

.status-pill.cancelled {
  background: var(--red-soft);
  color: var(--red);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head-wrap {
  flex-wrap: wrap;
}

.primary-link {
  background: var(--orange-dark);
  font-size: 12px;
  color: white;
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  font-weight: 700;
}

.highlight-card {
  padding: 1.4rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff4e8 0%, #fffdf9 100%);
  border: 1px solid #f2d5b4;
}

.highlight-card h3 {
  margin-bottom: 0.4rem;
}

.highlight-meta,
.highlight-kpis,
.table-actions,
.filter-inline,
.event-row-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.table-actions {
  gap: 0.45rem;
}

.action-icon-btn {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.cart-summary {
  margin-bottom: 1rem;
}

.filter-date-field {
  display: grid;
  gap: 0.25rem;
}

.filter-date-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-items {
  display: grid;
  gap: 0.65rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.cart-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-menu {
  width: min(420px, calc(100vw - 24px));
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  box-shadow: var(--shadow);
}

.cart-menu .btn {
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.cart-menu .btn-sm {
  min-width: 32px;
  min-height: 32px;
  padding: 0.32rem 0.65rem;
  border-radius: 7px;
}

.cart-menu .btn.w-100 {
  width: 100%;
}

.cart-menu-items {
  max-height: 320px;
  overflow: auto;
}

.cart-menu-item {
  align-items: flex-start;
}

.cart-menu-item strong {
  display: block;
  line-height: 1.2;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}

.checkout-main,
.checkout-summary {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkout-main {
  padding: 1.2rem;
}

.checkout-summary {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.checkout-summary h3 {
  margin: 0;
  font-size: 1.05rem;
}

.checkout-items {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.checkout-item,
.gateway-panel,
.summary-line,
.summary-recipient,
.stripe-key-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
}

.checkout-item span,
.gateway-panel span,
.summary-line span,
.summary-recipient span,
.stripe-key-box span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.gateway-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem;
}

.gateway-panel strong,
.summary-recipient strong,
.stripe-key-box code {
  overflow-wrap: anywhere;
}

.summary-line,
.summary-recipient,
.stripe-key-box {
  padding: 0.8rem;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stripe-key-box code {
  display: block;
  margin-top: 0.25rem;
  color: var(--charcoal);
  white-space: normal;
}

.company-stripe-actions {
  margin-bottom: 1rem;
}

.company-public-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.company-image-preview {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border: 1px dashed #aaa;
  border-radius: 8px;
  background: #f8f9fa;
}

.company-image-preview img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.image-upload-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.image-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.image-upload-field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.company-form-actions {
  margin-top: 1.5rem;
}

.payment-method-panel {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0;
  border: 0;
}

.payment-method-panel legend {
  margin: 0;
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 800;
}

.attendee-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.attendee-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.attendee-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.attendee-panel-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.attendee-list {
  display: grid;
  gap: 0.75rem;
}

.attendee-card {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.attendee-card legend {
  float: none;
  width: auto;
  margin: 0;
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 800;
}

.attendee-card legend span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.attendee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.attendee-grid label {
  display: grid;
  gap: 0.35rem;
}

.attendee-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.payment-method-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.payment-method-option {
  cursor: pointer;
}

.payment-method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-option span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--charcoal);
  font-weight: 800;
}

.payment-method-option i {
  color: var(--green);
  font-size: 1.05rem;
}

.payment-method-option input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 2px rgba(47, 125, 74, 0.12);
}

.payment-method-option input:focus-visible + span {
  outline: 3px solid rgba(47, 125, 74, 0.25);
  outline-offset: 2px;
}

.payment-details-panel {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.payment-details-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.pix-payment-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.pix-qr-box {
  display: grid;
  place-items: center;
  width: 184px;
  min-height: 184px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fff;
}

.pix-qr-box .bi {
  color: var(--green);
  font-size: 4.5rem;
}

.pix-instruction-box {
  display: grid;
  gap: 0.45rem;
}

.pix-instruction-box span,
.card-payment-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.pix-instruction-box code {
  display: block;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  overflow-wrap: anywhere;
}

.pix-instruction-box .btn {
  justify-self: start;
}

.pix-instruction-box small {
  min-height: 1.2em;
  color: var(--muted);
}

.card-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.card-payment-grid label {
  display: grid;
  gap: 0.35rem;
}

.checkout-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.checkout-stripe-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(47, 125, 93, 0.14);
  border-radius: 8px;
  background: rgba(47, 125, 93, 0.07);
}

.checkout-return-card {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkout-return-card h2 {
  margin-bottom: 0.55rem;
}

.checkout-return-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.checkout-return-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 1.8rem;
}

.checkout-return-card.success .checkout-return-icon {
  background: var(--green-soft);
  color: var(--green);
}

.checkout-return-card.canceled .checkout-return-icon {
  background: var(--red-soft);
  color: var(--red);
}

.profile-panel {
  padding: 1.2rem;
}

.profile-form {
  display: grid;
  gap: 1rem;
}

.operation-scan-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.operation-event-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 0.6rem;
  width: min(560px, 100%);
}

.operation-scan-form label {
  display: grid;
  gap: 0.35rem;
}

.operation-scan-form label span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-photo-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #2e4490;
  box-shadow: 0 12px 28px rgba(31, 36, 48, 0.14);
}

.form-grid.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ticket-grid {
  display: grid;
  gap: 1rem;
}

.ticket-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.ticket-head h2 {
  margin: 0;
}

.ticket-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 1rem;
  padding: 1rem;
}

.ticket-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ticket-info div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
  background: #fff;
}

.ticket-info span,
.ticket-info small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.ticket-info strong {
  display: block;
  overflow-wrap: anywhere;
}

.ticket-qr-area {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.65rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fff;
}

.ticket-qr {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.ticket-qr-fallback {
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
  text-align: center;
}

.ticket-qr-area code {
  max-width: 100%;
  color: var(--charcoal);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
  text-align: center;
}

.operation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.operation-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}

.operation-tab.active,
.operation-tab:hover {
  border-color: rgba(34, 139, 92, 0.45);
  background: #eef8f1;
  color: var(--green);
}

.operation-confirmed-panel {
  margin-bottom: 1.25rem;
}

.operation-confirmed-panel + #validar-qr,
#validar-qr + .panel-card {
  margin-top: 1.25rem;
}

.operation-confirmed-table-wrap {
  margin-top: 0.85rem;
  padding: 0.35rem;
  border: 1px solid rgba(232, 222, 208, 0.85);
  border-radius: 8px;
  background: #fffaf3;
}

.operation-confirmed-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0 0.55rem;
}

.operation-confirmed-table thead th {
  padding: 0.45rem 0.75rem;
  border: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.operation-confirmed-table tbody td {
  padding: 0.85rem 0.75rem;
  border: solid rgba(232, 222, 208, 0.82);
  border-width: 1px 0;
  background: #fff;
  vertical-align: middle;
}

.operation-confirmed-table tbody td:first-child {
  border-left-width: 1px;
  border-radius: 8px 0 0 8px;
  font-weight: 700;
  white-space: nowrap;
}

.operation-confirmed-table tbody td:last-child {
  border-right-width: 1px;
  border-radius: 0 8px 8px 0;
}

.operation-confirmed-table code {
  display: inline-block;
  max-width: 240px;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  background: #f6efe5;
  color: var(--charcoal);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.operation-scanner {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.operation-scanner[hidden] {
  display: none;
}

.operation-scanner video {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111827;
  object-fit: cover;
}

.operation-scanner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
}

.operation-entry-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: 1rem;
  align-items: start;
}

.operation-entry-option {
  display: grid;
  gap: 0.65rem;
  min-height: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.operation-entry-option > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.operation-scan-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
}

.operation-scan-form label,
.operation-scan-form span {
  display: block;
}

.operation-scan-form span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.25rem;
}

.operation-result {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.operation-result-danger {
  border-color: rgba(170, 40, 40, 0.28);
  background: #fff7f6;
}

.operation-ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.operation-ticket-grid div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
}

.operation-ticket-grid span,
.operation-ticket-grid small,
.operation-ticket-grid strong,
.operation-ticket-grid code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.operation-ticket-grid span,
.operation-ticket-grid small {
  color: var(--muted);
}

.operation-confirm-form {
  display: flex;
  justify-content: flex-end;
}

.operation-confirmed-row > td {
  background: #eef8f1;
  border-color: rgba(34, 139, 92, 0.28);
}

.operation-legacy-confirmed-list {
  display: none;
}

@media (max-width: 860px) {
  .operation-entry-grid,
  .operation-scan-form,
  .operation-ticket-grid {
    grid-template-columns: 1fr;
  }

  .operation-scanner-actions,
  .operation-confirm-form {
    align-items: stretch;
    flex-direction: column;
  }
}

.sales-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px auto;
  gap: 0.6rem;
  width: min(760px, 100%);
}

.sales-list {
  display: grid;
  gap: 1rem;
}

.sale-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.sale-card-head,
.sale-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.sale-card-head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.sale-card-head span,
.sale-item span,
.sale-item small,
.sale-customer-grid span {
  color: var(--muted);
}

.sale-customer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.sale-customer-grid div,
.sale-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
}

.sale-customer-grid span,
.sale-customer-grid strong,
.sale-item span,
.sale-item strong,
.sale-item small {
  display: block;
  overflow-wrap: anywhere;
}

.sale-items {
  display: grid;
  gap: 0.65rem;
  padding: 0 1rem 1rem;
}

.sale-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sale-ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.sale-ticket-copy {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fff;
}

.sale-ticket-copy code {
  max-width: 100%;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
  text-align: center;
  color: var(--charcoal);
}

.sale-ticket-copy strong,
.sale-ticket-copy small {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.sale-ticket-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.sale-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.sale-actions {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.ticket-validation-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--cream);
}

.ticket-validation-card {
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.ticket-validation-card h1 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.6rem;
}

.ticket-validation-card span {
  display: block;
  overflow-wrap: anywhere;
}

.ticket-buy-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ticket-quantity-input {
  width: 74px;
  min-width: 74px;
  text-align: center;
}

.event-detail-row > td {
  background: #fffaf3;
  border-top: 0;
}

.event-detail-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.event-detail-panel.collapse:not(.show) {
  display: none;
}

.event-detail-panel.collapse.show {
  display: grid;
}

@media (max-width: 720px) {
  .checkin-table,
  .checkin-table tbody,
  .checkin-table tr,
  .checkin-table td,
  .event-table,
  .event-table tbody,
  .event-table tr,
  .event-table td {
    display: block;
    width: 100%;
  }

  .event-table {
    min-width: 0;
    table-layout: auto;
  }

  .checkin-table thead,
  .event-table thead {
    display: none;
  }

  .checkin-table tbody,
  .event-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .checkin-table tr,
  .event-table tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }

  .checkin-table td,
  .event-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .checkin-table td:last-child,
  .event-table td:last-child {
    border-bottom: 0;
  }

  .checkin-table td::before,
  .event-table td::before {
    content: attr(data-label);
    grid-column: 1;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .checkin-table td > *,
  .event-table td > * {
    grid-column: 2;
    min-width: 0;
  }

  .checkin-table td,
  .checkin-table code,
  .event-table td strong,
  .event-table .table-muted {
    overflow-wrap: anywhere;
  }

  .event-table .event-img-thumbnail {
    justify-self: start;
  }

  .event-table .table-actions {
    justify-content: flex-start;
  }

  .event-table .event-detail-row {
    margin-top: -0.75rem;
    border-top: 0;
  }

  .event-table .event-detail-cell {
    display: block;
    padding: 0.75rem;
    text-align: left;
  }

  .event-table .event-detail-cell::before {
    content: none;
  }
}

.event-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.event-detail-grid div,
.event-lote-item,
.sector-option {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.event-detail-grid span,
.event-lote-item span,
.event-detail-note {
  color: var(--muted);
}

.event-detail-grid span,
.event-lote-item span {
  display: block;
  font-size: 0.84rem;
}

.event-detail-grid strong {
  display: block;
  margin-top: 0.2rem;
}

.event-lote-list {
  display: grid;
  gap: 0.55rem;
}

.event-lote-list h3 {
  margin: 0;
  font-size: 1rem;
}

.event-lote-options {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.event-lote-options legend {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .gateway-panel {
    grid-template-columns: 1fr;
  }

  .payment-method-options {
    grid-template-columns: 1fr;
  }

  .profile-photo-row,
  .form-grid.two-cols,
  .attendee-grid,
  .pix-payment-grid,
  .card-payment-grid,
  .operation-scan-form,
  .operation-event-filter {
    grid-template-columns: 1fr;
  }

  .pix-qr-box {
    width: 100%;
  }

  .checkout-item,
  .summary-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-body,
  .ticket-info,
  .sale-customer-grid,
  .sales-filter {
    grid-template-columns: 1fr;
  }

  .ticket-head,
  .sale-card-head,
  .sale-item,
  .sale-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.event-lote-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
}

.event-lote-option {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.event-lote-option input {
  margin: 0;
}

.event-lote-option span {
  color: var(--muted);
  font-size: 0.84rem;
}

.event-sector-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sector-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.sector-option input {
  margin: 0;
}

.event-purchase-form {
  display: grid;
  gap: 0.9rem;
}

.event-purchase-form .ticket-buy-form label {
  font-weight: 700;
}

@media (max-width: 768px) {
  .event-detail-grid,
  .event-sector-options,
  .event-lote-item,
  .event-lote-option {
    grid-template-columns: 1fr;
  }
}

.notification-dropdown {
  position: relative;
}

.notification-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 18px;
}

.notification-menu {
  width: min(360px, calc(100vw - 24px));
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notification-head,
.notification-item {
  display: flex;
  gap: 0.35rem;
  flex-direction: column;
}

.notification-head {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.notification-head span,
.notification-item span,
.notification-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.notification-list {
  display: grid;
  gap: 0.55rem;
  max-height: 300px;
  overflow-y: auto;
  margin: 0.7rem 0;
}

.notification-item {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.notification-item.unread {
  border-color: var(--green);
  background: var(--green-soft);
}

.notification-item p,
.notification-empty {
  margin: 0;
}

.highlight-meta span,
.event-row-meta span {
  padding: 0.45rem 0.75rem;
  background: rgba(247, 156, 73, 0.12);
  border-radius: 999px;
  font-size: 0.9rem;
}

.highlight-kpis {
  margin-top: 1rem;
}

.highlight-kpis div,
.mini-metrics div,
.info-item {
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
}

.highlight-kpis strong,
.mini-metrics strong,
.info-item strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--charcoal);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.permission-badge {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.permission-badge.admin {
  background: var(--green-soft);
  color: var(--green);
}

.permission-badge.viewer {
  background: var(--yellow-soft);
  color: var(--yellow);
}
.event-row-card {
  padding: 10px;
}
.stat-card p,
.info-item strong,
.ranking-item p,
.event-row-card p,
.table-muted,
.empty-state,
.form-note {
  color: var(--muted);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card,
.panel-card {
  background: var(--panel);
  border: 1px solid rgba(232, 222, 208, 0.9);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 10px;
}

.stat-card span,
.info-item span,
.mini-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin: 0.25rem 0 0.4rem;
}

.stat-card p,
.info-item strong,
.ranking-item p,
.event-row-card p,
.table-muted,
.empty-state,
.form-note {
  color: var(--muted);
}

.stat-card.accent {
  background: #2e4490;
  color: #fff;
}

.stat-card.accent span,
.stat-card.accent p {
  color: rgba(255, 255, 255, 0.72);
}

.rich-text-field {
  display: grid;
  gap: 0.5rem;
}

.transport-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}

.transport-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.transport-option .form-check-input {
  margin: 0;
}

.rich-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9fa;
}

.rich-text-tool {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
}

.rich-text-tool:hover,
.rich-text-tool:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.rich-text-tool strong,
.rich-text-tool em,
.rich-text-underline {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
}

.rich-text-underline {
  font-weight: 700;
  text-decoration: underline;
}

.rich-text-size {
  min-height: 38px;
  max-width: 165px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
}

.rich-text-editor {
  min-height: 180px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  line-height: 1.6;
  outline: none;
}

.rich-text-editor:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(37, 171, 134, 0.14);
}

.rich-text-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}

.rich-text-input {
  display: none;
}
@media (max-width: 992px) {
  .hero-card,
  .stats-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.public-event-page {
  background: #fffaf3;
  color: var(--charcoal);
}

.public-event-main {
  padding: 2rem 0 3rem;
}

.public-event-hero {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.public-event-image {
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #f1ece4;
}

.public-event-image-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: var(--muted);
  font-size: 5rem;
}

.public-event-content {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.public-event-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-direction: column;
}

.public-company-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--charcoal);
  font-size: 1rem;
  font-weight: 700;
}

.public-company-brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  padding: 0;
}

.public-event-title-row h1 {
  margin: 0;
  color: #263a7c;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.public-event-page .eyebrow {
  color: #25ab86;
}

.public-event-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.public-event-facts div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 68px;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.public-event-facts i {
  color: var(--green);
  font-size: 1.15rem;
}

.public-event-description {
  position: relative;
  margin: 0;
  padding: 1rem 1rem 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.public-event-description::before {
  content: "";
  position: absolute;
  inset: 1rem auto 1rem 0;
  width: 4px;
  border-radius: 999px;
  background: var(--green);
}

.public-event-description h2 {
  margin: 0 0 0.45rem;
  color: #263a7c;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.public-event-description .event-description-body,
.rich-text-content {
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.72;
}

.rich-text-content p,
.rich-text-content div,
.rich-text-content ul,
.rich-text-content ol {
  margin: 0 0 0.8rem;
}

.rich-text-content > :last-child {
  margin-bottom: 0;
}

.rich-text-content a {
  color: var(--green);
  font-weight: 700;
}

.rt-size-small {
  font-size: 0.88em;
}

.rt-size-normal {
  font-size: 1em;
}

.rt-size-large {
  font-size: 1.18em;
}

.rt-size-xlarge {
  font-size: 1.36em;
}

.public-event-actions {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
}

.public-event-page .ticket-buy-form {
  align-items: stretch;
  flex-wrap: wrap;
}

.share-box {
  display: grid;
  gap: 0.4rem;
}

.share-box .btn {
  justify-self: start;
}

.share-feedback {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.86rem;
}

.public-company-main {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.public-company-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1ece4;
  box-shadow: var(--shadow);
}

.public-company-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-company-cover-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 5rem;
}

.public-company-overlay {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(16, 20, 30, 0.1),
    rgba(16, 20, 30, 0.78)
  );
}

.public-company-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
}

.public-company-overlay h1 {
  margin: 0;
  max-width: 780px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.public-company-overlay .eyebrow,
.public-company-overlay .share-feedback {
  color: rgba(255, 255, 255, 0.84);
}

.public-company-address {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.public-company-events {
  margin-top: 1.5rem;
}

.public-company-events-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.public-company-events-head h2 {
  margin: 0;
  color: #263a7c;
}

.public-company-events-head span {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .public-company-overlay {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 1.25rem;
  }

  .public-company-logo {
    width: 78px;
    height: 78px;
  }

  .public-company-events-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.dashboard-body {
  min-height: 100vh;
  background: #f4f6f8;
  color: var(--charcoal);
}

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1031;
  width: 260px;
  padding: 1.1rem;
  border-right: 1px solid var(--border);
  background: #fff;
  box-shadow: 18px 0 40px rgba(31, 36, 48, 0.06);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 54px;
  margin-bottom: 0.75rem;
}

.sidebar-brand img {
  object-fit: contain;
}

.sidebar-nav {
  display: grid;
  gap: 0.4rem;
}

.sidebar-toggle-inline {
  width: 100%;
  min-height: 40px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 8px;
  font-weight: 800;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  color: var(--charcoal);
  font-weight: 800;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
  background: var(--green-soft);
  color: var(--green);
}

.dashboard-body .app-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 260px;
  z-index: 1030;
  min-height: 76px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 32px rgba(31, 36, 48, 0.06);
}

.sidebar-toggle {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
}

.sidebar-toggle-floating {
  display: none;
}

.dashboard-body.sidebar-collapsed .sidebar-toggle-floating {
  display: grid;
}

.dashboard-body .app-navbar .container,
.dashboard-main > .container,
.dashboard-main > main > .container {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
}

.dashboard-body .app-navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.dashboard-body .app-navbar .navbar-brand {
  display: none;
}

.dashboard-main {
  min-height: 100vh;
  margin-left: 260px;
  padding: 96px 0 2rem;
}

.dashboard-body.sidebar-collapsed .dashboard-sidebar {
  transform: translateX(-100%);
}

.dashboard-body.sidebar-collapsed .app-navbar {
  left: 0;
}

.dashboard-body.sidebar-collapsed .dashboard-main {
  margin-left: 0;
}

.dashboard-sidebar,
.dashboard-body .app-navbar,
.dashboard-main {
  transition:
    transform 0.22s ease,
    left 0.22s ease,
    margin-left 0.22s ease;
}

.dashboard-main .greeting {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-main .greeting h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.dashboard-main .greeting p {
  margin: 0;
  color: var(--muted);
}

.dashboard-main > .container > .row.g-2 {
  display: none;
}

.dashboard-main h4 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.dashboard-main hr {
  display: none;
}

.dashboard-main main {
  padding-bottom: 1.5rem;
}

.dashboard-main footer {
  margin-left: 0;
  border-top: 1px solid var(--border);
  background: transparent !important;
}

.dashboard-body .panel-card,
.dashboard-body .stat-card,
.dashboard-body .event-row-card,
.dashboard-body .highlight-card,
.dashboard-body .checkout-main,
.dashboard-body .checkout-summary,
.dashboard-body .ticket-card {
  border: 1px solid rgba(232, 222, 208, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(31, 36, 48, 0.08);
}

.dashboard-body .table-responsive {
  border-radius: 8px;
}

.dashboard-body .stat-card.accent {
  background: #2e4490;
  color: #fff;
}

.dashboard-body .stat-card.accent span,
.dashboard-body .stat-card.accent p {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1100px) {
  .dashboard-sidebar {
    width: 220px;
  }

  .dashboard-body .app-navbar {
    left: 220px;
  }

  .dashboard-main {
    margin-left: 220px;
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(31, 36, 48, 0.06);
  }

  .sidebar-brand {
    justify-content: center;
    min-height: 42px;
    margin-bottom: 0.6rem;
  }

  .sidebar-brand img {
    width: 104px;
    height: auto;
  }

  .sidebar-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .sidebar-toggle-inline {
    min-height: 34px;
    margin-bottom: 0.5rem;
    border-radius: 18px;
    font-size: 0.74rem;
  }

  .sidebar-nav a {
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.35rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .sidebar-nav a i {
    font-size: 0.84rem;
  }

  .dashboard-body .app-navbar {
    position: sticky;
    top: 0;
    left: 0;
    min-height: auto;
  }

  .dashboard-body .app-navbar .container,
  .dashboard-main > .container,
  .dashboard-main > main > .container {
    width: min(100% - 20px, 1180px);
  }

  .dashboard-body .app-navbar .container {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    padding-block: 0.55rem;
  }

  .sidebar-toggle {
    min-width: 34px;
    min-height: 34px;
  }

  .dashboard-body .app-nav-actions {
    flex: 1 1 100%;
  }

  .dashboard-body.sidebar-collapsed .dashboard-sidebar {
    display: none;
    transform: none;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 1rem 0 1.25rem;
  }

  .dashboard-main .greeting {
    padding: 0.9rem;
  }

  .dashboard-main h4 {
    font-size: 1.15rem;
  }
}

/* Dashboard layout v2 */
.dashboard-body {
  min-height: 100vh;
  background: #f4f6f8;
  color: var(--charcoal);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  z-index: 1040;
  width: 100%;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 36, 48, 0.06);
  transition: transform 0.22s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 0.55rem;
}

.sidebar-brand img {
  width: 112px;
  height: auto;
  object-fit: contain;
}

.sidebar-toggle-inline {
  width: 100%;
  min-height: 34px;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 800;
}

.sidebar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.sidebar-nav a {
  flex: 0 1 calc((100% - 0.7rem) / 3);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 34px;
  padding: 0.45rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
  background: var(--green-soft);
  color: var(--green);
}

.sidebar-nav a i {
  font-size: 0.86rem;
}

.dashboard-shell {
  min-height: 100vh;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px rgba(31, 36, 48, 0.06);
}

.sidebar-restore {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--charcoal);
}

.dashboard-body.sidebar-collapsed .sidebar-restore {
  display: grid;
}

.dashboard-search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.35rem;
}

.dashboard-search input {
  min-width: 0;
  min-height: 34px;
  border-radius: 18px;
  font-size: 0.82rem;
}

.dashboard-search .btn {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dashboard-icon-button {
  position: relative;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--charcoal);
}

.dashboard-content {
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
  padding: 1rem 0 1.25rem;
}

.dashboard-welcome,
.dashboard-alerts {
  margin-bottom: 1rem;
}

.dashboard-welcome {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-welcome h1 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-welcome p {
  margin: 0;
  color: var(--muted);
}

.dashboard-footer {
  width: min(1180px, calc(100% - 20px));
  margin: 1rem auto 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.dashboard-body.sidebar-collapsed .dashboard-sidebar {
  display: none;
}

.dashboard-body .container {
  max-width: none;
}

.dashboard-body .panel-card,
.dashboard-body .stat-card,
.dashboard-body .event-row-card,
.dashboard-body .highlight-card,
.dashboard-body .checkout-main,
.dashboard-body .checkout-summary,
.dashboard-body .ticket-card,
.dashboard-body .cart-item,
.dashboard-body .event-detail-panel {
  border: 1px solid rgba(232, 222, 208, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(31, 36, 48, 0.08);
}

.dashboard-body .table-responsive {
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(31, 36, 48, 0.06);
}

.dashboard-body .stat-card.accent {
  background: #2e4490;
  color: #fff;
}

.dashboard-body .stat-card.accent span,
.dashboard-body .stat-card.accent p {
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 768px) {
  .dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    padding: 1.1rem;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    box-shadow: 18px 0 40px rgba(31, 36, 48, 0.06);
  }

  .sidebar-brand {
    justify-content: flex-start;
    min-height: 54px;
    margin-bottom: 0.75rem;
  }

  .sidebar-brand img {
    width: 125px;
  }

  .sidebar-toggle-inline {
    min-height: 40px;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .sidebar-nav a {
    flex: none;
    justify-content: flex-start;
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .dashboard-shell {
    margin-left: 250px;
    transition: margin-left 0.22s ease;
  }

  .dashboard-header {
    min-height: 74px;
    padding: 0.85rem 1.25rem;
  }

  .dashboard-search {
    max-width: 420px;
  }

  .dashboard-search input {
    min-height: 42px;
    font-size: 0.95rem;
  }

  .dashboard-search .btn,
  .dashboard-icon-button,
  .sidebar-restore {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .dashboard-content {
    width: min(1180px, calc(100% - 32px));
    padding: 1.35rem 0 2rem;
  }

  .dashboard-welcome {
    padding: 1.1rem;
  }

  .dashboard-welcome h1 {
    font-size: 1.35rem;
  }

  .dashboard-body.sidebar-collapsed .dashboard-sidebar {
    display: block;
    transform: translateX(-100%);
  }

  .dashboard-body.sidebar-collapsed .dashboard-shell {
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .dashboard-body {
    font-size: 0.94rem;
  }

  .dashboard-body h2 {
    font-size: 1.28rem;
  }

  .dashboard-body h3 {
    font-size: 1.08rem;
  }

  .dashboard-body h4 {
    font-size: 1.2rem;
  }

  .dashboard-body .btn,
  .dashboard-body .form-control,
  .dashboard-body .form-select,
  .dashboard-body .table,
  .dashboard-body .dropdown-menu {
    font-size: 0.9rem;
  }

  .dashboard-welcome h1 {
    font-size: 1.24rem;
  }

  .sidebar-toggle-inline,
  .sidebar-nav a {
    font-size: 0.86rem;
  }

  .dashboard-search input {
    font-size: 0.88rem;
  }

  .stat-card span,
  .info-item span,
  .mini-metrics span,
  .checkout-item span,
  .gateway-panel span,
  .summary-line span,
  .summary-recipient span,
  .stripe-key-box span,
  .ticket-info span,
  .ticket-info small,
  .event-detail-grid span,
  .event-lote-item span,
  .notification-head span,
  .notification-item span,
  .notification-empty {
    font-size: 0.8rem;
  }

  .stat-card strong {
    font-size: 1.82rem;
  }
}

.dashboard-body .panel-card + .panel-card {
  margin-top: 1.25rem;
}

.dashboard-body .table-responsive {
  margin-top: 0.85rem;
  padding: 0.35rem;
  border: 1px solid rgba(232, 222, 208, 0.85);
  border-radius: 8px;
  background: #fffaf3;
  box-shadow: none;
}

.dashboard-body .table,
.dashboard-body .event-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 0.55rem;
  background: transparent;
}

.dashboard-body .event-table-admin {
  min-width: 1020px;
}

.dashboard-body .table thead th,
.dashboard-body .event-table thead th {
  padding: 0.48rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-body .table tbody td,
.dashboard-body .event-table tbody td {
  padding: 0.85rem 0.75rem;
  border: solid rgba(232, 222, 208, 0.82);
  border-width: 1px 0;
  background: #fff;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.dashboard-body .table tbody td:first-child,
.dashboard-body .event-table tbody td:first-child {
  border-left-width: 1px;
  border-radius: 8px 0 0 8px;
}

.dashboard-body .table tbody td:last-child,
.dashboard-body .event-table tbody td:last-child {
  border-right-width: 1px;
  border-radius: 0 8px 8px 0;
}

.dashboard-body .table tbody tr:hover td,
.dashboard-body .event-table tbody tr:hover td {
  background: #fffdf8;
}

.dashboard-body .table code,
.dashboard-body .event-table code {
  display: inline-block;
  max-width: 260px;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  background: #f6efe5;
  color: var(--charcoal);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dashboard-body .operation-confirmed-row > td {
  background: #eef8f1;
  border-color: rgba(34, 139, 92, 0.28);
}

@media (max-width: 720px) {
  .dashboard-body .event-table,
  .dashboard-body .event-table tbody {
    min-width: 0;
    border-spacing: 0;
  }

  .dashboard-body .event-table tbody td,
  .dashboard-body .event-table tbody td:first-child,
  .dashboard-body .event-table tbody td:last-child {
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .dashboard-body .event-table tbody tr {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 720px) {
  .dashboard-body .panel-card {
    margin: 0;
    padding: 0.85rem;
  }

  .dashboard-body .panel-card .section-head {
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
  }

  .dashboard-body .panel-card .section-head h2 {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .dashboard-body .filter-inline,
  .dashboard-body .filter-inline .form-select {
    width: 100%;
  }

  .dashboard-body .table-responsive {
    overflow: visible;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .dashboard-body .event-table,
  .dashboard-body .event-table tbody,
  .dashboard-body .event-table tr,
  .dashboard-body .event-table td {
    width: 100%;
  }

  .dashboard-body .event-table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .dashboard-body .event-table colgroup,
  .dashboard-body .event-table thead {
    display: none;
  }

  .dashboard-body .event-table tbody {
    display: grid;
    gap: 0.8rem;
  }

  .dashboard-body .event-table tbody tr:not(.event-detail-row) {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0 0.75rem;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid rgba(232, 222, 208, 0.9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 36, 48, 0.06);
  }

  .dashboard-body .event-table tbody tr:not(.event-detail-row) td {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(76px, 0.38fr) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    min-width: 0;
    padding: 0.58rem 0;
    border: 0;
    border-bottom: 1px solid rgba(232, 222, 208, 0.78);
    border-radius: 0;
    background: transparent;
  }

  .dashboard-body .event-table tbody tr:not(.event-detail-row) td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .dashboard-body .event-table tbody tr:not(.event-detail-row) td > * {
    min-width: 0;
  }

  .dashboard-body
    .event-table
    tbody
    tr:not(.event-detail-row)
    td[data-label="Capa"] {
    grid-column: 1;
    grid-row: 1;
    display: block;
    padding: 0;
    border: 0;
  }

  .dashboard-body
    .event-table
    tbody
    tr:not(.event-detail-row)
    td[data-label="Capa"]::before,
  .dashboard-body
    .event-table
    tbody
    tr:not(.event-detail-row)
    td[data-label="Evento"]::before {
    content: none;
  }

  .dashboard-body .event-table .event-img-thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 8px;
  }

  .dashboard-body
    .event-table
    tbody
    tr:not(.event-detail-row)
    td[data-label="Evento"] {
    grid-column: 2;
    grid-row: 1;
    display: block;
    padding: 0 0 0.62rem;
    border-bottom: 1px solid rgba(232, 222, 208, 0.78);
  }

  .dashboard-body
    .event-table
    tbody
    tr:not(.event-detail-row)
    td[data-label="Evento"]
    strong {
    display: block;
    color: var(--charcoal);
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .dashboard-body
    .event-table
    tbody
    tr:not(.event-detail-row)
    td[data-label="Ações"] {
    align-items: center;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .dashboard-body .event-table .table-actions {
    justify-content: flex-start;
    gap: 0.42rem;
  }

  .dashboard-body .event-table .action-icon-btn {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
  }

  .dashboard-body .event-table .status-pill {
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .dashboard-body .event-table .event-detail-row {
    margin: -0.25rem 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-body .event-table .event-detail-cell,
  .dashboard-body .event-table .event-detail-cell:first-child,
  .dashboard-body .event-table .event-detail-cell:last-child {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .dashboard-body .event-table .event-detail-cell::before {
    content: none;
  }

  .dashboard-body .event-detail-panel {
    gap: 0.85rem;
    padding: 0.85rem;
    box-shadow: 0 12px 28px rgba(31, 36, 48, 0.06);
  }

  .dashboard-body .event-purchase-form .ticket-buy-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    align-items: end;
    gap: 0.55rem;
  }

  .dashboard-body .event-purchase-form .ticket-buy-form label {
    grid-column: 1 / -1;
    margin: 0;
  }

  .dashboard-body .event-purchase-form .ticket-quantity-input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
  }

  .dashboard-body .event-purchase-form .ticket-buy-form .btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    gap: 0.45rem;
    line-height: 1.15;
    white-space: normal;
  }

  .dashboard-body .checkin-table,
  .dashboard-body .checkin-table tbody,
  .dashboard-body .checkin-table tr,
  .dashboard-body .checkin-table td,
  .dashboard-body .availability-table,
  .dashboard-body .availability-table tbody,
  .dashboard-body .availability-table tr,
  .dashboard-body .availability-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dashboard-body .checkin-table,
  .dashboard-body .availability-table {
    table-layout: fixed;
    border-spacing: 0;
  }

  .dashboard-body .checkin-table thead,
  .dashboard-body .availability-table thead {
    display: none;
  }

  .dashboard-body .checkin-table tbody,
  .dashboard-body .availability-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .dashboard-body .checkin-table tbody tr,
  .dashboard-body .availability-table tbody tr {
    padding: 0.75rem;
    border: 1px solid rgba(232, 222, 208, 0.9);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(31, 36, 48, 0.06);
  }

  .dashboard-body .checkin-table tbody td,
  .dashboard-body .checkin-table tbody td:first-child,
  .dashboard-body .checkin-table tbody td:last-child,
  .dashboard-body .availability-table tbody td,
  .dashboard-body .availability-table tbody td:first-child,
  .dashboard-body .availability-table tbody td:last-child {
    display: grid;
    grid-template-columns: minmax(76px, 0.38fr) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    padding: 0.58rem 0;
    border: 0;
    border-bottom: 1px solid rgba(232, 222, 208, 0.78);
    border-radius: 0;
    background: transparent;
    overflow-wrap: anywhere;
  }

  .dashboard-body .checkin-table tbody td:last-child,
  .dashboard-body .availability-table tbody td:last-child {
    border-bottom: 0;
  }

  .dashboard-body .checkin-table tbody td::before,
  .dashboard-body .availability-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .dashboard-body .checkin-table tbody td > *,
  .dashboard-body .checkin-table code,
  .dashboard-body .availability-table tbody td > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }
}
