﻿/* HC Express shared ERP theme. Loaded after each screen's own styles. */
:root { --bg-top:#f4f7ff; --bg-bottom:#f4f7ff; --surface:#fff; --surface-strong:#fff; --surface-dark:#0a2036; --surface-dark-2:#123450; --border:#dfe8f6; --ink:#102b50; --ink-soft:#597398; --accent:#1672f9; --accent-strong:#095bd6; --accent-dark:#095bd6; --accent-soft:#eaf2ff; --good:#009c72; --good-soft:#e4f7ef; }
body.hc-erp-theme { background:#f4f7ff; color:#102b50; font-family:Arial,'Segoe UI',sans-serif; font-size:14px; line-height:1.45; }
body.hc-erp-theme::before,body.hc-erp-theme::after { display:none; }
body.hc-erp-theme :is(h1,h2,h3,h4,.section-title,.metric-value) { font-family:inherit; letter-spacing:normal; }
body.hc-erp-theme h1 { font-size:26px; }
body.hc-erp-theme :is(.section-card,.card,.item-card,.metric-card,.mini-stat,.editor-card,.finance-panel,.cashbox-card,.quote-card,.executive-filter-card) { background:#fff; border:1px solid #dfe8f6; border-radius:14px; box-shadow:none; }
body.hc-erp-theme :is(.hero-card,.purchases-hero,.settings-hero,.companies-hero) { background:#fff; color:#102b50; border:1px solid #dfe8f6; border-radius:14px; box-shadow:none; }
body.hc-erp-theme .hero-card :is(h1,h2,h3,p,.metric-label,.metric-value) { color:#102b50; }
body.hc-erp-theme :is(.section-subtitle,.metric-label,.item-subtitle,.muted) { color:#597398; }
body.hc-erp-theme :is(.button,button[type=submit],.scan-trigger) { background:#1672f9; color:#fff; border:1px solid #1672f9; border-radius:7px; box-shadow:none; font-family:inherit; font-weight:600; text-shadow:none; }
body.hc-erp-theme :is(.button,button[type=submit],.scan-trigger):hover { background:#095bd6; border-color:#095bd6; transform:none; }
body.hc-erp-theme :is(.button-secondary,.button-quiet,.secondary) { background:#fff; color:#235a97; border:1px solid #d7e4f8; box-shadow:none; }
body.hc-erp-theme :is(.button-secondary,.button-quiet,.secondary):hover { background:#edf4ff; color:#145ab8; border-color:#b8d2f7; }
body.hc-erp-theme :is(.button-danger,.danger) { background:#fff0f1; color:#bd2942; border-color:#f6cbd2; }
body.hc-erp-theme :is(.input,input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]),select,textarea) { background:#fff; border-color:#d7e4f8; border-radius:7px; color:#102b50; box-shadow:none; font-family:inherit; }
body.hc-erp-theme :is(input,select,textarea):focus { outline:2px solid #89b8fc; outline-offset:1px; border-color:#1672f9; }
body.hc-erp-theme :is(a,button,summary):focus-visible { outline:2px solid #59a3ff; outline-offset:3px; }
body.hc-erp-theme :is(.chip,.badge-muted) { background:#edf4ff; border-color:#dce9fc; color:#43668d; }
body.hc-erp-theme .badge-warn { background:#fff5df; color:#96620a; }
body.hc-erp-theme .alert-error { background:#fff1f3; color:#a62540; }
body.hc-erp-theme .alert-success { background:#e8f8ef; color:#087c50; }
body.hc-erp-theme :is(.pager-link.is-active,.pager-current) { background:#1672f9; color:#fff; border-color:#1672f9; }
body.hc-erp-theme table th { background:#f5f8fd; color:#4e678c; border-color:#e1eaf7; font-size:11px; }
body.hc-erp-theme table td { border-color:#e7edf7; }
body.hc-erp-theme table tbody tr:hover td { background:#f5f9ff; }
body.hc-erp-theme .topbar { background:transparent; border:0; border-bottom:1px solid #dfe8f6; border-radius:0; box-shadow:none; padding-bottom:18px; }
body.hc-erp-theme .topbar :is(h1,.brand-copy p) { color:#102b50; }
body.hc-erp-theme .topbar .logout-button { background:#fff; border:1px solid #d7e4f8; color:#43668d; }
body.hc-erp-theme .product-activity-card { border-color:#dfe8f6; }
body.hc-erp-theme .product-activity-card strong { color:#102b50; }
body.hc-erp-theme .product-activity-card:nth-child(1) { border-left:3px solid #00ac7e; }
body.hc-erp-theme .product-activity-card:nth-child(2) { border-left:3px solid #1672f9; }
body.hc-erp-theme .product-activity-card:nth-child(3) { border-left:3px solid #efb234; }
body.hc-erp-theme .product-activity-card:nth-child(4) { border-left:3px solid #9266ed; }
body.hc-erp-theme .fiscal-audit-summary-regular { background:#eaf8f3; border-color:#d1eee3; }
body.hc-erp-theme .fiscal-audit-summary-warning { background:#fff7e9; border-color:#f8e8cb; }
body.hc-erp-theme .fiscal-audit-summary-critical { background:#fff0f3; border-color:#f7d5de; }
body.hc-erp-theme .dashboard-metrics-grid .metric-card { border-color:#dfe8f6; box-shadow:none; }
body.hc-erp-theme .dashboard-metrics-grid .metric-card:first-child { background:linear-gradient(110deg,#0c2b52,#184e86); color:#fff; border-color:#174979; }
body.hc-erp-theme .dashboard-metrics-grid .metric-card:first-child :is(.metric-value,.metric-label,small) { color:#fff; }
.hc-sidebar-brand { display:flex; align-items:center; gap:9px; min-height:76px; padding:14px 8px 20px; text-decoration:none; color:#fff; flex-shrink:0; }
.hc-brand-monogram { color:#ff913b; font-weight:800; font-size:30px; letter-spacing:-3px; }
.hc-sidebar-brand strong { display:block; font-size:23px; line-height:1; color:#fff; }
.hc-sidebar-brand small { display:block; margin-top:7px; font-size:8px; letter-spacing:1px; color:#a5b7c9; }
@media(min-width:1200px) {
 body.hc-erp-theme.has-app-nav { --app-nav-rail-width:218px; --app-nav-rail-offset:0px; --app-nav-shell-padding-left:240px; }
 body.hc-erp-theme.has-app-nav .page-shell { width:100%; max-width:none; margin:0; padding:24px 24px 36px 240px; }
 body.hc-erp-theme .desktop-dock { left:0; top:0; bottom:0; width:218px; }
 body.hc-erp-theme .desktop-dock-surface { height:100dvh; max-height:100dvh; padding:12px; border:0; border-radius:0; background:linear-gradient(180deg,#091e33,#071b2e 72%,#182e3e); box-shadow:none; gap:6px; }
 body.hc-erp-theme :is(.desktop-group-toggle,.desktop-link-standalone) { min-height:48px; padding:8px; border:0; border-radius:10px; background:transparent; color:#f1f5fa; box-shadow:none; }
 body.hc-erp-theme .desktop-label { font-size:13px; font-weight:500; }
 body.hc-erp-theme .desktop-copy small { display:none; }
 body.hc-erp-theme .desktop-icon { width:32px; height:32px; flex-basis:32px; border-radius:9px; background:#ffffff0c; color:#d8e8f9; box-shadow:none; }
 body.hc-erp-theme .desktop-icon svg { width:20px; height:20px; }
 body.hc-erp-theme :is(.desktop-link.is-active,.desktop-nav-group.is-active .desktop-group-toggle) { background:#174d83; color:#fff; box-shadow:none; }
 body.hc-erp-theme :is(.desktop-link.is-active,.desktop-nav-group.is-active .desktop-group-toggle)::before { display:none; }
 body.hc-erp-theme :is(.desktop-link.is-active,.desktop-nav-group.is-active .desktop-group-toggle) .desktop-icon { background:#ffffff14; color:#fff; }
 body.hc-erp-theme :is(.desktop-group-toggle,.desktop-link-standalone):hover { background:#143a5e; }
 body.hc-erp-theme .desktop-submenu-link { color:#b7cbe0; font-size:12px; border-radius:6px; }
 body.hc-erp-theme .desktop-submenu-link.is-active { background:#173b5e; color:#fff; }
 body.hc-erp-theme .desktop-submenu-link.is-active::before { background:#4b9fff; }
 body.hc-erp-theme .desktop-submenu-icon { background:transparent; color:inherit; }
 body.hc-erp-theme .desktop-footer-actions { grid-template-columns:1fr; }
 body.hc-erp-theme .desktop-footer-link { justify-content:flex-start; min-height:40px; color:#dce8f5; background:#ffffff08; border:0; }
 body.hc-erp-theme .desktop-footer-logout { color:#ff6b7d; }
 body.hc-erp-theme .desktop-company-card { background:transparent; padding:8px 0; }
 body.hc-erp-theme .desktop-company-mark { background:#174d83; }
 body.hc-erp-theme.hc-standalone > header { margin-left:218px; padding:18px 24px; background:#fff; color:#102b50; border-bottom:1px solid #dfe8f6; }
 body.hc-erp-theme.hc-standalone > header a { color:#235a97; }
 body.hc-erp-theme.hc-standalone .page-shell { max-width:1300px; }
}
@media(max-width:1199px) {
 body.hc-erp-theme .hc-sidebar-brand { display:none; }
 body.hc-erp-theme .mobile-nav { background:#091e33 !important; background-image:none !important; border-radius:14px 14px 0 0 !important; box-shadow:0 -3px 15px #102b5014 !important; }
 body.hc-erp-theme .mobile-link.is-active { background:#174d83 !important; }
 body.hc-erp-theme .mobile-link.is-active .mobile-icon { background:#1672f9 !important; box-shadow:none !important; }
 body.hc-erp-theme .mobile-nav-sheet-panel { background:#fff; border:1px solid #dfe8f6; }
 body.hc-erp-theme .mobile-nav-sheet-link { background:#f5f8fd; color:#102b50; border-color:#dfe8f6; }
 body.hc-erp-theme .mobile-nav-sheet-link.is-active { background:#e7f0ff; border-color:#abcfff; }
 body.hc-erp-theme .mobile-nav-sheet-icon { background:#e7f0ff; color:#1672f9; }
 body.hc-erp-theme.hc-standalone > header { background:#091e33; }
}
@media(max-width:600px) {
 body.hc-erp-theme .page-shell { padding-left:12px; padding-right:12px; }
 body.hc-erp-theme :is(.input,input,select,textarea) { font-size:16px; }
 body.hc-erp-theme :is(.button,.scan-trigger) { min-height:42px; }
 body.hc-erp-theme .topbar { padding-bottom:12px; }
}
@media print {
 body.hc-erp-theme { background:#fff; }
 body.hc-erp-theme .desktop-dock,body.hc-erp-theme .mobile-nav { display:none !important; }
 body.hc-erp-theme.has-app-nav .page-shell { padding:0; margin:0; }
}
body.hc-erp-theme .button.button-secondary,body.hc-erp-theme .button.button-quiet,body.hc-erp-theme button.secondary { background:#fff; color:#235a97; border:1px solid #d7e4f8; }
body.hc-erp-theme .button.button-secondary:hover,body.hc-erp-theme .button.button-quiet:hover { background:#edf4ff; color:#145ab8; }
body.hc-erp-theme .products-page-heading > .button { width:auto; flex:0 0 auto; }
body.hc-erp-theme .desktop-footer-link.desktop-footer-logout { background:#ffffff08; color:#ff6b7d; border:0; }
body.hc-erp-theme .desktop-footer-link.desktop-footer-logout:hover { background:#542638; color:#ffb2bd; }
body.hc-erp-theme :is(button,input,select,textarea,.button,.metric-label,.metric-value,.badge,.chip,.field label,.fiscal-audit-summary-item span) { font-family:Arial,'Segoe UI',sans-serif !important; }
body.hc-erp-theme .page-shell :is(.button,.scan-trigger) { border-radius:7px !important; box-shadow:none !important; }
body.hc-erp-theme .page-shell .input { box-shadow:none !important; }
/* High-contrast sales heatmap callout. Keep the existing interactive data hooks. */
body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail {
 display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:14px;
 padding:18px;border:1px solid #287b76;border-left:4px solid #ffb347;border-radius:14px;
 background:linear-gradient(120deg,#102e3e,#115b58);color:#fff;box-shadow:0 6px 18px #10394b20;
}
body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail-icon {
 width:46px;height:46px;border-radius:12px;background:#ffb347;color:#352300;font-size:23px;box-shadow:none;
}
body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail small {
 color:#ffe0a3;font-size:11px;font-weight:700;line-height:1.5;letter-spacing:.04em;opacity:1;
}
body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail [data-heatmap-detail-title] {
 color:#fff;font-family:Arial,'Segoe UI',sans-serif;font-size:24px;font-weight:800;line-height:1.25;margin:5px 0 10px;opacity:1;
}
body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail [data-heatmap-detail-meta] {
 color:#fff;font-family:Arial,'Segoe UI',sans-serif;font-size:14px;font-weight:600;line-height:1.7;
 margin:0;padding:9px 11px;border:1px solid #ffffff35;border-radius:8px;background:#ffffff10;opacity:1;overflow-wrap:anywhere;
}
body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail::selection,
body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail ::selection { background:#ffd18a;color:#102e3e; }
@media(max-width:480px) {
 body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail {grid-template-columns:36px minmax(0,1fr);padding:14px 12px;gap:10px;}
 body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail-icon {width:36px;height:36px;font-size:20px;align-self:start;}
 body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail small {font-size:10px;}
 body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail [data-heatmap-detail-title] {font-size:22px;}
 body.hc-erp-theme.page-dashboard .dashboard-heatmap-detail [data-heatmap-detail-meta] {font-size:13px;padding:8px;}
}
body.hc-erp-theme.page-sales .sales-cost-notice { display:flex; align-items:flex-start; gap:8px; margin:12px 0; padding:12px 14px; border:1px solid #f1dfb5; border-radius:10px; background:#fff8e9; color:#795716; font-size:12px; line-height:1.6; }
body.hc-erp-theme.page-sales .sales-cost-notice > span { font-size:16px; line-height:1.2; flex-shrink:0; }
body.hc-erp-theme.page-sales .sales-cost-notice.is-complete { border-color:#cfe9dc; background:#eff9f3; color:#28704a; }
body.hc-erp-theme.page-sales-items .sales-items-list-section > .sales-cost-notice { margin:0 12px 12px; }
