﻿:root {
  --bg: #eef7f9;
  --surface: transparent;
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.42);
  --text: #0f172a;
  --muted: #1f344d;
  --primary: #047d9b;
  --primary-dark: #075e75;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: url("../img/consultorio.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: none;
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-panel {
  width: min(100%, 520px);
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  padding: 38px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    inset 0 1px 18px rgba(255, 255, 255, 0.10);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.58);
  color: var(--primary);
  font-size: 34px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.20),
    0 10px 24px rgba(15, 23, 42, 0.06);
}

.eyebrow {
  margin: 0 0 6px;
  color: #035f75;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(255, 255, 255, 0.65);
}

h1 {
  margin: 0;
  color: #0f172a;
  font-size: 40px;
  line-height: 1.1;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.96),
    0 10px 26px rgba(255, 255, 255, 0.72);
}

.login-text {
  margin: 0 0 30px;
  max-width: 430px;
  color: var(--muted);
  line-height: 1.65;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.95),
    0 8px 22px rgba(255, 255, 255, 0.62);
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  color: #132a43;
  font-size: 14px;
  font-weight: 700;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.92),
    0 6px 14px rgba(255, 255, 255, 0.58);
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.58);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  font-size: 15px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    0 8px 20px rgba(15, 23, 42, 0.025);
}

.login-form input::placeholder {
  color: rgba(19, 42, 67, 0.74);
}

.login-form input:focus {
  border-color: rgba(8, 145, 178, 0.70);
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    0 0 0 4px rgba(8, 145, 178, 0.08),
    inset 0 0 0 1px rgba(255,255,255,0.14);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted) !important;
  font-weight: 700 !important;
}

.form-row a {
  color: #075e75;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.login-form button {
  height: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 15px;
  background: rgba(8, 145, 178, 0.50);
  color: white;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(8, 72, 92, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.login-form button:hover {
  background: rgba(14, 116, 144, 0.68);
}

.access-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.95),
    0 6px 14px rgba(255, 255, 255, 0.58);
}

@media (max-width: 860px) {
  body {
    background-position: center center;
  }

  .login-page {
    padding: 18px;
  }

  .login-panel {
    padding: 28px;
    border-radius: 22px;
  }

  .login-brand {
    align-items: flex-start;
  }

  h1 {
    font-size: 32px;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
.login-panel {
  width: min(100%, 520px);
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  padding: 38px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(2px) saturate(116%);
  -webkit-backdrop-filter: blur(2px) saturate(116%);
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.22),
    0 12px 32px rgba(15, 23, 42, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 1px 18px rgba(255, 255, 255, 0.12);
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 12px;
  background: rgba(254, 226, 226, 0.38);
  color: #991b1b;
  font-size: 14px;
  font-weight: 700;
  text-shadow: none;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 86px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  color: #075e75;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
}

.login-submit {
  width: 100%;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 96px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: auto;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 145, 178, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #075e75;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 3;
}

.password-toggle:hover {
  background: rgba(236, 254, 255, 0.92);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 54px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 145, 178, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.36);
  color: #075e75;
  cursor: pointer;
  padding: 0;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 3;
}

.password-toggle:hover,
.password-toggle.is-visible {
  background: rgba(236, 254, 255, 0.72);
  border-color: rgba(8, 145, 178, 0.48);
}

.eye-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .eye-shape,
.password-toggle .eye-pupil,
.password-toggle .eye-slash {
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    stroke-dashoffset 220ms ease;
  transform-origin: center;
}

.eye-slash {
  opacity: 0;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.password-toggle.is-visible .eye-pupil {
  transform: scale(0.55);
  opacity: 0.55;
}

.password-toggle.is-visible .eye-shape {
  transform: scaleY(0.72);
}

.password-toggle.is-visible .eye-slash {
  opacity: 1;
  stroke-dashoffset: 0;
}

.dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(8, 145, 178, 0.16), transparent 28%),
    radial-gradient(circle at 88% 80%, rgba(5, 150, 105, 0.14), transparent 28%),
    #eef7f9;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.app-sidebar {
  padding: 24px 18px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(8, 145, 178, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 28px;
  font-weight: 800;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 13px;
}

.sidebar-menu {
  display: grid;
  gap: 7px;
}

.sidebar-menu a,
.logout-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 14px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: white;
  background: rgba(255, 255, 255, 0.10);
}

.logout-link {
  margin-top: auto;
  color: #fecaca;
}

.dashboard-main {
  padding: 28px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-eyebrow {
  margin: 0 0 6px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: 32px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.primary-button,
.ghost-button {
  height: 42px;
  border-radius: 13px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  border: 1px solid rgba(8, 145, 178, 0.2);
  background: #0891b2;
  color: white;
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.20);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.30);
  background: rgba(255, 255, 255, 0.62);
  color: #1e293b;
}

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

.kpi-card,
.dashboard-panel {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.kpi-card {
  border-radius: 20px;
  padding: 18px;
}

.kpi-card span,
.kpi-card small {
  display: block;
}

.kpi-card span {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.kpi-card strong {
  display: block;
  margin: 14px 0 8px;
  color: #0f172a;
  font-size: 32px;
  line-height: 1;
}

.kpi-card small {
  font-weight: 800;
}

.good {
  color: #059669;
}

.warning {
  color: #d97706;
}

.danger {
  color: #dc2626;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.dashboard-panel {
  border-radius: 22px;
  padding: 20px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title-row h2 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 18px;
}

.panel-title-row p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.panel-title-row select {
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 12px;
  color: #1e293b;
  font-weight: 700;
}

.chart-panel {
  height: 360px;
}

.chart-panel canvas {
  height: 260px !important;
}

.alert-list {
  display: grid;
  gap: 12px;
}

.alert-item {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.alert-item strong,
.alert-item span {
  display: block;
}

.alert-item span {
  margin-top: 5px;
  color: #64748b;
  line-height: 1.45;
}

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

.clinical-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.clinical-table th,
.clinical-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  text-align: left;
}

.clinical-table th {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
}

.clinical-table td {
  color: #1e293b;
  font-weight: 650;
}

.clinical-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.72);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.good {
  background: rgba(209, 250, 229, 0.82);
}

.status-pill.warning {
  background: rgba(254, 243, 199, 0.86);
}

.status-pill.danger {
  background: rgba(254, 226, 226, 0.86);
}

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

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

@media (max-width: 760px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    padding: 16px;
  }

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

  .dashboard-main {
    padding: 18px;
  }

  .dashboard-header,
  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    flex: 1;
  }

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

  .dashboard-header h1 {
    font-size: 26px;
  }
}

/* Ajuste de marca Medsorb - color vino */
:root {
  --brand-wine: #8a2f46;
  --brand-wine-dark: #5f1f31;
  --brand-wine-soft: rgba(138, 47, 70, 0.12);
}

.eyebrow,
.dashboard-eyebrow,
.form-row a {
  color: var(--brand-wine-dark);
}

.brand-icon {
  color: var(--brand-wine);
  border-color: rgba(138, 47, 70, 0.32);
}

.login-form button,
.primary-button {
  background:
    linear-gradient(
      135deg,
      rgba(138, 47, 70, 0.92),
      rgba(95, 31, 49, 0.88)
    );
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 14px 30px rgba(95, 31, 49, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.login-form button:hover,
.primary-button:hover {
  background:
    linear-gradient(
      135deg,
      rgba(95, 31, 49, 0.96),
      rgba(74, 18, 36, 0.92)
    );
}

.password-toggle {
  color: var(--brand-wine-dark);
  border-color: rgba(138, 47, 70, 0.28);
}

.password-toggle:hover,
.password-toggle.is-visible {
  background: rgba(255, 241, 244, 0.70);
  border-color: rgba(138, 47, 70, 0.48);
}

.app-sidebar {
  background:
    linear-gradient(
      180deg,
      rgba(95, 31, 49, 0.94),
      rgba(47, 18, 30, 0.94)
    );
}

.sidebar-logo {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(255, 255, 255, 0.13);
}

.good {
  color: #047857;
}

.warning {
  color: #b45309;
}

.danger {
  color: #b91c1c;
}

.module-hero {
  min-height: 180px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.38)
    ),
    radial-gradient(circle at 90% 10%, rgba(138, 47, 70, 0.13), transparent 28%);
}

.module-hero h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 30px;
}

.module-hero p {
  max-width: 680px;
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

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

.clinical-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.clinical-form input,
.clinical-form select,
.clinical-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: #1e293b;
  padding: 12px 14px;
  outline: none;
  font-size: 15px;
}

.clinical-form textarea {
  resize: vertical;
}

.clinical-form input:focus,
.clinical-form select:focus,
.clinical-form textarea:focus {
  border-color: rgba(138, 47, 70, 0.58);
  box-shadow: 0 0 0 4px rgba(138, 47, 70, 0.10);
}

.span-2 {
  grid-column: span 2;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 760px) {
  .clinical-form {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .form-actions {
    flex-direction: column;
  }
}

.report-list {
  display: grid;
  gap: 12px;
}

.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.report-row span {
  color: #334155;
  font-weight: 800;
}

.report-row strong {
  color: #0f172a;
  font-size: 24px;
}

.empty-state {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
  color: #64748b;
  font-weight: 700;
}

.report-list {
  display: grid;
  gap: 12px;
}

.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.report-row span {
  color: #334155;
  font-weight: 800;
}

.report-row strong {
  color: #0f172a;
  font-size: 24px;
}

.empty-state {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
  color: #64748b;
  font-weight: 700;
}

.helper-panel {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--brand-wine);
}

.helper-panel strong {
  color: #0f172a;
  font-size: 17px;
}

.helper-panel p,
.helper-panel span {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.helper-panel span.good {
  color: #047857;
  font-weight: 800;
}

.helper-panel span.warning {
  color: #b45309;
  font-weight: 800;
}

.donut-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  align-items: center;
  gap: 22px;
}

.donut-chart-wrap {
  width: 100%;
  height: 280px;
  position: relative;
}

.donut-legend {
  display: grid;
  gap: 12px;
}

.legend-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.legend-row span {
  color: #334155;
  font-weight: 800;
}

.legend-row strong {
  color: #0f172a;
  font-size: 18px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-1 { background: #8a2f46; }
.dot-2 { background: #0891b2; }
.dot-3 { background: #059669; }
.dot-4 { background: #d97706; }
.dot-5 { background: #2563eb; }
.dot-6 { background: #dc2626; }

@media (max-width: 900px) {
  .donut-layout {
    grid-template-columns: 1fr;
  }

  .donut-chart-wrap {
    height: 240px;
  }
}

.form-section {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.form-section h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 17px;
}

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

.header-actions a,
.dashboard-header > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 760px) {
  .inner-form {
    grid-template-columns: 1fr;
  }
}

.report-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mini-donut-panel {
  min-height: 430px;
}

.mini-donut-wrap {
  width: 100%;
  height: 210px;
  margin-bottom: 16px;
}

.donut-legend.compact {
  gap: 8px;
}

.donut-legend.compact .legend-row {
  padding: 10px 12px;
}

.donut-legend.compact .legend-row span {
  font-size: 13px;
}

.insight-panel {
  display: flex;
  flex-direction: column;
}

.insight-list {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.insight-list div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.insight-list span,
.insight-list strong {
  display: block;
}

.insight-list span {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.insight-list strong {
  margin-top: 8px;
  color: #0f172a;
  font-size: 26px;
}

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

@media (max-width: 760px) {
  .report-chart-grid {
    grid-template-columns: 1fr;
  }
}

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

.user-edit-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.user-edit-card label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.user-edit-card input,
.user-edit-card select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: #1e293b;
  padding: 12px 14px;
  outline: none;
  font-size: 15px;
}

.user-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 980px) {
  .users-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .user-edit-card {
    grid-template-columns: 1fr;
  }
}

.filter-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.filter-form input,
.filter-form select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  color: #1e293b;
  padding: 0 12px;
  outline: none;
  font-size: 14px;
  font-weight: 700;
}

.filter-form a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 640px) {
  .filter-form {
    grid-template-columns: 1fr;
  }
}

.report-filter-form {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
}

@media (max-width: 1180px) {
  .report-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .report-filter-form {
    grid-template-columns: 1fr;
  }
}

.inventory-filter-form {
  grid-template-columns: 1.4fr 1fr 1fr auto auto;
}

@media (max-width: 900px) {
  .inventory-filter-form {
    grid-template-columns: 1fr;
  }
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(138, 47, 70, 0.10);
  color: var(--brand-wine-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.table-action:hover {
  background: rgba(138, 47, 70, 0.18);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions form {
  margin: 0;
}

.table-action.danger-action {
  border: 0;
  background: rgba(220, 38, 38, 0.10);
  color: #991b1b;
  cursor: pointer;
}

.table-action.danger-action:hover {
  background: rgba(220, 38, 38, 0.18);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions form {
  margin: 0;
}

.table-action.danger-action {
  border: 0;
  background: rgba(220, 38, 38, 0.10);
  color: #991b1b;
  cursor: pointer;
}

.table-action.danger-action:hover {
  background: rgba(220, 38, 38, 0.18);
}

.inventory-actions {
  gap: 10px;
}

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

.inventory-actions input {
  width: 62px;
  height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: #1e293b;
  padding: 0 8px;
  font-weight: 800;
}

.table-action.use-action {
  border: 0;
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  cursor: pointer;
}

.table-action.use-action:hover {
  background: rgba(5, 150, 105, 0.20);
}

.error-panel {
  border-left-color: #dc2626;
}

.error-panel strong {
  color: #991b1b;
}

.movement-filter-form {
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto auto;
}

@media (max-width: 980px) {
  .movement-filter-form {
    grid-template-columns: 1fr;
  }
}
