:root{
  --brand-blue:#0f527d;
  --brand-blue-deep:#0b3e61;
  --brand-magenta:#c2126c;
  --brand-orange:#d68128;
  --brand-coral:#e94f1f;
  --brand-beige:#c4b99f;
  --brand-tint:#eaf3f8;
  --brand-soft:#f5f8fa;
  --ink:#163548;
  --muted:#607887;
  --green:#0f527d;
  --green2:#0b668f;
  --lime:#e94f1f;
  --bg:#f3f7f9;
  --line:#d8e3e9;
  --shadow:0 14px 42px rgba(15,82,125,.09);
}

body{background:linear-gradient(135deg,#f8fafb 0,#f1f6f8 55%,#fbf7f8 100%)}
a,.link{color:var(--brand-blue)}
.sidebar{background:linear-gradient(180deg,var(--brand-blue-deep),var(--brand-blue) 64%,#164b6a);border-top:4px solid var(--brand-magenta);padding-top:20px}
.sidebar:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,var(--brand-magenta),var(--brand-coral),var(--brand-orange))}
.sidebar .brand{display:block!important;width:100%;padding:2px 3px 26px!important}
.sidebar .brand .brand-logo-wrap{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:auto!important;min-height:98px;padding:14px 12px;border-radius:18px;background:#fff!important;color:inherit;font:inherit;box-shadow:0 14px 32px rgba(3,34,55,.24)}
.sidebar .brand .brand-logo{display:block;width:min(100%,190px);height:auto;max-height:76px;object-fit:contain;object-position:center}
.sidebar nav a{color:#d9e8f0}.sidebar nav a:hover{background:linear-gradient(90deg,rgba(194,18,108,.24),rgba(255,255,255,.08));color:#fff}
.topbar{border-bottom-color:#dce6eb;box-shadow:0 4px 20px rgba(15,82,125,.035)}
.eyebrow{color:var(--brand-magenta)}
.btn.primary{background:linear-gradient(135deg,var(--brand-magenta),#a70f5c);border-color:var(--brand-magenta);box-shadow:0 8px 18px rgba(194,18,108,.18)}
.btn.primary:hover{background:#a70f5c}
.stats .accent{background:linear-gradient(145deg,var(--brand-blue-deep),var(--brand-blue))}.stats .accent span,.stats .accent small{color:#d6e8f1}
.badge.approved,.badge.delivered,.badge.ready{background:#e7f4ed;color:#24633f}.badge.production,.badge.sent,.badge.design{background:var(--brand-tint);color:var(--brand-blue)}
.badge.rejected,.badge.cancelled,.badge.urgent{background:#fde9e5;color:#a83a27}.badge.pending,.badge.high{background:#fff0df;color:#91500e}
.timeline>div:before,.bars i{background:var(--brand-magenta)}
.totals strong,.quote-summary .grand-total{border-color:var(--brand-magenta)}
.add-item-button,.bcv-update-button{color:var(--brand-blue)}
.bcv-dashboard-card{border-color:#d6e3ea;background:linear-gradient(135deg,var(--brand-blue-deep) 0%,var(--brand-blue) 38%,#fff 38%,#fff 100%);box-shadow:0 18px 42px rgba(15,82,125,.12)}
.bcv-dashboard-copy .eyebrow{color:#ffb13b}.bcv-dashboard-copy p{color:#d8e9f2}.bcv-dashboard-copy small{color:#bdd5e2}
.bcv-dashboard-form input:focus{outline-color:rgba(194,18,108,.16);border-color:var(--brand-magenta)}
.dashboard-brand{display:flex;align-items:center;gap:22px}.dashboard-brand-logo{display:block;width:210px;max-width:31vw;height:auto;filter:drop-shadow(0 10px 20px rgba(15,82,125,.1))}

.login-art{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(11,62,97,.95),rgba(15,82,125,.92)),radial-gradient(circle at 14% 16%,rgba(214,129,40,.8),transparent 44%)}
.login-art:before{content:"";position:absolute;width:480px;height:480px;border-radius:50%;right:-160px;top:-180px;background:linear-gradient(145deg,var(--brand-orange),var(--brand-coral));opacity:.82}
.login-art:after{content:"";position:absolute;width:570px;height:220px;left:-170px;bottom:13%;background:var(--brand-magenta);border-radius:50%;transform:rotate(13deg);opacity:.85}
.login-art>div{position:relative;z-index:1}.login-art p{color:#d9e8f0}
.login-panel{background:linear-gradient(160deg,#fff 0,#f8fafb 100%)}
.login-card{padding:34px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 22px 60px rgba(15,82,125,.12)}
.login-card .login-logo{display:block;width:min(285px,100%);height:auto;margin:0 0 36px}

/* Shared module tokens. Brand is loaded last so every older module inherits the
   current Impre Caroni identity without changing its layout or behaviour. */
:root{
  --adm-green:var(--brand-blue-deep);--adm-green-2:var(--brand-blue);--adm-lime:var(--brand-orange);
  --adm-bg:var(--brand-soft);--adm-line:var(--line);--adm-ink:var(--ink);--adm-muted:var(--muted);
}
.orders-page,.sales-order-shell,.order-detail-shell{
  --order-navy:var(--brand-blue-deep);--order-emerald:var(--brand-blue);--order-green:var(--brand-blue);
  --order-mint:var(--brand-tint);--order-line:var(--line);--order-soft:var(--brand-soft);--order-amber:var(--brand-orange);
}
.commercial-page,.commercial-document-shell{
  --commercial-navy:var(--brand-blue-deep);--commercial-ink:var(--brand-blue-deep);
  --commercial-emerald:var(--brand-blue);--commercial-green:var(--brand-blue);
  --commercial-mint:var(--brand-tint);--commercial-line:var(--line);--commercial-soft:var(--brand-soft);
  --commercial-amber:var(--brand-orange);--commercial-blue:var(--brand-blue);
}
.work-order-page{
  --wo-ink:var(--brand-blue-deep);--wo-green:var(--brand-blue);--wo-mint:var(--brand-tint);
  --wo-line:var(--line);--wo-muted:var(--muted);--wo-soft:var(--brand-soft);
}
.workforce-shell{
  --wf-ink:var(--ink);--wf-green:var(--brand-blue-deep);--wf-green-2:var(--brand-blue);
  --wf-lime:var(--brand-orange);--wf-mint:var(--brand-tint);--wf-line:var(--line);
  --wf-muted:var(--muted);--wf-bg:var(--brand-soft);
}
.workforce-shell .wf-kicker{color:var(--brand-magenta)!important}
.workforce-shell .wf-stat.emphasis{
  border-color:var(--brand-blue)!important;
  background:linear-gradient(145deg,var(--brand-blue-deep),var(--brand-blue))!important;
  box-shadow:0 16px 34px rgba(15,82,125,.18)!important;
}
.workforce-shell .wf-stat.emphasis span{color:#d9eaf3!important}
.workforce-shell .wf-button.primary{
  border-color:var(--brand-blue)!important;
  background:linear-gradient(135deg,var(--brand-blue-deep),var(--brand-blue))!important;
  color:#fff!important;
}
.workforce-shell .wf-button.accent{
  border-color:var(--brand-magenta)!important;
  background:linear-gradient(135deg,var(--brand-magenta),#a70f5c)!important;
  color:#fff!important;
}
.workforce-shell .wf-avatar{background:var(--brand-blue-deep)!important;color:#fff!important}
.workforce-shell .wf-toolbar input:focus,.workforce-shell .wf-toolbar select:focus,
.workforce-shell .wf-form input:focus,.workforce-shell .wf-form select:focus,
.workforce-shell .wf-form textarea:focus{
  border-color:var(--brand-magenta)!important;
  box-shadow:0 0 0 3px rgba(194,18,108,.11)!important;
}
.workforce-shell .wf-area-metrics div,.workforce-shell .wf-area-pill{
  background:var(--brand-tint)!important;
}
.client-register-page,.customer-detail-page,.customer-list-page{
  --client-deep:var(--brand-blue-deep);--client-green:var(--brand-blue);
  --client-mint:var(--brand-tint);--client-lime:var(--brand-orange);
  --client-line:var(--line);--client-soft:var(--brand-soft);
}

/* High-visibility components which previously used fixed green values. */
.orders-stat-main,.commercial-stat-main,.commercial-delivery-card,
.conversion-menu-popover header,.work-order-print-date{
  background:linear-gradient(145deg,var(--brand-blue-deep),var(--brand-blue))!important;
}
.orders-stat-icon,.commercial-stat-icon,.commercial-delivery-icon,
.work-order-source-icon,.work-order-talonario-icon{
  background:var(--brand-orange)!important;color:#fff!important;
}
.orders-primary-action,.orders-filter-button,.order-avatar,.order-confirm-button,
.commercial-primary-action,.commercial-filter-button,.commercial-avatar,.commercial-form-submit,
.work-order-edit,.client-form-actions button,.client-preview-avatar,.customer-control-number{
  background:linear-gradient(135deg,var(--brand-blue-deep),var(--brand-blue))!important;color:#fff!important;
}
.orders-primary-action:hover,.commercial-primary-action:hover,.client-form-actions button:hover{background:var(--brand-blue-deep)!important}
.order-number>span,.item-index,.commercial-number>span,.commercial-item-index,
.work-order-item,.work-order-pdf span,.work-order-section-icon,.commercial-section-icon{
  background:var(--brand-tint)!important;color:var(--brand-blue)!important;
}
.orders-kicker,.commercial-kicker,.work-order-kicker,.client-register-kicker,
.customer-talonario-detail-head>div:first-child>span,.customer-talonario-history-head>div>span{
  color:var(--brand-magenta)!important;
}
.order-ves-total,.commercial-ves-total,.linked-customer,.conversation-row:hover,.conversation-row.active{
  background:var(--brand-tint)!important;color:var(--brand-blue)!important;
}

/* Commercial centre. */
.commerce-hero{background:linear-gradient(125deg,var(--brand-blue-deep),var(--brand-blue) 62%,#146b8e)!important;box-shadow:0 22px 55px rgba(15,82,125,.17)!important}
.commerce-hero:after{border-color:rgba(214,129,40,.18)!important}.commerce-hero .commerce-kicker{color:#ffd09a!important}
.commerce-button-light{color:var(--brand-blue-deep)!important}.commerce-button-lime{background:var(--brand-magenta)!important;color:#fff!important}
.commerce-module-nav a{border-color:var(--line)!important;box-shadow:0 10px 30px rgba(15,82,125,.06)!important;color:var(--ink)!important}
.commerce-module-nav span{background:var(--brand-tint)!important;color:var(--brand-blue)!important}
.commerce-module-nav,.commerce-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1500px){.commerce-module-nav,.commerce-summary{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px){.commerce-module-nav,.commerce-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.commerce-module-nav,.commerce-summary{grid-template-columns:1fr}}
.commerce-summary strong,.commerce-summary a{color:var(--brand-blue-deep)!important}.commerce-workspace{background:#eef4f7!important;border-color:var(--line)!important}

/* Administration. */
.adm-hero{background:linear-gradient(120deg,var(--brand-tint),#fff 62%,#fff2e5)!important;border-color:var(--line)!important}
.adm-subnav a:hover{background:var(--brand-tint)!important;color:var(--brand-blue)!important}
.adm-card-icon,.adm-icon,.destination-card-icon{background:var(--brand-tint)!important;color:var(--brand-blue)!important}
.destination-card{border-top-color:var(--brand-magenta)!important}.destination-tags span{background:var(--brand-tint)!important;color:var(--brand-blue)!important}

/* Unified inbox. */
.inbox-shell{border-color:var(--line)!important;box-shadow:0 12px 40px rgba(15,82,125,.07)!important}
.conversation-list,.message-panel>header,.reply-box,.contact-panel{border-color:var(--line)!important}
.channel-avatar,.contact-avatar{background:var(--brand-blue-deep)!important}.channel-avatar.whatsapp{background:#128c55!important}.channel-avatar.instagram,.channel-avatar.instagram_comment{background:var(--brand-magenta)!important}.channel-avatar.facebook,.channel-avatar.facebook_comment{background:var(--brand-blue)!important}
.conversation-meta i{background:var(--brand-orange)!important;color:#fff!important}.post-context,.message-stream{background:var(--brand-soft)!important}
.message-bubble.outbound{background:var(--brand-tint)!important}.contact-panel .btn.primary,.reply-box .btn.primary{background:var(--brand-magenta)!important;border-color:var(--brand-magenta)!important}

/* Product/variant picker and gallery. */
.product-variant-dialog>header,.variant-dialog>header{background:linear-gradient(135deg,var(--brand-blue-deep),var(--brand-blue))!important}
.variant-step.active b,.variant-progress .active b{background:var(--brand-blue)!important;color:#fff!important}
.variant-step.complete b,.variant-progress .complete b{background:var(--brand-orange)!important;color:#fff!important}
.variant-option:hover,.variant-option.selected{border-color:var(--brand-blue)!important;background:var(--brand-tint)!important}
.gallery-limit{background:var(--brand-tint)!important;color:var(--brand-blue)!important}.product-gallery-thumbs button.active{border-color:var(--brand-magenta)!important}

/* Quotes and catalogue keep their established layouts, with the official palette. */
.m2-fields,.materials-tip{border-color:var(--line)!important;background:var(--brand-tint)!important}
.m2-total,.view-product-gallery,.product-gallery-dialog header button,.product-gallery-stage button{color:var(--brand-blue-deep)!important}
.view-product-gallery,.product-gallery-stage{background:var(--brand-tint)!important}
.product-gallery-modal{background:rgba(11,62,97,.78)!important}
.catalog-new,.variant-add,.section-number,.margin-box,.kind-option.selected .kind-icon,
.structure-option.selected+.kind-icon{background:var(--brand-blue-deep)!important;color:#fff!important}
.catalog-stat-icon,.product-no-photo b,.product-kind,.product-gallery-count,.editor-back,
.kind-icon,.materials-tip span,.material-add{background:var(--brand-tint)!important;color:var(--brand-blue)!important}
.catalog-stat-icon.active{background:#e8f5ee!important;color:#24633f!important}
.catalog-stat-icon.service{background:#fce9f3!important;color:var(--brand-magenta)!important}
.catalog-stat-icon.stock{background:#fff0df!important;color:#91500e!important}
.product-card:hover,.kind-option.selected,.structure-option.selected{border-color:var(--brand-blue)!important}
.kind-option.selected,.structure-option.selected{background:var(--brand-tint)!important;box-shadow:inset 0 0 0 1px var(--brand-blue)!important}
.switch input:checked+span{background:var(--brand-magenta)!important}
.catalog-new{box-shadow:0 12px 28px rgba(15,82,125,.16)!important}

@media(max-width:950px){.bcv-dashboard-card{background:linear-gradient(180deg,var(--brand-blue-deep) 0,var(--brand-blue) 205px,#fff 205px)}}
@media(max-width:760px){.dashboard-brand-logo{width:180px;max-width:70vw}.dashboard-brand{align-items:flex-start;flex-direction:column}.login-card{padding:25px}}
