/* TenPlus CRM, luxury palette: midnight emerald and champagne gold. Loaded after theme-v2.css, only while <html> has the class "ui2".
   It only changes colours and the heading font. Remove its <link> from index.html to go back to the plain new look. */
html.ui2 {
  --v2-bg: #f4eee2;
  --v2-surface: #fffcf6;
  --v2-ink: #1d1810;
  --v2-muted: #766a53;
  --v2-line: #eadfc8;
  --v2-line-strong: #dccfae;
  --v2-accent: #0e7c62;
  --v2-accent-dark: #0a5f4b;
  --v2-accent-soft: #e2f0e9;
  --lux-gold: #b8892b;
  --lux-gold-2: #d4af61;
  --lux-gold-soft: #f6ecd2;
  --lux-gold-ink: #2a1f06;
  --lux-serif: "Playfair Display", "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --v2-shadow: 0 1px 2px rgba(86, 62, 8, 0.06), 0 14px 30px -16px rgba(86, 62, 8, 0.26);
  --v2-shadow-lg: 0 22px 54px -18px rgba(40, 28, 4, 0.38);
  --panel: #fffcf6;
  --soft: #f8f2e4;
  --field-bg: #fffdf9;
  --chat-wallpaper: #efe6d2;
  --status-row-active: #fffcf6;
  --status-row-expiring: #fffcf6;
  --status-row-expired: #fffcf6;
  --status-row-hardware: #fffcf6;
}

/* ---- canvas: warm ivory with a soft gold glow (one static paint, nothing fixed) ---- */
html.ui2 body,
html.ui2 .workspace,
html.ui2 .app-shell {
  background:
    radial-gradient(1100px 560px at 100% -8%, rgba(212, 175, 97, 0.2), transparent 62%),
    radial-gradient(900px 520px at 0% 108%, rgba(14, 124, 98, 0.07), transparent 60%),
    linear-gradient(180deg, #f7f1e4 0%, #f1e8d6 100%);
  background-attachment: scroll;
}

/* ---- menu ---- */
html.ui2 .sidebar { background: linear-gradient(180deg, #06130f 0%, #0a2a22 52%, #07170f 100%); border-right: 1px solid rgba(212, 175, 97, 0.32); }
/* TP mark brings its own emerald tile and gold ring: no frame around it */
html.ui2 .side-top .brand-logo,
html.ui2 .login-copy .brand-logo { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; object-fit: contain; }
html.ui2 .side-title strong { color: #f3dca3; font-family: var(--lux-serif); font-size: 16px; letter-spacing: 0.01em; }
html.ui2 .side-title span { color: rgba(243, 220, 163, 0.62); }
html.ui2 .nav-button.active { background: linear-gradient(90deg, rgba(212, 175, 97, 0.3), rgba(212, 175, 97, 0.06)); box-shadow: inset 3px 0 0 var(--lux-gold-2); color: #fff; }
html.ui2 .nav-button.active .icon { color: #ecd08a; }
html.ui2 .crm-order-link { background: linear-gradient(135deg, #e8cb83, #b8892b); color: var(--lux-gold-ink); font-weight: 700; }
html.ui2 .crm-order-link:hover { background: linear-gradient(135deg, #f0d690, #c4962f); }
html.ui2 .side-footer { border-top-color: rgba(212, 175, 97, 0.24); }

/* ---- page title ---- */
html.ui2 .topbar h1 { font-family: var(--lux-serif); font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
html.ui2 .topbar h1::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 9px; border-radius: 3px; background: linear-gradient(90deg, var(--lux-gold-2), var(--lux-gold)); }

/* ---- cards ---- */
html.ui2 .metric-card { border-color: var(--v2-line); background: var(--v2-surface); box-shadow: var(--v2-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
html.ui2 .metric-card::before { background: var(--lux-gold-2); }
html.ui2 .metric-card strong { font-family: var(--lux-serif); font-size: 32px; letter-spacing: -0.01em; }
html.ui2 .metric-card.revenue-card { border-color: #e6d29c; background: linear-gradient(160deg, #fffcf6, #f6ecd2); }
html.ui2 .metric-card .metric-corner { color: #9a6f1c; }
html.ui2 .metric-button:hover { border-color: #e1cc94; }
html.ui2 .panel { border-color: var(--v2-line); background: var(--v2-surface); }
html.ui2 .panel-header { border-bottom-color: var(--v2-line); background: linear-gradient(180deg, #fffdf8, #fbf4e4); }
html.ui2 .panel-header h2 { font-family: var(--lux-serif); font-size: 18px; }
html.ui2 .mini-item { border-color: var(--v2-line); background: #fffdf8; }
html.ui2 .mini-item:hover { border-color: #e2cd91; box-shadow: 0 4px 14px -6px rgba(184, 137, 43, 0.4); }
html.ui2 .empty-state { border-color: var(--v2-line-strong); background: #fbf6ea; }

/* ---- tables ---- */
html.ui2 .table-wrap { border-color: var(--v2-line); background: #fffdf8; }
html.ui2 th { border-bottom-color: var(--v2-line); background: #f6efdc; color: #7a6a3f; }
html.ui2 td { border-bottom-color: #f0e7d2; }
html.ui2 tbody tr { background: #fffdf8; }
html.ui2 tbody tr:hover { background: #fbf4e2; }
html.ui2 .customer-id { background: var(--lux-gold-soft); color: #8a6516; }

/* ---- buttons ---- */
html.ui2 .btn-secondary { border-color: var(--v2-line-strong); background: #fffdf8; color: var(--v2-ink); box-shadow: 0 1px 1px rgba(86, 62, 8, 0.05); }
html.ui2 .btn-secondary:hover { border-color: #cdbb8c; background: #faf3e2; }
html.ui2 .btn-primary { border-color: #a8802a; background: linear-gradient(180deg, #e6c87f, #c19a3e); color: var(--lux-gold-ink); box-shadow: 0 1px 2px rgba(120, 86, 10, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
html.ui2 .btn-primary:hover { background: linear-gradient(180deg, #efd48e, #cba046); }

/* ---- forms ---- */
html.ui2 .search-input,
html.ui2 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html.ui2 select,
html.ui2 textarea { border-color: var(--v2-line-strong); background-color: #fffdf9; }
html.ui2 .search-input:focus,
html.ui2 input:focus,
html.ui2 select:focus,
html.ui2 textarea:focus { border-color: var(--lux-gold); box-shadow: 0 0 0 3px rgba(184, 137, 43, 0.22); }

/* ---- pop-ups, scrollbars ---- */
html.ui2 .modal-backdrop { background: rgba(16, 11, 2, 0.55); }
html.ui2 .modal { border: 1px solid var(--v2-line); background: var(--v2-surface); }
html.ui2 ::-webkit-scrollbar-thumb { background: #d9cba8; }
html.ui2 ::-webkit-scrollbar-thumb:hover { background: #c4b283; }

/* ---- sign-in page ---- */
html.ui2 .login-layout {
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(212, 175, 97, 0.24), transparent 62%),
    radial-gradient(760px 520px at 0% 100%, rgba(16, 185, 129, 0.15), transparent 60%),
    linear-gradient(160deg, #050f0c 0%, #0a2620 58%, #07140f 100%);
}
html.ui2 .login-copy h1 { font-family: var(--lux-serif); }
html.ui2 .login-order-tab { border-color: rgba(212, 175, 97, 0.5); color: #f3dca3; }
html.ui2 .login-card { border-top: 3px solid var(--lux-gold-2); background: var(--v2-surface); }
html.ui2 .login-card h2 { font-family: var(--lux-serif); }
