.app-topbar {
  background: #c09530;
  color: #fff;
  box-shadow: 0 2px 10px rgba(45, 52, 54, 0.12);
}

.app-topbar__inner {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 2rem 1fr 2rem;
  margin: 0 auto;
  max-width: 80rem;
  min-height: 3.8rem;
  padding: 0.65rem 1rem;
}

.app-brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.app-brand__logo {
  display: block;
  height: 2.25rem;
  object-fit: contain;
  width: 2.25rem;
}

.app-brand__eyebrow {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.app-brand__title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.25rem;
}

.app-icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.4rem;
  color: #fff;
  display: inline-flex;
  flex: 0 0 2rem !important;
  height: 2rem !important;
  justify-content: center;
  justify-self: center;
  max-height: 2rem !important;
  max-width: 2rem !important;
  min-height: 0;
  min-width: 0;
  padding: 0 !important;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 2rem !important;
}

.app-icon-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.app-icon-button:active {
  transform: scale(0.98);
}

.app-icon-button--spacer {
  pointer-events: none;
  visibility: hidden;
}

.app-back-icon {
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  height: 0.52rem;
  transform: rotate(45deg);
  width: 0.52rem;
}

.app-menu-lines,
.app-menu-lines::before,
.app-menu-lines::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.11rem;
  width: 0.9rem;
}

.app-menu-lines::before {
  transform: translateY(-0.3rem);
}

.app-menu-lines::after {
  transform: translateY(0.19rem);
}

.app-page {
  margin: 0 auto;
  max-width: 80rem;
  padding: 2rem 1rem;
}

.app-drawer-overlay {
  background: rgba(45, 52, 54, 0.45);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.22s ease;
  z-index: 40;
}

.app-drawer {
  background: #fff;
  box-shadow: 8px 0 24px rgba(45, 52, 54, 0.16);
  display: flex;
  flex-direction: column;
  inset: 0 auto 0 0;
  max-width: 24rem;
  position: fixed;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
  width: min(86vw, 24rem);
  z-index: 50;
}

.app-drawer.is-open {
  transform: translateX(0);
}

.app-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-drawer__header {
  border-bottom: 1px solid #e5e1d8;
  padding: 1.5rem;
}

.app-drawer__eyebrow {
  color: #a87d24;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-drawer__title {
  color: #2d3436;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0.35rem;
}

.app-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.app-drawer__section {
  color: #a87d24;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 1.25rem 0 0.75rem;
  text-transform: uppercase;
}

.app-drawer__section:first-child {
  margin-top: 0;
}

.app-drawer__link {
  border-radius: 0.8rem;
  color: #2d3436;
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 0.75rem;
}

.app-drawer__link:hover {
  background: #fbf7ee;
}

.app-drawer__footer {
  border-top: 1px solid #e5e1d8;
  padding: 1rem 1.5rem;
}

.app-drawer__logout {
  align-items: center;
  border: 1px solid #e5e1d8;
  border-radius: 0.9rem;
  color: #636e72;
  display: flex;
  font-weight: 700;
  justify-content: center;
  min-height: 3.5rem;
  width: 100%;
}

.app-toast-container {
  display: grid;
  gap: 0.75rem;
  max-width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
  position: fixed;
  right: 1rem;
  top: 1rem;
  width: 100%;
  z-index: 90;
}

.app-toast {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e5e1d8;
  border-left: 0.35rem solid #c09530;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(45, 52, 54, 0.16);
  color: #2d3436;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  pointer-events: auto;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.is-visible {
  transform: translateY(0);
}

.app-toast.is-leaving {
  opacity: 0;
  transform: translateY(-0.5rem);
}

.app-toast--sucesso {
  border-left-color: #16a34a;
}

.app-toast--erro {
  border-left-color: #dc2626;
}

.app-toast--info {
  border-left-color: #c09530;
}

.app-toast__title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
}

.app-toast__message {
  color: #636e72;
  font-size: 0.9rem;
  line-height: 1.4;
}

.app-confirm-overlay {
  align-items: center;
  background: rgba(45, 52, 54, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 1rem;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 95;
}

.app-confirm-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-confirm-dialog {
  background: #fff;
  border: 1px solid #e5e1d8;
  border-radius: 1.15rem;
  box-shadow: 0 24px 60px rgba(45, 52, 54, 0.22);
  display: grid;
  gap: 1rem;
  max-width: 25rem;
  padding: 1.25rem;
  transform: scale(0.96);
  transition: transform 0.2s ease;
  width: 100%;
}

.app-confirm-overlay.is-open .app-confirm-dialog {
  transform: scale(1);
}

.app-confirm-icon {
  align-items: center;
  background: #fbf7ee;
  border: 1px solid #ead9b5;
  border-radius: 999px;
  color: #9b7520;
  display: flex;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.app-confirm-title {
  color: #2d3436;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.app-confirm-message {
  color: #636e72;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.app-confirm-actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.app-confirm-button {
  border-radius: 0.85rem;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  min-height: 3rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.app-confirm-button:active {
  transform: scale(0.98);
}

.app-confirm-button--cancel {
  background: #fff;
  border: 1px solid #e5e1d8;
  color: #636e72;
}

.app-confirm-button--confirm {
  background: #c09530;
  color: #fff;
}

.app-date-field {
  position: relative;
}

.app-date-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #d9d3c6;
  border-radius: 0.8rem;
  color: #2d3436;
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
  min-height: 3rem;
  outline: none;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.app-date-trigger:hover,
.app-date-trigger:focus {
  border-color: #c09530;
  box-shadow: 0 0 0 3px rgba(192, 149, 48, 0.18);
}

.app-date-trigger.has-value {
  font-weight: 700;
}

.app-date-picker {
  background: #fff;
  border: 1px solid #e5e1d8;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(45, 52, 54, 0.18);
  display: none;
  left: 0;
  padding: 0.9rem;
  position: absolute;
  top: calc(100% + 0.5rem);
  width: min(20rem, calc(100vw - 2rem));
  z-index: 80;
}

.app-date-picker.is-open {
  display: block;
}

.app-date-picker__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.app-date-picker__title {
  color: #2d3436;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: capitalize;
}

.app-date-picker__nav {
  align-items: center;
  background: #fbf7ee;
  border-radius: 0.6rem;
  color: #9b7520;
  display: inline-flex;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.app-date-picker__weekdays,
.app-date-picker__days {
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(7, 1fr);
}

.app-date-picker__weekday {
  color: #636e72;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0;
  text-align: center;
  text-transform: uppercase;
}

.app-date-picker__day {
  align-items: center;
  border-radius: 0.65rem;
  color: #2d3436;
  display: flex;
  font-size: 0.85rem;
  font-weight: 700;
  height: 2.15rem;
  justify-content: center;
}

.app-date-picker__day:hover {
  background: #fbf7ee;
}

.app-date-picker__day.is-muted {
  color: #b2bec3;
}

.app-date-picker__day.is-selected {
  background: #c09530;
  color: #fff;
}

.app-date-picker__footer {
  border-top: 1px solid #e5e1d8;
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.app-date-picker__clear,
.app-date-picker__today {
  color: #9b7520;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (min-width: 1024px) {
  .app-topbar__inner {
    grid-template-columns: 2rem 1fr 2rem;
    min-height: 4rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .app-brand__logo {
    height: 3rem;
    width: 3rem;
  }

  .app-brand__title {
    font-size: 1.5rem;
  }

  .app-page {
    padding: 2.5rem 2rem;
  }
}
