:root {
  --maurer-blue: #1A66A8;
  --maurer-blue-dark: #134F88;
  --maurer-green: #04AD20;
  --maurer-green-dark: #02651A;
  --maurer-green-soft: #E6F7EA;
  --bg-clinical: #f4f7fa;
  --border-soft: #d6dde7;
  --text-main: #1f2d3d;
  --text-muted: #7a8795;
  --white: #ffffff;
  --warning-soft: #fff6db;
  --warning-text: #80621f;
  --cta-soft: #f4b37d;
  --shadow-soft: 0 10px 28px rgba(31, 45, 61, 0.09);
  --shadow-card: 0 4px 14px rgba(31, 45, 61, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text-main);
  background: var(--white);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input,
select {
  font: inherit;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--white);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  height: 100vh;
  width: 248px;
  padding: 16px 14px 20px;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(160deg, rgba(19, 79, 136, 0.9), rgba(2, 101, 26, 0.95) 48%, rgba(4, 173, 32, 0.88)),
    var(--maurer-green-dark);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  margin: 0 0 24px;
  padding: 12px 10px 8px;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.brand img {
  display: block;
  width: 170px;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  object-position: center;
}

.nav {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  flex-direction: column;
  gap: 4px;
  scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
  scrollbar-width: thin;
}

.nav::-webkit-scrollbar {
  width: 8px;
}

.nav::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  background-clip: padding-box;
}

.nav::-webkit-scrollbar-track {
  background: transparent;
}

.nav-section {
  margin: 20px 4px 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.nav-section:first-child {
  margin-top: 0;
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 18px;
  border-radius: 22px;
  background: transparent;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item.active {
  color: var(--maurer-blue-dark);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(2, 65, 26, 0.12);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.nav-item.active:hover {
  background: var(--white);
}

.nav-parent {
  width: 100%;
  text-align: left;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-group .nav-parent,
.nav-group .nav-parent:hover,
.nav-group.is-collapsed .nav-parent,
.nav-group.is-expanded .nav-parent {
  background: transparent;
}

.nav-group .nav-item.active {
  color: var(--maurer-blue-dark);
  background: var(--white);
}

.nav-chevron {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-left: auto;
  place-items: center;
  color: currentColor;
  transform: rotate(180deg);
  transition: transform 160ms ease;
}

.nav-chevron::before {
  width: 9px;
  height: 9px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
}

.nav-submenu {
  display: grid;
  gap: 8px;
  padding: 4px 8px 8px 54px;
}

.nav-subitem {
  display: flex;
  min-height: 38px;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.nav-subitem:hover,
.nav-subitem.active {
  color: var(--white);
}

.nav-group.is-collapsed .nav-chevron {
  transform: rotate(0deg);
}

.nav-group.is-collapsed .nav-submenu {
  display: none;
}

.icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: currentColor;
  flex: 0 0 22px;
}

.icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-footer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.logout-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.version {
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.main {
  width: calc(100% - 248px);
  min-height: 100vh;
  margin-left: 248px;
  background: var(--white);
}

.app-shell.sidebar-collapsed .sidebar {
  width: 78px;
  align-items: center;
}

.app-shell.sidebar-collapsed .brand {
  width: 50px;
  padding: 8px;
  justify-content: center;
}

.app-shell.sidebar-collapsed .brand img,
.app-shell.sidebar-collapsed .nav-item span:not(.icon),
.app-shell.sidebar-collapsed .nav-submenu,
.app-shell.sidebar-collapsed .nav-section,
.app-shell.sidebar-collapsed .logout-button span:not(.icon),
.app-shell.sidebar-collapsed .version {
  display: none;
}

.app-shell.sidebar-collapsed .nav {
  align-items: center;
}

.app-shell.sidebar-collapsed .nav-item {
  width: 42px;
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed .logout-button {
  width: 42px;
  padding: 0;
}

.app-shell.sidebar-collapsed .main {
  width: calc(100% - 78px);
  margin-left: 78px;
}

.app-shell.doctor-mode .sidebar,
.app-shell.doctor-mode .topbar {
  display: none;
}

.app-shell.doctor-mode .main {
  width: 100%;
  margin-left: 0;
}

.topbar {
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 28px;
  background: var(--white);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.user-identity-copy {
  display: grid;
  min-width: 0;
  justify-items: end;
  gap: 2px;
}

.user-identity-copy strong,
.user-identity-copy span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-identity-copy strong {
  color: #1f2d3d;
  font-size: 14px;
  font-weight: 900;
}

.user-identity-copy span {
  color: #667385;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button,
.profile-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--maurer-green);
  background: var(--maurer-green-soft);
  font-size: 17px;
  font-weight: 800;
}

.icon-button:hover,
.profile-button:hover,
.btn:hover,
.pill:hover,
.add-payment:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.icon-button,
.profile-button,
.btn,
.pill,
.add-payment {
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.menu-button {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: var(--maurer-green-dark);
}

.profile-button {
  width: 58px;
  border-radius: 999px;
  background: linear-gradient(90deg, #DCFBE3, #C7F2D2);
}

.avatar {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid rgba(26, 102, 168, 0.16);
  border-radius: 50%;
  color: var(--maurer-blue);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.workspace {
  min-height: calc(100vh - 62px);
  margin-right: 18px;
  padding: 28px 32px 38px;
  border-radius: 8px;
  background: var(--bg-clinical);
  box-shadow: inset 0 8px 30px rgba(26, 102, 168, 0.03);
}

.card {
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.8);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.module-header {
  display: flex;
  overflow: visible;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.title-group {
  min-width: 235px;
  margin-right: auto;
}

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

h1 {
  color: #172136;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.title-group p {
  margin-top: 2px;
  color: #6f7e95;
  font-size: 14px;
  font-weight: 800;
}

.status-badge {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid #f0c892;
  border-radius: 999px;
  color: #a55316;
  background: #fff3df;
  font-size: 12px;
  font-weight: 800;
}

.status-badge.open {
  border-color: rgba(4, 173, 32, 0.45);
  color: var(--maurer-green-dark);
  background: var(--maurer-green-soft);
}

.btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.btn-secondary {
  border: 2px solid rgba(4, 173, 32, 0.72);
  color: var(--maurer-green);
  background: var(--white);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green));
  box-shadow: 0 10px 20px rgba(26, 102, 168, 0.18);
}

.search-field {
  display: flex;
  width: min(330px, 26vw);
  min-width: 230px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 2px solid rgba(4, 173, 32, 0.6);
  border-radius: 11px;
  color: #60646d;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(4, 173, 32, 0.12);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.patient-search-wrap {
  position: relative;
  display: flex;
  flex: 0 1 auto;
}

input.search-field {
  outline: 0;
}

.search-field::placeholder {
  color: #60646d;
  opacity: 1;
}

.search-field:focus,
.service-search:focus,
.input-visual:focus,
.select-visual:focus {
  border-color: var(--maurer-blue);
  box-shadow: 0 0 0 3px rgba(26, 102, 168, 0.12);
}

.patient-dropdown {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  left: 0;
  width: min(500px, 82vw);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(31, 45, 61, 0.18);
}

.patient-dropdown-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: #5c6470;
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 700;
}

.patient-result {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #e8eef6;
  color: #28313d;
  background: var(--white);
  text-align: left;
}

.patient-result:last-child {
  border-bottom: 0;
}

.patient-result:hover,
.patient-result.active {
  background: #E8F0F8;
}

.patient-result-name {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 800;
}

.patient-result-meta {
  color: #5b6470;
  font-size: 13px;
  font-weight: 600;
}

.patient-result-id {
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--maurer-green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.patient-empty {
  padding: 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 20px;
  margin-top: 18px;
}

.left-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 22px;
}

.patient-card,
.services-card {
  min-height: 150px;
}

.card h2 {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 17px;
  font-weight: 800;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}

.card-title-row h2 {
  border-bottom: 0;
}

.change-patient {
  min-height: 34px;
  margin-right: 14px;
  padding: 0 14px;
  border: 2px solid #ff4848;
  border-radius: 12px;
  color: #ff4848;
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.summary-card h2 {
  text-align: center;
}

.admin-view {
  min-width: 0;
}

.cash-register-view {
  min-height: calc(100vh - 128px);
}

.cash-register-shell {
  min-height: calc(100vh - 128px);
  border-radius: 18px;
}

.cash-register-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.cash-register-header h1 {
  font-size: 19px;
}

.cash-register-header p {
  margin-top: 4px;
  color: #5f6978;
  font-size: 13px;
  font-weight: 750;
}

.cash-register-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.cash-register-actions button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--maurer-green);
  border-radius: 5px;
  color: var(--maurer-green-dark);
  background: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.cash-register-actions button.warning {
  border-color: #ff7a1a;
  color: #f06100;
}

.cash-register-actions button.info {
  border-color: #2176e8;
  color: #2176e8;
}

.cash-register-actions button.solid {
  color: var(--white);
  background: var(--maurer-green-dark);
}

.cash-register-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.cash-register-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 6px;
  padding: 6px;
  border: 1px solid #cfe0ee;
  border-radius: 12px;
  background: #f8fbfd;
}

.cash-register-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--maurer-green-dark);
  border-radius: 5px;
  color: var(--maurer-green-dark);
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.cash-register-tabs button.active {
  color: var(--white);
  background: var(--maurer-green-dark);
}

.cash-register-tabs .cash-close-quick {
  border-color: #134f88;
  color: var(--white);
  background: #134f88;
  text-transform: uppercase;
}

.cash-register-tabs .cash-consolidated-quick {
  border-color: #0f766e;
  color: var(--white);
  background: #0f766e;
  text-transform: uppercase;
}

.cash-register-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cash-register-kpis article {
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  border: 1px solid #d7e2ed;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 22px rgba(31, 45, 61, 0.04);
}

.cash-register-kpis span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.cash-register-kpis strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 28px;
  font-weight: 950;
}

.cash-register-kpis p {
  overflow: hidden;
  margin-top: 8px;
  color: #263548;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.cash-register-filters,
.cash-register-table-card {
  padding: 16px;
  border: 1px solid #d7e2ed;
  border-radius: 16px;
  background: var(--white);
}

.cash-register-filters h2 {
  padding: 0;
  border: 0;
  color: #111827;
  font-size: 16px;
}

.cash-register-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, 0.55fr);
  gap: 12px;
  margin-top: 14px;
}

.cash-register-filter-grid label,
.cash-register-filter-groups label {
  display: grid;
  gap: 8px;
  color: #2f3847;
  font-size: 13px;
  font-weight: 850;
}

.cash-register-filter-grid input,
.cash-register-filter-grid select,
.cash-register-filter-groups select {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  color: #263241;
  background: var(--white);
  font-weight: 750;
}

.cash-register-filter-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cash-register-filter-groups fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #e0e8f1;
  border-radius: 12px;
  background: #f8fbff;
}

.cash-register-filter-groups legend {
  padding: 0 6px;
  color: var(--maurer-green-dark);
  font-size: 12px;
  font-weight: 950;
}

.cash-register-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.cash-register-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.cash-register-table th {
  padding: 12px 7px;
  color: #334155;
  background: #f6f8fb;
  font-size: 11px;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.cash-register-table td {
  padding: 14px 7px;
  border-top: 1px solid #d9e0e8;
  color: #111827;
  vertical-align: middle;
}

.cash-register-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 0;
  border-top: 1px solid #e5ebf3;
  color: #536276;
  font-size: 12px;
  font-weight: 850;
}

.cash-register-pagination:empty {
  display: none;
}

.cash-register-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cash-register-pagination-actions strong {
  color: #182235;
  font-size: 12px;
  white-space: nowrap;
}

.cash-register-pagination-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  color: var(--maurer-blue);
  background: #fff;
  font-weight: 900;
}

.cash-register-pagination-actions button:not(:disabled):hover {
  border-color: var(--maurer-green-dark);
  color: var(--maurer-green-dark);
}

.cash-register-pagination-actions button:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  background: #f4f7fb;
}

.cash-closing-backdrop {
  z-index: 42;
}

.cash-closing-modal {
  position: relative;
  width: min(100%, 1120px);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 58px rgba(31, 45, 61, 0.28);
}

.cash-closing-header h2 {
  text-transform: uppercase;
}

.cash-closing-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(420px, 0.6fr);
  gap: 16px;
  max-height: calc(100vh - 90px);
  padding: 18px;
  overflow: auto;
  background: #f5f8fb;
}

.cash-closing-calendar-panel,
.cash-closing-summary-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d7e2ed;
  border-radius: 12px;
  background: var(--white);
}

.cash-closing-calendar-top {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.cash-closing-calendar-top strong {
  color: #132238;
  font-size: 15px;
  text-align: center;
  text-transform: capitalize;
}

.cash-closing-calendar-top button {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  color: var(--maurer-blue);
  background: #fff;
  font-size: 22px;
  font-weight: 900;
}

.cash-closing-weekdays,
.cash-closing-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cash-closing-weekdays {
  margin-top: 14px;
}

.cash-closing-weekdays span {
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.cash-closing-calendar {
  margin-top: 8px;
}

.cash-closing-day {
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid #e0e8f1;
  border-radius: 8px;
  color: #1f2d3d;
  background: #fff;
  font-size: 13px;
  font-weight: 950;
}

.cash-closing-day.is-empty {
  border-color: transparent;
  background: transparent;
}

.cash-closing-day small {
  color: #02651a;
  font-size: 9px;
  font-weight: 950;
}

.cash-closing-day.has-movement {
  border-color: rgba(4, 173, 32, 0.45);
  background: #effaf2;
}

.cash-closing-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(26, 102, 168, 0.28);
}

.cash-closing-day.is-selected {
  color: #fff;
  border-color: var(--maurer-blue-dark);
  background: var(--maurer-blue-dark);
}

.cash-closing-day.is-selected small {
  color: #fff;
}

.cash-closing-summary-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.cash-closing-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cash-closing-summary-head span,
.cash-closing-total-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cash-closing-summary-head strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
}

.cash-closing-edit,
.cash-closing-print,
.cash-closing-finalize {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--maurer-green-dark);
  border-radius: 8px;
  color: #fff;
  background: var(--maurer-green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.cash-closing-print {
  width: fit-content;
  justify-self: end;
  background: var(--maurer-blue-dark);
  border-color: var(--maurer-blue-dark);
}

.cash-closing-finalize {
  width: fit-content;
  justify-self: end;
}

.cash-closing-print:disabled,
.cash-closing-finalize:disabled {
  cursor: not-allowed;
  color: #8291a4;
  border-color: #d5dde8;
  background: #eef2f7;
}

.cash-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cash-closing-total-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cash-closing-total-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9e4ef;
  border-radius: 9px;
  background: #fbfdff;
}

.cash-closing-total-grid strong {
  display: block;
  margin-top: 6px;
  color: #132238;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.cash-closing-detail {
  display: grid;
  gap: 8px;
}

.cash-closing-detail h3 {
  margin: 0;
  color: var(--maurer-green-dark);
  font-size: 13px;
  text-transform: uppercase;
}

.cash-closing-detail dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.cash-closing-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #e2e9f2;
  border-radius: 8px;
  background: #fff;
}

.cash-closing-detail dt,
.cash-closing-detail dd {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}

.cash-closing-users {
  display: grid;
  gap: 8px;
}

.cash-closing-movements {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 3px;
}

.cash-closing-movement-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d9e4ef;
  border-radius: 9px;
  background: #fff;
}

.cash-closing-movement-preview > div {
  min-width: 0;
}

.cash-closing-movement-preview strong,
.cash-closing-movement-preview span,
.cash-closing-movement-preview small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-closing-movement-preview > strong {
  color: #132238;
  font-size: 13px;
}

.cash-closing-movement-preview span,
.cash-closing-movement-preview small {
  margin-top: 3px;
  color: #536276;
  font-size: 11px;
  font-weight: 850;
}

.cash-closing-pencil {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  color: var(--maurer-blue);
  background: #fff;
}

.cash-closing-pencil:hover {
  border-color: var(--maurer-green-dark);
  color: var(--maurer-green-dark);
  background: #f7fcf8;
}

.cash-closing-pencil svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cash-closing-users article,
.cash-closing-verified {
  padding: 10px;
  border: 1px solid #d9e4ef;
  border-radius: 9px;
  background: #fff;
}

.cash-closing-users strong,
.cash-closing-verified strong {
  display: block;
  color: #132238;
  font-size: 13px;
}

.cash-closing-users span,
.cash-closing-users small,
.cash-closing-verified span {
  display: block;
  margin-top: 4px;
  color: #536276;
  font-size: 11px;
  font-weight: 850;
}

.cash-closing-users p,
.cash-closing-verified p {
  margin: 6px 0 0;
  color: #263548;
  font-size: 12px;
  font-weight: 900;
}

.cash-closing-verified {
  border-left: 4px solid var(--maurer-green);
  background: #f7fcf8;
}

.cash-closing-verified.is-consolidated {
  border-left-color: var(--maurer-blue);
  background: #f6fbff;
}

.cash-closing-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd8e6;
  border-radius: 12px;
  background: #f8fbff;
}

.cash-closing-edit-modal,
.cash-closing-daily-modal {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.48);
}

.cash-closing-edit-modal #cashClosingFormBody,
.cash-closing-daily-window {
  width: min(100%, 620px);
}

.cash-closing-edit-window {
  overflow: hidden;
  border: 1px solid #cbd8e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(19, 34, 56, 0.28);
}

.cash-closing-edit-header {
  position: relative;
  display: grid;
  place-items: center;
  align-items: center;
  min-height: 100px;
  padding: 14px 72px;
  border-bottom: 1px solid #d8e3ef;
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
}

.cash-closing-edit-header img {
  width: min(78%, 360px);
  height: auto;
  max-height: 76px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.cash-closing-edit-header button {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.cash-closing-form label {
  display: grid;
  gap: 7px;
  color: #2f3847;
  font-size: 12px;
  font-weight: 900;
}

.cash-closing-form input,
.cash-closing-form textarea,
.cash-closing-form select {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  color: #263241;
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.cash-closing-form input[readonly] {
  color: var(--maurer-blue-dark);
  background: #eef7ff;
  border-color: #b9d8f2;
  font-weight: 950;
}

.cash-closing-form input.is-alert {
  color: #b42318;
  background: #fff1f0;
  border-color: #f04438;
  box-shadow: 0 0 0 2px rgba(240, 68, 56, 0.12);
}

.cash-closing-print-inline {
  border-color: var(--maurer-blue-dark);
  color: #fff;
  background: var(--maurer-blue-dark);
}

.consolidated-closures-backdrop {
  z-index: 43;
}

.consolidated-closures-modal {
  width: min(100%, 760px);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 58px rgba(31, 45, 61, 0.28);
}

.consolidated-closures-modal.is-previewing {
  width: min(100%, 1180px);
}

.consolidated-closures-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-height: calc(100vh - 90px);
  padding: 14px;
  overflow: auto;
  background: #f5f8fb;
}

.consolidated-closures-modal.is-previewing .consolidated-closures-body {
  grid-template-columns: minmax(330px, 0.38fr) minmax(480px, 0.62fr);
}

.consolidated-closures-panel,
.consolidated-closures-preview {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e2ed;
  border-radius: 12px;
  background: #fff;
}

.consolidated-closures-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.consolidated-closures-filters label {
  display: grid;
  gap: 6px;
  color: #2f3847;
  font-size: 12px;
  font-weight: 900;
}

.consolidated-closures-filters input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.consolidated-closures-list {
  display: grid;
  gap: 8px;
  max-height: min(520px, calc(100vh - 190px));
  overflow: auto;
  padding-right: 4px;
}

.consolidated-closure-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #d9e4ef;
  border-radius: 10px;
  background: #fbfdff;
}

.consolidated-closure-card strong,
.consolidated-closure-card span,
.consolidated-closure-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consolidated-closure-card strong {
  color: #132238;
  font-size: 13px;
}

.consolidated-closure-card span,
.consolidated-closure-card small {
  margin-top: 4px;
  color: #536276;
  font-size: 11px;
  font-weight: 850;
}

.consolidated-closure-actions {
  display: flex;
  gap: 6px;
}

.consolidated-closure-actions button,
.consolidated-closures-preview .btn {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--maurer-blue-dark);
  border-radius: 8px;
  color: #fff;
  background: var(--maurer-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.consolidated-closure-actions button + button {
  border-color: var(--maurer-green-dark);
  background: var(--maurer-green-dark);
}

.consolidated-closures-preview {
  position: fixed;
  inset: 18px;
  z-index: 70;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #cbd8e6;
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.38);
}

.consolidated-closures-preview[hidden] {
  display: none;
}

.consolidated-closures-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  background: #fff;
}

.consolidated-closures-preview header span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.consolidated-closures-preview header strong {
  display: block;
  margin-top: 3px;
  color: #132238;
  font-size: 16px;
}

.consolidated-closures-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  background: #fff;
}

.consolidated-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.consolidated-closures-empty {
  padding: 18px;
  border: 1px dashed #cbd8e6;
  border-radius: 10px;
  color: #536276;
  background: #fff;
  font-weight: 850;
  text-align: center;
}

.cash-closing-justification,
.cash-closing-movement-editor,
.cash-closing-form #cashClosingFormBody,
.cash-closing-form-actions {
  grid-column: 1 / -1;
}

.cash-closing-edit-step,
.cash-closing-daily-step {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.cash-closing-edit-step h3,
.cash-closing-edit-step p,
.cash-closing-edit-step .cash-closing-justification,
.cash-closing-edit-step .cash-closing-form-actions,
.cash-closing-daily-step h3,
.cash-closing-daily-step p,
.cash-closing-daily-step .cash-closing-justification,
.cash-closing-daily-step .cash-closing-form-actions {
  grid-column: 1 / -1;
}

.cash-closing-edit-step h3,
.cash-closing-daily-step h3 {
  margin: 0;
  color: var(--maurer-green-dark);
  font-size: 13px;
  text-transform: uppercase;
}

.cash-closing-edit-step p,
.cash-closing-daily-step p {
  margin: -2px 0 2px;
  color: #536276;
  font-size: 12px;
  font-weight: 850;
}

.cash-closing-movement-editor {
  display: grid;
  gap: 8px;
}

.cash-closing-movement-editor h3 {
  margin: 0;
  color: var(--maurer-green-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.cash-closing-movement-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 3px;
}

.cash-closing-movement-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 0.5fr) minmax(110px, 0.5fr) minmax(120px, 0.55fr);
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dbe6f0;
  border-radius: 10px;
  background: #fff;
}

.cash-closing-movement-row > div {
  min-width: 0;
}

.cash-closing-movement-row strong,
.cash-closing-movement-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-closing-movement-row strong {
  color: #132238;
  font-size: 12px;
}

.cash-closing-movement-row span {
  margin-top: 4px;
  color: #536276;
  font-size: 11px;
  font-weight: 850;
}

.cash-closing-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.reports-view {
  display: grid;
  gap: 16px;
}

.reports-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}

.reports-header span {
  color: var(--maurer-green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reports-header h1 {
  margin-top: 2px;
  font-size: 24px;
}

.reports-header p {
  margin-top: 4px;
  color: #5f6978;
  font-size: 13px;
  font-weight: 750;
}

.reports-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.reports-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.reports-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  color: #263548;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.reports-tabs button.active {
  border-color: var(--maurer-green-dark);
  color: #fff;
  background: var(--maurer-green-dark);
}

.reports-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
}

.reports-filters label,
.reports-fees-form label {
  display: grid;
  gap: 7px;
  color: #2f3847;
  font-size: 12px;
  font-weight: 900;
}

.reports-filters input,
.reports-filters select,
.reports-fees-form input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  color: #263241;
  background: #fff;
  font-weight: 750;
}

.reports-filters button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--maurer-blue);
  border-radius: 8px;
  color: var(--maurer-blue);
  background: #fff;
  font-weight: 900;
}

.reports-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reports-kpis article {
  min-height: 94px;
  padding: 16px;
}

.reports-kpis span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.reports-kpis strong {
  display: block;
  margin-top: 7px;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
}

.reports-fees-entry {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2fr);
  gap: 16px;
  padding: 16px;
}

.reports-fees-entry h2,
.reports-table-header h2 {
  padding: 0;
  border: 0;
  font-size: 16px;
}

.reports-fees-entry p,
.reports-table-header p {
  margin-top: 4px;
  color: #5f6978;
  font-size: 12px;
  font-weight: 750;
}

.reports-fees-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.reports-table-card {
  padding: 0;
}

.reports-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.reports-table-header span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--maurer-green-dark);
  background: var(--maurer-green-soft);
  font-size: 12px;
  font-weight: 900;
}

.reports-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.reports-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12px;
}

.reports-table th {
  padding: 12px 10px;
  color: #334155;
  background: #f6f8fb;
  font-size: 11px;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.reports-table td {
  padding: 12px 10px;
  border-top: 1px solid #d9e0e8;
  color: #111827;
  vertical-align: top;
}

.reports-table tbody tr:hover {
  background: #f8fbfd;
}

.reports-empty {
  padding: 18px !important;
  color: #64748b !important;
  text-align: center;
  font-weight: 850;
}

.cash-register-table td small {
  display: block;
  margin-top: 4px;
  color: #5d6675;
  font-size: 11px;
  line-height: 1.25;
}

.cash-register-table th:nth-child(1),
.cash-register-table td:nth-child(1) {
  width: 78px;
}

.cash-register-table th:nth-child(2),
.cash-register-table td:nth-child(2) {
  width: 88px;
}

.cash-register-table th:nth-child(4),
.cash-register-table td:nth-child(4),
.cash-register-table th:nth-child(5),
.cash-register-table td:nth-child(5) {
  width: 110px;
}

.cash-register-table th:nth-child(6),
.cash-register-table td:nth-child(6) {
  width: 120px;
}

.cash-register-table th:nth-child(7),
.cash-register-table td:nth-child(7),
.cash-register-table th:nth-child(8),
.cash-register-table td:nth-child(8) {
  width: 92px;
}

.cash-register-table th:nth-child(9),
.cash-register-table td:nth-child(9) {
  width: 188px;
}

.cash-method-chip {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px dashed #d4dce6;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-weight: 900;
}

.cash-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: #22b45b;
}

.cash-state-chip {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid #b9c8ff;
  border-radius: 999px;
  color: #4338ca;
  background: #eef2ff;
  font-weight: 950;
}

.cash-sync-chip {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid #a8e0bd;
  border-radius: 999px;
  color: var(--maurer-green-dark);
  background: #dcfce7;
  font-weight: 950;
}

.user-identity-photo {
  width: 42px;
  height: 42px;
  border-width: 3px;
  box-shadow: 0 0 0 6px rgba(22, 179, 66, 0.12);
}

.avatar.has-photo {
  color: transparent;
}

.cash-register-empty {
  height: 130px;
  color: #64748b !important;
  text-align: center !important;
}

.services-admin-view {
  display: grid;
  gap: 16px;
}

.services-admin-list,
.services-admin-form-panel {
  display: grid;
  gap: 16px;
}

.services-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
}

.services-admin-hero span {
  display: block;
  color: var(--maurer-blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-admin-hero h1 {
  margin: 4px 0 0;
  color: #172136;
  font-size: 25px;
  line-height: 1.15;
}

.services-admin-hero p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.services-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.services-admin-primary,
.services-admin-secondary,
.services-admin-filters button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
}

.services-admin-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-green-dark));
}

.services-admin-primary span {
  display: inline;
  margin-right: 6px;
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
}

.services-admin-secondary {
  border: 1px solid var(--maurer-green);
  color: var(--maurer-green-dark);
  background: var(--white);
}

.services-admin-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.7fr) 130px 110px;
  gap: 10px;
  align-items: end;
  padding: 16px;
}

.services-admin-filters label,
.services-admin-form label {
  display: grid;
  gap: 7px;
  color: #2f3847;
  font-size: 13px;
  font-weight: 900;
}

.services-admin-filters input,
.services-admin-filters select,
.services-admin-form input,
.services-admin-form select,
.services-admin-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  color: #172136;
  background: var(--white);
  font-weight: 800;
}

.services-admin-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.services-admin-filters button {
  border: 1px solid var(--maurer-green-dark);
  color: var(--maurer-green-dark);
  background: var(--white);
}

.services-admin-filters button:first-of-type {
  color: var(--white);
  background: var(--maurer-green-dark);
}

.services-admin-table-card {
  padding: 16px;
}

.services-admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.services-admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.services-admin-table th {
  padding: 12px 10px;
  color: #172136;
  background: #edf2f6;
  font-size: 12px;
  font-weight: 950;
  text-align: left;
}

.services-admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #e0e8f0;
  color: #263548;
  font-size: 13px;
  font-weight: 850;
  vertical-align: middle;
}

.services-admin-table td strong,
.services-admin-table td small,
.services-admin-table td em {
  display: block;
}

.services-admin-table td small,
.services-admin-table td em {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.service-boolean-chip,
.service-status-chip {
  display: inline-grid;
  min-width: 54px;
  min-height: 24px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.service-boolean-chip.is-yes {
  color: var(--white);
  background: var(--maurer-blue);
}

.service-boolean-chip.is-no {
  color: var(--white);
  background: var(--maurer-green-dark);
}

.service-status-chip.is-active {
  color: var(--maurer-green-dark);
  background: var(--maurer-green-soft);
}

.service-status-chip.is-inactive {
  color: #7c4d13;
  background: #fff1d6;
}

.specialties-admin-table th:last-child,
.specialties-admin-table td:last-child {
  width: 150px;
  text-align: center;
}

.specialties-admin-table .services-admin-row-actions {
  justify-content: center;
}

.services-admin-empty {
  padding: 28px !important;
  color: #64748b !important;
  text-align: center;
}

.services-admin-form {
  padding: 18px;
}

.services-form-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr);
  gap: 16px;
}

.services-form-full {
  grid-column: 1 / -1;
}

.services-check {
  display: flex !important;
  min-height: 42px;
  align-items: center;
  gap: 10px !important;
}

.services-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--maurer-green-dark);
}

.services-admin-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.users-view {
  display: flex;
  min-height: calc(100vh - 128px);
  flex-direction: column;
  gap: 14px;
}

.users-header {
  min-height: 64px;
}

.users-new-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.users-new-button span {
  font-size: 18px;
  line-height: 1;
}

.users-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.users-toolbar {
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.users-search {
  display: flex;
  width: min(420px, 100%);
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #85909d;
  border-radius: 8px;
  color: #57616d;
  background: var(--white);
}

.users-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #303846;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.users-search input::placeholder {
  color: #6c7480;
  opacity: 1;
}

.users-table-wrap {
  overflow-x: auto;
  padding: 12px 12px 10px;
}

.users-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
  border-radius: 10px;
  background: #fbfbff;
  font-size: 12px;
}

.users-table th,
.users-table td {
  height: 42px;
  padding: 7px 8px;
  border-bottom: 1px solid #9299a4;
  color: #30343c;
  text-align: left;
  vertical-align: middle;
}

.users-table th {
  height: 44px;
  color: #1e2430;
  background: #f7f8fb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.users-table tr:last-child td {
  border-bottom-color: #d8dde5;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) {
  width: 38px;
  color: #646b75;
  text-align: center;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
  width: 170px;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
  width: 290px;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
  width: 138px;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5) {
  width: 116px;
}

.users-table th:nth-child(6),
.users-table td:nth-child(6) {
  width: 112px;
}

.users-table th:nth-child(7),
.users-table td:nth-child(7) {
  width: 124px;
  text-align: center;
}

.users-table td > strong,
.users-table td small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-table td small {
  margin-top: 4px;
  color: #69727c;
  font-size: 11px;
  font-weight: 800;
}

.user-account {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.user-account strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar-mini {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green-dark));
  font-size: 11px;
  font-weight: 900;
}

.user-pill {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid #8c939d;
  border-radius: 8px;
  color: #444b55;
  background: #fbfbff;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill-green {
  border-color: rgba(4, 173, 32, 0.42);
  color: var(--maurer-green-dark);
  background: var(--maurer-green-soft);
}

.user-modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 24, 32, 0.42);
}

.user-modal {
  width: min(1060px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(230, 247, 234, 0.64), rgba(255, 255, 255, 0.92) 34%),
    var(--white);
  box-shadow: 0 28px 70px rgba(8, 33, 58, 0.26);
}

.user-form {
  display: flex;
  max-height: calc(100vh - 32px);
  flex-direction: column;
}

.user-modal-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px 22px 18px;
  border-bottom: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
  flex: 0 0 auto;
}

.user-modal-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.user-modal-logo {
  justify-self: center;
  width: 124px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.user-modal-brand > div {
  min-width: 0;
}

.user-modal-header span {
  display: block;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.user-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: var(--white);
  font-size: 32px;
  line-height: 1.1;
}

.user-modal-close {
  justify-self: end;
}

.user-modal-header svg,
.user-form-section h3 svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
}

.user-detail-backdrop {
  position: fixed;
  z-index: 82;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 24, 32, 0.42);
}

.user-detail-modal {
  width: min(780px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 16px;
  background: #f7f8fb;
  box-shadow: 0 28px 70px rgba(8, 33, 58, 0.26);
}

.user-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 16px;
  background: #ffffff;
}

.user-detail-header h2 {
  margin: 0;
  color: #172033;
  font-size: 24px;
  line-height: 1.1;
}

.user-detail-header p {
  margin: 4px 0 0;
  color: #5d6675;
  font-size: 13px;
  font-weight: 750;
}

.user-detail-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.user-detail-body {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 136px);
  padding: 0 22px 24px;
  overflow-y: auto;
}

.user-detail-card {
  overflow: hidden;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(18, 30, 46, 0.08);
}

.user-detail-card h3 {
  margin: 0;
  padding: 10px 14px 6px;
  border-bottom: 1px solid #7f8794;
  color: #172033;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.15;
}

.user-detail-rows {
  display: grid;
  gap: 0;
  padding: 2px 14px 14px;
}

.user-detail-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 10px 0;
}

.user-detail-row span {
  color: #424a56;
  font-size: 13px;
  font-weight: 900;
}

.user-detail-row strong {
  min-width: 0;
  color: #172033;
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.user-modal-grid {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 12px;
  padding: 14px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  grid-template-columns: 260px minmax(360px, 1fr) 320px;
  grid-template-areas:
    "photo employee access"
    "photo employee access";
}

.user-form-section {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(214, 221, 231, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.user-form-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #424a56;
  font-size: 17px;
  line-height: 1.1;
}

.user-photo-section {
  grid-area: photo;
}

.user-employee-section {
  grid-area: employee;
}

.user-access-section {
  grid-area: access;
}

.photo-compact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.photo-preview {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px dashed rgba(26, 102, 168, 0.46);
  border-radius: 12px;
  color: #546070;
  background: #f6fbff;
  font-size: 13px;
  font-weight: 900;
  background-position: center;
  background-size: cover;
}

.photo-preview.has-photo {
  min-height: 170px;
  border-style: solid;
  color: transparent;
}

.photo-upload-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--maurer-blue-dark);
  background: #dfefff;
  box-shadow: 0 8px 18px rgba(26, 102, 168, 0.14);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.compact-help,
.compact-info,
.compact-field em {
  color: #5c6571;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.compact-help,
.compact-info {
  margin-top: 8px;
}

.compact-info {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--maurer-blue-dark);
  background: #eef7ff;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 10px;
}

.access-compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px 10px;
}

.user-access-section .compact-grid {
  grid-template-columns: 1fr;
}

.compact-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.compact-field-wide {
  grid-column: span 2;
}

.compact-field span:first-child {
  color: #424a56;
  font-size: 12px;
  font-weight: 900;
}

.compact-field input,
.compact-field select,
.compact-field textarea,
.compact-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #818895;
  border-radius: 8px;
  color: #1d2430;
  background: #fbfbff;
  font-size: 13px;
  font-weight: 750;
}

.compact-field input,
.compact-field select,
.compact-field textarea {
  padding: 0 10px;
  outline: 0;
}

.compact-field textarea {
  min-height: 36px;
  padding-top: 8px;
  resize: none;
}

.compact-field input:focus,
.compact-field select:focus,
.compact-field textarea:focus,
.compact-input:focus-within {
  border-color: var(--maurer-blue);
  box-shadow: 0 0 0 3px rgba(26, 102, 168, 0.12);
}

.compact-input {
  display: flex;
  align-items: center;
}

.compact-input input {
  min-height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compact-input button {
  width: 36px;
  height: 36px;
  background: transparent;
}

.password-eye-toggle {
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  color: #078a31;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

.password-eye-toggle:hover,
.password-eye-toggle:focus-visible,
.password-eye-toggle[aria-pressed="true"] {
  color: #04ad20;
  background: rgba(4, 173, 32, 0.1);
}

.password-eye-toggle:active {
  transform: scale(0.96);
}

.compact-input.password-mismatch {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.password-match-message {
  color: #dc2626;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.doctor-specialty-field {
  padding-top: 4px;
}

.specialty-search-box {
  position: relative;
  display: block;
}

.specialty-suggestions {
  position: static;
  z-index: 95;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(31, 45, 61, 0.16);
}

.specialty-suggestions-header {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px 0 10px;
  border-bottom: 1px solid #e2eaf2;
  color: var(--maurer-blue-dark);
  background: #eef7ff;
  font-size: 11px;
  font-weight: 950;
}

.specialty-suggestions-header button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: var(--maurer-blue-dark);
  background: var(--white);
  font-size: 20px;
  line-height: 1;
}

.specialty-suggestion {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  color: #263241;
  background: var(--white);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.specialty-suggestion:hover {
  color: var(--maurer-blue-dark);
  background: #eef7ff;
}

.specialty-suggestion-add {
  border-top: 1px solid #e2eaf2;
  color: var(--maurer-green-dark);
  background: #f2fbf4;
}

.specialty-suggestion-empty {
  padding: 12px 10px;
  color: #5c6571;
  font-size: 12px;
  font-weight: 850;
}

.add-specialty-button {
  min-height: 34px;
  border: 1px dashed rgba(26, 102, 168, 0.6);
  border-radius: 8px;
  color: var(--maurer-blue-dark);
  background: #eef7ff;
  font-size: 12px;
  font-weight: 900;
}

.doctor-room-tools {
  display: grid;
  gap: 8px;
}

.add-room-button,
.room-creator button {
  min-height: 34px;
  border: 1px dashed rgba(26, 102, 168, 0.6);
  border-radius: 8px;
  color: var(--maurer-blue-dark);
  background: #eef7ff;
  font-size: 12px;
  font-weight: 900;
}

.room-creator {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e7f5;
  border-radius: 10px;
  background: #f8fbff;
}

.room-creator label {
  display: grid;
  gap: 5px;
}

.room-creator span {
  color: #424a56;
  font-size: 12px;
  font-weight: 900;
}

.room-creator input,
.room-creator select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #818895;
  border-radius: 8px;
  color: #1d2430;
  background: #fbfbff;
  font-size: 13px;
  font-weight: 750;
}

.doctor-room-tools em {
  color: #5c6571;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.user-modal-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(26, 102, 168, 0.16);
}

.user-modal-footer .btn {
  min-width: 120px;
  min-height: 38px;
}

.user-access-section > .compact-grid,
.user-access-section > .access-compact-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.patients-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.patients-admin-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(26, 102, 168, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 242, 0.88)),
    var(--white);
}

.patients-admin-top span {
  color: var(--maurer-blue-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.patients-admin-top h1 {
  margin: 7px 0 4px;
  color: #1f2d3d;
  font-size: 28px;
  line-height: 1;
}

.patients-admin-top p {
  color: #5f6975;
  font-size: 14px;
  font-weight: 750;
}

.patients-admin-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patients-admin-meta > span {
  padding: 7px 12px;
  border: 1px solid #dce7f1;
  border-radius: 999px;
  color: #2d3948;
  background: #f8fbff;
  font-size: 12px;
  letter-spacing: 0;
}

.patients-admin-primary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-green-dark), var(--maurer-green));
  box-shadow: 0 12px 22px rgba(4, 173, 32, 0.18);
  font-size: 14px;
  font-weight: 900;
}

.patients-admin-primary svg,
.patients-filter-actions svg,
.patients-admin-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.patients-admin-filters {
  display: grid;
  align-items: end;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(214, 221, 231, 0.86);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(31, 45, 61, 0.08);
  grid-template-columns: minmax(240px, 1.3fr) minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(170px, 0.8fr) auto;
}

.patients-admin-filters label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.patients-admin-filters label span {
  color: #2f3947;
  font-size: 13px;
  font-weight: 850;
}

.patients-admin-filters input,
.patients-admin-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d4dbe4;
  border-radius: 8px;
  outline: 0;
  color: #222b36;
  background: #fbfcfe;
  font-size: 14px;
  font-weight: 750;
}

.patients-admin-filters input:focus,
.patients-admin-filters select:focus {
  border-color: var(--maurer-blue);
  box-shadow: 0 0 0 3px rgba(26, 102, 168, 0.12);
}

.patients-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.patients-filter-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(2, 101, 26, 0.78);
  border-radius: 8px;
  color: var(--maurer-green-dark);
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.patients-filter-actions button:last-child {
  width: 48px;
  padding: 0;
}

.patients-admin-table-card {
  padding: 18px;
  border: 1px solid rgba(214, 221, 231, 0.9);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(31, 45, 61, 0.08);
}

.patients-admin-table-wrap {
  overflow-x: auto;
}

.patients-admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  color: #111820;
  font-size: 14px;
}

.patients-admin-table thead {
  background: #eef3f7;
}

.patients-admin-table th {
  padding: 14px 10px;
  color: #1f2d3d;
  font-size: 13px;
  font-weight: 950;
  text-align: left;
}

.patients-admin-table th:first-child,
.patients-admin-table td:first-child {
  width: 52px;
  color: #4e5966;
}

.patients-admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #e8eef3;
  vertical-align: middle;
}

.patients-admin-table tbody tr:hover {
  background: #f7fbff;
}

.patients-admin-table td strong {
  display: block;
  color: #101820;
  font-weight: 950;
}

.patients-admin-table td small {
  display: block;
  margin-top: 4px;
  color: #6a737f;
  font-size: 12px;
  font-weight: 800;
}

.patients-admin-actions,
.user-actions,
.services-admin-row-actions,
.cash-register-row-actions {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
}

.cash-register-row-actions {
  border-color: #cfe0f3;
}

.patients-admin-actions button,
.user-actions button,
.services-admin-row-actions button,
.cash-register-row-actions button {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border-right: 1px solid #d9e2ec;
  background: var(--white);
  color: #536174;
  transition: background 0.18s ease, color 0.18s ease;
}

.patients-admin-actions button:last-child,
.user-actions button:last-child,
.services-admin-row-actions button:last-child,
.cash-register-row-actions button:last-child {
  border-right: 0;
}

.patients-admin-actions button:hover,
.user-actions button:hover,
.services-admin-row-actions button:hover,
.cash-register-row-actions button:hover {
  background: #f7fbff;
}

.patients-admin-actions svg,
.user-actions svg,
.services-admin-row-actions svg,
.cash-register-row-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.patients-admin-actions .view,
.user-actions .view,
.services-admin-row-actions .view,
.cash-register-row-actions .view {
  color: var(--maurer-blue-dark);
}

.cash-register-row-actions .view:hover {
  color: #fff;
  background: var(--maurer-blue-dark);
}

.patients-admin-actions .edit,
.user-actions .edit,
.services-admin-row-actions .edit,
.cash-register-row-actions .edit {
  color: var(--maurer-green-dark);
}

.patients-admin-actions .lock,
.user-actions .lock,
.services-admin-row-actions .lock,
.cash-register-row-actions .lock,
.patients-admin-actions .status,
.user-actions .status,
.services-admin-row-actions .status,
.cash-register-row-actions .status {
  color: #f07f23;
}

.patients-admin-actions .delete,
.user-actions .delete,
.services-admin-row-actions .delete,
.cash-register-row-actions .delete {
  color: #ef4444;
}

.cash-register-row-actions .sync {
  color: var(--maurer-green-dark);
}

.cash-register-row-actions .print {
  color: #334155;
}

.patients-admin-empty {
  padding: 24px !important;
  color: #6a737f;
  font-weight: 850;
  text-align: center;
}

.card-body {
  padding: 26px 16px 18px;
}

.notice {
  display: flex;
  min-height: 50px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #f0df9d;
  border-radius: 11px;
  color: var(--warning-text);
  background: var(--warning-soft);
  font-size: 14px;
}

.notice.selected {
  border-color: rgba(4, 173, 32, 0.32);
  color: var(--maurer-green-dark);
  background: var(--maurer-green-soft);
}

.patient-info {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.patient-info-summary {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid #e7edf5;
}

.patient-info-summary strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.patient-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.patient-info-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e5ebf3;
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font-size: 13px;
}

.patient-info-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.patient-info-value {
  min-width: 0;
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #39465a;
  font-size: 12px;
  font-weight: 800;
}

.service-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-search {
  display: flex;
  width: 320px;
  max-width: 100%;
  min-height: 46px;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: #5f636b;
  background: #e9edf2;
  font-size: 13px;
  font-weight: 800;
  border: 0;
  outline: 0;
}

.service-search::placeholder {
  color: #5f636b;
  opacity: 1;
}

.pill.selected {
  background: var(--maurer-blue);
  box-shadow: 0 8px 16px rgba(26, 102, 168, 0.16);
}

.pill {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--white);
  background: var(--maurer-green);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.pill-appointment {
  background: linear-gradient(135deg, var(--maurer-green), var(--maurer-green-dark));
  box-shadow: 0 8px 18px rgba(4, 173, 32, 0.18);
}

.pill-attend-now {
  color: var(--maurer-blue-dark);
  background: #dff0ff;
  box-shadow: 0 8px 18px rgba(26, 102, 168, 0.12);
}

.pill-attend-now.selected {
  color: var(--white);
  background: var(--maurer-blue);
}

.pill-outline {
  border: 2px solid rgba(2, 101, 26, 0.5);
  color: rgba(2, 101, 26, 0.62);
  background: var(--white);
}

.empty-state {
  display: flex;
  min-height: 50px;
  align-items: center;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  color: #2c3442;
  background: #fafbfd;
  font-size: 14px;
  font-weight: 600;
}

.services-list {
  display: grid;
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow-x: auto;
  background: transparent;
}

.services-table {
  display: grid;
  min-width: 680px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  background: #fbfcfe;
}

.services-table-head,
.service-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 112px 150px 130px 58px;
  align-items: stretch;
  color: var(--text-main);
  font-size: 13px;
}

.services-table-head {
  min-height: 42px;
  background: #f5f7fa;
  color: #516078;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services-table-head span,
.service-row > * {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--border-soft);
}

.services-table-head span:last-child,
.service-row > *:last-child {
  border-right: 0;
}

.service-row {
  min-height: 58px;
  border-top: 1px solid var(--border-soft);
  background: #eef1f4;
}

.service-row:first-of-type {
  border-top: 0;
}

.service-row.is-locked {
  background: #f7f8fa;
}

.service-name-cell {
  gap: 3px;
}

.service-name-cell strong {
  overflow-wrap: anywhere;
  color: #111827;
}

.service-name-cell small {
  overflow-wrap: anywhere;
  color: #516078;
  font-size: 11px;
  line-height: 1.25;
}

.service-line-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text-main);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  text-align: right;
}

.service-line-input:focus {
  border-color: rgba(4, 140, 55, 0.45);
  outline: 3px solid rgba(4, 140, 55, 0.12);
}

.service-static-value {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #111827;
  background: #eef1f4;
  font-weight: 800;
  text-align: right;
}

.service-line-total {
  color: var(--maurer-green-dark);
  justify-content: end;
  text-align: right;
}

.service-action-cell {
  justify-content: center;
}

.remove-service {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(201, 51, 47, 0.55);
  border-radius: 9px;
  color: #c9332f;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.history-list {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--white);
}

.history-list .empty-state {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

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

.history-table th,
.history-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e8eef6;
  color: var(--text-main);
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
}

.history-table th {
  color: #546175;
  background: #f7f9fc;
  font-weight: 800;
  text-transform: uppercase;
}

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

.history-row {
  cursor: pointer;
}

.history-row:hover,
.history-row.selected {
  background: var(--maurer-green-soft);
}

.history-code {
  display: inline-flex;
  min-width: 56px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--maurer-blue-dark);
  background: #E8F0F8;
  font-weight: 800;
}

.history-doctor {
  color: var(--maurer-green-dark);
  font-weight: 800;
}

.summary-card {
  align-self: start;
}

.summary-body {
  padding: 24px 16px 18px;
}

.amount-row,
.state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #536176;
  font-size: 15px;
  font-weight: 800;
}

.amount-row + .amount-row {
  margin-top: 20px;
}

.amount-row strong {
  color: #334055;
  font-size: 16px;
}

.discount strong {
  color: #d53c36;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  color: var(--maurer-green-dark);
  font-size: 20px;
  font-weight: 800;
}

.total-row strong {
  font-size: 28px;
}

.input-visual,
.select-visual {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: #242932;
  background: var(--white);
  box-shadow: inset 0 1px 2px rgba(31, 45, 61, 0.02);
  font-size: 14px;
  font-weight: 800;
  outline: 0;
}

select.select-visual {
  width: 100%;
  appearance: auto;
}

input.input-visual {
  width: 100%;
}

.right-align {
  justify-content: flex-end;
}

.state-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.state-row strong {
  color: var(--maurer-green-dark);
}

.payment-box {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
}

.payment-box h3 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
}

.payment-box .input-visual,
.payment-box .select-visual {
  margin-bottom: 12px;
}

.payment-box .input-visual:last-child {
  margin-bottom: 0;
}

.payment-amount-field[hidden],
.payment-change[hidden] {
  display: none;
}

.payment-change {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #c8ead1;
  border-radius: 8px;
  background: #f3fbf5;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-change strong {
  color: var(--maurer-green-dark);
  font-size: 15px;
}

.add-payment {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px dashed #b9c1cb;
  border-radius: 11px;
  color: #202734;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.btn-final {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green));
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  width: min(380px, calc(100vw - 32px));
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-card {
  position: relative;
  overflow-wrap: anywhere;
  padding: 14px 42px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 5px solid var(--maurer-green);
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
  box-shadow: 0 14px 36px rgba(13, 28, 42, 0.18);
  pointer-events: auto;
  transform-origin: bottom right;
  animation: toastEnter 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.toast-card.toast-info {
  border-left-color: var(--maurer-blue);
}

.toast-card.toast-error {
  border-left-color: #ffb4a8;
  background: linear-gradient(135deg, #8f1d1d, #dc2626 62%, #ef4444);
  box-shadow: 0 16px 38px rgba(220, 38, 38, 0.28);
}

.toast-card.toast-warning {
  border-left-color: #ef4444;
}

.toast-card.is-removing {
  animation: toastExit 180ms ease-in forwards;
}

.toast-title {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.toast-description {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  transition: color 150ms ease, background 150ms ease;
}

.toast-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.toast-confirm {
  padding-bottom: 16px;
}

.toast-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.toast-action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.toast-action-secondary {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
}

.toast-action-primary {
  color: var(--white);
  background: #dc2626;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.3);
}

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

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translate3d(24px, 12px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toastExit {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(24px, 12px, 0) scale(0.98);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 32, 0.48);
}

.appointment-modal {
  width: min(100%, 1040px);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.8);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 58px rgba(31, 45, 61, 0.26);
}

.modal-header {
  display: flex;
  position: relative;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 20px;
  border-bottom: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
}

.modal-header h2 {
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
}

.modal-header-brand {
  position: absolute;
  left: 50%;
  width: 150px;
  max-width: 34%;
  height: 38px;
  filter: brightness(0) invert(1);
  object-fit: contain;
  transform: translateX(-50%);
}

.modal-close {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(360px, 0.54fr);
  gap: 14px;
  max-height: calc(100vh - 154px);
  padding: 16px 18px;
  overflow: auto;
}

.appointment-field .field-label {
  margin-bottom: 8px;
  font-size: 13px;
}

.modal-select,
.availability-panel {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: #4b5158;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.modal-select {
  padding: 0 14px;
}

.patient-modal {
  width: min(100%, 780px);
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.9);
  border-radius: 8px;
  background: #f2f5f8;
  box-shadow: 0 24px 58px rgba(31, 45, 61, 0.26);
}

.patient-modal-header {
  min-height: 52px;
  border-bottom: 0;
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
}

.patient-modal-header h2 {
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.patient-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.patient-modal-body {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 18px;
  padding: 14px 18px 28px;
}

.patient-modal-field {
  display: grid;
  grid-column: span 3;
  gap: 8px;
  color: #1f2733;
  font-size: 14px;
  font-weight: 700;
}

.patient-modal-field:nth-of-type(3),
.patient-modal-field:nth-of-type(4),
.patient-age-field {
  grid-column: span 2;
}

.patient-modal-field .input-visual {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: var(--white);
  font-weight: 700;
}

.patient-modal-field .input-visual[readonly] {
  color: #5d6670;
  background: #eef2f6;
}

.patient-modal-footer {
  min-height: 70px;
  background: #f2f5f8;
}

.attention-ticket-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 28, 42, 0.54);
  backdrop-filter: blur(4px);
}

.attention-ticket-modal {
  width: min(420px, calc(100vw - 36px));
  overflow: hidden;
  border-radius: 18px;
  background: #f3f6f8;
  box-shadow: 0 28px 70px rgba(13, 28, 42, 0.32);
}

.thermal-ticket {
  width: min(320px, calc(100vw - 76px));
  margin: 22px auto 14px;
  padding: 18px 18px 22px;
  color: #000;
  background:
    linear-gradient(45deg, transparent 8px, #fff 0) bottom left,
    linear-gradient(-45deg, transparent 8px, #fff 0) bottom right,
    #fff;
  background-repeat: repeat-x;
  background-size: 16px 100%, 16px 100%, auto;
  border: 1px solid #000;
  box-shadow: 0 14px 26px rgba(31, 45, 61, 0.14);
  font-family: "Courier New", monospace;
}

.thermal-ticket header {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #000;
  text-align: center;
}

.thermal-ticket header img {
  width: 156px;
  max-height: 76px;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
}

.thermal-ticket h2 {
  padding: 0;
  border: 0;
  color: #000;
  font-size: 18px;
  text-transform: uppercase;
}

.thermal-ticket header span,
.thermal-ticket p {
  color: #000;
  font-size: 11px;
  font-weight: 800;
}

.thermal-ticket-number {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px dashed #000;
}

.thermal-ticket-number span {
  color: #000;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.thermal-ticket-number strong {
  color: #000;
  font-size: 36px;
  line-height: 1;
}

.thermal-ticket dl {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.thermal-ticket dl div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
}

.thermal-ticket dt {
  color: #000;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.thermal-ticket dd {
  min-width: 0;
  margin: 0;
  color: #000;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.thermal-ticket .ticket-section-title {
  padding-top: 8px;
  border-top: 1px dashed #000;
}

.thermal-ticket .ticket-section-title dt,
.thermal-ticket .ticket-section-title dd {
  font-size: 11px;
  text-transform: uppercase;
}

.thermal-ticket .ticket-service-row dt {
  font-size: 11px;
  line-height: 1.25;
  text-transform: none;
}

.thermal-ticket .ticket-service-row dd {
  font-size: 11px;
}

.thermal-ticket p {
  padding-top: 12px;
  border-top: 1px dashed #000;
  line-height: 1.35;
  text-align: center;
}

.attention-ticket-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid #d8e0ea;
  background: #fff;
}

.cash-receipt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.cash-receipt-backdrop[hidden] {
  display: none;
}

.cash-receipt-modal {
  width: min(760px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #f2f5f9;
  box-shadow: 0 28px 72px rgba(13, 28, 42, 0.34);
}

.cash-receipt-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.cash-receipt-modal-header h2 {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}

.cash-receipt-close {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 34px;
  height: 34px;
  border: 2px solid #bfdbfe;
  border-radius: 8px;
  color: #1f2937;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.cash-receipt-stage {
  display: grid;
  place-items: center;
  min-height: 398px;
  padding: 18px 20px 12px;
}

.cash-receipt-ticket {
  width: min(320px, calc(100vw - 92px));
  margin: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.cash-receipt-meta,
.cash-receipt-section,
.cash-receipt-totals {
  padding: 9px 0;
  border-bottom: 1px dashed #111;
}

.cash-receipt-meta div,
.cash-receipt-totals div,
.cash-receipt-line,
.cash-receipt-service-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #000;
  font-size: 11px;
  font-weight: 900;
}

.cash-receipt-meta span,
.cash-receipt-line span,
.cash-receipt-service-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cash-receipt-section-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #000;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cash-receipt-service-row span {
  max-width: 190px;
}

.cash-receipt-totals .discount {
  color: #d71920;
}

.cash-receipt-totals .total {
  align-items: baseline;
  font-size: 16px;
}

.cash-receipt-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 10px;
  color: #000;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.cash-receipt-payment-grid span,
.cash-receipt-payment-grid strong {
  display: block;
}

.cash-receipt-modal footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.cash-receipt-action {
  min-width: 132px;
  min-height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}

.cash-receipt-close-action {
  border: 0;
  color: #fff;
  background: #ef4444;
}

.cash-receipt-print-action {
  border: 1px solid var(--maurer-green);
  color: var(--maurer-green-dark);
  background: #fff;
}

.cash-receipt-download-action {
  border: 0;
  color: #fff;
  background: #f97316;
}

.availability-panel {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #f5f7f9;
}

.appointment-picker-panel,
.appointment-calendar-panel {
  min-width: 0;
}

.appointment-specialists-block {
  margin-top: 18px;
}

.appointment-specialists-block h3 {
  margin-bottom: 10px;
  color: #20262f;
  font-size: 14px;
  font-weight: 900;
  text-transform: none;
}

.appointment-doctors-list {
  display: grid;
  max-height: 430px;
  gap: 8px;
  overflow: auto;
}

.appointment-doctors-list > p {
  padding: 14px;
  border: 1px solid #e4e9ef;
  border-radius: 10px;
  color: #59636f;
  background: #fbfcfd;
  font-size: 13px;
  font-weight: 750;
}

.appointment-doctor-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e7ed;
  border-radius: 10px;
  background: var(--white);
}

.appointment-doctor-card.is-selected {
  border-color: rgba(4, 126, 59, 0.56);
  background: #f4fbf7;
}

.appointment-doctor-card strong,
.appointment-doctor-card span,
.appointment-doctor-card small {
  display: block;
}

.appointment-doctor-card strong {
  overflow: hidden;
  color: #20262f;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-doctor-card span,
.appointment-doctor-card small {
  color: #5a626d;
  font-size: 12px;
  font-weight: 750;
}

.appointment-doctor-card button {
  grid-column: 2;
  min-width: 94px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #1bad37;
  border-radius: 8px;
  color: #1bad37;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.appointment-doctor-card.is-selected button {
  color: var(--white);
  background: #1bad37;
}

.doctor-type-badge {
  display: inline-grid;
  min-width: 94px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--white) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center;
}

.appointment-doctor-card .doctor-type-badge,
.appointment-doctor-summary .doctor-type-badge {
  display: inline-grid;
  place-items: center;
}

.doctor-type-badge--internal {
  background: #087a3c;
}

.doctor-type-badge--external {
  background: #7cc8f2;
  color: #07537a !important;
}

.appointment-doctor-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f8fa;
}

.appointment-doctor-summary strong,
.appointment-doctor-summary span {
  display: block;
}

.appointment-doctor-summary strong {
  color: #20262f;
  font-size: 15px;
  font-weight: 900;
}

.appointment-doctor-summary span {
  margin-top: 3px;
  color: #555e69;
  font-size: 12px;
  font-weight: 750;
}

.calendar-shift {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #e3e9f0;
  border-radius: 10px;
  color: #334155;
  background: #fbfcfd;
  font-size: 13px;
}

.calendar-shift strong {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f6;
  font-size: 12px;
}

.appointment-room-panel {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  background: #fbfdff;
}

.appointment-room-field {
  display: grid;
  gap: 7px;
}

.appointment-room-field span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.appointment-room-field select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cfd8e3;
  border-radius: 9px;
  outline: 0;
  color: #20262f;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.appointment-room-field select:focus {
  border-color: var(--maurer-blue);
  box-shadow: 0 0 0 3px rgba(26, 102, 168, 0.12);
}

.appointment-room-change {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #cfe0ee;
  border-radius: 10px;
  background: #f8fbfd;
}

.appointment-room-change span,
.appointment-room-change strong {
  display: block;
}

.appointment-room-change span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.appointment-room-change strong {
  margin-top: 3px;
  color: #132238;
  font-size: 13px;
  font-weight: 950;
}

.appointment-room-change button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--maurer-blue-dark);
  border-radius: 8px;
  color: #fff;
  background: var(--maurer-blue-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.appointment-room-change button:disabled {
  cursor: not-allowed;
  color: #8291a4;
  border-color: #d5dde8;
  background: #eef2f7;
}

.room-override-warning,
.room-conflict-warning {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.room-override-warning {
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: #8b1d1d;
  background: #fff1f1;
}

.room-conflict-warning {
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #7f1d1d;
  background: #ffe5e5;
}

.room-override-warning strong,
.room-conflict-warning strong {
  color: #991b1b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.room-override-warning p,
.room-conflict-warning p {
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.room-override-warning button {
  justify-self: start;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--white);
  background: #dc2626;
  font-size: 12px;
  font-weight: 900;
}

.room-override-confirmed {
  display: inline-flex;
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f5132;
  background: #dff5e7;
  font-size: 11px;
  font-weight: 950;
}

.appointment-calendar {
  padding: 12px;
  border-radius: 12px;
  background: #f7f8fa;
}

.appointment-calendar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.appointment-calendar header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #009f35;
  border-radius: 7px;
  color: #087a3c;
  background: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.appointment-calendar header strong {
  color: #334155;
  font-size: 14px;
  font-weight: 900;
  text-transform: capitalize;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-weekdays span {
  color: #3f4651;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.calendar-day,
.calendar-empty {
  aspect-ratio: 1;
  min-width: 0;
}

.calendar-day {
  border-radius: 50%;
  color: #9aa1aa;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.calendar-day.is-available {
  color: #047a36;
  background: #dff5e7;
}

.calendar-day.is-selected,
.calendar-day.is-available:hover {
  color: var(--white);
  background: #087a3c;
}

.calendar-day.is-blocked {
  cursor: not-allowed;
}

.calendar-note {
  margin-top: 10px;
  color: #555e69;
  font-size: 12px;
  font-weight: 750;
}

.modal-footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 12px 18px;
  background: #edf1f5;
}

.modal-footer p {
  color: #5d6670;
  font-size: 13px;
  font-weight: 600;
}

.modal-cancel {
  min-width: 98px;
  min-height: 38px;
  font-size: 14px;
}

.appointment-confirm {
  min-width: 150px;
  min-height: 38px;
  font-size: 14px;
}

.immediate-modal {
  width: min(100%, 900px);
}

.immediate-body {
  grid-template-columns: minmax(300px, 0.52fr) minmax(300px, 0.48fr);
}

.immediate-summary-panel {
  min-width: 0;
}

.immediate-summary-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(4, 126, 59, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fbf7, #ffffff);
  box-shadow: 0 14px 28px rgba(31, 45, 61, 0.08);
}

.immediate-summary-card > span {
  color: var(--maurer-green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.immediate-summary-card > strong {
  color: #172136;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.12;
}

.immediate-summary-card p {
  margin: -6px 0 0;
  color: #5d6670;
  font-size: 14px;
  font-weight: 800;
}

.immediate-summary-card small {
  color: #4f5d6d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.immediate-summary-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.immediate-summary-meta div {
  padding: 12px;
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  background: var(--white);
}

.immediate-summary-meta span,
.immediate-summary-meta strong {
  display: block;
}

.immediate-summary-meta span {
  color: #657284;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.immediate-summary-meta strong {
  margin-top: 4px;
  color: #172136;
  font-size: 18px;
  font-weight: 950;
}

@media (max-width: 1520px) {
  .module-header {
    flex-wrap: wrap;
  }

  .title-group {
    min-width: 210px;
  }

  .search-field {
    flex: 1 1 280px;
    width: auto;
  }

  .patient-search-wrap {
    flex: 1 1 280px;
  }
}

@media (max-width: 1360px) {
  .patients-admin-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .patients-filter-actions {
    justify-content: flex-start;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

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

  .user-access-section .compact-grid {
    grid-template-columns: 1fr;
  }

  .users-table {
    font-size: 11px;
  }

  .users-table th,
  .users-table td {
    padding-inline: 7px;
  }

  .service-toolbar {
    flex-wrap: wrap;
  }

  .service-search {
    width: 100%;
  }
}

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

  .main {
    width: calc(100% - 220px);
    margin-left: 220px;
  }

  .workspace {
    padding: 22px 20px 32px;
  }

  .module-header,
  .content-grid,
  .services-admin-hero,
  .patients-admin-top {
    align-items: stretch;
  }

  .module-header {
    flex-wrap: wrap;
  }

  .search-field {
    width: 100%;
  }

  .patient-search-wrap {
    width: 100%;
  }

  .patient-info {
    grid-template-columns: 1fr;
  }

  .patient-info-grid {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .services-admin-filters,
  .services-form-grid,
  .patients-admin-filters,
  .reports-header,
  .reports-fees-entry {
    grid-template-columns: 1fr;
  }

  .reports-filters,
  .reports-fees-form,
  .cash-register-filter-groups,
  .cash-closing-body,
  .consolidated-closures-body,
  .reports-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-admin-hero,
  .patients-admin-top {
    flex-direction: column;
  }

  .patients-admin-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .services-admin-actions,
  .services-admin-form footer {
    justify-content: stretch;
  }

  .services-admin-actions button,
  .services-admin-form footer button {
    flex: 1 1 180px;
  }

  .user-modal-grid {
    overflow: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "employee"
      "access";
  }

  .users-table th:nth-child(4),
  .users-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 760px) {
  .reports-filters,
  .reports-fees-form,
  .cash-register-filter-grid,
  .cash-register-filter-groups,
  .cash-register-filter-groups fieldset,
  .cash-closing-body,
  .consolidated-closures-body,
  .consolidated-closures-filters,
  .cash-closing-total-grid,
  .cash-closing-form,
  .cash-closing-movement-row,
  .cash-closing-movement-preview,
  .consolidated-closure-card,
  .cash-closing-edit-step,
  .cash-closing-daily-step,
  .reports-kpis {
    grid-template-columns: 1fr;
  }

  .cash-register-tabs {
    display: grid;
    width: 100%;
  }

  .cash-register-tabs button {
    width: 100%;
  }

  .cash-closing-form-actions,
  .cash-closing-actions,
  .consolidated-closure-actions,
  .consolidated-closures-preview header,
  .cash-closing-summary-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cash-closing-edit,
  .cash-closing-print,
  .cash-closing-finalize,
  .cash-closing-form-actions .btn {
    width: 100%;
  }

  .reports-header-actions,
  .reports-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .reports-header-actions .btn,
  .reports-tabs button {
    width: 100%;
  }

  .app-shell.sidebar-collapsed .sidebar,
  .app-shell.sidebar-collapsed .main {
    width: 100%;
    margin-left: 0;
  }

  .app-shell.sidebar-collapsed .brand img,
  .app-shell.sidebar-collapsed .nav-item span:not(.icon),
  .app-shell.sidebar-collapsed .nav-submenu,
  .app-shell.sidebar-collapsed .nav-section,
  .app-shell.sidebar-collapsed .logout-button span:not(.icon),
  .app-shell.sidebar-collapsed .version {
    display: inline-grid;
  }

  .app-shell.sidebar-collapsed .sidebar {
    align-items: stretch;
  }

  .app-shell.sidebar-collapsed .brand {
    width: auto;
    justify-content: flex-start;
  }

  .app-shell.sidebar-collapsed .nav {
    align-items: stretch;
  }

  .app-shell.sidebar-collapsed .nav-item {
    width: auto;
    justify-content: flex-start;
    padding-inline: 10px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    min-height: auto;
    padding: 14px;
  }

  .brand {
    min-height: 130px;
    margin-bottom: 14px;
  }

  .brand img {
    width: 130px;
  }

  .nav {
    display: grid;
    overflow: visible;
    padding-right: 0;
    gap: 4px 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-item {
    min-height: 34px;
    gap: 8px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .nav-section {
    margin: 12px 4px 4px;
    grid-column: 1 / -1;
  }

  .version {
    margin-top: 10px;
  }

  .sidebar-footer {
    margin-top: 14px;
  }

  .main {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    padding-inline: 18px;
  }

  .workspace {
    margin-right: 0;
    padding: 18px 12px 28px;
  }

  .title-group {
    min-width: 100%;
  }

  .status-badge,
  .btn,
  .pill,
  .search-field {
    width: 100%;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .patient-modal-body {
    grid-template-columns: 1fr;
  }

  .patient-modal-field,
  .patient-modal-field:nth-of-type(3),
  .patient-modal-field:nth-of-type(4),
  .patient-age-field {
    grid-column: 1;
  }

  .immediate-body {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .history-list {
    overflow-x: auto;
  }

  .history-table {
    min-width: 720px;
  }

  .patient-dropdown {
    width: calc(100vw - 24px);
  }

  .users-table th:nth-child(5),
  .users-table td:nth-child(5),
  .users-table th:nth-child(6),
  .users-table td:nth-child(6) {
    display: none;
  }

  .compact-grid,
  .user-access-section .compact-grid {
    grid-template-columns: 1fr;
  }

  .compact-field-wide {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.doctor-workspace {
  min-height: 100vh;
  margin-right: 0;
  padding: 28px 32px 38px;
  border-radius: 8px;
  background: #f3f7f8;
}

.doctor-module-header {
  --doctor-header-card-height: 62px;
  position: relative;
  display: grid;
  grid-template-columns: 360px minmax(320px, 1fr) minmax(300px, 360px) minmax(300px, 360px);
  grid-template-rows: auto auto;
  gap: 8px 18px;
  align-items: center;
  padding: 20px 28px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(125deg, rgba(11, 56, 99, 0.98) 0%, rgba(19, 79, 136, 0.96) 34%, rgba(2, 101, 26, 0.96) 74%, rgba(4, 173, 32, 0.9) 118%);
  box-shadow: 0 18px 38px rgba(11, 56, 99, 0.18);
}

.doctor-brand-mark {
  grid-row: 1 / 3;
  display: flex;
  min-height: calc((var(--doctor-header-card-height) * 2) + 8px);
  align-items: center;
  justify-content: center;
  padding: 8px 24px 8px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.doctor-brand-mark img {
  display: block;
  width: 320px;
  height: auto;
  max-height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.doctor-title-block {
  grid-row: 1 / 3;
  display: grid;
  min-height: calc((var(--doctor-header-card-height) * 2) + 8px);
  align-items: center;
}

.doctor-kicker,
.doctor-card-label {
  display: block;
  color: var(--maurer-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doctor-module-header h1 {
  margin: 0;
  color: var(--white);
  font-size: 34px;
  line-height: 1.12;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.doctor-profile-panel,
.doctor-meta-grid {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(8, 31, 52, 0.12);
}

.doctor-profile-panel {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  height: var(--doctor-header-card-height);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.doctor-avatar,
.patient-initials {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green));
  font-weight: 900;
}

.doctor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 14px;
}

.doctor-profile-panel strong,
.doctor-meta-grid strong {
  display: block;
  color: #172136;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.doctor-profile-panel span,
.doctor-meta-grid span {
  display: block;
  margin-top: 3px;
  color: #6b7788;
  font-size: 11px;
  font-weight: 800;
}

.doctor-meta-grid {
  grid-column: 4;
  grid-row: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1px;
  width: 100%;
  height: var(--doctor-header-card-height);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.26);
}

.doctor-meta-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.doctor-meta-grid strong {
  white-space: nowrap;
}

#doctorCurrentTime {
  font-size: 12px;
}

.doctor-logout-button {
  grid-column: 4;
  grid-row: 2;
  display: inline-flex;
  width: 100%;
  height: var(--doctor-header-card-height);
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 10px;
  color: #b42318;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(8, 31, 52, 0.12);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.doctor-btn.doctor-header-agenda-card {
  grid-column: 3;
  grid-row: 2;
  width: 100%;
  min-height: 0;
  height: var(--doctor-header-card-height);
  gap: 10px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
}

.doctor-header-agenda-card .doctor-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.doctor-logout-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doctor-logout-button:hover {
  color: var(--white);
  background: #dc2626;
}

.doctor-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
}

.doctor-current-card,
.screen-preview-card,
.queue-card {
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.doctor-current-card {
  padding: 26px;
}

.current-card-header,
.queue-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.doctor-current-card h2,
.queue-card h2 {
  margin-top: 4px;
  color: #172136;
  font-size: 30px;
}

.patient-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5fbff, #f3fbf5);
}

.patient-initials {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  font-size: 28px;
}

.patient-copy {
  flex: 1;
  min-width: 0;
}

.patient-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.patient-hero h3 {
  flex: 1;
  min-width: 0;
  color: #172136;
  font-size: 30px;
  line-height: 1.2;
}

.patient-hero p {
  margin-top: 8px;
  color: #657283;
  font-size: 18px;
  font-weight: 800;
}

.appointment-summary {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.appointment-summary div {
  padding: 20px 24px;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  background: #fbfdfe;
}

.appointment-state-card {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.appointment-summary span {
  display: block;
  color: #6b7788;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.appointment-summary strong {
  display: block;
  margin-top: 0;
  color: #1f2d3d;
  font-size: 24px;
}

.patient-done-label {
  color: var(--maurer-green-dark) !important;
}

.patient-missed-label {
  color: #b42318 !important;
}

.doctor-action-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px);
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.doctor-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 76px;
  padding: 0 24px;
  border-radius: 16px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-btn::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 88% 50%, rgba(4, 173, 32, 0.46), transparent 30%),
    linear-gradient(90deg, var(--maurer-blue), var(--maurer-green-dark), var(--maurer-green));
  content: "";
  opacity: 0.72;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.doctor-btn:hover::before {
  opacity: 1;
  transform: scale(1.03);
}

.doctor-btn > span {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.doctor-btn .step-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, 0.18);
  font-size: 20px;
  font-weight: 900;
}

.doctor-btn-primary {
  color: var(--white);
  background: var(--maurer-blue-dark);
  box-shadow: 0 12px 24px rgba(26, 102, 168, 0.2);
}

.doctor-btn-agenda {
  color: #0d4d75;
  background: #d9f1ff;
  box-shadow: 0 12px 24px rgba(58, 169, 226, 0.16);
}

.doctor-btn-agenda::before {
  background:
    radial-gradient(circle at 88% 50%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(90deg, #bce8ff, #d9f1ff);
  opacity: 1;
}

.doctor-btn-agenda > span {
  color: #0d4d75;
}

.doctor-btn-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(13, 77, 117, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.doctor-btn-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doctor-agenda-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(13, 28, 42, 0.5);
  backdrop-filter: blur(4px);
}

.doctor-agenda-window {
  position: relative;
  display: flex;
  width: min(1500px, calc(100vw - 52px));
  max-height: calc(100vh - 52px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 22px;
  background: #f6f9fb;
  box-shadow: 0 34px 86px rgba(13, 28, 42, 0.32);
}

.doctor-agenda-topbar {
  position: relative;
  display: grid;
  min-height: 96px;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 420px) minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
}

.doctor-agenda-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(430px, 42vw);
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.doctor-agenda-brand img {
  display: block;
  width: 100%;
  max-height: 88px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.doctor-agenda-calendar-header span,
.agenda-editor-header span {
  display: block;
  color: var(--maurer-green-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doctor-agenda-topbar span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doctor-agenda-calendar-header h3 {
  margin-top: 4px;
  color: #172136;
  font-weight: 950;
}

.doctor-agenda-topbar h2 {
  margin-top: 4px;
  color: var(--white);
  font-size: 24px;
  font-weight: 950;
}

.doctor-agenda-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  justify-self: end;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 34px;
  line-height: 1;
}

.doctor-agenda-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(680px, 1fr) 380px;
  gap: 18px;
  padding: 20px;
  overflow: auto;
}

.doctor-agenda-calendar-card,
.doctor-agenda-editor {
  min-width: 0;
  border: 1px solid #dfe6ec;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(31, 45, 61, 0.08);
}

.doctor-agenda-calendar-card {
  overflow: hidden;
}

.doctor-agenda-calendar-header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #e4e9ee;
  background: linear-gradient(90deg, #f2fbf5, #ffffff);
}

.doctor-agenda-calendar-header h3 {
  font-size: 22px;
  text-transform: uppercase;
}

.doctor-agenda-nav {
  display: flex;
  gap: 8px;
}

.doctor-agenda-nav button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #344155;
  background: #eef4f8;
  font-size: 18px;
  font-weight: 950;
}

.doctor-agenda-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: #495564;
  font-size: 12px;
  font-weight: 850;
}

.doctor-agenda-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #495564;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.legend-dot-available {
  background: #dff5e7;
  border: 1px solid #46b86c;
}

.legend-dot-off {
  background: #edf0f3;
  border: 1px solid #cdd5dc;
}

.doctor-agenda-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #e4e9ee;
  gap: 1px;
}

.doctor-agenda-weekday {
  display: grid;
  min-height: 46px;
  place-items: center;
  color: #647083;
  background: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.doctor-agenda-day {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  color: #172136;
  background: #ffffff;
  text-align: left;
}

button.doctor-agenda-day {
  cursor: pointer;
}

button.doctor-agenda-day:hover,
.doctor-agenda-day.is-selected {
  background: #f1fbf5;
  box-shadow: inset 0 0 0 2px rgba(4, 126, 59, 0.2);
}

.doctor-agenda-day strong {
  font-size: 15px;
  font-weight: 950;
}

.doctor-agenda-day > div {
  display: grid;
  gap: 6px;
}

.doctor-agenda-day.is-empty {
  background: #f5f7f9;
}

.doctor-agenda-day.is-off {
  align-items: center;
  justify-content: center;
  color: #8a94a3;
  background: #eef0f3;
  text-align: center;
}

.doctor-agenda-day.is-off span {
  color: #a2abb7;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.agenda-shift-chip {
  display: block;
  padding: 8px 10px;
  border-left: 3px solid #3aa9e2;
  border-radius: 9px;
  color: #1f2d3d;
  background: #eef8ff;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.doctor-agenda-hover-card {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 28, 42, 0.56);
  animation: agendaOverlayIn 120ms ease-out;
}

.doctor-agenda-hover-card[hidden] {
  display: none !important;
}

.agenda-cancel-backdrop {
  position: absolute;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 28, 42, 0.52);
  backdrop-filter: blur(4px);
}

.agenda-cancel-backdrop[hidden] {
  display: none !important;
}

.agenda-cancel-modal {
  width: min(520px, calc(100vw - 48px));
  padding: 0;
  border: 1px solid rgba(214, 226, 235, 0.96);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 34px 86px rgba(13, 28, 42, 0.34);
  animation: agendaHoverIn 140ms ease-out;
}

.agenda-cancel-modal header {
  padding: 22px 24px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
}

.agenda-cancel-reason span {
  display: block;
  color: #647083;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-cancel-modal header span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-cancel-modal h3 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 24px;
  line-height: 1.12;
}

.agenda-cancel-modal p {
  margin: 0 0 18px;
  padding: 22px 24px 0;
  color: #4d5a6a;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.agenda-cancel-reason {
  display: grid;
  gap: 8px;
  padding-inline: 24px;
}

.agenda-cancel-reason textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #cbd8e5;
  border-radius: 14px;
  color: #172136;
  background: #f8fbfd;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.agenda-cancel-reason textarea:focus {
  border-color: var(--maurer-blue);
  outline: 3px solid rgba(58, 169, 226, 0.18);
}

.agenda-cancel-modal footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding: 0 24px 24px;
}

.agenda-cancel-secondary,
.agenda-cancel-primary {
  min-height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 950;
}

.agenda-cancel-secondary {
  color: #344155;
  background: #eef3f7;
}

.agenda-cancel-primary {
  color: var(--white);
  background: #b42318;
}

.agenda-detail-panel {
  width: min(480px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid rgba(214, 226, 235, 0.96);
  border-radius: 24px;
  background: #ffffff !important;
  opacity: 1;
  box-shadow: 0 34px 86px rgba(13, 28, 42, 0.34);
  animation: agendaHoverIn 140ms ease-out;
}

.agenda-detail-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid #e2e8ef;
  background: linear-gradient(135deg, #f2faff, #f7fcf9);
}

.agenda-detail-panel header span {
  display: block;
  color: var(--maurer-green-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-detail-panel header strong {
  display: block;
  margin-top: 4px;
  color: #172136;
  font-size: 24px;
  font-weight: 950;
}

.agenda-detail-panel header button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #627083;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(31, 45, 61, 0.12);
  font-size: 34px;
  line-height: 1;
}

.agenda-hover-doctor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.agenda-hover-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid #c9f4d7;
  border-radius: 16px;
  color: var(--maurer-green-dark);
  background: #eafff0;
  font-size: 22px;
  font-weight: 950;
}

.agenda-hover-doctor strong,
.agenda-hover-doctor span {
  display: block;
}

.agenda-hover-doctor strong {
  color: #101828;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.agenda-hover-doctor span {
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
  font-weight: 850;
}

.agenda-hover-details {
  display: grid;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 16px;
  border: 1px solid #e5ebf1;
  border-radius: 16px;
  background: #fbfdfe;
}

.agenda-hover-details div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.agenda-hover-details span {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agenda-hover-details strong {
  min-width: 0;
  color: #172136;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.agenda-hover-status {
  display: inline-grid;
  width: max-content;
  min-height: 28px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid #bcebd0;
  border-radius: 999px;
  color: var(--maurer-green-dark) !important;
  background: #ecfff2;
  font-size: 12px !important;
}

.agenda-hover-actions {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.agenda-hover-actions button {
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.agenda-hover-actions button:first-child {
  color: #0d4d75;
  background: #d9f1ff;
  box-shadow: 0 10px 22px rgba(58, 169, 226, 0.16);
}

.agenda-hover-actions button:last-child {
  color: #b42318;
  background: #fff4f2;
}

@keyframes agendaHoverIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes agendaOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.doctor-agenda-editor {
  align-self: start;
  padding: 18px;
}

.agenda-editor-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 24px;
  color: #607083;
  text-align: center;
}

.agenda-editor-empty strong {
  color: #172136;
  font-size: 20px;
}

.agenda-editor-empty span {
  max-width: 260px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.agenda-editor-header {
  padding: 16px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-green-dark));
}

.agenda-editor-header span,
.agenda-editor-header strong {
  color: var(--white);
}

.agenda-editor-header strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.25;
  text-transform: capitalize;
}

.agenda-editor-help {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d9ecf7;
  border-radius: 12px;
  color: #355166;
  background: #f2faff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.agenda-apply-mode {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.agenda-apply-mode span {
  color: #5f6b7a;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.agenda-apply-mode select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd9e2;
  border-radius: 10px;
  color: #172136;
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.doctor-admin-agenda {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #d7e8f4;
  border-radius: 10px;
  background: #f2faff;
}

.doctor-admin-agenda[hidden] {
  display: none !important;
}

.doctor-admin-agenda > span {
  color: var(--maurer-blue-dark);
  font-size: 12px;
  font-weight: 950;
}

.admin-agenda-days,
.admin-agenda-shifts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-agenda-days label,
.doctor-admin-agenda label {
  display: grid;
  gap: 5px;
  color: #344155;
  font-size: 11px;
  font-weight: 900;
}

.admin-agenda-days label {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--white);
}

.doctor-admin-agenda input,
.doctor-admin-agenda select {
  min-height: 34px;
  border: 1px solid #b8d0df;
  border-radius: 8px;
  background: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.agenda-shift-list {
  display: grid;
  max-height: 340px;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}

.agenda-shift-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe6ec;
  border-radius: 14px;
  background: #fbfdfe;
}

.agenda-shift-form-header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
}

.agenda-shift-form-header strong {
  color: #536173;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agenda-shift-form-header button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #b42318;
  background: #fff1f0;
  font-size: 20px;
  line-height: 1;
}

.agenda-shift-form label {
  display: grid;
  gap: 6px;
}

.agenda-shift-form label span {
  color: #5f6b7a;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.agenda-shift-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd9e2;
  border-radius: 10px;
  color: #172136;
  background: var(--white);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.agenda-add-shift-button,
.agenda-cancel-day-button,
.agenda-save-day-button {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.agenda-add-shift-button {
  margin-top: 12px;
  border: 1px dashed #88b6cf;
  color: #0d4d75;
  background: #f2faff;
}

.agenda-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 12px;
}

.agenda-cancel-day-button {
  border: 1px solid #f1b9b2;
  color: #b42318;
  background: #fff4f2;
}

.agenda-save-day-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-green-dark), var(--maurer-green));
  box-shadow: 0 12px 22px rgba(4, 126, 59, 0.2);
}

@media (max-width: 1180px) {
  .doctor-action-row {
    grid-template-columns: 1fr;
  }

  .doctor-agenda-layout {
    grid-template-columns: 1fr;
  }

  .doctor-agenda-calendar-card {
    overflow-x: auto;
  }

  .doctor-agenda-calendar {
    min-width: 820px;
  }
}

@media (max-width: 760px) {
  .doctor-agenda-backdrop {
    padding: 10px;
  }

  .doctor-agenda-window {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .doctor-agenda-topbar {
    grid-template-columns: 1fr auto;
  }

  .doctor-agenda-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
  }

  .doctor-agenda-brand img {
    width: min(300px, 100%);
  }

  .doctor-agenda-topbar > div:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .doctor-agenda-close {
    grid-column: 2;
    grid-row: 2;
  }

  .doctor-agenda-calendar-header {
    grid-template-columns: 1fr;
  }

  .doctor-agenda-legend {
    justify-content: flex-start;
  }

  .agenda-editor-actions,
  .agenda-shift-form {
    grid-template-columns: 1fr;
  }
}

.doctor-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
}

.screen-preview-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 18px;
}

.screen-preview {
  display: flex;
  flex: 1;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  margin-top: 12px;
  padding: 28px 20px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(150deg, #0b3863, #02651a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  text-align: center;
}

.screen-preview small,
.screen-preview span {
  display: block;
}

.screen-preview small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screen-preview strong {
  display: block;
  margin-top: 14px;
  font-size: 66px;
  line-height: 1;
}

.screen-preview p {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.screen-preview span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.screen-call-cta {
  min-height: 58px;
  margin-top: 28px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #04ad20, #22d34b);
  box-shadow:
    0 0 0 0 rgba(34, 211, 75, 0.72),
    0 0 22px rgba(34, 211, 75, 0.68),
    0 12px 26px rgba(4, 173, 32, 0.34);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  animation: neonPulse 1.45s ease-in-out infinite;
}

.screen-call-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.screen-no-show-cta {
  min-height: 54px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #b42318, #ef4444);
  box-shadow:
    0 0 0 0 rgba(239, 68, 68, 0.44),
    0 0 18px rgba(239, 68, 68, 0.42),
    0 12px 24px rgba(180, 35, 24, 0.28);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  animation: missedPulse 3.4s ease-in-out infinite;
}

.screen-no-show-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.screen-no-show-cta:disabled,
.screen-no-show-cta.is-disabled,
.doctor-workspace.patient-done-state .screen-no-show-cta {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.25);
  transform: none;
  animation: none;
  box-shadow: none;
  pointer-events: none;
}

.screen-no-show-cta:disabled:hover,
.screen-no-show-cta.is-disabled:hover,
.doctor-workspace.patient-done-state .screen-no-show-cta:hover {
  filter: grayscale(0.25);
  transform: none;
}

@keyframes neonPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(34, 211, 75, 0.72),
      0 0 18px rgba(34, 211, 75, 0.62),
      0 12px 26px rgba(4, 173, 32, 0.34);
  }

  70% {
    box-shadow:
      0 0 0 16px rgba(34, 211, 75, 0),
      0 0 34px rgba(34, 211, 75, 0.88),
      0 14px 30px rgba(4, 173, 32, 0.42);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(34, 211, 75, 0),
      0 0 18px rgba(34, 211, 75, 0.62),
      0 12px 26px rgba(4, 173, 32, 0.34);
  }
}

@keyframes missedPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(239, 68, 68, 0.44),
      0 0 16px rgba(239, 68, 68, 0.36),
      0 12px 24px rgba(180, 35, 24, 0.28);
  }

  70% {
    box-shadow:
      0 0 0 18px rgba(239, 68, 68, 0),
      0 0 30px rgba(239, 68, 68, 0.52),
      0 14px 30px rgba(180, 35, 24, 0.34);
  }
}

@keyframes blueCtaPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(35, 136, 255, 0.6),
      0 0 20px rgba(63, 183, 255, 0.42),
      0 12px 26px rgba(35, 136, 255, 0.26);
  }

  70% {
    box-shadow:
      0 0 0 14px rgba(35, 136, 255, 0),
      0 0 34px rgba(63, 183, 255, 0.72),
      0 14px 30px rgba(35, 136, 255, 0.36);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(35, 136, 255, 0),
      0 0 20px rgba(63, 183, 255, 0.42),
      0 12px 26px rgba(35, 136, 255, 0.26);
  }
}

@keyframes calmNeonPulse {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 0 rgba(4, 173, 32, 0.18),
      0 12px 24px rgba(4, 173, 32, 0.18),
      0 0 18px rgba(4, 173, 32, 0.16);
  }

  50% {
    filter: brightness(1.04);
    box-shadow:
      0 0 0 12px rgba(4, 173, 32, 0),
      0 14px 28px rgba(4, 173, 32, 0.24),
      0 0 30px rgba(4, 173, 32, 0.34);
  }
}

.doctor-options-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background: rgba(13, 28, 42, 0.46);
  backdrop-filter: blur(5px);
}

.doctor-options-modal {
  display: flex;
  flex-direction: column;
  width: min(1680px, 100%);
  height: min(900px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(13, 28, 42, 0.28);
}

.clinical-window-header {
  z-index: 2;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto minmax(260px, 0.8fr) minmax(300px, 0.75fr) minmax(460px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 0;
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
  backdrop-filter: blur(10px);
}

.clinical-back-button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-size: 24px;
  font-weight: 900;
}

.clinical-window-title {
  min-width: 0;
}

.clinical-window-title span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.clinical-window-title h2 {
  margin: 2px 0 0;
  color: var(--white);
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.clinical-window-brand {
  display: flex;
  min-width: 0;
  justify-content: flex-start;
  padding: 0 12px;
}

.clinical-window-brand img {
  display: block;
  width: 285px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.26));
}

.clinical-window-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
}

.clinical-window-actions button,
.clinical-table-card button,
.clinical-resource-tabs button,
.clinical-filter-row button {
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid rgba(26, 102, 168, 0.22);
  border-radius: 999px;
  color: #07405f;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.clinical-window-actions button {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.clinical-window-actions .clinical-action-primary {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: var(--maurer-green-dark);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.clinical-window-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
  background: #f8fbfc;
  overscroll-behavior: contain;
}

.clinical-patient-banner {
  display: block;
  padding: 18px 22px;
  border: 1px solid #dce5ec;
  border-radius: 14px;
  background: #fbfdfe;
  box-shadow: inset 0 0 0 1px rgba(26, 102, 168, 0.02);
}

.clinical-patient-banner span {
  display: block;
  color: #7890a4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.clinical-patient-banner strong {
  display: block;
  margin-top: 4px;
  color: #07405f;
  font-size: 28px;
  line-height: 1.15;
  text-transform: uppercase;
}

.clinical-table-card {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  background: var(--white);
}

.clinical-row {
  display: grid;
  grid-template-columns: 160px minmax(260px, 1.2fr) minmax(230px, 1fr) 150px 170px;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid #e4ebf0;
  color: #24516b;
  font-size: 14px;
  font-weight: 800;
}

.clinical-row:last-child {
  border-bottom: 0;
}

.clinical-head {
  min-height: 52px;
  color: var(--white);
  background: linear-gradient(120deg, var(--maurer-blue-dark), var(--maurer-blue) 42%, var(--maurer-green-dark) 100%);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.clinical-table-card button {
  min-width: 118px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), #008fa7);
}

.clinical-resource-tabs {
  display: flex;
  gap: 10px;
  margin: 14px 0 18px;
}

.clinical-resource-tabs button {
  min-height: 40px;
  background: #fbfdfe;
}

.clinical-evolution-section h3 {
  margin: 0 0 14px;
  color: #07405f;
  font-size: 22px;
  text-transform: uppercase;
}

.clinical-filter-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}

.clinical-search,
.clinical-period {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #dce5ec;
  border-radius: 14px;
  background: var(--white);
}

.clinical-search {
  display: flex;
  align-items: center;
  color: #9aabb8;
  font-size: 14px;
  font-weight: 800;
}

.clinical-period {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clinical-period span {
  color: #7890a4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.clinical-period strong {
  margin-top: 3px;
  color: #07405f;
  font-size: 13px;
  text-transform: uppercase;
}

.evolution-table {
  margin-top: 12px;
}

.clinical-evolution-list {
  max-height: 424px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  background: var(--white);
}

.clinical-evolution-list .clinical-table-card {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.clinical-evolution-list .clinical-head {
  position: sticky;
  z-index: 1;
  top: 0;
}

.clinical-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dce5ec;
  border-radius: 14px;
  background: var(--white);
}

.clinical-pagination span {
  color: #5c7184;
  font-size: 13px;
  font-weight: 900;
}

.clinical-pagination div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.clinical-pagination button {
  min-height: 36px;
  min-width: 38px;
  padding: 0 12px;
  border: 1px solid rgba(26, 102, 168, 0.22);
  border-radius: 999px;
  color: #07405f;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.clinical-pagination button.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green));
}

.clinical-pagination button:disabled {
  color: #9aabb8;
  background: #eef3f6;
  cursor: default;
}

.status-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-waiting {
  color: #80621f;
  background: #fff6db;
}

.status-called {
  color: var(--maurer-blue-dark);
  background: #e5f2ff;
}

.status-attention {
  color: var(--maurer-green-dark);
  background: var(--maurer-green-soft);
}

.status-patient-done {
  color: var(--maurer-green-dark);
  background: #dff8e5;
}

.status-done {
  color: #4b5665;
  background: #e9edf2;
}

.status-missed {
  color: #9a2929;
  background: #fff0ef;
}

.queue-card {
  margin-top: 18px;
  padding: 18px;
}

.queue-count {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--maurer-green-dark);
  background: var(--maurer-green-soft);
  font-size: 12px;
  font-weight: 900;
}

.queue-table {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #dce5ec;
  border-radius: 12px;
}

.queue-row {
  display: grid;
  grid-template-columns: 90px minmax(260px, 1fr) 170px 140px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid #e8eef6;
  background: var(--white);
  color: #2b3646;
  font-size: 13px;
  font-weight: 800;
}

.queue-row:last-child {
  border-bottom: 0;
}

.queue-head {
  min-height: 44px;
  color: #5d6a7a;
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-row strong {
  display: inline-flex;
  width: fit-content;
  min-width: 60px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--maurer-blue);
}

.queue-row.next-patient {
  background: #f4fbff;
  box-shadow: inset 4px 0 0 var(--maurer-blue);
}

.doctor-workspace.attention-mode > .doctor-module-header,
.doctor-workspace.attention-mode > .doctor-dashboard-grid,
.doctor-workspace.attention-mode > .queue-card {
  display: none;
}

.patient-attention-module {
  min-height: calc(100vh - 56px);
}

.attention-header {
  display: grid;
  grid-template-columns: 560px minmax(280px, 1fr) minmax(220px, auto) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(125deg, var(--maurer-blue-dark), var(--maurer-blue) 38%, var(--maurer-green-dark));
  box-shadow: 0 18px 38px rgba(11, 56, 99, 0.18);
}

.attention-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 176px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.attention-brand img {
  display: block;
  width: 500px;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.attention-title span,
.form-viewer-header span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.attention-title h1 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: 32px;
  line-height: 1.1;
}

.attention-title p {
  max-width: 760px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.45;
}

.attention-doctor {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  color: #172136;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(8, 31, 52, 0.12);
}

.attention-doctor strong,
.attention-doctor span {
  display: block;
}

.attention-doctor strong {
  font-size: 15px;
  font-weight: 900;
}

.attention-doctor span {
  margin-top: 4px;
  color: #6b7788;
  font-size: 12px;
  font-weight: 800;
}

.attention-back-button,
.finish-attention-button,
.attention-actions button,
.attention-finished button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.attention-back-button {
  color: var(--maurer-blue-dark);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.attention-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  margin-top: 14px;
  align-items: start;
}

.attention-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.attention-patient-card,
.attention-summary-card,
.form-section,
.attention-finished {
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.attention-patient-card {
  padding: 18px 20px;
}

.attention-patient-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.attention-patient-top h2 {
  margin: 5px 0 0;
  color: #172136;
  font-size: 28px;
  line-height: 1.15;
}

.attention-patient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.attention-patient-grid div,
.attention-reason,
.summary-line {
  padding: 11px 14px;
  border: 1px solid #dce5ec;
  border-radius: 14px;
  background: #fbfdfe;
}

.attention-patient-grid span,
.attention-reason span,
.summary-line span {
  display: block;
  color: #6b7788;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attention-patient-grid strong,
.attention-reason strong,
.summary-line strong {
  display: block;
  margin-top: 4px;
  color: #172136;
  font-size: 17px;
  line-height: 1.25;
}

.attention-reason {
  margin-top: 12px;
}

.attention-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.attention-actions-compact .quick-form-search {
  grid-column: 1 / -1;
  min-height: 78px;
}

.quick-form-search,
.attention-actions button {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 82px;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid rgba(26, 102, 168, 0.16);
  border-radius: 16px;
  color: #172136;
  background: var(--white);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.attention-actions > button::after {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.46);
  content: "click aqui";
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attention-actions > button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.quick-form-search {
  position: relative;
  justify-content: space-between;
  gap: 10px;
  z-index: 3;
}

.quick-form-search label {
  width: 100%;
}

.quick-form-search label strong,
.attention-actions button strong {
  display: block;
  color: var(--maurer-blue-dark);
  font-size: 18px;
  line-height: 1.15;
}

.quick-form-search label span,
.attention-actions button span {
  display: block;
  margin-top: 5px;
  color: #657283;
  font-size: 13px;
  line-height: 1.4;
}

.attention-actions > button:nth-child(2) {
  border-color: transparent;
  background: linear-gradient(135deg, var(--maurer-green), var(--maurer-green-dark));
  box-shadow: 0 16px 30px rgba(4, 173, 32, 0.2);
}

.attention-actions > button:first-child {
  border-color: transparent;
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-blue-dark));
  box-shadow: 0 16px 30px rgba(26, 102, 168, 0.22);
}

.attention-actions > button:first-child strong,
.attention-actions > button:first-child span,
.attention-actions > button:nth-child(2) strong,
.attention-actions > button:nth-child(2) span {
  color: var(--white);
}

.attention-actions > .attention-resource-button {
  border-color: rgba(26, 102, 168, 0.2);
  background: linear-gradient(135deg, #ffffff, #f3fbff);
}

.attention-actions > .attention-resource-button::after {
  color: rgba(26, 102, 168, 0.42);
}

.attention-actions > .attention-resource-button strong {
  color: var(--maurer-blue-dark);
}

.attention-actions > .attention-resource-button span {
  color: #4f6378;
}

.quick-form-controls {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(104px, 0.52fr) minmax(0, 1fr);
  gap: 8px;
}

.quick-form-controls select,
.quick-form-controls input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  color: #172136;
  background: #fbfdfe;
  font-size: 13px;
  font-weight: 800;
}

.quick-form-controls select {
  padding: 0 10px;
}

.quick-form-controls input {
  padding: 0 12px 0 36px;
}

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

.quick-form-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: #657283;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.quick-form-controls input:focus,
.quick-form-controls select:focus {
  border-color: rgba(26, 102, 168, 0.48);
  outline: 3px solid rgba(26, 102, 168, 0.12);
}

.attention-section-heading {
  margin-bottom: 8px;
}

.attention-section-heading span,
.form-section > span {
  display: block;
  color: var(--maurer-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attention-section-heading h2 {
  margin: 4px 0 0;
  color: #172136;
  font-size: 22px;
}

.form-search-results {
  position: absolute;
  top: calc(100% - 6px);
  right: 12px;
  left: 12px;
  z-index: 8;
  display: grid;
  max-height: 300px;
  overflow-y: auto;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dce5ec;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(13, 43, 72, 0.16);
}

.form-search-item {
  display: block;
  align-items: center;
  min-height: 56px;
  padding: 12px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  background: #fbfdfe;
  text-align: left;
}

.form-search-item strong,
.form-search-item em {
  display: block;
}

.form-search-item strong {
  color: #172136;
  font-size: 13px;
}

.form-search-item em {
  margin-top: 2px;
  color: #657283;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.form-search-empty {
  padding: 12px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  color: #657283;
  background: #fbfdfe;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.patient-forms-history {
  padding: 16px 18px;
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.patient-forms-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.patient-forms-history-header h2 {
  margin: 4px 0 0;
  color: #172136;
  font-size: 21px;
  line-height: 1.2;
}

.patient-forms-history-header > span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--maurer-blue-dark);
  background: #eaf3fb;
  font-size: 12px;
  font-weight: 900;
}

.patient-forms-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.patient-forms-filter {
  display: grid;
  gap: 6px;
}

.patient-forms-filter span {
  color: #657283;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.patient-forms-filter select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  color: #172136;
  background: #fbfdfe;
  font-size: 13px;
  font-weight: 800;
}

.patient-forms-active-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--white);
  background: var(--maurer-blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.patient-forms-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.patient-forms-print-button {
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green-dark));
}

.clinical-history-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 83;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(13, 28, 42, 0.36);
  backdrop-filter: blur(4px);
}

.clinical-history-preview-modal {
  display: flex;
  width: min(1180px, 100%);
  max-height: min(860px, calc(100vh - 44px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(13, 28, 42, 0.28);
}

.clinical-history-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
}

.clinical-history-preview-header span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clinical-history-preview-header h2 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: 24px;
  line-height: 1.2;
}

.clinical-history-preview-header p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.clinical-history-preview-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr)) repeat(3, auto);
  gap: 10px;
  align-items: end;
  padding: 14px 18px;
  border-bottom: 1px solid #dce5ec;
  background: #fbfdfe;
}

.clinical-history-preview-filters label {
  display: grid;
  gap: 6px;
  color: #657283;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clinical-history-preview-filters input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dce5ec;
  border-radius: 10px;
  color: #172136;
  background: var(--white);
  font-weight: 800;
}

.clinical-history-preview-filters button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--maurer-blue-dark);
  background: #eaf3fb;
  font-size: 12px;
  font-weight: 900;
}

.clinical-history-preview-filters .clinical-history-preview-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green-dark));
}

.clinical-history-preview-body {
  overflow: auto;
  padding: 18px;
  background: #eef3f7;
}

.clinical-history-preview-body .clinical-history-document {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #d9e0e8;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 32px rgba(13, 43, 72, 0.12);
}

.patient-forms-list,
.patient-forms-modal-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.patient-forms-list {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(26, 102, 168, 0.42) transparent;
  scrollbar-width: thin;
}

.patient-forms-list::-webkit-scrollbar {
  width: 8px;
}

.patient-forms-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(26, 102, 168, 0.38);
  background-clip: padding-box;
}

.patient-form-history-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(190px, 1.4fr) 126px 86px 58px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  color: #172136;
  background: #fbfdfe;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.patient-form-history-row.is-compact {
  grid-template-columns: minmax(170px, 1.2fr) minmax(190px, 1.4fr) 126px 86px;
}

.patient-form-history-row:hover {
  border-color: rgba(26, 102, 168, 0.34);
  box-shadow: 0 8px 18px rgba(13, 43, 72, 0.08);
  transform: translateY(-1px);
}

.patient-form-history-type,
.patient-form-history-meta,
.patient-form-history-date,
.patient-form-history-status,
.patient-form-history-open {
  min-width: 0;
  overflow-wrap: anywhere;
}

.patient-form-history-type {
  color: #172136;
  font-size: 14px;
  font-weight: 900;
}

.patient-form-history-meta,
.patient-form-history-date {
  color: #657283;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.patient-form-history-status {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #657283;
  background: #eef2f6;
  font-size: 11px;
  font-weight: 900;
}

.patient-form-history-status.is-active {
  color: var(--maurer-green-dark);
  background: var(--maurer-green-soft);
}

.patient-form-history-open {
  justify-self: end;
  color: var(--maurer-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.patient-forms-empty {
  padding: 16px;
  border: 1px dashed #cfdbe6;
  border-radius: 12px;
  color: #657283;
  background: #fbfdfe;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.resource-library-backdrop {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(13, 28, 42, 0.42);
  backdrop-filter: blur(5px);
}

.resource-library-modal {
  display: flex;
  width: min(1160px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(13, 28, 42, 0.28);
}

.resource-library-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue) 46%, var(--maurer-green-dark));
}

.resource-library-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.resource-library-brand img {
  display: block;
  width: 190px;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.resource-library-header span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resource-library-header h2 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: 28px;
  line-height: 1.15;
  text-transform: uppercase;
}

.resource-library-header p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.4;
}

.resource-library-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--maurer-blue-dark);
  background: var(--white);
  font-size: 26px;
  font-weight: 900;
}

.resource-library-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 20px;
  background: #f8fbfc;
}

.resource-library-patient {
  padding: 14px 16px;
  border: 1px solid #dce5ec;
  border-radius: 14px;
  background: var(--white);
}

.resource-library-patient span,
.resource-list-panel header span,
.resource-preview-meta span,
.resource-preview-document span {
  display: block;
  color: #657283;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-library-patient strong {
  display: block;
  margin-top: 4px;
  color: #172136;
  font-size: 20px;
  line-height: 1.25;
}

.resource-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.resource-upload-card {
  position: relative;
  display: grid;
  min-height: 116px;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(26, 102, 168, 0.18);
  border-radius: 16px;
  color: #172136;
  background: var(--white);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.resource-upload-action-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(26, 102, 168, 0.18);
  border-radius: 12px;
  color: var(--maurer-blue-dark);
  background: #eaf3fb;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.resource-upload-action-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-upload-card:hover .resource-upload-action-icon {
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green-dark));
  transform: translateY(-1px);
}

.resource-upload-card:hover {
  border-color: rgba(26, 102, 168, 0.42);
  box-shadow: 0 14px 28px rgba(13, 43, 72, 0.12);
  transform: translateY(-1px);
}

.resource-upload-card strong,
.resource-upload-card small {
  display: block;
  grid-column: 2;
}

.resource-upload-card strong {
  align-self: end;
  color: var(--maurer-blue-dark);
  font-size: 18px;
  line-height: 1.15;
}

.resource-upload-card small {
  align-self: start;
  margin-top: -6px;
  color: #657283;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.resource-upload-icon {
  display: grid;
  width: 48px;
  height: 48px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green));
}

.resource-upload-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-library-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 14px;
  margin-top: 14px;
}

.resource-list-panel,
.resource-preview-panel {
  min-height: 330px;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.resource-list-panel {
  overflow: hidden;
}

.resource-list-panel header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #e4ebf0;
  background: #fbfdfe;
}

.resource-list-panel header strong {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--maurer-blue-dark);
  background: #eaf3fb;
  font-size: 12px;
  font-weight: 900;
}

.resource-search {
  position: relative;
  display: block;
  padding: 12px 12px 0;
}

.resource-search span {
  position: absolute;
  top: 50%;
  left: 26px;
  z-index: 1;
  color: #657283;
  font-size: 16px;
  font-weight: 900;
  pointer-events: none;
  transform: translateY(calc(-50% + 6px));
}

.resource-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  color: #172136;
  background: #fbfdfe;
  font-size: 13px;
  font-weight: 800;
}

.resource-search input:focus {
  border-color: rgba(26, 102, 168, 0.48);
  outline: 3px solid rgba(26, 102, 168, 0.12);
}

.resource-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow-y: auto;
  padding: 12px;
}

.resource-list-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  color: #172136;
  background: #fbfdfe;
  text-align: left;
  cursor: pointer;
}

.resource-list-item.is-active {
  border-color: rgba(26, 102, 168, 0.46);
  background: #f2f8ff;
  box-shadow: inset 4px 0 0 var(--maurer-blue);
}

.resource-list-kind {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--maurer-green-dark);
  background: var(--maurer-green-soft);
  font-size: 11px;
  font-weight: 900;
}

.resource-list-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172136;
  font-size: 13px;
  font-weight: 900;
}

.resource-list-size {
  justify-self: end;
  color: #657283;
  font-size: 12px;
  font-weight: 800;
}

.resource-list-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.resource-list-actions span,
.resource-list-actions a,
.resource-preview-document a,
.resource-rename-form button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--maurer-blue-dark);
  background: #eaf3fb;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.resource-list-actions a,
.resource-preview-document a {
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue), var(--maurer-green-dark));
}

.resource-list-empty,
.resource-preview-empty,
.resource-preview-document {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: #657283;
  text-align: center;
}

.resource-list-empty strong,
.resource-preview-empty strong,
.resource-preview-document strong {
  color: #172136;
  font-size: 18px;
  line-height: 1.2;
}

.resource-list-empty span,
.resource-preview-empty span,
.resource-preview-document small {
  max-width: 360px;
  color: #657283;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.resource-preview-panel {
  overflow: hidden;
}

.resource-preview-image {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 290px;
  place-items: center;
  padding: 16px;
  border: 0;
  background: #0d1c2a;
  cursor: zoom-in;
}

.resource-preview-image img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  border-radius: 12px;
  object-fit: contain;
}

.resource-zoom-indicator {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(13, 28, 42, 0.32);
  opacity: 0;
  transition: opacity 160ms ease;
}

.resource-zoom-indicator svg {
  width: 62px;
  height: 62px;
  padding: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  backdrop-filter: blur(3px);
}

.resource-preview-image:hover .resource-zoom-indicator,
.resource-preview-image:focus-visible .resource-zoom-indicator {
  opacity: 1;
}

.resource-preview-meta {
  padding: 14px 16px;
  border-top: 1px solid #e4ebf0;
}

.resource-preview-meta strong {
  display: block;
  margin-top: 4px;
  color: #172136;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.resource-preview-meta small {
  display: block;
  margin-top: 4px;
  color: #657283;
  font-size: 13px;
  font-weight: 800;
}

.resource-rename-form {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.resource-rename-form label {
  color: #657283;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-rename-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.resource-rename-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  color: #172136;
  background: #fbfdfe;
  font-size: 13px;
  font-weight: 800;
}

.resource-rename-form input:focus {
  border-color: rgba(26, 102, 168, 0.48);
  outline: 3px solid rgba(26, 102, 168, 0.12);
}

.resource-preview-document a {
  min-height: 40px;
  margin-top: 6px;
  padding: 0 18px;
  font-size: 12px;
}

.resource-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 94;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 16, 26, 0.86);
  backdrop-filter: blur(6px);
}

.resource-lightbox {
  display: flex;
  width: min(1500px, 100%);
  height: min(930px, calc(100vh - 44px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: #071521;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.resource-lightbox header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue) 46%, var(--maurer-green-dark));
}

.resource-lightbox header span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resource-lightbox header h2 {
  max-width: 980px;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 22px;
  line-height: 1.2;
}

.resource-lightbox header button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--maurer-blue-dark);
  background: var(--white);
  font-size: 28px;
  font-weight: 900;
}

.resource-lightbox-body {
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
  padding: 18px;
}

.resource-lightbox-body img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.patient-forms-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(13, 28, 42, 0.36);
  backdrop-filter: blur(4px);
}

.patient-forms-modal {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(13, 28, 42, 0.28);
}

.patient-forms-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
}

.patient-forms-modal-header span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.patient-forms-modal-header h2 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: 24px;
  line-height: 1.2;
}

.patient-forms-modal-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--maurer-blue-dark);
  background: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.patient-forms-modal-list {
  padding: 18px 20px 20px;
}

.patient-forms-modal-patient {
  padding: 13px 14px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  background: #f5f9fc;
}

.patient-forms-modal-patient span {
  display: block;
  color: #657283;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.patient-forms-modal-patient strong {
  display: block;
  margin-top: 4px;
  color: #172136;
  font-size: 18px;
  line-height: 1.25;
}

.attention-summary-card {
  position: sticky;
  top: 20px;
  padding: 16px;
}

.attention-summary-card img {
  display: block;
  width: 150px;
  max-height: 66px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.attention-summary-card .summary-line {
  margin-top: 8px;
}

.finish-attention-button {
  display: flex;
  width: 100%;
  min-height: 78px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #04ad20 0%, var(--maurer-green) 54%, var(--maurer-green-dark) 100%);
  box-shadow:
    0 0 0 0 rgba(34, 211, 75, 0.54),
    0 0 20px rgba(34, 211, 75, 0.34),
    0 12px 22px rgba(4, 173, 32, 0.2);
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  animation: neonPulse 1.65s ease-in-out infinite;
}

.finish-attention-button::after {
  content: "CLICK AQUI";
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
}

.finish-attention-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.finish-attention-button:focus-visible {
  outline: 3px solid rgba(34, 211, 75, 0.72);
  outline-offset: 3px;
}

.attention-summary-card p {
  margin: 8px 0 0;
  color: #657283;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.attention-finished {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 24px;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: rgba(13, 28, 42, 0.46);
  box-shadow: none;
  text-align: center;
  backdrop-filter: blur(5px);
  isolation: isolate;
  animation: attentionOverlayFade 180ms ease-out;
}

.attention-finished[hidden] {
  display: none !important;
}

.attention-finished::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(620px, calc(100% - 48px));
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue) 48%, var(--maurer-green-dark));
  box-shadow: 0 28px 70px rgba(13, 28, 42, 0.34);
  content: "";
  transform: translate(-50%, -50%);
  animation: attentionToastPanelIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.attention-finished img {
  position: relative;
  z-index: 1;
  width: 235px;
  max-height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
  animation: attentionToastIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.attention-finished strong {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 540px;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.15;
  animation: attentionToastIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.attention-finished span {
  position: relative;
  z-index: 1;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  font-weight: 800;
  animation: attentionToastIn 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.attention-finished small {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: attentionToastIn 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.attention-finished.toast-closing {
  animation: attentionOverlayFadeOut 180ms ease-in forwards;
}

.attention-finished.toast-closing::before,
.attention-finished.toast-closing img,
.attention-finished.toast-closing strong,
.attention-finished.toast-closing span,
.attention-finished.toast-closing small {
  animation: attentionToastOut 180ms ease-in forwards;
}

.attention-finished.toast-closing::before {
  animation: attentionToastPanelOut 180ms ease-in forwards;
}

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

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

@keyframes attentionToastIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes attentionToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@keyframes attentionToastPanelIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 18px)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes attentionToastPanelOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px)) scale(0.98);
  }
}

.form-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(13, 28, 42, 0.34);
  backdrop-filter: blur(4px);
}

.form-viewer-modal {
  display: flex;
  width: min(1700px, 100%);
  height: min(940px, calc(100vh - 44px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(214, 221, 231, 0.86);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 25, 70, 0.38);
}

.form-viewer-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maurer-blue-dark), var(--maurer-blue));
}

.form-viewer-back-to-list {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--maurer-blue-dark);
  background: var(--white);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.form-viewer-header img {
  width: 200px;
  max-height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.form-viewer-header h2 {
  margin: 3px 0 0;
  color: var(--white);
  font-size: 25px;
  line-height: 1.15;
}

.form-viewer-header p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.35;
}

.form-viewer-body {
  flex: 1;
  min-height: 0;
  background: linear-gradient(135deg, var(--maurer-blue-dark) 0%, var(--maurer-blue) 58%, #002C58 100%);
}

.form-viewer-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

@media (max-width: 1360px) {
  .doctor-module-header,
  .doctor-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .doctor-title-block {
    grid-row: auto;
    min-height: auto;
    text-align: center;
  }

  .doctor-brand-mark {
    grid-row: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0 0 18px;
  }

  .doctor-profile-panel {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
  }

  .doctor-meta-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .doctor-logout-button {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .doctor-header-agenda-card {
    grid-column: auto;
    grid-row: auto;
  }

  .attention-header,
  .attention-layout {
    grid-template-columns: 1fr;
  }

  .attention-brand {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0 0 14px;
  }

  .attention-summary-card {
    position: static;
  }

  .resource-library-content {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 920px) {
  .doctor-workspace {
    margin-right: 0;
    padding: 18px 12px 28px;
  }

  .patient-identity-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .doctor-side-stack,
  .appointment-summary,
  .doctor-action-row {
    grid-template-columns: 1fr;
  }

  .clinical-window-actions,
  .clinical-resource-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .clinical-window-header {
    grid-template-columns: 1fr;
  }

  .clinical-window-brand {
    min-width: 0;
    justify-content: flex-start;
    padding: 0;
  }

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

  .clinical-table-card {
    overflow-x: auto;
  }

  .clinical-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .clinical-row {
    min-width: 940px;
  }

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

  .queue-row {
    min-width: 660px;
  }

  .attention-header,
  .form-viewer-header {
    grid-template-columns: 1fr;
  }

  .attention-patient-grid,
  .attention-actions {
    grid-template-columns: 1fr;
  }

  .quick-form-controls {
    grid-template-columns: 1fr;
  }

  .patient-forms-toolbar,
  .patient-form-history-row {
    grid-template-columns: 1fr;
  }

  .patient-forms-actions {
    justify-content: stretch;
  }

  .patient-forms-actions .patient-forms-active-button {
    flex: 1 1 160px;
  }

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

  .resource-upload-grid,
  .resource-library-header {
    grid-template-columns: 1fr;
  }

  .resource-library-brand {
    min-height: auto;
    justify-content: flex-start;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .resource-list-item {
    grid-template-columns: 1fr;
  }

  .resource-list-size {
    justify-self: start;
  }

  .patient-form-history-open,
  .patient-form-history-status {
    justify-self: start;
  }

}

body.login-active {
  overflow: hidden;
}

body.modal-scroll-locked {
  overflow: hidden;
}

.login-view {
  --login-green: #04AD20;
  --login-green-deep: #038F1A;
  --login-green-dark: #02651A;
  --login-green-soft: #E6F7EA;
  --login-blue: #1A66A8;
  --login-blue-deep: #134F88;
  --login-blue-dark: #0B3863;
  --login-blue-soft: #E8F0F8;
  --login-ink: #0A1A14;
  --login-muted: #6E7E78;
  --login-border: #D7DEDA;
  --login-bone: #FAFBF8;
  --login-paper: #FFFFFF;
  --login-accent: var(--login-blue);
  --login-accent-deep: var(--login-blue-deep);
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
  color: var(--login-ink);
  background: var(--login-bone);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.login-card[data-mode="doctores"] {
  --login-accent: var(--login-green);
  --login-accent-deep: var(--login-green-deep);
}

.login-grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.login-stage {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1.05fr 1fr;
}

.login-brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 60px 56px;
  color: var(--white);
  background: linear-gradient(155deg, #021F3A 0%, #013F12 24%, #025B19 58%, #04AD20 130%);
}

.login-brand-bg,
.login-brand-bg__mesh,
.login-brand-bg__grid,
.login-brand-bg__pulse {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.login-brand-bg__mesh {
  inset: -10%;
  background:
    radial-gradient(circle at 18% 22%, rgba(26, 102, 168, 0.32), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(4, 173, 32, 0.55), transparent 48%),
    radial-gradient(circle at 60% 8%, rgba(255, 255, 255, 0.07), transparent 30%);
  filter: blur(8px);
  animation: loginMesh 24s ease-in-out infinite alternate;
}

.login-brand-bg__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 35%, transparent 75%);
}

.login-brand-bg__pulse::before,
.login-brand-bg__pulse::after {
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  animation: loginPulse 4.5s ease-out infinite;
}

.login-brand-bg__pulse::after {
  right: -270px;
  bottom: -270px;
  width: 700px;
  height: 700px;
  animation-delay: 2s;
}

.login-brand-bg__cross {
  position: absolute;
  top: 40%;
  right: -40px;
  width: 360px;
  height: 360px;
  opacity: 0.06;
  fill: var(--white);
  transform: translateY(-50%) rotate(-12deg);
}

.login-brand-logo {
  display: block;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.login-brand-hero {
  max-width: 540px;
  animation: loginRise 0.85s ease-out both;
}

.login-brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 14px;
  border: 1px solid rgba(72, 255, 121, 0.46);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 50%, rgba(34, 211, 75, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 0 14px rgba(72, 255, 121, 0.14),
    0 0 0 1px rgba(223, 255, 229, 0.08),
    0 0 18px rgba(34, 211, 75, 0.28),
    0 0 36px rgba(4, 173, 32, 0.18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-shadow:
    0 0 8px rgba(223, 255, 229, 0.38),
    0 0 16px rgba(34, 211, 75, 0.28);
  text-transform: uppercase;
}

.login-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22D34B;
  box-shadow:
    0 0 0 5px rgba(34, 211, 75, 0.22),
    0 0 14px rgba(34, 211, 75, 0.88),
    0 0 28px rgba(4, 173, 32, 0.64);
  animation: loginDotNeonPulse 1.35s ease-in-out infinite;
}

.login-brand-hero h1 {
  margin: 0 0 22px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 0.95;
}

.login-brand-hero h1 em {
  display: block;
  color: #DFFFE5;
  font-style: italic;
  font-weight: 400;
}

.login-brand-hero p {
  max-width: 440px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.65;
}

.login-brand-stats {
  display: grid;
  max-width: 440px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}

.login-brand-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-brand-stats li + li {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.login-brand-stats strong {
  color: #DFFFE5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.login-brand-stats li:nth-child(2) strong {
  color: #B8DCFC;
}

.login-brand-stats span,
.login-brand-footer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
}

.login-brand-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background:
    radial-gradient(circle at 90% 8%, rgba(26, 102, 168, 0.06), transparent 40%),
    radial-gradient(circle at 8% 92%, rgba(4, 173, 32, 0.05), transparent 35%),
    var(--login-bone);
}

.login-card {
  position: relative;
  width: min(100%, 460px);
  padding: 44px 42px 36px;
  border: 1px solid var(--login-border);
  border-radius: 24px;
  background: var(--login-paper);
  box-shadow: 0 24px 60px -24px rgba(11, 56, 99, 0.18), 0 8px 24px -12px rgba(0, 0, 0, 0.08);
  animation: loginRise 0.85s ease-out 0.1s both;
}

.login-card::before {
  position: absolute;
  top: -1px;
  right: 28px;
  left: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--login-blue), var(--login-green), transparent);
  content: "";
}

.login-header {
  margin-bottom: 28px;
}

.login-header span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--login-accent-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.login-header h2 {
  margin: 0;
  color: var(--login-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
}

.login-header p {
  margin-top: 8px;
  color: var(--login-muted);
  font-size: 14px;
  font-weight: 600;
}

.login-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  padding: 5px;
  border-radius: 14px;
  background: #ECF1EE;
}

.login-tabs__indicator {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(11, 56, 99, 0.12);
  transition: transform 0.3s ease;
}

.login-tabs[data-active="doctores"] .login-tabs__indicator {
  transform: translateX(100%);
}

.login-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--login-muted);
  background: transparent;
  text-align: left;
}

.login-tab--active {
  color: var(--login-ink);
}

.login-tab__icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: #ECF1EE;
}

.login-tab__icon svg {
  width: 30px;
  height: 30px;
}

.login-tabs[data-active="sistema"] [data-login-target="sistema"] .login-tab__icon {
  color: var(--white);
  background: var(--login-blue);
}

.login-tabs[data-active="doctores"] [data-login-target="doctores"] .login-tab__icon {
  color: var(--white);
  background: var(--login-green);
}

.login-tab__label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  line-height: 1.2;
}

.login-tab__label strong {
  font-size: 11px;
  letter-spacing: 0.05em;
}

.login-tab__label em {
  color: #97A39E;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-field label {
  color: #1F3A30;
  font-size: 12px;
  font-weight: 800;
}

.login-input {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1.5px solid var(--login-border);
  border-radius: 11px;
  background: var(--login-bone);
}

.login-input:focus-within {
  border-color: var(--login-accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26, 102, 168, 0.1);
}

.login-card[data-mode="doctores"] .login-input:focus-within {
  box-shadow: 0 0 0 4px rgba(4, 173, 32, 0.1);
}

.login-input-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--login-muted);
}

.login-input-icon svg,
.login-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input-icon--asterisk {
  color: var(--login-ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.login-input input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 10px 0 0;
  border: 0;
  outline: 0;
  color: var(--login-ink);
  background: transparent;
  font-size: 14.5px;
  font-weight: 700;
}

.login-password-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--login-blue);
  background: transparent;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  color: var(--login-blue-deep);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.login-row a,
.login-help a,
.login-copy {
  color: var(--login-accent-deep);
}

.login-check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--login-muted);
  font-size: 13px;
  font-weight: 700;
}

.login-check input {
  position: absolute;
  opacity: 0;
}

.login-check span {
  width: 17px;
  height: 17px;
  border: 1.5px solid #97A39E;
  border-radius: 5px;
  background: var(--white);
}

.login-check input:checked + span {
  border-color: var(--login-accent);
  background: var(--login-accent);
  box-shadow: inset 0 0 0 4px var(--white);
}

.login-error {
  margin: -4px 0 0;
  padding: 10px 12px;
  border: 1px solid #f2b4b4;
  border-radius: 10px;
  color: #9a2929;
  background: #fff1f1;
  font-size: 12px;
  font-weight: 800;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 15px 22px;
  border-radius: 12px;
  color: var(--white);
  background: var(--login-accent);
  box-shadow: 0 12px 26px -12px rgba(26, 102, 168, 0.6);
  font-size: 14px;
  font-weight: 800;
}

.login-submit:hover {
  background: var(--login-accent-deep);
  transform: translateY(-1px);
}

.login-submit--doctor {
  background: var(--login-green);
}

.login-note {
  color: #97A39E;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.login-help {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--login-border);
  text-align: center;
}

.login-help > span {
  color: var(--login-muted);
  font-size: 12px;
  font-weight: 700;
}

.login-help div {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 12px;
}

.login-help a {
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
}

.login-copy {
  margin-top: 28px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

@keyframes loginRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginMesh {
  to {
    transform: translate(2%, -2%) scale(1.06);
  }
}

@keyframes loginPulse {
  from {
    opacity: 0.7;
    transform: scale(0.85);
  }

  to {
    opacity: 0;
    transform: scale(1.15);
  }
}

@keyframes loginDotNeonPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(34, 211, 75, 0.28),
      0 0 12px rgba(34, 211, 75, 0.76),
      0 0 24px rgba(4, 173, 32, 0.48);
    transform: scale(1);
  }

  42% {
    box-shadow:
      0 0 0 9px rgba(34, 211, 75, 0.1),
      0 0 22px rgba(72, 255, 121, 0.96),
      0 0 42px rgba(4, 173, 32, 0.8);
    transform: scale(1.18);
  }

  50% {
    box-shadow:
      0 0 0 12px rgba(34, 211, 75, 0),
      0 0 28px rgba(72, 255, 121, 1),
      0 0 52px rgba(4, 173, 32, 0.68);
    transform: scale(1.24);
  }
}

@media (max-width: 1100px) {
  body.login-active {
    overflow: auto;
  }

  .login-stage {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: auto;
    padding: 40px 36px;
    gap: 44px;
  }

  .login-brand-logo {
    width: 160px;
  }

  .login-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .login-brand-panel {
    padding: 32px 24px;
  }

  .login-brand-logo {
    width: 140px;
  }

  .login-brand-stats strong {
    font-size: 24px;
  }

  .login-card {
    padding: 32px 24px 28px;
    border-radius: 18px;
  }

  .login-header h2 {
    font-size: 26px;
  }

  .login-tab {
    gap: 10px;
    padding: 10px 8px;
  }

  .login-tab__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .login-tab__icon svg {
    width: 24px;
    height: 24px;
  }

  .login-tab__label strong,
  .login-tab__label em {
    font-size: 10px;
  }

  .login-row,
  .login-help div {
    align-items: flex-start;
    flex-direction: column;
  }
}
