/*
 * YOUR LOGO NAME — 2026 COMPLETE VISUAL REDESIGN
 * Presentation-only layer, loaded last on every public and portal HTML page.
 * Original DOM IDs, endpoints, form names, event handlers, and business logic remain untouched.
 * Palette intentionally replaces the former blue/cyan/violet product themes.
 */
:root {
  color-scheme:light;
  --bg:#f8f0e4;--bg2:#f5e6d5;--panel:#fffaf1;--line:#dbc7b7;
  --text:#392526;--muted:#826c63;--blue:#bc4e33;--blue2:#e2a149;--white:#fffaf1;
  --max:1260px;--radius:14px;--shadow:0 22px 55px rgba(72,34,44,.09);
  --erp-bg:#f8f0e4;--erp-panel:#fffaf1;--erp-ink:#392526;--erp-muted:#826c63;
  --erp-line:#dbc7b7;--erp-accent:#bc4e33;--erp-accent-2:#78344b;
  --erp-success:#657245;--erp-warn:#a2632e;--erp-danger:#9c3c44;
  --erp-sidebar:#4b2538;--erp-sidebar-2:#663249;--erp-shadow:0 18px 48px rgba(72,34,44,.09);
  --neo-bg:#f8f0e4;--neo-bg-2:#f5e6d5;--neo-surface:#fffaf1;--neo-surface-2:#fff7eb;
  --neo-surface-3:#f4e3d0;--neo-line:#dbc7b7;--neo-line-strong:#bda18f;
  --neo-text:#392526;--neo-muted:#826c63;--neo-accent:#bc4e33;
  --neo-accent-2:#a66a35;--neo-accent-3:#78344b;--neo-danger:#9c3c44;
  --neo-warning:#af7928;--neo-success:#657245;--neo-shadow:0 22px 55px rgba(72,34,44,.09);
  --ea-bg:#f8f0e4;--ea-bg2:#f5e6d5;--ea-panel:#fffaf1;--ea-line:#dbc7b7;
  --ea-text:#392526;--ea-muted:#826c63;--ea-accent:#bc4e33;
  --ea-accent2:#e2a149;--ea-blue:#78344b;
  --brand-ink:#392526;--brand-plum:#57283f;--brand-plum2:#71364a;
  --brand-rust:#bc4e33;--brand-copper:#e2a149;--brand-cream:#fffaf1;
  --brand-page:#f8f0e4;--brand-soft:#f2e0cf;--brand-border:#dbc7b7;
  --brand-muted:#826c63;--brand-shadow:0 22px 55px rgba(72,34,44,.09)
}
html,body{background-color:var(--brand-page)!important}
html{scroll-behavior:smooth}
body,body.automation-hub-theme,body.erp-admin-theme{
  background:radial-gradient(950px 440px at 98% 0,rgba(226,161,73,.12),transparent 74%),
             radial-gradient(740px 500px at 4% 15%,rgba(188,78,51,.06),transparent 77%),
             repeating-linear-gradient(0deg,transparent 0 51px,rgba(112,67,56,.018) 52px),
             var(--brand-page)!important;
  color:var(--brand-ink)!important;
  font-family:"Trebuchet MS","Segoe UI",ui-sans-serif,system-ui,sans-serif!important;
  line-height:1.62
}
body::before,body.automation-hub-theme::before{background:none!important;opacity:0!important}
body::after,body.automation-hub-theme::after{background:none!important;opacity:0!important}
::selection{background:#e8ba8c;color:#432635}
.container{width:min(calc(100% - 46px),var(--max))}
h1,h2,h3,.hero h1,.page-hero h1,.section-head h2,.erp-content h1,
.setup-shell h1,.setup-shell h2,.erp-admin-theme h1{
  color:var(--brand-ink)!important;letter-spacing:-.036em;
}
h1,h2,.hero h1,.page-hero h1,.section-head h2,.setup-side h1{
  font-family:Georgia,"Iowan Old Style",Cambria,"Times New Roman",serif!important;
  font-weight:700!important;
}
h1{line-height:1.09!important}
h2{line-height:1.15!important}
p,li,.lead,.muted,.small,.meta-label,.card p,.section-head p,.hero p{
  color:inherit;
}
.muted,.small.muted,.card p,.lead,.meta-label,.eyebrow~p{color:var(--brand-muted)!important}
strong,b,label{color:inherit}
.eyebrow,.kicker,.overline,.admin-toolbar-label span,.meta-label{
  color:var(--brand-rust)!important;letter-spacing:.15em!important;font-weight:850!important;
  text-transform:uppercase
}
a:not(.btn):hover{color:var(--brand-rust)}
:focus-visible{outline:3px solid var(--brand-copper)!important;outline-offset:3px!important}

/* Important content never depends on animation scripts to become visible. */
.reveal,.reveal.in,.reveal.visible,.reveal.show{opacity:1!important;transform:none!important}

/* Clean editorial navigation: entirely different from previous glassy dark menus. */
header:not(.setup-head),.admin-global-header,body.erp-admin-theme header,
body.automation-hub-theme header{
  background:rgba(255,250,241,.97)!important;
  border-bottom:2px solid var(--brand-border)!important;
  box-shadow:0 7px 34px rgba(79,40,42,.045)!important;
  backdrop-filter:blur(16px)
}
.nav,.automation-hub-theme .nav{background:transparent!important;border:0!important;
  box-shadow:none!important;border-radius:0!important;margin-top:0!important;
  min-height:80px;height:auto;padding:14px 0!important;gap:14px}
.brand,.erp-brand{gap:10px}
.brand-name,body.erp-admin-theme header .brand-name{
  color:var(--brand-plum)!important;font-family:Georgia,serif!important;
  font-weight:800!important;letter-spacing:-.028em!important;
}
.brand img,.automation-hub-theme .brand img{
  flex:0 0 170px!important;min-width:170px!important;
  width:184px!important;max-width:184px!important;max-height:54px!important;
  object-fit:contain!important;filter:none!important;box-shadow:none!important;
}
.links,.admin-global-nav{gap:4px!important}
.links a,.automation-hub-theme .links a,body.erp-admin-theme header .links a,
.admin-global-nav .admin-nav-trigger,.admin-global-nav .admin-nav-link{
  color:var(--brand-ink)!important;border-radius:7px!important;
  background:transparent!important;box-shadow:none!important;
  border:1px solid transparent!important;
  font-weight:700!important;font-size:13px!important
}
.links a:hover,.links a.active,.automation-hub-theme .links a:hover,.automation-hub-theme .links a.active,
.admin-global-nav .admin-nav-trigger:hover,.admin-global-nav .admin-nav-link:hover,
.admin-global-nav .admin-nav-trigger.active,.admin-global-nav .admin-nav-link.active,
.admin-global-nav .admin-nav-menu[open]>.admin-nav-trigger{
  background:#f2e0cf!important;color:var(--brand-plum)!important;
  border-color:#d8bba6!important;box-shadow:none!important
}
.admin-global-nav .admin-nav-dropdown{
  background:#fffaf1!important;border:1px solid var(--brand-border)!important;
  box-shadow:var(--brand-shadow)!important;border-radius:10px!important
}
.admin-global-nav .admin-nav-dropdown a,.admin-global-nav .admin-nav-dropdown-link{
  color:var(--brand-ink)!important;background:transparent!important
}
.admin-global-nav .admin-nav-dropdown a:hover{background:#f2e0cf!important;color:var(--brand-plum)!important}
.auth-nav .auth-link,body.erp-admin-theme header .auth-nav .auth-link{color:var(--brand-plum)!important;font-weight:750}
.menu,.menu-toggle,.mobile-menu-toggle{color:var(--brand-plum)!important}

/* Ensure all Hub headers are contained on large and mid-sized displays. */
header .container.nav,body.automation-hub-theme .nav.container{
  width:min(calc(100% - 46px),var(--max))!important;
  max-width:var(--max)!important;margin-inline:auto!important
}
.tech-node b,.tech-node small,.tech-node i{color:var(--brand-ink)!important}
.tech-node small{color:var(--brand-rust)!important}

/* Buttons and forms — squared, tactile, strongly branded. */
.btn,.button,button,.erp-btn,.erp-action,.setup-shell button{
  border-radius:8px!important;transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
.btn,.button{border-color:var(--brand-border)!important;font-weight:750}
.btn.primary,.btn-primary,.primary-btn,button.primary,.btn.action,.button-primary,
.erp-btn.primary,.erp-btn-primary,.erp-action.primary,.setup-shell .btn.primary{
  color:#fff5e7!important;
  background:var(--brand-rust)!important;
  background-image:none!important;
  border:1px solid #a83d2f!important;
  box-shadow:4px 4px 0 rgba(87,40,63,.18)!important;
}
.btn.primary:hover,.btn-primary:hover,.primary-btn:hover,button.primary:hover,
.erp-btn.primary:hover,.erp-btn-primary:hover{
  background:var(--brand-plum)!important;border-color:var(--brand-plum)!important;
  transform:translateY(-2px)!important;box-shadow:5px 6px 0 rgba(188,78,51,.15)!important
}
.btn.ghost,.btn.secondary,.btn-outline,.button-secondary,.erp-btn.secondary,
button:not(.primary):not(.danger):not(.btn-primary):not(.btn) {
  background:#fff7eb!important;color:var(--brand-plum)!important;
  border:1px solid #d7bfae!important;box-shadow:none!important
}
.btn.ghost:hover,.btn.secondary:hover,.btn-outline:hover{background:#f2e0cf!important;color:var(--brand-rust)!important}
.btn.danger,.danger-btn{background:#8d3f4b!important;color:#fffaf1!important}
input,select,textarea,.form-control,.form-input,[contenteditable="true"]{
  border-radius:8px!important;background:#fffdf6!important;color:var(--brand-ink)!important;
  border:1px solid #d2b9a8!important;box-shadow:none!important;
  accent-color:var(--brand-rust)
}
input:focus,select:focus,textarea:focus,.form-control:focus{
  border-color:var(--brand-rust)!important;outline:2px solid rgba(188,78,51,.15)!important
}
input::placeholder,textarea::placeholder{color:#9f8276!important;opacity:1}
label,.form-group label,.field label{color:var(--brand-plum)!important;font-weight:750}
option{background:#fffaf1!important;color:var(--brand-ink)!important}
hr{border-color:var(--brand-border)!important}

/* Public marketing pages and portal layouts. */
.hero,.page-hero,.automation-hub-theme .page-hero{
  position:relative;background:transparent!important;border-color:var(--brand-border)!important
}
.hero{padding-top:72px!important;padding-bottom:75px!important}
.hero h1,.page-hero h1{font-size:clamp(38px,5.1vw,76px)!important}
.hero h1 span,.page-hero h1 span,.section-head em,.hero em,
.erp-admin-theme .page-hero h1 span{
  color:var(--brand-rust)!important;background:none!important;
  -webkit-text-fill-color:currentColor!important;text-shadow:none!important
}
.hero-card,.system-visual,.illustration,.visual-panel{
  border-radius:18px!important;border-color:#d2b59c!important;
  box-shadow:8px 10px 0 rgba(87,40,63,.1)!important
}
.system-visual{
  background:radial-gradient(circle at 45% 36%,#ffe6bc 0%,#f2d5bb 48%,#e9c4a6 100%)!important
}
.system-visual .grid-lines{opacity:.15!important;filter:sepia(1) saturate(.8)!important}
.system-visual .core-node{background:#fff7e6!important;border-color:#c77d57!important}
.tech-node,.status-chip{background:#fff9ef!important;border-color:#d3b6a2!important;color:var(--brand-ink)!important;box-shadow:3px 5px 0 rgba(87,40,63,.1)!important}
.section{padding-top:60px;padding-bottom:60px}
.section-head{margin-bottom:32px}
.card,.stat,.feature-card,.form-card,.request-card,.proposal-card,.panel,.info-card,
.step,.pricing-card,.metric-card,.summary-card,.result-card,.dashboard-card,
.widget-card,.quick-action,.project-card,.hub-card,.hub-stat,.hub-panel,
.job-card,.automation-card,.project-summary,.feature-tile,.glass-card,
.auth-card,.profile-card,.security-card,.settings-card,.status-card,
.table-wrap,.admin-toolbar,.dashboard-empty,.callout{
  background:var(--brand-cream)!important;
  background-image:none!important;
  color:var(--brand-ink)!important;
  border:1px solid var(--brand-border)!important;
  border-radius:13px!important;
  box-shadow:0 6px 0 rgba(87,40,63,.045)!important;
  backdrop-filter:none!important
}
.card:hover,.feature-card:hover,.request-card:hover,.project-card:hover,.quick-action:hover{
  border-color:#c79a7d!important;box-shadow:5px 7px 0 rgba(188,78,51,.10)!important
}
.card .icon,.feature-card .icon,.stat .icon,.step .icon{color:var(--brand-rust)!important;background:#f3dfc9!important;
  border:1px solid #e2b58e!important;border-radius:9px!important}
.card h3,.request-card h2,.hub-card h2,.panel h2,.metric strong,.stat strong,
.feature-card h3,.job-card h3{color:var(--brand-plum)!important}
.status,.notice,.alert,.info-banner,.alert-box,.status-pill,.badge,.tag,
.chip,.pill{border-radius:6px!important;box-shadow:none!important}
.status-pill,.tag,.chip,.pill,.badge{background:#f4e2cf!important;color:#783e39!important;border:1px solid #d8b69c!important}
.status.error,.notice.error,.alert.error,.danger-note{background:#fae5db!important;color:#943f42!important;border-color:#cc9990!important}
.status.success,.notice.success,.alert.success{background:#eceddc!important;color:#58663e!important;border-color:#b6c099!important}
.table-wrap{overflow-x:auto}
table{border-collapse:separate;border-spacing:0}
th,thead td{background:#f0dfca!important;color:var(--brand-plum)!important;border-color:#dfc7b5!important;
  text-transform:uppercase;letter-spacing:.055em;font-weight:850!important}
td{background:transparent!important;color:var(--brand-ink)!important;border-color:#ead5c4!important}
tr:hover td{background:#faf0e2!important}
footer,footer:not(.setup-footer){background:#4b2538!important;color:#f8e9d8!important;border-color:#744652!important}
footer p,footer a,footer small{color:#f0ddc9!important}
footer a:hover{color:#efbc78!important}

/* Automation Hub: warm industrial operations, not the original neon UI. */
body.automation-hub-theme .page-hero::after{
  color:rgba(87,40,63,.07)!important;letter-spacing:.04em!important;
  font-family:Georgia,serif!important;font-size:clamp(35px,6vw,110px)!important
}
.automation-hub-theme .eyebrow{color:var(--brand-rust)!important}
.automation-hub-theme .hub-card,.automation-hub-theme .hub-step,
.automation-hub-theme .hub-feature,.automation-hub-theme .hub-panel,
.automation-hub-theme .hub-stat,.automation-hub-theme .hub-kpi,
.automation-hub-theme .hub-workspace,.automation-hub-theme .hub-form,
.automation-hub-theme .request-card,.automation-hub-theme .form-card,
.automation-hub-theme .card,.automation-hub-theme .stat,
.automation-hub-theme .workflow-step,.automation-hub-theme .automation-feature{
  background:#fffaf1!important;background-image:none!important;
  border:1px solid var(--brand-border)!important;
  color:var(--brand-ink)!important;border-radius:12px!important;
  box-shadow:5px 7px 0 rgba(87,40,63,.065)!important
}
.automation-hub-theme .hub-card p,.automation-hub-theme .hub-step p,
.automation-hub-theme .hub-feature p{color:var(--brand-muted)!important}
.automation-hub-theme .hub-card h3,.automation-hub-theme .hub-feature h3,
.automation-hub-theme .hub-step h3{color:var(--brand-plum)!important}
.automation-hub-theme .hub-icon,.automation-hub-theme .hub-card-icon,
.automation-hub-theme .hub-step-number{background:#f2d8bf!important;color:var(--brand-rust)!important;border-radius:8px!important}
.automation-hub-theme .hub-orbit,.automation-hub-theme .hub-glow{filter:sepia(1) hue-rotate(-25deg) saturate(.7)!important}
.automation-hub-theme .status-chip{background:#fff7eb!important;color:var(--brand-plum)!important}
.automation-hub-theme .hub-card-header,.automation-hub-theme .hub-card-meta{border-color:var(--brand-border)!important}

/* ERP client: cohesive editorial dashboard with plum sidebar. */
.erp-app,.erp-main,.erp-content,.erp-workspace,.erp-main-panel{
  background:transparent!important;color:var(--brand-ink)!important
}
.erp-sidebar{
  background:#4b2538!important;background-image:none!important;
  color:#f8ead8!important;border-color:#784657!important;
  box-shadow:10px 0 28px rgba(72,34,44,.12)!important
}
.erp-sidebar .erp-brand img{background:#fff6e8!important;padding:3px!important;
  border-radius:8px!important;box-shadow:none!important}
.erp-sidebar .erp-brand strong,.erp-sidebar .erp-company-switch button,
.erp-sidebar .erp-brand span{color:#fff1dc!important}
.erp-sidebar .erp-nav a,.erp-sidebar .erp-sidebar-bottom a,
.erp-sidebar .erp-sidebar-bottom button{color:#ecd5c7!important;
  background:transparent!important;border:1px solid transparent!important;
  border-radius:6px!important}
.erp-sidebar .erp-nav a:hover,.erp-sidebar .erp-sidebar-bottom a:hover{
  background:#6e3c50!important;color:#fff3e5!important
}
.erp-sidebar .erp-nav a.active{
  background:#f0d8bd!important;color:#4b2538!important;
  border-color:#f3dfca!important;box-shadow:inset 4px 0 0 #bc4e33!important
}
.erp-sidebar .erp-nav a.active span,.erp-sidebar .erp-nav a.active::before{color:#9b3f33!important;background:#bc4e33!important}
.erp-sidebar .erp-company-switch{background:#663649!important;border-color:#825468!important}
.erp-sidebar .erp-company-switch .label{color:#e9bba4!important}
.erp-topbar,.erp-header,.erp-toolbar{background:#fff8ed!important;
  border-color:var(--brand-border)!important;color:var(--brand-plum)!important;box-shadow:none!important}
.erp-content .hero h1,.erp-content h1{color:var(--brand-plum)!important}
.erp-content .panel,.erp-content .metric,.erp-content .widget,
.erp-content .card,.erp-content .erp-card,.erp-content .metric-card,
.erp-content .table-panel,.erp-content .form-card,.erp-content .chart-card,
.erp-content .dashboard-widget,.erp-content .notice,
.erp-content .erp-widget-card,.erp-content .erp-dashboard-panel,
.erp-app .panel,.erp-app .metric{
  background:#fffaf1!important;background-image:none!important;
  color:var(--brand-ink)!important;border-color:var(--brand-border)!important;
  border-radius:12px!important;box-shadow:0 6px 0 rgba(87,40,63,.05)!important
}
.erp-content .metric strong,.erp-content .metric-value,
.erp-content .panel-title,.erp-content .widget-title{color:var(--brand-plum)!important}
.erp-content table th,.erp-content .data-table th{background:#f2e1cc!important;color:#67364a!important}
.erp-content table td,.erp-content .data-table td{color:#392526!important}
.erp-app .top-avatar,.erp-app .kpi-icon,.erp-app .metric-icon{
  background:#f2d7b7!important;color:#9d462f!important
}
.erp-app .notice,.erp-app .empty-state{color:var(--brand-ink)!important}

/* ERP admin and integration controls — same brand system, fresh visual language. */
.erp-admin-theme .page-hero h1,.erp-admin-theme .page-hero h2{color:var(--brand-plum)!important}
.erp-admin-theme .page-hero .lead{color:var(--brand-muted)!important}
.erp-admin-theme .erp-admin-panel,.erp-admin-theme .erp-admin-section,
.erp-admin-theme .ei-panel,.erp-admin-theme .ei-card,
.erp-admin-theme .erp-admin-card,.erp-admin-theme .erp-config-card,
.erp-admin-theme .erp-admin-stat,.erp-admin-theme .erp-admin-tile,
.erp-admin-theme .erp-admin-form,.erp-admin-theme .card,
.erp-admin-theme .form-card,.erp-admin-theme .admin-toolbar{
  background:#fffaf1!important;background-image:none!important;
  border:1px solid var(--brand-border)!important;
  box-shadow:0 6px 0 rgba(87,40,63,.055)!important;
  border-radius:12px!important;color:var(--brand-ink)!important
}
.erp-admin-theme .erp-admin-panel h2,.erp-admin-theme .erp-admin-section h3,
.erp-admin-theme .ei-panel h2,.erp-admin-theme .ei-card h3{color:var(--brand-plum)!important}
.erp-admin-theme .ea-tab,.erp-admin-theme .ei-tab,.erp-admin-theme [role="tab"]{
  border-radius:6px!important;color:var(--brand-plum)!important
}
.erp-admin-theme .ea-tab.active,.erp-admin-theme .ei-tab.active,
.erp-admin-theme [role="tab"][aria-selected="true"]{background:#f0d8bd!important;color:#763b39!important}

/* ERP wizard and services landing pages. */
body:has(.setup-shell){background:var(--brand-page)!important}
.setup-top,.setup-side,.setup-main,.setup-content,.setup-head,.setup-footer{
  border-color:var(--brand-border)!important
}
.setup-side{background:#542a3e!important;background-image:none!important;color:#ffeedb!important}
.setup-side h1,.setup-side h2,.setup-side p{color:#ffeedb!important}
.setup-side .eyebrow{color:#ebba78!important}
.setup-main,.setup-content,.setup-head,.setup-footer{background:#fffaf1!important;color:var(--brand-ink)!important}
.setup-content .option,.setup-content .choice,.setup-content .option-card,
.setup-shell .setup-card,.setup-shell .choice-card{
  background:#fff5e8!important;color:var(--brand-ink)!important;
  border:1px solid var(--brand-border)!important;border-radius:9px!important
}
.setup-content .selected,.setup-content .option.active,.setup-shell .choice-card.active{
  background:#f1d6bc!important;border-color:var(--brand-rust)!important
}
.erp-service-hero,.erp-services-hero{background:#f3e0cb!important;color:var(--brand-ink)!important}

/* Loader retains exactly the same visibility and completion behavior. */
#sawaqed-page-loader,.sawaqed-page-loader{
  background:#f8f0e4!important;color:var(--brand-plum)!important
}
.sawaqed-page-loader-inner{background:transparent!important;color:var(--brand-plum)!important}
.sawaqed-page-loader-inner img{max-width:min(230px,75vw)!important;object-fit:contain!important;filter:none!important}
.sawaqed-page-loader-spinner{border-color:#e3c9b0!important;border-top-color:#bc4e33!important}

/* Keep navigation, forms and dashboard actions comfortable on narrow screens. */
@media (max-width:980px){
  .nav,.automation-hub-theme .nav{min-height:68px!important;padding:9px 0!important}
  .brand img{width:142px!important;max-width:142px!important;min-width:142px!important;flex-basis:142px!important}
  .container,header .container.nav,body.automation-hub-theme .nav.container{width:min(calc(100% - 28px),var(--max))!important}
  .hero{padding-top:46px!important;padding-bottom:48px!important}
  .erp-content{padding:18px!important}
  .admin-global-nav .admin-nav-dropdown{max-width:min(90vw,320px)}
}
@media (max-width:600px){
  .hero h1,.page-hero h1{font-size:clamp(34px,9vw,52px)!important}
  .container,header .container.nav,body.automation-hub-theme .nav.container{width:calc(100% - 24px)!important}
  .btn,.button{min-height:42px}
  .card,.form-card,.request-card,.panel,.hub-panel{border-radius:10px!important}
  .erp-content{padding:14px!important}
  .admin-global-nav .admin-nav-dropdown{max-height:70vh;overflow-y:auto}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}
}
