/* ==========================================================================
   Manillas · Sistema de identificación de pacientes
   Hoja de estilos principal
   ========================================================================== */

:root {
  --brand-50: #eefaf7;
  --brand-100: #d5f2eb;
  --brand-200: #afe5da;
  --brand-300: #7fd2c3;
  --brand-400: #4bb8a7;
  --brand-500: #0f766e;
  --brand-600: #0d6861;
  --brand-700: #0b574f;
  --brand-800: #08453f;
  --brand-900: #062f2b;
  --accent-50: #fff8eb;
  --accent-100: #ffefcc;
  --accent-200: #ffe09a;
  --accent-300: #ffcb5c;
  --accent-400: #fbb130;
  --accent-500: #d97706;
  --accent-600: #b96205;
  --accent-700: #944d07;
  --accent-800: #733c09;
  --accent-900: #552d09;
  --sidebar-from: #082f2d;
  --sidebar-to: #0f766e;

  --bg: #f2f6f5;
  --bg-soft: #f8fbfa;
  --surface: #ffffff;
  --surface-alt: #f6f9f8;
  --ink: #10221f;
  --ink-soft: #2c423e;
  --muted: #617773;
  --muted-2: #8aa09b;
  --line: #dfe9e6;
  --line-strong: #c8d8d3;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --danger-line: #fecdca;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --warning-line: #fedf89;
  --success: #067647;
  --success-soft: #ecfdf3;
  --success-line: #abefc6;
  --info: #175cd3;
  --info-soft: #eff8ff;
  --info-line: #b2ddff;

  --shadow-xs: 0 1px 2px rgba(16, 34, 31, 0.06);
  --shadow-sm: 0 1px 3px rgba(16, 34, 31, 0.08), 0 1px 2px rgba(16, 34, 31, 0.04);
  --shadow-md: 0 12px 30px -12px rgba(8, 47, 45, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(8, 47, 45, 0.35);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --sidebar-w: 266px;
  --font: "Segoe UI", "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0 0 0.8em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  color: var(--brand-700);
}

small {
  font-size: 0.8em;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 2px;
}

::selection {
  background: var(--brand-200);
}

/* --------------------------------------------------------------- layout -- */

.app {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(720px 320px at -20% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(170deg, var(--sidebar-from), var(--sidebar-to));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
  color: #fff;
}

.sidebar__brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.sidebar__brand-text {
  min-width: 0;
}

.sidebar__brand-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__brand-text span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar__section {
  margin: 18px 10px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav__link svg {
  width: 19px;
  height: 19px;
  flex: none;
  opacity: 0.85;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav__link.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav__link.is-active svg {
  opacity: 1;
  color: var(--accent-300);
}

.sidebar__footer {
  margin-top: auto;
  padding: 18px 10px 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.app__main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(242, 246, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__titles {
  min-width: 0;
  flex: 1;
}

.topbar__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.topbar__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.user-chip__meta {
  line-height: 1.15;
  text-align: right;
}

.user-chip__meta strong {
  display: block;
  font-size: 12.5px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip__meta span {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-400), var(--brand-700));
  text-transform: uppercase;
}

.avatar--lg {
  width: 60px;
  height: 60px;
  font-size: 18px;
}

.avatar--soft {
  color: var(--brand-700);
  background: var(--brand-100);
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 26px 28px 48px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 27px;
}

.page-head p {
  margin-top: 5px;
  color: var(--muted);
  max-width: 720px;
  font-size: 14px;
}

.page-head__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------------------------------------------------------- cards -- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card--flat {
  box-shadow: none;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
}

.card__head h2,
.card__head h3 {
  font-size: 15px;
}

.card__head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.card__body {
  padding: 20px;
}

.card__body--flush {
  padding: 0;
}

.card__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.grid--sidebar {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  align-items: start;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}

/* ----------------------------------------------------------------- stats -- */

.stat {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 100% 100%, var(--brand-50), transparent 70%);
  pointer-events: none;
}

.stat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}

.stat__icon svg {
  width: 21px;
  height: 21px;
}

.stat__value {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.stat--accent .stat__icon {
  color: var(--accent-700);
  background: var(--accent-50);
  border-color: var(--accent-100);
}

.stat--success .stat__icon {
  color: var(--success);
  background: var(--success-soft);
  border-color: var(--success-line);
}

.stat--danger .stat__icon {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: var(--danger-line);
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 14px -8px var(--brand-700);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  border-color: var(--brand-700);
  color: #fff;
}

.btn--accent {
  background: linear-gradient(180deg, var(--accent-400), var(--accent-500));
  border-color: var(--accent-600);
  color: #fff;
}

.btn--accent:hover {
  background: linear-gradient(180deg, var(--accent-500), var(--accent-600));
  border-color: var(--accent-700);
  color: #fff;
}

.btn--danger {
  color: var(--danger);
  border-color: var(--danger-line);
  background: var(--danger-soft);
}

.btn--danger:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn--ghost:hover {
  background: var(--surface-alt);
  border-color: var(--line);
  color: var(--ink);
}

.btn--sm {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12.5px;
  border-radius: 8px;
  gap: 6px;
}

.btn--sm svg {
  width: 15px;
  height: 15px;
}

.btn--icon {
  width: 38px;
  padding: 0;
}

.btn--icon.btn--sm {
  width: 32px;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- forms -- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

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

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

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-soft);
}

.field__label .req {
  color: var(--danger);
}

.field__hint {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--brand-300);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--brand-50);
}

.textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.textarea--code {
  font-family: var(--mono);
  font-size: 12.5px;
  min-height: 150px;
}

.input--readonly {
  background: var(--surface-alt);
  color: var(--muted);
}

.field-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.field-row .input {
  flex: 1;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--brand-500);
  flex: none;
}

.check strong {
  display: block;
  font-size: 13px;
}

.check span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover {
  border-color: var(--brand-300);
}

.option input {
  margin-top: 3px;
  accent-color: var(--brand-500);
}

.option strong {
  display: block;
  font-size: 13.5px;
}

.option span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.option:has(input:checked) {
  border-color: var(--brand-400);
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand-300);
}

input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
}

/* --------------------------------------------------------------- tables -- */

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

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

.table tbody tr:hover {
  background: var(--bg-soft);
}

.table .cell-main {
  font-weight: 650;
  color: var(--ink);
}

.table .cell-sub {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
}

.table .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table .actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.table--compact td,
.table--compact th {
  padding: 9px 12px;
}

.table tr.is-invalid {
  background: var(--danger-soft);
}

.table tr.is-invalid:hover {
  background: #fde9e7;
}

/* --------------------------------------------------------------- badges -- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.5;
}

.badge svg {
  width: 12px;
  height: 12px;
}

.badge--brand {
  color: var(--brand-700);
  background: var(--brand-50);
  border-color: var(--brand-200);
}

.badge--success {
  color: var(--success);
  background: var(--success-soft);
  border-color: var(--success-line);
}

.badge--warning {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: var(--warning-line);
}

.badge--danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: var(--danger-line);
}

.badge--info {
  color: var(--info);
  background: var(--info-soft);
  border-color: var(--info-line);
}

.badge--accent {
  color: var(--accent-800);
  background: var(--accent-50);
  border-color: var(--accent-200);
}

.badge--outline {
  background: transparent;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--warning-line);
  color: var(--warning);
  background: var(--warning-soft);
}

.mode-pill--production {
  color: var(--success);
  border-color: var(--success-line);
  background: var(--success-soft);
}

/* --------------------------------------------------------------- flashes -- */

.flashes {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--info-line);
  background: var(--info-soft);
  color: #0b4a9e;
  font-size: 13.5px;
  box-shadow: var(--shadow-xs);
}

.flash svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}

.flash__text {
  flex: 1;
}

.flash__close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
  line-height: 1;
}

.flash__close:hover {
  opacity: 1;
}

.flash--success {
  color: var(--success);
  border-color: var(--success-line);
  background: var(--success-soft);
}

.flash--error {
  color: var(--danger);
  border-color: var(--danger-line);
  background: var(--danger-soft);
}

.flash--warning {
  color: var(--warning);
  border-color: var(--warning-line);
  background: var(--warning-soft);
}

/* ------------------------------------------------------------ components -- */

.hero {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(600px 260px at 100% -20%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(135deg, var(--brand-800), var(--brand-600));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero h1 {
  font-size: 25px;
  max-width: 620px;
}

.hero p {
  margin-top: 7px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.hero__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero .badge {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero__form {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1.1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 22px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.hero__form .field__label {
  color: rgba(255, 255, 255, 0.82);
}

.hero__form .input,
.hero__form .select {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.95);
}

.hero__form .btn {
  min-height: 42px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 46px 24px;
  color: var(--muted);
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px dashed var(--line-strong);
  color: var(--muted-2);
  margin-bottom: 4px;
}

.empty__icon svg {
  width: 25px;
  height: 25px;
}

.empty strong {
  color: var(--ink-soft);
  font-size: 15px;
}

.empty p {
  font-size: 13px;
  max-width: 420px;
  margin: 0;
}

.patient {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
}

.patient__info {
  flex: 1;
  min-width: 0;
}

.patient__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.patient__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.patient__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.patient__meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px 18px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.data-item__label {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.data-item__value {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.inline-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--info-line);
  background: var(--info-soft);
  color: #0b4a9e;
  font-size: 13px;
}

.notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}

.notice strong {
  display: block;
  margin-bottom: 2px;
}

.notice--warning {
  border-color: var(--warning-line);
  background: var(--warning-soft);
  color: var(--warning);
}

.notice--danger {
  border-color: var(--danger-line);
  background: var(--danger-soft);
  color: var(--danger);
}

.notice--success {
  border-color: var(--success-line);
  background: var(--success-soft);
  color: var(--success);
}

.notice--accent {
  border-color: var(--accent-200);
  background: var(--accent-50);
  color: var(--accent-800);
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.toolbar .field {
  min-width: 130px;
}

.toolbar .field--grow {
  flex: 1;
  min-width: 180px;
}

.toolbar__spacer {
  flex: 1;
}

/* --------------------------------------------------------------- menu link -- */

.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.quick__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 13.5px;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.quick__item:hover {
  color: var(--brand-700);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.quick__item svg {
  width: 20px;
  height: 20px;
  color: var(--brand-500);
  flex: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.admin-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.admin-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--ink);
}

.admin-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}

.admin-card__icon svg {
  width: 20px;
  height: 20px;
}

.admin-card strong {
  display: block;
  font-size: 14px;
}

.admin-card p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* ----------------------------------------------------------------- login -- */

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--surface);
}

.login__art {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 52px;
  color: #fff;
  background:
    radial-gradient(760px 420px at 12% 8%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(500px 300px at 100% 100%, rgba(217, 119, 6, 0.3), transparent 60%),
    linear-gradient(150deg, var(--sidebar-from) 8%, var(--sidebar-to) 70%, var(--brand-600));
  overflow: hidden;
}

.login__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 30%, #000, transparent 75%);
  pointer-events: none;
}

.login__art::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.03), 0 0 0 100px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.login__art > * {
  position: relative;
  z-index: 1;
}

.login__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login__brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px;
}

.login__brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.login__brand span {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.login__art-main {
  margin: auto 0;
  padding: 42px 0;
  max-width: 520px;
}

.login__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.login__art h1 {
  margin-top: 20px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.login__art h1 em {
  font-style: normal;
  color: var(--accent-300);
}

.login__art p {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 440px;
}

.login__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.login__feature {
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.login__feature svg {
  width: 18px;
  height: 18px;
  color: var(--accent-300);
  margin-bottom: 7px;
}

.login__feature strong {
  display: block;
  font-size: 12px;
}

.login__feature span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.login__art-foot {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 56px;
  background: var(--bg-soft);
}

.login__box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login__box h2 {
  font-size: 27px;
  letter-spacing: -0.03em;
}

.login__box > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

.login__mode {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login__form .input {
  min-height: 46px;
}

.login__form .btn {
  min-height: 46px;
  font-size: 14px;
  margin-top: 4px;
}

.login__form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.login__demo {
  margin-top: 24px;
  padding: 14px;
  border: 1px dashed var(--brand-200);
  border-radius: 12px;
  background: var(--brand-50);
}

.login__demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.login__demo-head strong {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.login__demo p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 9px;
}

.demo-users {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.demo-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--brand-100);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: left;
}

.demo-user:hover {
  border-color: var(--brand-400);
  background: var(--brand-50);
}

.demo-user code {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--brand-700);
}

.login__foot {
  margin-top: 26px;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
}

.password-box {
  position: relative;
}

.password-box .input {
  padding-right: 46px;
}

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

.password-toggle:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.password-toggle svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------- passport -- */

.passport {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(500px 220px at 90% -10%, var(--brand-100), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.passport__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
}

.passport__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.passport__brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.passport__body {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 26px 22px;
}

.passport__name {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.passport__meta {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.passport__meta b {
  color: var(--ink-soft);
  font-weight: 700;
}

.passport__number {
  margin-left: auto;
  text-align: right;
  padding: 12px 16px;
  border-radius: 13px;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  min-width: 130px;
}

.passport__number small {
  display: block;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.passport__number strong {
  display: block;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-800);
  font-variant-numeric: tabular-nums;
}

.passport__foot {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 13px 22px;
  border-top: 1px dashed var(--line-strong);
  background: var(--bg-soft);
  font-size: 11.5px;
  color: var(--muted);
}

.token-code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------- timeline -- */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 4px;
}

.timeline__item {
  position: relative;
  padding: 0 0 18px 26px;
  border-left: 2px solid var(--line);
}

.timeline__item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand-400);
}

.timeline__item:first-child .timeline__dot {
  background: var(--brand-500);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-100);
}

.timeline__title {
  font-size: 13px;
  font-weight: 700;
}

.timeline__meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}

.timeline__note {
  margin-top: 5px;
  padding: 6px 9px;
  background: var(--surface-alt);
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- contract -- */

.contract-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contract-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
}

.contract-item code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 4px;
  padding: 1px 5px;
}

.contract-item__meta {
  margin-left: auto;
  flex: none;
}

.contract-item span.contract-desc {
  color: var(--muted);
}

.code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #0c1f1c;
  color: #b7e4d8;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.kv:last-child {
  border-bottom: 0;
}

.kv span {
  color: var(--muted);
}

.kv strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.logo-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.logo-card__preview {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(45deg, #f0f4f3 25%, transparent 25%, transparent 75%, #f0f4f3 75%),
    linear-gradient(45deg, #f0f4f3 25%, #fff 25%, #fff 75%, #f0f4f3 75%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  padding: 6px;
}

.logo-card__preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-card__body {
  flex: 1;
  min-width: 0;
}

.logo-card__body strong {
  display: block;
  font-size: 13px;
}

.logo-card__body span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}

.logo-card input[type="file"] {
  font-size: 11px;
  max-width: 100%;
}

.brand-preview {
  padding: 16px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--sidebar-from), var(--sidebar-to));
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-preview img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
}

.brand-preview strong {
  display: block;
  font-size: 14px;
}

.brand-preview span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.swatch-row {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.swatch {
  height: 22px;
  flex: 1;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ misc -- */

.inline-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.inline-form .input {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}

details.disclosure summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  color: var(--brand-600);
  list-style: none;
}

details.disclosure summary::-webkit-details-marker {
  display: none;
}

details.disclosure summary:hover {
  color: var(--brand-700);
}

details.disclosure[open] summary {
  margin-bottom: 8px;
}

.truncate {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.text-muted {
  color: var(--muted);
}

.text-small {
  font-size: 12px;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.w-full { width: 100%; }
.span-2 { grid-column: span 2; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.flex-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.mono {
  font-family: var(--mono);
}

.nowrap-mobile {
  white-space: nowrap;
}

/* ---------------------------------------------------------------- errors -- */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background:
    radial-gradient(600px 300px at 50% 0%, var(--brand-100), transparent 65%),
    var(--bg);
}

.error-page__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 20px;
}

.error-page__code {
  font-size: clamp(64px, 12vw, 110px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--brand-200);
}

.error-page h1 {
  margin-top: 8px;
  font-size: 24px;
}

.error-page p {
  margin-top: 8px;
  max-width: 440px;
  color: var(--muted);
  font-size: 13.5px;
}

.error-page__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-page__foot {
  margin-top: 36px;
  font-size: 11px;
  color: var(--muted-2);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1180px) {
  .hero__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__form .btn {
    grid-column: 1 / -1;
  }
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--sidebar,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar {
    transform: translateX(0);
  }
  .app__main {
    margin-left: 0;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    padding: 12px 18px;
  }
  .content {
    padding: 20px 18px 40px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login__art {
    order: 2;
    padding: 32px 28px;
  }
  .login__art-main {
    padding: 26px 0;
  }
  .login__panel {
    order: 1;
    padding: 34px 22px;
  }
  .login__features {
    margin-top: 20px;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(4, 22, 20, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-head h1 {
    font-size: 23px;
  }
  .form-grid,
  .form-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .topbar__meta {
    display: none;
  }
  .user-chip {
    padding: 4px;
    border-radius: 50%;
  }
  .user-chip__meta {
    display: none;
  }
  .passport__body {
    flex-direction: column;
    align-items: flex-start;
  }
  .passport__number {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
  .hero {
    padding: 20px;
  }
  .hero__form {
    grid-template-columns: minmax(0, 1fr);
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar .field {
    flex: 1;
    min-width: 140px;
  }
  .table th,
  .table td {
    padding: 10px 12px;
  }
  .login__art h1 {
    font-size: 28px;
  }
  .login__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 16px 12px 36px;
  }
  .card__body {
    padding: 15px;
  }
  .card__head {
    padding: 14px 15px;
  }
  .btn {
    padding: 8px 12px;
  }
  .page-head__actions {
    width: 100%;
  }
  .page-head__actions .btn {
    flex: 1;
  }
  .demo-users {
    grid-template-columns: 1fr;
  }
  .login__panel {
    padding: 28px 16px;
  }
  .stat__value {
    font-size: 23px;
  }
}

@media print {
  .sidebar,
  .topbar,
  .flashes,
  .page-head__actions,
  .no-print {
    display: none !important;
  }
  .app__main {
    margin-left: 0;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  body {
    background: #fff;
  }
  .passport {
    box-shadow: none;
    border-color: #bbb;
  }
}
