/*
 * Stage82: Progressive, explicitly scoped NOVA sector UI tokens.
 * Applied only to the existing restaurant dashboard (.s65-restaurant).
 * Shared ERP core, accounting and other industry screens remain unchanged.
 * For a future sector, define its own data-nova-sector root and CSS file.
 */
.s65-restaurant{
  --s82-rest-navy:#172d42;
  --s82-rest-text:#213951;
  --s82-rest-amber:#d0a66f;
  --s82-rest-teal:#167d79;
  --s82-rest-border:#dce5eb;
  --s82-rest-bg:#f3f6f9;
  container-name:nova-sector-restaurant;
  container-type:inline-size;
  min-width:0;
}
.s65-restaurant .s65-rest-grid,
.s65-restaurant .s65-rest-kpis,
.s65-restaurant .s65-feature-grid{min-width:0}
.s65-restaurant .s65-rest-panel,
.s65-restaurant .s65-rest-features{
  min-width:0;
  border-color:var(--s82-rest-border);
  box-shadow:0 12px 32px rgb(17 41 61 / 7%);
}
.s65-restaurant .s65-rest-kpi{
  min-width:0;
  border:1px solid var(--s82-rest-border);
  border-block-start:3px solid var(--s82-rest-amber);
  box-shadow:0 7px 26px rgb(18 49 65 / 6%);
}
.s65-restaurant .s65-rest-kpi:nth-child(even){border-block-start-color:#89b7b1}
.s65-restaurant .s65-rest-kpi strong{
  font-variant-numeric:tabular-nums;
  color:var(--s82-rest-navy);
}
.s65-restaurant .s65-rest-hero{
  min-width:0;
  border:1px solid rgb(190 225 231 / 13%);
  background:radial-gradient(ellipse at 88% 18%,rgb(92 148 149 / 33%),transparent 48%),
    linear-gradient(122deg,#132b41,#29455a);
}
.s65-restaurant .s65-rest-hero h1{line-height:1.3;text-wrap:balance}
.s65-restaurant .s65-feature{min-width:0;border-color:var(--s82-rest-border)}
.s65-restaurant :is(a,button,input,select,textarea):focus-visible{
  outline:3px solid var(--s82-rest-amber);
  outline-offset:3px;
}
@scope (.s65-restaurant){
  .s65-rest-panel-head h2{color:var(--s82-rest-text);text-wrap:balance}
  .s65-order{min-width:0}
  .s65-order strong{overflow-wrap:anywhere}
  .s65-feature h3{text-wrap:balance}
}
@supports (color: color-mix(in srgb, white 70%, black)){
  .s65-restaurant .s65-feature{
    background:color-mix(in srgb,var(--s82-rest-bg) 40%,#fff);
  }
}
@container nova-sector-restaurant (max-width:930px){
  .s65-rest-grid{grid-template-columns:minmax(0,1fr)}
  .s65-rest-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .s65-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container nova-sector-restaurant (max-width:620px){
  .s65-rest-hero{grid-template-columns:minmax(0,1fr);padding:23px}
  .s65-rest-hero h1{font-size:clamp(24px,7vw,33px)}
  .s65-rest-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .s65-rest-kpi{padding:14px}
  .s65-rest-panel,.s65-rest-features{padding:16px}
  .s65-rest-order,.s65-order{grid-template-columns:minmax(0,1fr) auto}
  .s65-order span{grid-column:1/-1}
  .s65-hero-actions{flex-wrap:wrap}
  .s65-dish{display:none}
}
@container nova-sector-restaurant (max-width:380px){
  .s65-feature-grid{grid-template-columns:1fr}
  .s65-rest-kpi strong{font-size:25px}
}
@media(prefers-reduced-motion:reduce){
  .s65-restaurant *, .s65-restaurant *::before{animation:none!important;transition:none!important}
}
@media(forced-colors:active){
  .s65-restaurant :is(.s65-rest-kpi,.s65-feature){border:1px solid CanvasText}
}

/* Stage83: only the existing automotive activity page entry card. */
.nx-auto-premium{
  background:linear-gradient(110deg,#f1f7fa,#fff) !important;
  border:1px solid #cbdfe7 !important;
  border-inline-start:4px solid #c2965e !important;
  border-radius:16px;
  box-shadow:0 10px 24px rgb(14 49 68 / 6%);
}
.nx-auto-premium-inner{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:15px;
}
.nx-auto-premium-inner strong{color:#245b72;font-size:12px;letter-spacing:.65px}
.nx-auto-premium-inner p{font-size:12px;color:#637d90;line-height:1.85;max-width:690px;margin:5px 0}
.nx-auto-premium-inner .btn{background:#205c73;border-radius:10px;flex:none}
.nx-auto-premium-inner .btn:hover{background:#134a60}
@media(max-width:620px){.nx-auto-premium-inner{align-items:stretch;flex-direction:column}.nx-auto-premium-inner .btn{width:100%;text-align:center}}


/* NOVA local visual refresh 2026-11-11: ALL industry home cards, cosmetics only. */
.nova-sector-screen{
  --nova-sector-gold:#e4b977;
  --nova-sector-title:#1a2440;
  --nova-sector-soft:#f6f7fb;
  --nova-sector-shadow:0 12px 32px rgba(32,26,67,.08);
}
.nova-sector-screen .nova-sector-hero{
  min-height:232px;
  border:1px solid rgba(228,185,119,.19);
  border-radius:24px;
  padding:34px 40px;
  color:#fff;
  background:linear-gradient(116deg,#17132e 0%,#2b204a 66%,color-mix(in srgb,var(--nova-sector-accent) 64%,#2b204a) 100%);
  box-shadow:0 18px 40px rgba(29,23,61,.19);
}
.nova-sector-screen .nova-sector-hero::before{
  width:330px;height:330px;top:-165px;inset-inline-end:-98px;
  border:1px solid rgba(244,215,172,.20);
  box-shadow:0 0 0 45px rgba(255,255,255,.025),0 0 0 90px rgba(255,255,255,.017);
}
.nova-sector-screen .nova-sector-hero-text{position:relative;z-index:1;min-width:0}
.nova-sector-screen .nova-sector-hero h1{color:#fff;font-size:clamp(28px,3.1vw,43px);line-height:1.45;text-shadow:0 1px 2px rgba(0,0,0,.2)}
.nova-sector-screen .nova-sector-hero p{color:#f1ebfa;font-size:13px;line-height:1.9}
.nova-sector-screen .nova-sector-eyebrow{color:#f0ca8d;font-size:11px;letter-spacing:1.2px}
.nova-sector-screen .nova-sector-chips span{border-color:rgba(237,209,165,.27);background:rgba(255,255,255,.10);color:#fff}
.nova-sector-screen .nova-sector-glyph{
  width:114px;height:114px;flex:0 0 114px;position:relative;z-index:1;
  display:grid;place-items:center;border-radius:28px;
  background:linear-gradient(155deg,rgba(248,217,166,.16),rgba(255,255,255,.04));
  border:1px solid rgba(241,202,138,.48);
  box-shadow:0 20px 38px rgba(4,4,15,.2),inset 0 1px rgba(255,255,255,.16);
  color:#f3cf99;
}
.nova-sector-screen .nova-sector-glyph svg{width:62px;height:62px;display:block}
.nova-sector-screen .nova-sector-visual{position:relative;z-index:1;flex:0 0 300px;width:300px;height:176px;display:grid;place-items:center}
.nova-sector-screen .nova-sector-glyph{z-index:3;width:104px;height:104px;flex:0 0 104px;border-radius:29px;transform:rotate(-3deg)}
.nova-sector-screen .nova-sector-orbit{position:absolute;border:1px solid rgba(245,211,160,.28);border-radius:50%}
.nova-sector-screen .nova-sector-orbit-a{width:168px;height:168px}.nova-sector-screen .nova-sector-orbit-b{width:226px;height:118px;transform:rotate(-18deg)}
.nova-sector-screen .nova-sector-visual-card{position:absolute;z-index:2;width:96px;padding:11px;border:1px solid rgba(255,255,255,.24);border-radius:13px;background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.07));box-shadow:0 15px 30px rgba(4,4,15,.18);backdrop-filter:blur(7px)}
.nova-sector-screen .nova-sector-visual-card i{display:block;width:22px;height:22px;margin-bottom:9px;border-radius:7px;background:#f0ca8d}.nova-sector-screen .nova-sector-visual-card b,.nova-sector-screen .nova-sector-visual-card small{display:block;height:6px;border-radius:999px;background:#fff;opacity:.78}.nova-sector-screen .nova-sector-visual-card small{width:62%;height:5px;margin-top:7px;opacity:.35}
.nova-sector-screen .nova-sector-visual-card-a{top:7px;inset-inline-start:0;transform:rotate(4deg)}.nova-sector-screen .nova-sector-visual-card-b{inset-inline-end:0;bottom:4px;transform:rotate(-5deg)}
.nova-sector-screen .nova-sector-stat{
  border:1px solid #e5e6f0;border-radius:16px;
  background:linear-gradient(160deg,#fff 62%,#faf9ff);
  box-shadow:var(--nova-sector-shadow);
}
.nova-sector-screen .nova-sector-stat span{color:#4f5a71}
.nova-sector-screen .nova-sector-stat strong{color:#201a3d}
.nova-sector-screen .nova-sector-stat small{color:#64718a}
.nova-sector-screen .nova-sector-section-header h2{color:var(--nova-sector-title)}
.nova-sector-screen .nova-sector-section-header small{color:#645190}
.nova-sector-screen .nova-sector-task{
  border:1px solid #e5e7f1;border-radius:17px;
  background:linear-gradient(170deg,#fff 70%,#fafaff);
  box-shadow:var(--nova-sector-shadow);
}
.nova-sector-screen .nova-sector-task::before{background:var(--nova-sector-accent);width:4px}
.nova-sector-screen .nova-sector-task h3{color:var(--nova-sector-title)}
.nova-sector-screen .nova-sector-task p{color:#566279;font-size:12px}
.nova-sector-screen .nova-sector-task .btn{background:var(--nova-sector-accent);color:#fff}
.nova-sector-screen .nova-sector-pending{color:#49566e;background:#eef0f6}
.nova-sector-screen .nova-sector-footer{background:#f4f3fa;border:1px solid #e5e2ee}
.nova-sector-screen .nova-sector-footer b{color:#282145}
.nova-sector-screen .nova-sector-footer p{color:#526079}
.nova-sector-screen.nova-sector-construction .nova-sector-hero{
  background:linear-gradient(116deg,#191a30 0%,#2d2b45 67%,#765526 130%);
}
.nova-sector-screen.nova-sector-restaurants .nova-sector-hero{
  background:linear-gradient(116deg,#17132e 0%,#302052 70%,#634393 130%);
}
/* The sector home already owns the primary hero. Keep the operational restaurant
   dashboard below it without repeating the older promotional hero. */
.nova-sector-screen #s65-sector-dashboard .s65-rest-hero{display:none}
@media(max-width:600px){
  .nova-sector-screen .nova-sector-hero{padding:24px 20px;gap:12px;min-height:206px}
  .nova-sector-screen .nova-sector-hero h1{font-size:27px}
  .nova-sector-screen .nova-sector-visual{flex-basis:94px;width:94px;height:94px}
  .nova-sector-screen .nova-sector-glyph{width:65px;height:65px;flex-basis:65px;border-radius:18px}
  .nova-sector-screen .nova-sector-glyph svg{width:38px;height:38px}
  .nova-sector-screen .nova-sector-orbit{display:none}.nova-sector-screen .nova-sector-visual-card{display:none}
}
