:root {
  --ink: #0c1622;
  --muted: #53616d;
  --paper: #f8fbfd;
  --card: #fff;
  --accent: #11bbcd;
  --accent-deep: #0a9cab;
  --line: #e6ecf0;
  --danger: #b42318;
}
body { background: var(--paper); }
.sidebar { background: var(--tenant-secondary, #0c1622); color: #fff; border-right: 3px solid var(--accent); padding: 24px 16px; }
.brand { display: block; padding: 4px 8px 30px; line-height: 1.1; }
.brand img { display: block; width: 100%; max-height: 145px; object-fit: contain; object-position: left center; }
.platform-wordmark { display: block; color: var(--accent); font-size: 25px !important; font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.sidebar nav a { color: #e4edf1; border-left: 3px solid transparent; border-radius: 8px; padding: 11px 12px; }
.sidebar nav a:hover, .sidebar nav a:focus-visible { background: #ffffff1c; color: #fff; border-left-color: var(--accent); }
.link-button { color: #d9e4e9; }
.link-button:hover { color: #fff; }
.content { background: var(--paper); }
.eyebrow { color: var(--accent-deep); }
.primary { background: var(--accent); color: #0c1622; border-color: transparent; }
.primary:hover { background: var(--accent); filter: brightness(.94); }
.secondary, button { border-color: var(--line); }
.panel, .metrics article, .report-cards article { border-color: var(--line); box-shadow: 0 10px 24px #0c16220d; border-radius: 16px; }
.panel-title a, a { color: var(--accent-deep); }
th { background: #f3f8fa; color: #53616d; }
.process, .totals .strong { color: var(--accent-deep); }
input:focus, select:focus, textarea:focus { outline-color: #11bbcd44; border-color: var(--accent); }
.status, .process-list .done { background: #e7f8fa; color: #087483; border-color: #b8e9ee; }
.tabs a.active, .tabs a:hover { background: #e7f8fa; color: #087483; }
.report-cards .balance-card { background: #edfafd !important; border-color: #b8e9ee !important; }
.auth-page { background: radial-gradient(circle at 12% 16%, #11bbcd1c, transparent 32%), radial-gradient(circle at 91% 86%, #0c16221a, transparent 34%), #f8fbfd; padding: 32px; }
.login-shell { width: min(980px, 100%); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px #0c16221c; }
.login-intro { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 58px); background: linear-gradient(150deg, #fff 38%, #eafafd 100%); }
.login-intro::after { content: ""; position: absolute; width: 320px; height: 320px; right: -140px; bottom: -180px; border: 1px solid #11bbcd44; border-radius: 50%; box-shadow: 0 0 0 45px #11bbcd0d, 0 0 0 90px #11bbcd0a; pointer-events: none; }
.datanova-logo { display: block; width: 205px; max-width: 70%; height: auto; margin: 0 0 56px; }
.login-product-label { display: block; color: #087483; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.platform-mark { color: #0c1622; font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.055em; line-height: 1.1; margin: 12px 0 28px; }
.platform-mark span { color: #0a9cab; }
.login-intro h1 { max-width: 480px; margin: 0 0 14px; font-size: clamp(27px, 3vw, 38px); line-height: 1.14; letter-spacing: -.035em; }
.login-intro p { max-width: 420px; color: #53616d; font-size: 16px; line-height: 1.6; }
.login-intro-accent { display: flex; gap: 7px; margin-top: 34px; }
.login-intro-accent span { width: 34px; height: 5px; border-radius: 10px; background: #11bbcd; }
.login-intro-accent span:nth-child(2) { width: 15px; background: #0c1622; }
.login-intro-accent span:nth-child(3) { width: 7px; background: #a3dfe6; }
.login-card { width: auto; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: clamp(30px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.login-card .eyebrow { margin-bottom: 10px; color: #0a9cab; }
.login-card h2 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.035em; }
.login-card p { color: var(--muted); margin-top: 0; }
.login-card .form-stack { margin-top: 24px; }
.login-card .primary { width: 100%; padding: 12px 16px; }
.whatsapp-button { background: #25d366; color: #072e17 !important; border-radius: 8px; padding: 10px 15px; text-decoration: none; font-weight: 800; }
.receipt-share { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.receipt-share > div { flex: 1; }
.receipt-share img { width: 150px; height: 150px; }
.small-button { padding: 5px 8px; }
.admin-layout { align-items: start; }
@media (max-width: 950px) {
  .brand { padding: 2px 0 22px; }
  .brand img { width: 47px; height: 45px; object-fit: contain; }
  .platform-wordmark { font-size: 10px !important; writing-mode: vertical-rl; }
  .sidebar { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 720px) {
  .login-shell { max-width: 480px; grid-template-columns: 1fr; }
  .login-intro { padding: 30px 30px 25px; }
  .datanova-logo { width: 155px; margin-bottom: 28px; }
  .platform-mark { margin-bottom: 10px; }
  .login-intro h1 { font-size: 23px; }
  .login-intro p, .login-intro-accent { display: none; }
  .login-card { border-left: 0; border-top: 1px solid var(--line); padding: 30px; }
}
@media (max-width: 650px) {
  .auth-page { padding: 16px; }
  .receipt-share { display: grid; }
  .receipt-share img { margin: auto; }
}
