/* Hirentra preview theme v2 – 29 Oct 2026.
   Visual-only adjustments. No changes to billing, auth, data or refresh logic.
   Replace the earlier flat light-contrast preview stylesheet with this file. */

/* 1. Dashboard: maintain brand accents instead of uniform grey/white cards. */
html[data-theme="light"] #managerDashboard .hdbA-top-grid .hdbA-headline-card {
  color: #14233b !important;
  border-width: 1px 1px 1px 4px !important;
  box-shadow: 0 5px 18px rgba(15,23,42,.045) !important;
}
html[data-theme="light"] #managerDashboard .hdbA-top-grid .hdbA-headline-card > :is(span,small) {
  color: #475569 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html[data-theme="light"] #managerDashboard .hdbA-top-grid .hdbA-headline-card > strong {
  color: #10233c !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html[data-theme="light"] #managerDashboard .hdbA-top-grid .hdbA-headline-card:nth-child(1) {
  background: linear-gradient(125deg,#fff4d5 0%,#fffdf7 66%,#ffffff 100%) !important;
  border-color: #edc65a !important;
  border-left-color: #e9a900 !important;
}
html[data-theme="light"] #managerDashboard .hdbA-top-grid .hdbA-headline-card:nth-child(2) {
  background: linear-gradient(125deg,#e7f4ff 0%,#f8fcff 70%,#ffffff 100%) !important;
  border-color: #b9daf5 !important;
  border-left-color: #0f8ac8 !important;
}
html[data-theme="light"] #managerDashboard .hdbA-top-grid .hdbA-headline-card:nth-child(3) {
  background: linear-gradient(125deg,#eafaf2 0%,#f8fefa 70%,#ffffff 100%) !important;
  border-color: #b6e6cf !important;
  border-left-color: #169b66 !important;
}
html[data-theme="light"] #managerDashboard .hdbA-top-grid .hdbA-headline-card.schedule {
  background: linear-gradient(125deg,#fff0eb 0%,#fffaf7 70%,#ffffff 100%) !important;
  border-color: #f2c6b6 !important;
  border-left-color: #dc633e !important;
}
html[data-theme="light"] #managerDashboard .hdbA-top-grid .hdbA-headline-card.schedule > strong {
  color: #963b23 !important;
}

/* 2. Dark theme: coloured edge and low-key glow, without flattening the cards. */
html[data-theme="dark"] #managerDashboard .hdbA-top-grid .hdbA-headline-card {
  border-left-width: 4px !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.12) !important;
}
html[data-theme="dark"] #managerDashboard .hdbA-top-grid .hdbA-headline-card:nth-child(1) {
  border-left-color: #facc15 !important;
  background: linear-gradient(115deg,rgba(250,204,21,.12),rgba(15,23,42,.18) 75%) !important;
}
html[data-theme="dark"] #managerDashboard .hdbA-top-grid .hdbA-headline-card:nth-child(2) {
  border-left-color: #38bdf8 !important;
  background: linear-gradient(115deg,rgba(56,189,248,.1),rgba(15,23,42,.18) 75%) !important;
}
html[data-theme="dark"] #managerDashboard .hdbA-top-grid .hdbA-headline-card:nth-child(3) {
  border-left-color: #34d399 !important;
  background: linear-gradient(115deg,rgba(52,211,153,.1),rgba(15,23,42,.18) 75%) !important;
}
html[data-theme="dark"] #managerDashboard .hdbA-top-grid .hdbA-headline-card.schedule {
  border-left-color: #fb7185 !important;
  background: linear-gradient(115deg,rgba(251,113,133,.13),rgba(15,23,42,.18) 75%) !important;
}
html[data-theme="dark"] #managerDashboard .hdbA-top-grid .hdbA-headline-card > strong {
  color: #f8fafc !important;
  text-shadow: none !important;
}
html[data-theme="dark"] #managerDashboard .hdbA-top-grid .hdbA-headline-card > :is(span,small) {
  color: #b6c5da !important;
  opacity: 1 !important;
}

/* 3. Invoice linked-PO panel. Correct light contrast; retain dark visual style. */
html[data-theme="light"] .hirentra25ca-proc-panel {
  color: #14233b !important;
  background: #fff9e9 !important;
  border-color: #e7d39c !important;
}
html[data-theme="light"] .hirentra25ca-proc-panel :is(h3,p,span,small,strong,label) {
  color: #14233b !important;
  opacity: 1 !important;
}
html[data-theme="light"] .hirentra25ca-proc-panel .hirentra25ca-mode {
  background: #f6e6bb !important;
  color: #744d00 !important;
}
html[data-theme="light"] .hirentra25ca-proc-panel button[data-convert-proc] {
  background: #f5e5ba !important;
  color: #58410a !important;
  border: 1px solid #dfc681 !important;
}
html[data-theme="light"] .hirentra25ca-proc-panel button[data-convert-proc]:not(:disabled) {
  background: #facc15 !important;
  color: #111827 !important;
}
html[data-theme="light"] .hirentra25ca-proc-panel button[data-convert-proc]:disabled {
  opacity: .7 !important;
  cursor: not-allowed !important;
}
html[data-theme="dark"] .hirentra25ca-proc-panel {
  background: #101d32 !important;
  color: #e2e8f0 !important;
  border-color: #43536c !important;
}
html[data-theme="dark"] .hirentra25ca-proc-panel :is(h3,p,span,small,strong,label) {
  color: #e2e8f0 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .hirentra25ca-proc-panel .hirentra25ca-mode {
  background: #24364b !important;
  color: #e2e8f0 !important;
}

/* 4. Footer: historical feature modules can still update the hidden legacy span. */
#pageFooter [data-hirentra-version][hidden] { display: none !important; }
#pageFooter #hirentraCurrentClientLabel { color: inherit; opacity: .85; }
