:root {
  color-scheme: light;
  --background: #f4f7fa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #687386;
  --border: #e1e7ef;
  --primary: #168ff2;
  --primary-dark: #0874cf;
  --primary-cyan: #18c3ea;
  --accent: #ffd21c;
  --accent-dark: #e9aa00;
  --ink: #07090d;
  --income: #16855b;
  --income-soft: #e9f8f1;
  --expense: #d04455;
  --expense-soft: #fff0f1;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  padding: 25px;
  place-items: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(22, 143, 242, 0.24), transparent 32%),
    radial-gradient(circle at 85% 90%, rgba(255, 210, 28, 0.16), transparent 30%),
    #06090e;
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: white;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.auth-card > img {
  display: block;
  width: 210px;
  height: 132px;
  margin: -12px auto 20px;
  object-fit: contain;
  background: transparent;
}

.auth-helper {
  margin: 8px 0 22px;
  color: var(--muted);
}

.form-error {
  min-height: 20px;
  margin: -5px 0 10px;
  color: var(--expense);
  font-size: 0.82rem;
  font-weight: 650;
}

.full-button {
  width: 100%;
}

.welcome-message {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 700;
}

.welcome-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-edit-button {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #07172e;
  background: var(--accent);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.profile-edit-button:hover {
  background: #ffe35c;
  transform: translateY(-1px);
}

.overview-title-link {
  padding: 0;
  border: 0;
  color: #0874cf;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(8, 116, 207, 0.28);
  text-underline-offset: 3px;
}

.overview-title-link:hover { color: #045995; }

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1440px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  padding: 26px 0 0;
  color: white;
  background:
    radial-gradient(circle at 85% -70%, rgba(24, 195, 234, 0.34), transparent 48%),
    linear-gradient(180deg, #030507 0%, #0b1d29 58%, #07506a 100%);
  border-bottom: 3px solid var(--accent);
}

.brand-row,
.panel-heading,
.dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 19px;
}

.brand img {
  display: block;
  width: 150px;
  height: 90px;
  object-fit: contain;
}

.brand-copy {
  padding-left: 19px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav {
  display: flex;
  gap: 5px;
  margin-top: 23px;
  align-items: stretch;
}

.nav-item {
  padding: 14px 18px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  border-bottom-color: var(--accent);
  color: white;
}

.logout-item {
  margin-left: auto;
  color: var(--accent);
}

.logout-item:hover {
  color: #ffe36e;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  height: 100%;
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary span {
  margin-left: 4px;
  font-size: 0.75rem;
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% - 2px);
  left: 0;
  display: grid;
  min-width: 220px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.nav-dropdown-menu button {
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.nav-dropdown-menu button:hover {
  color: var(--primary-dark);
  background: #edf7ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
}

h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.eyebrow {
  margin-bottom: 5px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  opacity: 0.72;
  text-transform: uppercase;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--primary);
}

.button-light {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 8px 25px rgba(255, 210, 28, 0.16);
}

.button-light:hover {
  background: #ffdc52;
}

.button-secondary {
  color: var(--text);
  background: #edf0f5;
}

main {
  margin-top: 0;
  padding-block: 32px 50px;
}

.app-view[hidden] {
  display: none;
}

.page-heading {
  margin-bottom: 22px;
}

.page-heading h2 {
  font-size: 1.65rem;
}

.page-heading p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
}

.heading-with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.filter-panel {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.balance-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.balance-filters label {
  display: grid;
  gap: 6px;
}

.date-filter-group {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  align-items: start;
}

.date-filter-group > label {
  position: relative;
  align-content: start;
}

.date-input-wrap {
  display: grid;
  grid-template-columns: 1fr 40px;
}

.date-input-wrap input {
  border-radius: 8px 0 0 8px;
}

.calendar-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #d5dae4;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  color: var(--primary-dark);
  background: #edf7ff;
  font-weight: 800;
}

.inline-calendar {
  position: absolute;
  z-index: 20;
  top: 66px;
  left: 0;
  width: 100%;
  margin-top: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  box-shadow: 0 15px 35px rgba(17, 24, 39, 0.16);
}

.inline-calendar[hidden] {
  display: none;
}

.calendar-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 8px;
  text-align: center;
}

.calendar-header button,
.calendar-grid button {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
}

.calendar-header button {
  height: 30px;
  color: var(--primary);
  font-size: 1.25rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar-weekday {
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
}

.calendar-grid button {
  aspect-ratio: 1;
  font-size: 0.75rem;
}

.calendar-grid button:hover {
  background: #eaf6ff;
}

.calendar-grid button.selected {
  color: white;
  background: var(--primary);
}

.balance-filters label > span {
  color: #344054;
  font-size: 0.76rem;
  font-weight: 650;
}

.balance-filters input,
.balance-filters select {
  width: 100%;
  height: 40px;
  padding: 0 9px;
  border: 1px solid #d5dae4;
  border-radius: 8px;
  color: var(--text);
  background: white;
}

.currency-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.currency-block {
  overflow: hidden;
  border: 1px solid rgba(228, 232, 240, 0.9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.currency-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.currency-heading span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #0678cf;
  background: #e8f5ff;
  font-size: 0.72rem;
  font-weight: 800;
}

.currency-heading strong {
  font-size: 0.9rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px 14px;
  padding: 19px 20px 21px;
}

.summary-item {
  display: grid;
  grid-column: span 2;
  gap: 7px;
}

.summary-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.summary-item strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.summary-item.income strong {
  color: var(--income);
}

.summary-item.expense strong {
  color: var(--expense);
}

.summary-item.pending,
.summary-item.received {
  grid-column: span 3;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.summary-item.pending strong {
  color: #c52c38;
}

.summary-item.received strong {
  color: #087a4e;
}

.currency-block {
  border-top: 4px solid transparent;
}

.currency-brl {
  border-top-color: #efb900;
}

.currency-usd {
  border-top-color: #168fe1;
}

.currency-brl .currency-heading {
  background: linear-gradient(90deg, #fff9dc, #fff);
}

.currency-usd .currency-heading {
  background: linear-gradient(90deg, #eaf6ff, #fff);
}

.currency-brl .currency-heading span {
  color: #725400;
  background: #ffe997;
}

.currency-usd .currency-heading span {
  color: #075f9d;
  background: #cceaff;
}

.summary-item,
.summary-item.pending,
.summary-item.received {
  min-height: 82px;
  align-content: center;
  padding: 12px 13px;
  border: 1px solid #dfe8ef;
  border-left: 4px solid #53718b;
  border-radius: 10px;
  background: #f8fbfd;
}

.summary-item > span {
  font-weight: 700;
}

.summary-item:not(.income):not(.expense):not(.pending):not(.received) {
  border-left-color: #415f78;
  background: #f3f7fa;
}

.summary-item.income {
  border-left-color: #168fe1;
  background: #eff8ff;
}

.summary-item.income strong {
  color: #0879c5;
}

.summary-item.expense {
  border-left-color: #d13a46;
  background: #fff3f4;
}

.summary-item.expense strong {
  color: #b4232f;
}

.summary-item.pending {
  border-left-color: #e0a400;
  background: #fff9e5;
}

.summary-item.pending strong {
  color: #8b6500;
}

.summary-item.received {
  border-left-color: #159764;
  background: #effaf5;
}

.summary-item.received strong {
  color: #087a4e;
}

.remember-login {
  margin-top: 2px;
  color: #50677d;
  font-size: 0.78rem;
}

.summary-card,
.panel {
  border: 1px solid rgba(228, 232, 240, 0.9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 24px;
  border-top: 4px solid var(--primary);
}

.summary-card p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.summary-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.summary-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.income-card {
  border-top-color: var(--income);
}

.income-card strong {
  color: var(--income);
}

.expense-card {
  border-top-color: var(--expense);
}

.expense-card strong {
  color: var(--expense);
}

.panel {
  overflow: hidden;
}

.compact-panel {
  margin-top: 20px;
}

.panel-heading {
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
}

.panel-heading .eyebrow,
.dialog-heading .eyebrow {
  color: var(--primary);
  opacity: 1;
}

.transaction-count {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: #f0f2f7;
  font-size: 0.78rem;
  font-weight: 650;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px;
  gap: 10px;
  padding: 15px 26px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.filters input,
.filters select {
  height: 40px;
  padding: 0 11px;
  border: 1px solid #d5dae4;
  border-radius: 8px;
  color: var(--text);
  background: white;
}

.empty-state {
  padding: 65px 20px;
  text-align: center;
}

.small-empty {
  padding-block: 38px;
}

.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: #e8f5ff;
  font-size: 1.45rem;
  font-weight: 700;
}

.empty-state h3 {
  margin-bottom: 7px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #fafbfc;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.value-column,
.transaction-value {
  text-align: right;
}

.transaction-value {
  font-weight: 750;
}

.transaction-value.income {
  color: var(--income);
}

.transaction-value.expense {
  color: var(--expense);
}

.category {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 7px;
  color: #505b70;
  background: #f0f2f6;
  font-size: 0.78rem;
}

td small {
  display: block;
  max-width: 230px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
}

.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.status.paid {
  color: var(--income);
  background: var(--income-soft);
}

.status.pending {
  color: #a15c00;
  background: #fff5dc;
}

.status.partial {
  color: var(--primary);
  background: #e8f5ff;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-button {
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--primary);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
}

.text-button.danger {
  color: var(--expense);
}

.delete-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.delete-button {
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--expense);
  background: transparent;
}

.delete-button:hover {
  background: var(--expense-soft);
}

dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(90vh, 820px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--text);
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.28);
}

dialog > form {
  padding: 28px 30px;
}

.dialog-content {
  padding: 28px 30px;
}

dialog::backdrop {
  background: rgba(20, 25, 40, 0.62);
  backdrop-filter: blur(3px);
}

#transaction-form {
  padding: 28px 30px;
}

.dialog-heading {
  margin-bottom: 24px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  background: #f0f2f6;
  font-size: 1.45rem;
  line-height: 1;
}

.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.type-selector legend {
  margin-bottom: 8px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 650;
}

.type-selector input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-selector span {
  display: grid;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 650;
}

.type-selector input[value="income"]:checked + span {
  border-color: var(--income);
  color: var(--income);
  background: var(--income-soft);
}

.type-selector input[value="expense"]:checked + span {
  border-color: var(--expense);
  color: var(--expense);
  background: var(--expense-soft);
}

.party-type input:checked + span {
  border-color: var(--primary);
  color: #062b3d;
  background: linear-gradient(135deg, #dff6ff, #bdefff);
  box-shadow: inset 0 0 0 1px rgba(22, 143, 242, 0.25);
}

.payment-terms input:checked + span {
  border-color: var(--accent-dark);
  color: #3f3100;
  background: #fff3bd;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}

.field > span {
  color: #344054;
  font-size: 0.86rem;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d5dae4;
  border-radius: 9px;
  outline: none;
  color: var(--text);
  background: white;
}

.field textarea {
  height: auto;
  min-height: 82px;
  padding-block: 10px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 143, 242, 0.14);
}

#categories-dialog {
  width: min(680px, calc(100% - 28px));
}

#supplier-dialog,
#event-dialog,
#user-dialog,
#transaction-dialog {
  width: min(720px, calc(100% - 28px));
}

.category-manager {
  padding: 27px;
}

.category-page {
  padding: 24px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.inline-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d5dae4;
  border-radius: 9px;
}

.inline-form.small {
  margin-top: 12px;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) auto;
}

.inline-form.small input,
.inline-form.small .button {
  height: 38px;
  min-height: 38px;
}

@media (max-width: 680px) {
  .inline-form.small { grid-template-columns: 1fr; }
}

.helper {
  margin: 8px 0 19px;
  color: var(--muted);
  font-size: 0.78rem;
}

.category-list {
  display: grid;
  max-height: 52vh;
  gap: 12px;
  overflow-y: auto;
}

.category-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.category-card-heading,
.subcategory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.tree-category > summary,
.tree-subcategory > summary {
  cursor: pointer;
  list-style: none;
}

.tree-category > summary::-webkit-details-marker,
.tree-subcategory > summary::-webkit-details-marker {
  display: none;
}

.tree-category > summary::before,
.tree-subcategory > summary::before {
  content: "›";
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  transition: transform 150ms ease;
}

.tree-category[open] > summary::before,
.tree-subcategory[open] > summary::before {
  transform: rotate(90deg);
}

.tree-category > summary {
  justify-content: flex-start;
}

.tree-category > summary > div:last-child,
.tree-subcategory > summary > div:last-child {
  margin-left: auto;
}

.tree-heading-label {
  display: grid;
  gap: 3px;
}

.tree-count {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 550;
}

.category-card-heading > div,
.subcategory-row > div {
  display: flex;
  gap: 10px;
}

.subcategory-list {
  display: grid;
  gap: 5px;
  margin-top: 11px;
}

.subcategory-block {
  padding: 9px;
  border-radius: 9px;
  background: #f5f6f9;
}

.tree-subcategory {
  border: 1px solid #e5eaf1;
}

.subcategory-row {
  padding: 8px 10px;
  border-radius: 7px;
  color: #505b70;
  background: white;
  font-size: 0.83rem;
}

.service-list {
  display: grid;
  gap: 4px;
  margin: 7px 0 0 18px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 9px;
  border-left: 3px solid var(--primary-cyan);
  color: #505b70;
  background: white;
  font-size: 0.78rem;
}

.service-row > div {
  display: flex;
  gap: 9px;
}

.service-form {
  margin: 8px 0 0 18px;
}

.direct-services {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed #cad5e1;
  border-radius: 9px;
}

.section-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.direct-service-form {
  margin-left: 0;
}

.service-path {
  margin: -3px 0 17px;
  padding: 11px 13px;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  color: #435064;
  background: #eef7ff;
  font-size: 0.8rem;
}

.service-form input,
.service-form .button {
  height: 34px;
  min-height: 34px;
  font-size: 0.78rem;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 650;
}

.titles-view .panel {
  overflow: visible;
}

.titles-view .table-wrapper {
  padding: 10px;
  overflow-x: auto;
}

.titles-view table {
  min-width: 1250px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.titles-view tbody tr {
  background: white;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.07);
}

.titles-view tbody td {
  border-top: 1px solid #dce5ed;
  border-bottom: 1px solid #dce5ed;
}

.titles-view tbody td:first-child {
  border-left: 1px solid #dce5ed;
  border-radius: 10px 0 0 10px;
}

.titles-view tbody td:last-child {
  border-right: 1px solid #dce5ed;
  border-radius: 0 10px 10px 0;
}

.installments-list {
  display: grid;
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
}

.installment-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #f9fbfd;
}

.installment-number {
  align-self: center;
  color: var(--primary-dark);
  font-weight: 800;
}

.installment-row .field {
  margin-bottom: 0;
}

.upload-area {
  display: grid;
  gap: 9px;
  margin: 20px 0;
  padding: 22px;
  border: 1px dashed #aac6df;
  border-radius: 12px;
  color: var(--primary-dark);
  background: #f3f9ff;
  font-weight: 700;
}

.attachment-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.attachment-item small {
  color: var(--muted);
}

.category-empty {
  padding: 28px;
  border: 1px dashed #cfd5df;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 25px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .topbar {
    padding-top: 22px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .currency-summary {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .balance-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .date-filter-group {
    grid-column: span 2;
  }

  .installment-row {
    grid-template-columns: 1fr 1fr;
  }

  th,
  td {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .brand-row,
  .heading-with-action {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 108px;
    height: 65px;
  }

  .brand-copy {
    padding-left: 12px;
  }

  .brand-copy h1 {
    font-size: 1.25rem;
  }

  .brand-row .button {
    width: 100%;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .nav-item {
    flex: 0 0 auto;
    padding-inline: 12px;
  }

  .nav-dropdown {
    flex: 0 0 auto;
  }

  .balance-filters {
    grid-template-columns: 1fr;
  }

  .date-filter-group {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #transaction-form {
    padding: 22px 18px;
  }

  .dialog-actions .button {
    flex: 1;
  }
}

/* Interface 2026 — navegação lateral e área de trabalho */

#app-shell {
  min-height: 100vh;
  background: #f5f9fd;
}

.topbar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  width: 290px;
  height: 100vh;
  padding: 24px 14px 18px;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 3px solid var(--accent);
  background:
    radial-gradient(circle at 45% 10%, rgba(23, 179, 235, 0.18), transparent 25%),
    linear-gradient(180deg, #02070d 0%, #03192a 50%, #032e49 100%);
  box-shadow: 8px 0 30px rgba(1, 14, 25, 0.15);
}

.topbar .container {
  width: 100%;
  margin: 0;
}

.brand-row {
  display: block;
  padding: 0 11px;
}

.brand {
  display: block;
}

.brand img {
  width: 135px;
  height: 95px;
  margin-bottom: 22px;
}

.brand-copy {
  padding: 0;
  border: 0;
}

.brand-copy .eyebrow {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.76);
  opacity: 1;
}

.brand-copy h1 {
  font-size: 1.35rem;
}

.welcome-message {
  margin-top: 22px;
  line-height: 1.55;
}

.main-nav {
  display: flex;
  min-height: calc(100vh - 320px);
  flex-direction: column;
  gap: 7px;
  margin-top: 28px !important;
  overflow: visible;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.nav-item:hover,
.nav-item.active,
.nav-dropdown[open] > .nav-item {
  border-color: rgba(125, 210, 255, 0.16);
  color: white;
  background: rgba(112, 189, 235, 0.14);
}

.nav-dropdown {
  width: 100%;
}

.nav-dropdown > summary {
  justify-content: space-between;
}

.nav-dropdown-menu {
  position: static;
  min-width: 0;
  margin: 5px 0 3px 15px;
  padding: 5px;
  border: 0;
  border-left: 1px solid rgba(79, 189, 243, 0.35);
  border-radius: 0 8px 8px 0;
  background: rgba(0, 10, 20, 0.25);
  box-shadow: none;
}

.nav-dropdown-menu button {
  color: rgba(255, 255, 255, 0.78);
}

.nav-dropdown-menu button:hover {
  color: white;
  background: rgba(25, 166, 231, 0.18);
}

.logout-item {
  margin-top: auto;
  border-color: rgba(255, 255, 255, 0.16);
}

main.container {
  width: auto;
  min-height: 100vh;
  margin: 0 0 0 290px;
  padding: 38px 42px 24px;
  background:
    radial-gradient(circle at 88% 3%, rgba(68, 180, 237, 0.11), transparent 26%),
    linear-gradient(180deg, #e6f4ff 0%, #f4f9fd 28%, #fbfdff 62%, #ffffff 100%);
}

.page-heading {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 34px;
}

.page-heading::before {
  content: "▤";
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  border: 1px solid rgba(55, 148, 216, 0.1);
  border-radius: 20px;
  color: #0d8ff0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(226, 241, 251, 0.72));
  box-shadow: inset 0 1px 0 white;
  font-size: 2.1rem;
}

#view-overview .page-heading::before {
  content: "⌂";
}

#view-parties .page-heading::before {
  content: "◎";
}

#view-services .page-heading::before {
  content: "⌘";
}

#view-users .page-heading::before {
  content: "♙";
}

#view-logs .page-heading::before {
  content: "☷";
}

#view-documents .page-heading::before {
  content: "▧";
}

.page-heading h2 {
  color: #07172e;
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: -0.035em;
}

.page-heading .eyebrow {
  color: #718097;
  letter-spacing: 0;
  text-transform: none;
}

.page-heading p:last-child {
  color: #6d7f99;
  font-size: 1rem;
}

.filter-panel,
.panel,
.currency-block {
  border: 1px solid #e0e9f1;
  border-radius: 17px;
  box-shadow: 0 13px 35px rgba(36, 74, 104, 0.07);
}

.filters {
  padding: 23px 26px;
  border-bottom: 1px solid #e4ebf2;
  background: white;
}

.filters input,
.filters select,
.balance-filters input,
.balance-filters select {
  height: 48px;
  border-color: #d5e0ea;
  border-radius: 9px;
  background: #fff;
}

.panel-heading {
  padding: 25px 28px;
}

.panel-heading h2 {
  font-size: 1.25rem;
}

.transaction-count {
  padding: 8px 13px;
  color: #62758e;
  background: #eef3f7;
}

.titles-view .table-wrapper {
  padding: 0 12px 12px;
}

.titles-view tbody tr {
  box-shadow: 0 4px 15px rgba(32, 65, 91, 0.06);
}

.titles-view tbody td {
  padding-block: 20px;
}

.row-actions {
  position: relative;
  flex-wrap: nowrap;
  align-items: center;
}

.text-button.action-outline,
.row-more-menu > summary {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #cbd9e5;
  border-radius: 8px;
  color: #25415c;
  background: white;
}

.text-button.action-outline.danger {
  border-color: #ffb9be;
  color: #e13e4b;
}

.row-more-menu {
  position: relative;
}

.row-more-menu > summary {
  display: grid;
  min-width: 43px;
  cursor: pointer;
  list-style: none;
  place-items: center;
  border-color: #0c8cf0;
  color: #0c78ce;
  font-weight: 800;
}

.row-more-menu > summary::-webkit-details-marker {
  display: none;
}

.row-more-options {
  position: absolute;
  z-index: 120;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  min-width: 155px;
  padding: 7px;
  border: 1px solid #e0e8ef;
  border-radius: 10px;
  background: white;
  box-shadow: 0 16px 34px rgba(16, 38, 58, 0.16);
}

.row-more-options .text-button {
  padding: 10px 12px;
  border-radius: 7px;
  text-align: left;
}

.row-more-options .text-button:hover {
  background: #edf7ff;
}

.currency-summary {
  gap: 20px;
}

.currency-block {
  overflow: hidden;
}

.currency-heading {
  background: linear-gradient(90deg, #f8fbfe, white);
}

.summary-item strong {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 25px 8px 0;
  border-top: 1px solid #dce6ee;
  color: #71839a;
  font-size: 0.84rem;
}

.auth-screen {
  background:
    radial-gradient(circle at 78% 16%, rgba(29, 174, 235, 0.22), transparent 30%),
    linear-gradient(180deg, #010407 0%, #071e2c 55%, #07516b 100%);
}

/* Calendário financeiro */
.date-input-wrap {
  grid-template-columns: 1fr 46px;
  overflow: hidden;
  border: 1px solid #d5e0ea;
  border-radius: 10px;
  background: white;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.date-input-wrap:focus-within {
  border-color: #198fe0;
  box-shadow: 0 0 0 4px rgba(25, 143, 224, 0.11);
}

.date-input-wrap input {
  height: 46px;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}

.calendar-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-left: 1px solid #e0e9f1;
  border-radius: 0;
  color: #0b83d8;
  background: linear-gradient(180deg, #f7fbff, #edf7ff);
  transition: color 0.18s, background 0.18s;
}

.calendar-button:hover {
  color: white;
  background: linear-gradient(145deg, #108fe5, #0874c2);
}

.calendar-icon {
  position: relative;
  width: 18px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  right: -2px;
  left: -2px;
  border-top: 2px solid currentColor;
}

.calendar-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 3px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 7px 0 currentColor;
}

.inline-calendar {
  top: 70px;
  width: min(326px, calc(100vw - 40px));
  padding: 15px;
  border-color: #d9e5ee;
  border-radius: 15px;
  box-shadow: 0 22px 55px rgba(15, 46, 73, 0.2), 0 4px 12px rgba(15, 46, 73, 0.08);
}

.date-filter-group > label:last-child .inline-calendar {
  right: 0;
  left: auto;
}

.calendar-header {
  grid-template-columns: 38px 1fr 38px;
  margin-bottom: 12px;
}

.calendar-header strong {
  color: #0a1d34;
  font-size: 0.92rem;
  text-transform: capitalize;
}

.calendar-header button {
  width: 36px;
  height: 36px;
  border: 1px solid #dce7f0;
  border-radius: 10px;
  font-size: 1.35rem;
  background: #f5f9fc;
}

.calendar-header button:hover {
  color: white;
  border-color: #158edc;
  background: #158edc;
}

.calendar-grid {
  gap: 4px;
}

.calendar-weekday {
  padding: 7px 0;
  color: #8090a4;
  font-size: 0.63rem;
  text-transform: uppercase;
}

.calendar-grid button {
  min-width: 32px;
  aspect-ratio: 1;
  border-radius: 9px;
  font-size: 0.78rem;
}

.calendar-grid button:hover {
  color: #087acc;
  background: #eaf6ff;
}

.calendar-grid button.outside {
  color: #b4c0cc;
}

.calendar-grid button.today {
  box-shadow: inset 0 0 0 1px #229be4;
  color: #087dcc;
  font-weight: 800;
}

.calendar-grid button.selected {
  color: white;
  background: linear-gradient(145deg, #1198e8, #0872c0);
  box-shadow: 0 5px 12px rgba(11, 132, 210, 0.28);
  font-weight: 800;
}

.calendar-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e5edf3;
}

.calendar-footer button {
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: #0b83d8;
  background: transparent;
  font-weight: 750;
}

.calendar-footer button:hover {
  background: #eaf6ff;
}

/* Dashboard analítico */
#view-dashboard .page-heading::before {
  content: "▥";
}

.dashboard-filter-panel {
  margin-bottom: 22px;
}

.dashboard-filter-panel .filter-heading > div {
  display: grid;
  gap: 4px;
}

.dashboard-filter-panel small {
  color: #71839a;
}

.dashboard-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  padding: 20px 24px 24px;
}

.dashboard-filters label {
  display: grid;
  gap: 6px;
}

.dashboard-filters label > span {
  color: #52667d;
  font-size: 0.78rem;
  font-weight: 750;
}

.dashboard-filters input,
.dashboard-filters select {
  width: 100%;
  height: 44px;
  border: 1px solid #d5e0ea;
  border-radius: 9px;
  background: white;
}

.dashboard-filters input:disabled {
  color: #9aa8b7;
  background: #f2f6f9;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.dashboard-kpi {
  position: relative;
  display: grid;
  min-height: 146px;
  align-content: space-between;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #e0e9f1;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(36, 74, 104, 0.07);
}

.dashboard-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: #258fe6;
}

.dashboard-kpi.income::before { background: #11a36a; }
.dashboard-kpi.expense::before { background: #ef5d69; }
.dashboard-kpi.balance::before { background: linear-gradient(90deg, #168ee0, #13bce8); }
.dashboard-kpi.warning::before { background: #f2b52a; }
.dashboard-kpi span { color: #667a91; font-size: 0.77rem; font-weight: 800; text-transform: uppercase; }
.dashboard-kpi strong { color: #07172e; font-size: clamp(1.18rem, 1.55vw, 1.6rem); letter-spacing: -0.025em; }
.dashboard-kpi small { color: #8796a8; font-size: 0.7rem; }

.dashboard-charts {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}

.dashboard-chart-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid #e0e9f1;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 13px 35px rgba(36, 74, 104, 0.07);
}

.dashboard-chart-card.chart-wide {
  grid-column: 1 / -1;
}

.chart-heading {
  margin-bottom: 15px;
}

.chart-heading h3 {
  color: #0a1b31;
  font-size: 1.03rem;
}

.chart-heading p {
  margin-top: 4px;
  color: #78899d;
  font-size: 0.78rem;
}

.dashboard-chart-card canvas {
  display: block;
  width: 100%;
  height: 285px;
}

/* Baixas, parcelas e notificações */
.notification-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 18px auto 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  cursor: pointer;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.45rem;
}

.notification-button:hover { background: rgba(23, 155, 226, 0.24); }
.notification-button strong {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #05243b;
  border-radius: 999px;
  color: #092137;
  background: #ffd21f;
  font-size: 0.64rem;
  line-height: 17px;
}

#payment-dialog { width: min(680px, calc(100% - 28px)); }

.installment-schedule {
  padding: 17px;
  border: 1px solid #dce8f1;
  border-radius: 12px;
  background: #f7fbfe;
}

.section-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 13px;
}

.section-heading small { color: var(--muted); }

#installment-schedule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  max-height: 270px;
  padding-right: 5px;
  overflow-y: auto;
}

.derived-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 15px;
  padding: 13px 15px;
  border: 1px solid #f2d88a;
  border-radius: 10px;
  background: #fff9e8;
}

.derived-status span { color: #775e1d; font-size: 0.78rem; font-weight: 750; }
.derived-status strong { color: #9d7200; }
.derived-status small { grid-column: 1 / -1; color: #89784c; }

.payment-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.payment-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #dce7ef;
  border-radius: 11px;
  background: #f7fafc;
}

.payment-summary span { color: #71839a; font-size: 0.72rem; }
.payment-summary strong { color: #0c243d; font-size: 1rem; }
.payment-history-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e1e9ef; }
.payment-history { display: grid; gap: 8px; max-height: 170px; overflow-y: auto; }
.payment-history-item { display: grid; gap: 5px; padding: 11px 13px; border-radius: 9px; background: #f4f8fb; }
.payment-history-item > div { display: flex; justify-content: space-between; gap: 12px; }
.payment-history-item span,
.payment-history-item small { color: #72849a; font-size: .75rem; }
.installment-status-display {
  display: grid;
  min-height: 44px;
  align-content: center;
  padding: 6px 10px;
  border: 1px solid #dce7ef;
  border-radius: 9px;
  background: #f6fafc;
}
.installment-status-display small { color: #78899d; }
.transaction-value small { display: block; margin-top: 5px; color: #76899e; white-space: nowrap; font-weight: 500; }

.notification-panel {
  position: fixed;
  z-index: 300;
  top: 82px;
  right: 18px;
  width: min(430px, calc(100vw - 36px));
  max-height: calc(100vh - 100px);
  overflow: hidden;
  border: 1px solid #dce7ef;
  border-radius: 18px;
  background: white;
  box-shadow: 0 26px 70px rgba(9, 36, 58, 0.27);
}

.notification-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 21px;
  border-bottom: 1px solid #e4ecf2;
  background: linear-gradient(145deg, #f8fcff, #edf7fd);
}

.notification-panel-heading h2 { font-size: 1.25rem; }
.notification-list { display: grid; gap: 9px; max-height: calc(100vh - 195px); padding: 13px; overflow-y: auto; }
.notification-card { display: grid; gap: 11px; padding: 15px; border: 1px solid #e0e8ef; border-radius: 12px; background: white; }
.notification-card.unread { border-left: 4px solid #168fe1; background: #f7fbff; }
.notification-card.overdue { border-left-color: #dc3545; background: #fff8f8; }
.notification-card.due { border-left-color: #eeb321; }
.notification-card.status { border-left-color: #12a66c; }
.notification-card p { margin: 5px 0; color: #52667d; line-height: 1.4; }
.notification-card small { color: #8a99aa; }
.notification-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.notification-actions .text-button { padding: 6px 8px; border-radius: 7px; background: #edf5fa; font-size: 0.7rem; }
.notification-empty { display: grid; gap: 5px; padding: 35px 15px; color: #71839a; text-align: center; }

.toast-stack {
  position: fixed;
  z-index: 400;
  top: 84px;
  right: 20px;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 40px));
  pointer-events: none;
}

.app-toast {
  display: grid;
  gap: 5px;
  padding: 15px 17px;
  border: 1px solid #dce7ef;
  border-left: 5px solid #168fe1;
  border-radius: 12px;
  opacity: 0;
  color: #17324a;
  background: white;
  box-shadow: 0 18px 45px rgba(9, 36, 58, 0.22);
  transform: translateX(25px);
  transition: opacity .22s, transform .22s;
}
.app-toast.visible { opacity: 1; transform: translateX(0); }
.app-toast.success { border-left-color: #12a66c; }
.app-toast.warning { border-left-color: #eeb321; }
.app-toast.danger { border-left-color: #dc3545; }
.app-toast span { color: #63758b; font-size: .82rem; line-height: 1.4; }

/* Refinamentos de navegação, relatórios e títulos */
.topbar .nav-dropdown[open] > .nav-item {
  border-color: transparent;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
}

.topbar .nav-item.active,
.topbar .nav-dropdown > summary.active,
.topbar .nav-dropdown.menu-expanded > summary {
  border-color: rgba(255, 210, 31, 0.32);
  color: #ffd21f;
  background: linear-gradient(90deg, rgba(255, 202, 26, 0.18), rgba(255, 202, 26, 0.06));
  box-shadow: inset 3px 0 0 #ffd21f;
}

.topbar .nav-dropdown-menu {
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height .38s ease, opacity .25s ease, transform .38s ease,
    margin .38s ease, padding .38s ease;
}

.topbar .nav-dropdown.menu-expanded .nav-dropdown-menu {
  max-height: 320px;
  margin-top: 5px;
  margin-bottom: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  opacity: 1;
  transform: translateY(0);
}

.notification-button {
  position: fixed;
  z-index: 180;
  top: 24px;
  right: 38px;
  width: 48px;
  height: 48px;
  margin: 0;
  border-color: #dce7ef;
  color: #536b83;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(25, 58, 84, 0.1);
}

.notification-button:hover {
  color: #0b84d5;
  background: white;
  transform: translateY(-1px);
}

.notification-button strong {
  top: -6px;
  right: -6px;
  border-color: #f7fbfe;
}

.notification-bell {
  position: relative;
  width: 15px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom: 0;
}

.notification-bell::before {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  left: -4px;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
}

.notification-bell::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

#view-overview .page-heading.heading-with-action {
  grid-template-columns: 110px minmax(0, 1fr) auto;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.result-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-pdf-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding-inline: 15px;
  border-radius: 9px;
  box-shadow: 0 7px 18px rgba(9, 126, 205, 0.2);
}

.pdf-button-icon {
  display: grid;
  min-width: 29px;
  height: 24px;
  padding: 0 4px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.date-filter-group {
  width: min(100%, 680px);
  grid-column: 1 / -1;
  justify-self: center;
}

.title-payment-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 6px;
  min-width: 238px;
  margin-top: 9px;
}

.title-payment-progress > span {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #f7fafc;
}

.title-payment-progress small {
  margin: 0;
  color: #74869a;
  font-size: .65rem;
  font-weight: 750;
  text-transform: uppercase;
}

.title-payment-progress strong {
  white-space: nowrap;
  color: #172d42;
  font-size: .78rem;
}

.title-payment-progress .paid-value {
  border-color: #bce6d4;
  background: #f0fbf6;
}

.title-payment-progress .paid-value strong { color: #087f52; }
.title-payment-progress .open-value {
  border-color: #f1d59b;
  background: #fff9ec;
}
.title-payment-progress .open-value strong { color: #a86d00; }

#view-overview .table-wrapper,
.titles-view .table-wrapper {
  overflow-x: auto;
}

#view-overview table,
.titles-view table {
  min-width: 1120px;
}

.attachment-metadata {
  width: 100%;
  margin: 8px 0;
  color: var(--text);
  font-weight: 400;
}

.notification-card.attachment { border-left-color: #6857d9; }

/* Refinamentos de consulta, alertas e segurança */
.status.pending {
  color: #b4232f;
  background: #ffeaec;
  border: 1px solid #ffc5ca;
}

.status.partial {
  color: #8a6400;
  background: #fff2c7;
  border: 1px solid #f3d36a;
}

.status.paid {
  color: #087a4e;
  background: #ddf8eb;
  border: 1px solid #a9e7ca;
}

.title-payment-progress .open-value {
  color: #b4232f;
  border: 1px solid #ffc4c9;
  background: #fff0f1;
}

.title-payment-progress .open-value small,
.title-payment-progress .open-value strong {
  color: inherit;
}

.titles-view tbody td,
#balance-list td {
  vertical-align: middle;
}

.titles-view tbody td:nth-child(4),
.titles-view tbody td:nth-child(5),
#balance-list td:nth-child(3),
#balance-list td:nth-child(4) {
  text-align: center;
}

#balance-list td:nth-child(5) {
  text-align: right;
}

#balance-list .title-payment-progress {
  justify-content: end;
  margin-left: auto;
}

.titles-view .row-actions,
#balance-list .row-actions {
  min-height: 100%;
  align-content: center;
  justify-content: center;
  vertical-align: middle;
}

.titles-view .row-actions .text-button.action-outline,
.titles-view .row-more-menu > summary,
#balance-list .row-actions .text-button.action-outline {
  min-height: 33px;
  padding-inline: 10px;
  font-size: 0.7rem;
}

.titles-view .row-more-menu > summary {
  min-width: 37px;
}

.report-pdf-button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 9px;
}

.pdf-button-icon {
  min-width: 25px;
  width: 25px;
  height: 22px;
  padding: 0;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #567089;
  background: transparent;
  font-size: 1rem;
}

.password-toggle:hover,
.password-toggle.showing {
  color: #087fc8;
  background: #eaf5fc;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-button.alert-urgent {
  color: #c82432;
  border-color: #ffc0c5;
  background: #fff0f1;
  box-shadow: 0 8px 26px rgba(200, 36, 50, 0.22);
  animation: urgent-bell-pulse 1.8s ease-in-out infinite;
}

.notification-button.alert-info {
  color: #9a7100;
  border-color: #f0d067;
  background: #fff8dc;
  box-shadow: 0 8px 24px rgba(180, 132, 0, 0.16);
}

.notification-button.alert-urgent strong {
  background: #d72d3a;
}

.notification-button.alert-info strong {
  color: #3c2d00;
  background: #ffc400;
}

@keyframes urgent-bell-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

#view-overview .page-heading::before { content: "$"; }
#view-dashboard .page-heading::before { content: "↗"; }
#view-titles .page-heading::before { content: "▤"; }
#view-parties .page-heading::before { content: "♙"; }
#view-services .page-heading::before { content: "⌘"; }
#view-users .page-heading::before { content: "♚"; }
#view-logs .page-heading::before { content: "☷"; }
#view-documents .page-heading::before { content: "▧"; }

@media (max-width: 980px) {
  .notification-button { top: 22px; right: 22px; }
  #view-overview .page-heading.heading-with-action { grid-template-columns: 90px minmax(0, 1fr); }
  #view-overview .report-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 620px) {
  .compact-panel .panel-heading,
  .result-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .report-pdf-button { justify-content: center; }
  .summary-item,
  .summary-item.pending,
  .summary-item.received {
    grid-column: span 6;
  }
}

@media (max-width: 1350px) {
  .dashboard-filters { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
  .dashboard-kpis { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
}

@media (max-width: 760px) {
  .dashboard-filters,
  .dashboard-kpis,
  .dashboard-charts { grid-template-columns: 1fr; }
  .dashboard-chart-card.chart-wide { grid-column: auto; }
  .dashboard-kpi { min-height: 125px; }
  #installment-schedule-fields,
  .payment-summary { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 18px;
    overflow: visible;
    border-right: 0;
  }

  .brand-row {
    padding: 0;
  }

  .brand {
    display: flex;
    align-items: center;
  }

  .brand img {
    width: 110px;
    height: 70px;
    margin: 0 18px 0 0;
  }

  .brand-copy {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .brand-copy .eyebrow,
  .welcome-message {
    margin: 0 0 4px;
  }

  .main-nav {
    min-height: 0;
    flex-direction: row;
    margin-top: 17px !important;
    overflow-x: auto;
  }

  .nav-item,
  .nav-dropdown {
    width: auto;
    flex: 0 0 auto;
  }

  .nav-dropdown-menu {
    position: absolute;
    min-width: 210px;
    margin-left: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: #06243a;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  }

  .logout-item {
    margin: 0 0 0 auto;
  }

  main.container {
    margin-left: 0;
    padding: 30px 22px 20px;
  }
}

@media (max-width: 620px) {
  .page-heading {
    grid-template-columns: 72px 1fr;
    gap: 15px;
  }

  .page-heading::before {
    width: 72px;
    height: 72px;
    border-radius: 15px;
    font-size: 1.5rem;
  }

  .page-heading h2 {
    font-size: 1.75rem;
  }

  .app-footer {
    flex-direction: column;
  }
}

/* Resumo por moeda inspirado no painel executivo */
.currency-summary .currency-block {
  border: 1px solid #dde6ed;
  border-top: 4px solid var(--currency-accent);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(28, 59, 82, 0.07);
}

.currency-summary .currency-brl {
  --currency-accent: #083b5c;
  --currency-soft: #e9f1f6;
  border-color: #174f70;
  border-top-color: #083b5c;
}

.currency-summary .currency-usd {
  --currency-accent: #123d72;
  --currency-soft: #eaf0f8;
  border-color: #28588d;
  border-top-color: #123d72;
}

.currency-summary .currency-heading {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid #dfe7ed;
  background: #fff;
}

.currency-summary .currency-heading > span {
  padding: 8px 11px;
  color: var(--currency-accent);
  background: var(--currency-soft);
  font-size: 0.74rem;
}

.currency-summary .currency-heading > div {
  display: grid;
  gap: 3px;
}

.currency-summary .currency-heading > div strong {
  color: #091b31;
  font-size: 0.92rem;
}

.currency-summary .currency-heading > div small,
.currency-summary .currency-heading time {
  color: #65778c;
  font-size: 0.7rem;
  font-style: normal;
}

.currency-summary .currency-heading time {
  margin-left: auto;
}

.currency-content {
  padding: 21px 20px 18px;
}

.currency-balance {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 17px;
  border-bottom: 1px solid #dfe7ed;
}

.currency-balance > div {
  display: grid;
  gap: 6px;
}

.currency-balance span {
  color: #617287;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.currency-balance strong {
  color: #071b33;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.currency-balance p {
  max-width: 155px;
  margin: 0;
  color: #64768a;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: right;
}

.currency-summary .summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 5px 0 0;
}

.currency-summary .summary-item,
.currency-summary .summary-item.pending,
.currency-summary .summary-item.received {
  display: grid;
  min-height: 85px;
  grid-column: auto;
  align-content: center;
  gap: 8px;
  padding: 16px 14px;
  border: 0;
  border-radius: 0;
}

.currency-summary .summary-item:nth-child(odd) {
  border-right: 1px solid #dfe7ed;
}

.currency-summary .summary-item:nth-child(n+3) {
  border-top: 1px solid #dfe7ed;
}

.currency-summary .summary-item.income { background: #f0faf5; }
.currency-summary .summary-item.expense { background: #fff4f5; }
.currency-summary .summary-item.pending,
.currency-summary .summary-item.received {
  background: #f5f7f9;
}

.currency-summary .summary-item span {
  position: relative;
  padding-left: 14px;
  color: #5c6d82;
  font-size: 0.72rem;
  font-weight: 750;
}

.currency-summary .summary-item span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: currentColor;
}

.currency-summary .summary-item strong {
  color: #071b33;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  white-space: nowrap;
}

.currency-summary .summary-item.income span,
.currency-summary .summary-item.income strong { color: #087a4e; }
.currency-summary .summary-item.expense span,
.currency-summary .summary-item.expense strong { color: #b4232f; }
.currency-summary .summary-item.pending span,
.currency-summary .summary-item.received span {
  color: #68798b;
}

.currency-summary .summary-item.pending strong,
.currency-summary .summary-item.received strong {
  color: #172d42;
}

.collection-progress {
  margin-top: 17px;
  padding: 12px 14px;
  border: 1px solid #dce5ec;
  border-radius: 10px;
  background: #f8fafc;
}

.collection-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #596b80;
  font-size: 0.7rem;
}

.collection-progress strong {
  color: #071b33;
}

.collection-progress progress {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #e7edf2;
}

.collection-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e7edf2;
}

.collection-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--currency-accent);
}

.collection-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--currency-accent);
}

.currency-footnote {
  margin: 12px 0 0;
  color: #65778b;
  font-size: 0.7rem;
}

@media (max-width: 620px) {
  .currency-summary .currency-heading time {
    display: none;
  }

  .currency-content {
    padding-inline: 15px;
  }

  .currency-balance {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .currency-balance p {
    max-width: none;
    text-align: left;
  }
}

/* Responsividade global para notebooks, tablets e celulares */
@media (max-width: 1500px) {
  main.container {
    padding-inline: 30px;
  }

  .balance-filters {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
}

@media (max-width: 1180px) {
  main.container {
    padding-inline: 24px;
  }

  .page-heading {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
  }

  .page-heading::before {
    width: 88px;
    height: 88px;
  }

  .balance-filters,
  .dashboard-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-card.chart-wide {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  #app-shell {
    min-width: 0;
  }

  .topbar {
    position: relative;
    z-index: 220;
  }

  .main-nav {
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .nav-dropdown-menu {
    z-index: 240;
  }

  main.container {
    width: 100%;
    max-width: none;
  }

  .notification-button {
    position: absolute;
    top: 22px;
    right: 22px;
  }

  .notification-panel {
    position: fixed;
    top: 78px;
    right: 18px;
    width: min(390px, calc(100vw - 36px));
    max-height: calc(100dvh - 96px);
  }

  .currency-summary {
    grid-template-columns: 1fr;
  }

  .currency-summary .currency-block {
    width: 100%;
  }

  #view-overview table {
    min-width: 930px;
  }

  .titles-view table {
    min-width: 1080px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 15px 14px 12px;
  }

  .brand img {
    width: 88px;
    height: 58px;
    margin-right: 12px;
  }

  .brand-copy {
    min-width: 0;
    padding-left: 12px;
  }

  .brand-copy h1 {
    font-size: 1.05rem;
  }

  .brand-copy .eyebrow {
    font-size: 0.62rem;
  }

  .welcome-message {
    max-width: calc(100vw - 155px);
    overflow: hidden;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav {
    gap: 5px;
    margin-top: 12px !important;
  }

  .nav-item {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .nav-dropdown-menu {
    max-width: calc(100vw - 28px);
  }

  main.container {
    padding: 24px 16px 18px;
  }

  .notification-button {
    top: 17px;
    right: 16px;
    width: 43px;
    height: 43px;
  }

  .page-heading,
  #view-overview .page-heading.heading-with-action {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 23px;
  }

  .page-heading::before {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    font-size: 1.35rem;
  }

  .page-heading h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .page-heading p:last-child {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .filter-panel,
  .panel,
  .currency-block {
    border-radius: 13px;
  }

  .filter-panel,
  .panel {
    padding-inline: 15px;
  }

  .filter-heading,
  .panel-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .balance-filters,
  .dashboard-filters,
  .dashboard-kpis,
  .form-row,
  .date-filter-group {
    grid-template-columns: 1fr;
  }

  .date-filter-group {
    width: 100%;
  }

  .currency-content {
    padding: 17px 15px 15px;
  }

  .currency-balance strong {
    font-size: clamp(1.4rem, 8vw, 1.85rem);
  }

  .currency-summary .summary-item strong {
    font-size: clamp(0.92rem, 4.5vw, 1.15rem);
  }

  dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  dialog > form,
  #transaction-form,
  .dialog-content {
    padding: 21px 18px;
  }

  .dialog-heading {
    margin-bottom: 18px;
  }

  .notification-list {
    max-height: calc(100dvh - 185px);
  }

  .result-heading-actions {
    flex-direction: row;
    align-items: center;
  }

  .app-footer {
    gap: 8px;
    font-size: 0.72rem;
  }
}

@media (max-width: 520px) {
  .brand-copy .eyebrow,
  .welcome-message {
    display: none;
  }

  .brand-copy {
    border-left: 0;
  }

  .brand-copy h1 {
    max-width: 140px;
  }

  .notification-button {
    top: 16px;
  }

  .page-heading {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .page-heading::before {
    width: 52px;
    height: 52px;
  }

  .page-heading .eyebrow {
    font-size: 0.62rem;
  }

  .filter-heading,
  .panel-heading,
  .result-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-heading-actions {
    display: grid;
    grid-template-columns: 1fr 40px;
  }

  .transaction-count {
    justify-self: start;
  }

  .report-pdf-button {
    justify-self: end;
  }

  .currency-summary .currency-heading {
    min-height: 68px;
    padding-inline: 14px;
  }

  .currency-summary .summary-grid {
    grid-template-columns: 1fr;
  }

  .currency-summary .summary-item,
  .currency-summary .summary-item.pending,
  .currency-summary .summary-item.received {
    min-height: 72px;
    border-right: 0;
    border-top: 1px solid #dfe7ed;
  }

  .currency-summary .summary-item:first-child {
    border-top: 0;
  }

  .type-selector {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions .button {
    width: 100%;
  }

  .notification-panel {
    top: 70px;
    right: 10px;
    width: calc(100vw - 20px);
  }

  .notification-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  main.container {
    padding-inline: 11px;
  }

  .brand img {
    width: 74px;
  }

  .brand-copy h1 {
    font-size: 0.92rem;
  }

  .page-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .page-heading::before {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .page-heading h2 {
    font-size: 1.4rem;
  }

  .currency-balance strong {
    font-size: 1.3rem;
  }
}

/* Menu hambúrguer para resoluções de tablet e celular */
.mobile-menu-button {
  display: none;
  border: 0;
  cursor: pointer;
}

@media (max-width: 980px) {
  .topbar {
    padding-right: 128px;
  }

  .mobile-menu-button {
    position: absolute;
    z-index: 260;
    top: 22px;
    right: 17px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 11px 9px;
    align-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    background: rgba(9, 52, 80, 0.94);
    box-shadow: 0 8px 20px rgba(0, 10, 20, 0.24);
  }

  .mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .topbar.mobile-menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .topbar.mobile-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .topbar.mobile-menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .topbar .main-nav {
    display: none;
    width: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px !important;
    padding: 10px 0 0;
    overflow: visible;
  }

  .topbar.mobile-menu-open .main-nav {
    display: flex;
    animation: mobile-menu-enter 0.24s ease both;
  }

  .topbar .nav-item,
  .topbar .nav-dropdown {
    width: 100%;
    flex: none;
  }

  .topbar .nav-item {
    min-height: 44px;
  }

  .topbar .nav-dropdown-menu {
    position: static;
    width: calc(100% - 14px);
    min-width: 0;
    max-width: none;
    margin: 4px 0 4px 14px;
    overflow: hidden;
    border: 0;
    border-left: 2px solid rgba(61, 178, 237, 0.45);
    border-radius: 0 8px 8px 0;
    background: rgba(0, 11, 21, 0.28);
    box-shadow: none;
  }

  .topbar .nav-dropdown.menu-expanded .nav-dropdown-menu {
    max-height: 360px;
    overflow: visible;
  }

  .topbar .nav-dropdown-menu button {
    width: 100%;
    min-height: 42px;
    text-align: left;
    white-space: normal;
  }

  .topbar .logout-item {
    width: 100%;
    margin: 8px 0 0;
  }

  .notification-button {
    z-index: 250;
    right: 70px;
  }

  @keyframes mobile-menu-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-right: 116px;
  }

  .mobile-menu-button {
    top: 16px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .notification-button {
    right: 62px;
  }
}
