* {
  box-sizing: border-box;
}

:root {
  --tensor-banner-from: #0369a1;
  --tensor-banner-to: #0ea5e9;
  --tensor-banner-shadow: rgba(3, 105, 161, 0.26);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #1e293b;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(520px, 100%);
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

button {
  background: #1d4ed8;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

button:hover {
  background: #1e40af;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button:disabled:hover {
  background: #1d4ed8;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.header {
  align-items: flex-start;
  background: linear-gradient(135deg, var(--tensor-banner-from), var(--tensor-banner-to));
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 28px var(--tensor-banner-shadow);
  color: #ffffff;
  margin-bottom: 16px;
  padding: 22px 26px;
}

.header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.subtitle {
  margin: 0;
  color: #64748b;
}

.shell > .header .subtitle {
  color: rgba(255, 255, 255, 0.92);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.main-nav a {
  text-decoration: none;
  color: #334155;
  background: #ffffff;
  border: 1px solid #dbe4f1;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.main-nav a.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

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

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.kpi-label {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.kpi-value {
  display: block;
  font-size: 30px;
  margin: 4px 0;
}

.kpi-note {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

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

th,
td {
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 8px;
  font-size: 14px;
}

th {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

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

.footer {
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
}

.shell > .header.app-header--with-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.shell > .header.app-header--with-shortcuts .app-header-brand {
  flex: 1;
  min-width: 0;
}

.shell > .header.app-header--with-shortcuts .crm-header-shortcuts {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.shell > .header.app-header--with-shortcuts .crm-prefs-shortcut,
.shell > .header.app-header--with-shortcuts .tensor-banner-logout,
.shell > .header.app-header--with-shortcuts a.tensor-erp-launcher {
  order: 1;
}

.shell > .header.app-header--with-shortcuts .crm-prefs-shortcut {
  align-items: center;
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease;
  width: 2.35rem;
}

.shell > .header.app-header--with-shortcuts .crm-prefs-shortcut:hover {
  background: rgba(15, 23, 42, 0.38);
  color: #fff;
}

.shell > .header.app-header--with-shortcuts .crm-prefs-shortcut:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.shell > .header.app-header--with-shortcuts .tensor-banner-session {
  color: rgba(255, 255, 255, 0.92);
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
  max-width: none;
  order: 2;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell > .header.app-header--with-shortcuts .tensor-banner-logout {
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
}

.shell > .header.app-header--with-shortcuts .tensor-banner-logout:hover {
  background: rgba(15, 23, 42, 0.38);
  color: #fff;
}

.shell > .header.app-header--with-shortcuts a.tensor-erp-launcher {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.shell > .header.app-header--with-shortcuts a.tensor-erp-launcher:hover {
  background: rgba(255, 255, 255, 0.28);
}
