:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #153243;
  --muted: #6c7a89;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --primary-button-bg: #0c6772;
  --primary-button-border: #0c6772;
  --primary-button-hover-bg: #0a5660;
  --primary-button-hover-border: #0a5660;
  --primary-button-active-bg: #084a53;
  --primary-button-active-border: #084a53;
  --primary-button-text: #ffffff;
}

.button-primary,
.btn.btn-primary,
input[type="submit"].btn-primary,
button.btn-primary {
  background-color: var(--primary-button-bg);
  border-color: var(--primary-button-border);
  color: var(--primary-button-text);
}

.button-primary:hover,
.button-primary:focus,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
input[type="submit"].btn-primary:hover,
input[type="submit"].btn-primary:focus,
button.btn-primary:hover,
button.btn-primary:focus {
  background-color: var(--primary-button-hover-bg);
  border-color: var(--primary-button-hover-border);
  color: var(--primary-button-text);
}

.button-primary:active,
.button-primary.active,
.btn.btn-primary:active,
.btn.btn-primary.active,
input[type="submit"].btn-primary:active,
button.btn-primary:active {
  background-color: var(--primary-button-active-bg);
  border-color: var(--primary-button-active-border);
  color: var(--primary-button-text);
}

body.app-body {
  background: linear-gradient(180deg, #eef4f8 0%, var(--bg) 100%);
  color: var(--ink);
}

.topbar {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.user-pill {
  background: rgba(255, 255, 255, .14);
  padding: .45rem .8rem;
  border-radius: 999px;
}

.side-card {
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
}

.sidebar-title {
  padding: 1rem 1rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-menu .list-group-item {
  border: 0;
  padding: .4rem 1rem;
}

.sidebar-menu .list-group-item:hover {
  background: #eef7f6;
  color: var(--brand-dark);
}

.hero-panel {
  background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(14, 165, 233, .10));
  border: 1px solid rgba(15, 118, 110, .08);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow {
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--brand-dark);
}

.stat-card {
  border-radius: 1rem;
}

.stat-label {
  color: var(--muted);
  font-size: .9rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: .25rem;
}

.schedule-chip {
  border: 1px solid #dce9e7;
  border-radius: .85rem;
  padding: .75rem .9rem;
  background: #f8fcfb;
}

.agenda-day {
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  overflow: hidden;
}

.agenda-day-title {
  padding: .9rem 1rem;
  font-weight: 700;
  background: #f7fafc;
  border-bottom: 1px solid #e8edf3;
}

.card {
  border-radius: 1rem;
}

.elevated-card {
  box-shadow: 0 18px 45px rgba(21, 50, 67, .08) !important;
}

.table thead th {
  background: #f6fbfb;
  color: var(--brand-dark);
  border-bottom-width: 1px;
}

.choice-card,
.delegate-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border: 1px solid #e5efee !important;
}

.choice-card:hover,
.delegate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 118, 110, .12) !important;
  border-color: rgba(15, 118, 110, .3) !important;
}

.choice-card:has(input:checked),
.delegate-card:has(input:checked) {
  background: linear-gradient(180deg, #f5fffd 0%, #eefaf7 100%);
  border-color: rgba(15, 118, 110, .45) !important;
}

.form-control,
.form-select {
  border-radius: .85rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
  border-color: #d7e3e8;
}

.btn {
  border-radius: .85rem;
}

.table-password {
  min-width: 120px;
  max-width: 170px;
}

.sidebar-group-label {
  padding: 1rem 1rem .35rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4b6472;
  background: #f7fafc;
  border-top: 1px solid #eef2f6;
}

.login-card .card-body {
  min-height: 280px;
}

.login-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
}

.bg-admin {
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
}

.bg-expositor {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.bg-delegado {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.admin-table td,
.admin-table th {
  vertical-align: middle;
}

@media (max-width: 1199.98px) {
  .side-card {
    position: static;
  }
}

.filter-bar {
  background: linear-gradient(180deg, #fbfdfd 0%, #f6fafc 100%);
  border: 1px solid #e7eef3;
  border-radius: 1rem;
  padding: 1rem;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.list-summary-badge {
  background: #eef7f6;
  color: var(--brand-dark);
  border: 1px solid #dce9e7;
}

.page-link {
  border-radius: .75rem !important;
  margin: 0 .1rem;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
  min-height: 46px;
  border-radius: .85rem;
  border-color: #d7e3e8;
  padding: .55rem .75rem;
}

.ts-dropdown {
  border-radius: .85rem;
  border-color: #d7e3e8;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .table-password {
    min-width: 100px;
    max-width: 120px;
  }
}

.event-day-row {
  background: white;
  border: 1px solid #e7eef3;
  border-radius: 1rem;
  padding: .45rem;
}

.choice-card .form-check-input {
  margin-top: .15rem;
}


.country-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08)
}

.delegate-card .country-flag {
  width: 28px;
  height: 20px
}


.selection-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  max-width: 22rem;
}

.selection-pill {
  white-space: normal;
  text-align: left;
  font-weight: 500;
}


.login-shell {
  min-height: calc(100vh - 3rem);
}

.login-panel {
  max-width: 520px;
}

.login-card-modern {
  border-radius: 1.5rem;
  overflow: hidden;
}

.login-card-modern .card-body {
  padding: 2rem;
}

.login-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 12px 24px rgba(21, 50, 67, .16);
}

.login-avatar-default,
.login-avatar-admin {
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
}

.login-avatar-expositor {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.login-avatar-delegado {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c7a89;
  z-index: 3;
}

.password-toggle {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  background: transparent;
  color: #47606d;
  border-radius: 999px;
  z-index: 3;
}

.password-toggle:hover {
  background: rgba(15, 118, 110, .08);
  color: var(--brand-dark);
}

.language-switch .lang-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d7e3e8;
  background: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(21, 50, 67, .08);
  text-decoration: none;
}

.language-switch .lang-circle.active {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(15, 118, 110, .18);
  transform: translateY(-1px);
}

.logo-header {
  max-width: 90px;
}

@media (max-width: 575.98px) {
  .login-shell {
    min-height: auto;
  }

  .login-card-modern .card-body {
    padding: 1.25rem;
  }

  .language-switch .lang-circle {
    width: 36px;
    height: 36px;
  }
}

@media print {

  .logos-print{
    height: 30px;
  }

  .print-day-header {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
  }

  .print-day-header-left,
  .print-day-header-right {
    display: table-cell;
    vertical-align: top;
  }

  .print-day-header-left {
    width: 75%;
  }

  .print-day-header-right {
    width: 25%;
    text-align: right;
    white-space: nowrap;
  }

  .print-day-header-right img {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    margin-left: 20px;
  }

  .no-print,
  .topbar,
  aside,
  .btn {
    display: none !important;
  }

  body,
  body.app-body {
    background: #fff !important;
  }

  main.col-12,
  main.col-xl-10 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .card,
  .agenda-day {
    box-shadow: none !important;
    border: 0 !important;
  }

  @page {
    margin: 0;
  }

  body {
    margin: 1cm;
    /* Opcional: define margem para o conteúdo */
  }

  .print {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

@page {
  zoom: 0.75;
}

.public-home-shell {
  min-height: calc(100vh - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0;
}

.public-home-card {
  width: 100%;
  max-width: 1120px;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, .14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, .14), transparent 24%),
    #ffffff;
}

.public-home-brand {
  height: 100%;
  padding: 2.25rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.public-home-event-brand {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(241, 243, 245, .96) 0%, rgba(232, 236, 239, .98) 100%);
  color: #1f2933;
}

.public-home-event-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.1)),
    url('../creative.png') center center / 88% auto no-repeat;
  opacity: .1;
  pointer-events: none;
}

.public-home-event-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  text-align: center;
}

.public-home-event-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: .5rem;
}

.public-home-event-logo {
  width: min(100%, 430px);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .08));
}

.public-home-event-info {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.public-home-event-year {
  font-size: clamp(2.4rem, 5vw, 3.35rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: .04em;
  color: #202a31;
}

.public-home-event-date {
  font-size: clamp(1.5rem, 2vw, 2.05rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0c6772;
}

.public-home-event-place,
.public-home-event-city {
  font-size: clamp(1.05rem, 1.4vw, 1.5rem);
  line-height: 1.2;
  font-weight: 500;
  color: #263238;
}

.public-home-brand .eyebrow,
.public-home-brand .public-home-subtitle,
.public-home-brand .public-home-feature,
.public-home-brand .public-home-feature-icon,
.public-home-brand .language-switch .lang-circle {
  color: inherit;
}

.public-home-brand .eyebrow {
  color: #56636f;
}

.public-home-brand .language-switch .lang-circle {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(15, 118, 110, .16);
  box-shadow: none;
}

.public-home-brand .language-switch .lang-circle.active {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

.public-home-title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.05;
}

.public-home-subtitle {
  max-width: 34rem;
  color: #56636f;
  font-size: 1.02rem;
}

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

.brand-mark-item {
  min-height: 86px;
  border-radius: 1.15rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(15, 118, 110, .10);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.brand-mark-logo {
  width: 100%;
  max-width: 132px;
  height: 36px;
  object-fit: contain;
  opacity: .96;
}

.public-home-feature-list {
  display: grid;
  gap: .8rem;
  margin-top: .5rem;
}

.public-home-feature {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #42515b;
  font-weight: 500;
}

.public-home-feature-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .85rem;
  background: rgba(15, 118, 110, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.public-home-form-wrap {
  height: 100%;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fcfeff 0%, #f4f8fb 100%);
}

.public-home-form-card {
  width: 100%;
  max-width: 430px;
}

.public-other-access {
  padding-top: 1rem;
  border-top: 1px solid #e6edf2;
}

.public-other-access-label {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5f7280;
  margin-bottom: .8rem;
}

@media (max-width: 991.98px) {
  .public-home-shell {
    min-height: auto;
    padding: .25rem 0 1rem;
  }


  .public-home-event-brand,
  .public-home-form-wrap {
    padding: 1.5rem;
  }

  .public-home-event-logo {
    max-height: 215px;
  }

  .public-home-event-date {
    font-size: 1.55rem;
  }

  .public-home-event-place,
  .public-home-event-city {
    font-size: 1.15rem;
  }

  .public-home-brand {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

@media (max-width: 575.98px) {
  .public-home-title {
    font-size: 1.8rem;
  }

  .brand-mark-list {
    grid-template-columns: 1fr;
  }

  .public-home-card {
    border-radius: 1.25rem;
  }

  .public-home-event-brand,
  .public-home-form-wrap {
    padding: 1.2rem;
  }
}
