:root {
  --primary-blue: #3b82f6;
  --accent-yellow: #f59e0b;
  --bg-dark: #0f172a;
  --bg-dark-soft: #1e293b;
  --glass: rgba(30, 41, 59, .45);
  --border-glass: rgba(255, 255, 255, .15);
  --sidebar-width: 220px;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --text: #172126;
  --muted: #617078;
  --line: #dce5e8;
  --green: #168765;
  --green-bg: #dff5ed;
  --amber: var(--accent-yellow);
  --amber-bg: #fff0d2;
  --red: #bd3b35;
  --red-bg: #ffe2df;
  --blue: var(--primary-blue);
  --blue-bg: #e0eff8;
  --ink: #24343b;
  --shadow: 0 16px 40px rgba(31, 49, 56, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .22s ease;
}

.app.sidebar-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  color: #f7fbfc;
  background: radial-gradient(circle at top, var(--bg-dark-soft), var(--bg-dark));
  border-right: 1px solid var(--border-glass);
  overflow: hidden;
  transition: width .22s ease, transform .22s ease, padding .22s ease;
  z-index: 20;
}

.sidebar-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 4px 26px 8px;
}

.brand {
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark,
.athena-mark {
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.athena-mark {
  width: 46px;
  height: 46px;
}

.brand-mark img,
.athena-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand strong {
  display: block;
  overflow: hidden;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand span {
  display: none;
  margin-top: 3px;
  color: #aeb9c8;
  font-size: 12px;
  white-space: nowrap;
}

.sidebar-toggle,
.mobile-menu-trigger {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.sidebar-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, .07);
}

.sidebar-toggle:hover {
  background: rgba(59, 130, 246, .18);
}

.sidebar-toggle .bi {
  font-size: 22px;
  line-height: 1;
}

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

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.side-nav a.active,
.side-nav a:hover {
  color: #ffffff;
  background: rgba(59, 130, 246, .18);
  border-color: var(--border-glass);
  box-shadow: inset 3px 0 0 var(--accent-yellow);
}

.side-nav .bi {
  width: 20px;
  flex: 0 0 20px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.nav-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
  background: var(--glass);
  backdrop-filter: blur(14px);
}

.brand-text,
.nav-label,
.sidebar-footer {
  transition: opacity .16s ease, transform .16s ease;
}

.app.sidebar-collapsed .sidebar {
  padding-right: 12px;
  padding-left: 12px;
}

.app.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

.app.sidebar-collapsed .brand {
  display: none;
}

.app.sidebar-collapsed .side-nav a {
  gap: 0;
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

.app.sidebar-collapsed .nav-label,
.app.sidebar-collapsed .sidebar-footer {
  pointer-events: none;
  opacity: 0;
  transform: translateX(-8px);
}

.app.sidebar-collapsed .nav-label {
  width: 0;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .48);
  z-index: 15;
}

.mobile-menu-trigger {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 12;
}

.mobile-menu-trigger .bi {
  font-size: 23px;
  line-height: 1;
}

main,
.content {
  min-width: 0;
  padding-top: 88px;
}

.page-main {
  padding: 88px 28px 28px;
}

.app-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  z-index: 10;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(31, 49, 56, .06);
  transition: left .22s ease;
}

.app.sidebar-collapsed .app-topbar {
  left: 78px;
}

.app-topbar-title {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

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

.notification-button {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

.notification-button .bi {
  font-size: 18px;
  line-height: 1;
}

.notification-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--red);
}

.user-chip {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfd;
}

.user-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary-blue);
  font-size: 12px;
  font-weight: 800;
}

.user-name {
  max-width: 160px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  color: #111a1e;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.lead {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.export-form {
  display: inline-flex;
  margin: 0;
}

.btn-athena,
.btn-athena-outline,
.btn-soft {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.btn-athena {
  border: 1px solid var(--primary-blue);
  color: #fff;
  background: var(--primary-blue);
}

.btn-athena:hover {
  color: #fff;
  background: #2563eb;
}

.btn-athena-outline,
.btn-soft {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn-athena-outline:hover,
.btn-soft:hover {
  color: var(--primary-blue);
  border-color: rgba(59, 130, 246, .45);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 18px;
}

.suppliers-toolbar {
  grid-template-columns: minmax(260px, 1fr) 210px 180px;
}

.field {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.field .bi {
  width: 18px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.field input,
.field select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

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

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

.panels {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  align-items: start;
}

.lower {
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr);
  align-items: start;
}

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

.kpi {
  min-height: 136px;
  padding: 18px;
}

.kpi .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.kpi .value {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.kpi .note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.delta,
.badge-soft {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.delta,
.badge-low {
  color: var(--green);
  background: var(--green-bg);
}

.delta.warn,
.badge-medium {
  color: #9a640b;
  background: var(--amber-bg);
}

.delta.bad,
.badge-high,
.badge-critical {
  color: var(--red);
  background: var(--red-bg);
}

.badge-info-soft {
  color: var(--blue);
  background: var(--blue-bg);
}

.section-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0;
}

h2 {
  margin: 0;
  color: #162126;
  font-size: 18px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  padding: 14px 18px 18px;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.suppliers-table {
  min-width: 1120px;
}

.table-muted,
.table-empty {
  color: var(--muted);
}

.table-empty {
  padding: 24px 10px;
  text-align: center;
}

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

.icon-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.icon-action:hover {
  color: var(--primary-blue);
  border-color: rgba(59, 130, 246, .35);
  background: var(--blue-bg);
}

.icon-action-primary {
  color: var(--primary-blue);
}

.icon-action-danger {
  color: var(--red);
}

.icon-action-danger:hover {
  color: var(--red);
  border-color: rgba(189, 59, 53, .35);
  background: var(--red-bg);
}

.athena-toast {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}

.athena-toast .toast-header {
  color: #fff;
  background: linear-gradient(135deg, #12343b, #1f5f68 55%, #2c7a7b);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.athena-toast .toast-header small {
  color: rgba(255, 255, 255, .82);
}

.athena-toast .toast-header .btn-close {
  filter: invert(1);
  opacity: .85;
}

.toast-logo {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  object-fit: contain;
}

.athena-toast .toast-body {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fbfcfd;
  font-weight: 700;
}

.number-highlight {
  color: var(--primary-blue);
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f7fafb;
}

.supplier {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 190px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary-blue);
  font-weight: 800;
  font-size: 12px;
}

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

.supplier span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.score {
  display: grid;
  gap: 6px;
  min-width: 92px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.bar span.warn {
  background: var(--amber);
}

.bar span.bad {
  background: var(--red);
}

.donut-wrap {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.donut {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 48%, var(--amber) 48% 75%, var(--red) 75% 91%, var(--blue) 91% 100%);
}

.donut::after {
  position: absolute;
  inset: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  content: "124";
  font-size: 30px;
  font-weight: 800;
}

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

.legend-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.legend-row span:first-child {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.dot.amber { background: var(--amber); }
.dot.red { background: var(--red); }
.dot.blue { background: var(--blue); }

.list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.task {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.task-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.task strong {
  font-size: 14px;
}

.task p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.timeline {
  display: grid;
  gap: 2px;
  padding: 18px;
}

.event {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.event time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.event strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.event span {
  color: var(--muted);
  font-size: 13px;
}

.empty {
  display: none;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}

.intro-hero {
  padding: 32px 0 30px;
  color: var(--text);
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.intro-title {
  margin: 0 0 10px;
  color: #111a1e;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
}

.intro-copy {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.text-athena-blue {
  color: var(--primary-blue);
}

.guide-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guide-card .card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  color: #fff;
  background: radial-gradient(circle at top left, var(--bg-dark-soft), var(--bg-dark));
  border-bottom: 1px solid var(--border-glass);
  font-weight: 700;
}

.guide-card .card-header .bi {
  color: var(--accent-yellow);
  font-size: 19px;
}

.guide-card .card-body {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

.guide-card .btn-athena,
.guide-card .btn-athena-outline {
  align-self: flex-start;
}

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

.guide-card .card-title {
  color: #111827;
  font-weight: 800;
}

.guide-card .card-text,
.guide-card li {
  color: #64748b;
  line-height: 1.55;
}

.guide-list {
  margin-bottom: 0;
  padding-left: 18px;
}

.guide-list li + li {
  margin-top: 6px;
}

.list-group-flush > .list-group-item {
  padding-right: 0;
  padding-left: 0;
  color: #64748b;
  background: transparent;
}

.athena-modal {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.athena-modal .modal-header {
  align-items: flex-start;
  color: #fff;
  background: radial-gradient(circle at top left, var(--bg-dark-soft), var(--bg-dark));
  border-bottom: 1px solid var(--border-glass);
}

.athena-modal .modal-title {
  font-weight: 800;
}

.athena-modal .modal-header p {
  margin: 4px 0 0;
  color: #cbd5e1;
  font-size: 13px;
}

.athena-modal .btn-close {
  filter: invert(1);
  opacity: .9;
}

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

.supplier-form-grid .form-group {
  display: grid;
  gap: 6px;
}

.supplier-form-grid label {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.supplier-form-grid input,
.supplier-form-grid select,
.supplier-form-grid textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 11px;
  outline: 0;
  background: #f8fafc;
}

.supplier-form-grid textarea {
  resize: vertical;
}

.supplier-form-grid input:focus,
.supplier-form-grid select:focus,
.supplier-form-grid textarea:focus {
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

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

.supplier-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.supplier-check input {
  width: auto;
  margin-top: 3px;
}

.supplier-nis2-fields {
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 8px;
  background: #f7fafc;
}

.supplier-nis2-fields[hidden] {
  display: none;
}

.supplier-cpv-manual-action {
  margin-top: -4px;
}

.assessment-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 800;
}

.assessment-email {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.assessment-email label {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.assessment-email input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 11px;
  outline: 0;
  background: #f8fafc;
}

.assessment-email input:focus {
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.assessment-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.assessment-option + .assessment-option {
  margin-top: 12px;
}

.assessment-option[hidden] {
  display: none;
}

.assessment-option input {
  margin-top: 4px;
}

.assessment-option strong,
.assessment-option small {
  display: block;
}

.assessment-option small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.auth-backdrop {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .16);
  backdrop-filter: blur(4px);
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(900px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}

.auth-form-side,
.auth-info-side {
  min-width: 0;
  padding: 40px;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.auth-form-container {
  width: 100%;
  max-width: 360px;
}

.auth-label {
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.error-box,
.success-box {
  position: relative;
  margin-bottom: 12px;
  padding: 10px 36px 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.error-box {
  border: 1px solid rgba(239, 68, 68, .35);
  color: #b91c1c;
  background: rgba(239, 68, 68, .12);
}

.success-box {
  border: 1px solid rgba(22, 135, 101, .32);
  color: var(--green);
  background: var(--green-bg);
}

.error-box button,
.success-box button {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .form-group {
  display: grid;
  gap: 5px;
}

.auth-form label,
.privacy {
  color: #475569;
  font-size: 13px;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: 0;
  background: #f8fafc;
}

.auth-form input:focus {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .25);
}

.password-wrapper {
  position: relative;
}

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

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  color: #1a3a5c;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.privacy {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}

.privacy input {
  margin-top: 2px;
}

.privacy a,
.auth-switch a {
  color: #1a3a5c;
  font-weight: 700;
  text-decoration: none;
}

.btn-login {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-yellow), #fbbf24);
  cursor: pointer;
  font-weight: 800;
}

.auth-switch {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.auth-info-side {
  position: relative;
  overflow: hidden;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0d1b2a, #1a3a5c);
}

.auth-info-side::before,
.auth-info-side::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  content: "";
}

.auth-info-side::before {
  top: -80px;
  right: 42px;
  width: 260px;
  height: 260px;
}

.auth-info-side::after {
  bottom: 58px;
  left: 42px;
  width: 180px;
  height: 180px;
}

.auth-info-content {
  position: relative;
  z-index: 1;
}

.auth-info-content h1 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 23px;
  line-height: 1.2;
  text-transform: uppercase;
}

.auth-info-content h1 span,
.auth-info-content .highlight {
  color: #fbbf24;
}

.auth-info-content p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

.auth-features {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-features div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.auth-features i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #fbbf24;
}

.auth-footer {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: #94a3b8;
  font-size: 11px;
}

.auth-result {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .22);
}

.auth-result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-decoration: none;
}

.auth-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.otp-input {
  text-align: center;
  font-size: 22px !important;
  font-weight: 800;
  letter-spacing: 6px;
}

.company-entry {
  min-height: 100vh;
  padding: 28px;
  background: var(--bg);
}

.company-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.company-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  background: radial-gradient(circle at top, var(--bg-dark-soft), var(--bg-dark));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.company-welcome {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.company-welcome img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
}

.company-header h1 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 32px;
}

.company-header p {
  max-width: 620px;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
}

.company-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.company-card h2 {
  margin-bottom: 16px;
}

.company-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.company-card-head h2 {
  margin-bottom: 0;
}

.company-search {
  position: relative;
  width: min(240px, 44%);
}

.company-search .bi {
  position: absolute;
  top: 50%;
  left: 11px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.company-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px 8px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #f8fafc;
  font-size: 13px;
}

.company-search input:focus {
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.company-empty-search {
  display: none;
  margin-top: 12px;
}

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

.company-row {
  position: relative;
}

.company-option {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 14px;
  padding-right: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
}

.company-delete {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--red-bg);
  border-radius: 8px;
  color: var(--red);
  background: #fff7f6;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.company-delete:hover {
  border-color: rgba(189, 59, 53, .35);
  background: var(--red-bg);
}

.company-option:has(input:checked) {
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.company-option strong,
.company-option small {
  display: block;
}

.company-option small,
.empty-message {
  color: var(--muted);
  font-size: 13px;
}

.empty-message {
  margin: 0;
}

@media (max-width: 1080px) {
  .app,
  .app.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .app.sidebar-collapsed .sidebar {
    padding: 22px 14px;
  }

  .app.sidebar-collapsed .sidebar-header {
    justify-content: space-between;
    padding: 0 4px 26px 8px;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, var(--sidebar-width));
    height: 100vh;
    transform: translateX(-100%);
  }

  .app.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .app.sidebar-open .mobile-overlay {
    display: block;
  }

  .app.sidebar-collapsed .brand {
    display: flex;
  }

  .app.sidebar-collapsed .side-nav a {
    gap: 10px;
    justify-content: flex-start;
    padding-right: 12px;
    padding-left: 12px;
  }

  .app.sidebar-collapsed .nav-label,
  .app.sidebar-collapsed .sidebar-footer {
    pointer-events: auto;
    opacity: 1;
    transform: none;
  }

  .app.sidebar-collapsed .nav-label {
    width: auto;
  }

  .mobile-menu-trigger {
    display: inline-grid;
  }

  .page-main,
  .intro-hero,
  main.container-fluid {
    padding-left: 72px !important;
  }

  .app-topbar,
  .app.sidebar-collapsed .app-topbar {
    left: 0;
    padding-left: 72px;
  }

  .sidebar-footer {
    position: static;
    margin-top: 18px;
  }

  .kpis,
  .panels,
  .lower {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .auth-backdrop {
    align-items: flex-start;
    padding: 16px;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-form-side,
  .auth-info-side {
    padding: 26px 20px;
  }

  .auth-info-side {
    min-height: 320px;
  }

  .company-entry {
    padding: 16px;
  }

  .company-header {
    display: grid;
    padding: 18px;
  }

  .company-welcome {
    align-items: flex-start;
  }

  .company-welcome img {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

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

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

  .company-card-head {
    display: grid;
  }

  .supplier-form-grid {
    grid-template-columns: 1fr;
  }

  .company-search {
    width: 100%;
  }

  .company-delete {
    width: 34px;
    height: 34px;
  }

  .page-main {
    padding: 74px 18px 18px;
  }

  .content {
    padding-top: 74px;
  }

  .app-topbar {
    min-height: 56px;
    padding: 8px 10px 8px 72px;
  }

  .app-topbar-title {
    display: none;
  }

  .user-name {
    max-width: 118px;
  }

  .topbar {
    display: grid;
  }

  .actions {
    justify-content: stretch;
  }

  .actions .btn-athena,
  .actions .btn-athena-outline,
  .actions .btn-soft {
    flex: 1 1 160px;
  }

  .kpis,
  .panels,
  .lower {
    grid-template-columns: 1fr;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
  }

  .event {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
