/* CFIT backend: the one look (steps 1-2, Oct 2026).
   Navy and white / light neutrals are the main colours; ONE gold (#F2BE50) is only an accent: the main button in an
   area, the current place in the menu, and small highlights. This file sets colours, the font and the four button
   styles on the button names the pages already use. It never changes sizes, spacing, wording or layout.
   Loaded by cfit-menu.js, which adds the "cfit-look" class to <html>; without that class nothing here applies. */

html.cfit-look{
  --cfit-navy:#0F1133; --cfit-white:#FFFFFF; --cfit-page:#F5F6FA; --cfit-line:#E1E4EE; --cfit-ink:#14162E; --cfit-muted:#5B6478;
  --cfit-gold:#F2BE50; --cfit-done:#1E6B3A; --cfit-done-bg:#E3F4E9; --cfit-problem:#A12A2A; --cfit-problem-bg:#FBE3E3;
  /* the pages' own colour names, pointed at the one navy and the one gold */
  --navy:#0F1133; --navy2:#0F1133; --gold:#F2BE50; --gold2:#F2BE50; --gold-d:#F2BE50;
}

/* one font everywhere */
html.cfit-look body,
html.cfit-look button,html.cfit-look input,html.cfit-look select,html.cfit-look textarea{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
}

/* 1 Main: gold, navy label (one per area; step 3 decides which buttons keep it) */
html.cfit-look :is(button,a,label,input[type=submit]):is(.gold,.primary,.ok):not(.cmd-btn){
  background:var(--cfit-gold)!important; background-image:none!important; color:var(--cfit-navy)!important;
  border:1px solid var(--cfit-gold)!important; box-shadow:none!important; text-shadow:none!important;
}
html.cfit-look :is(button,a,label,input[type=submit]):is(.gold,.primary,.ok):not(.cmd-btn):hover:not(:disabled){filter:brightness(.96)}
/* the dashboard's gold-outline buttons (cmd-btn) keep their own style until step 3 decides them */

/* 2 Secondary: white, navy label, thin line */
html.cfit-look :is(button,a):is(.soft,.softbtn,.ghost,.secondary,.skip,.tinybtn:not(.gold),.cmd-btn:not(.gold),.rf-btn,.vw-play,.staff-btn){
  background:var(--cfit-white)!important; background-image:none!important; color:var(--cfit-navy)!important;
  border:1px solid var(--cfit-line)!important; box-shadow:none!important; text-shadow:none!important;
}
html.cfit-look :is(button,a):is(.soft,.softbtn,.ghost,.secondary,.skip,.tinybtn:not(.gold),.cmd-btn:not(.gold),.rf-btn,.vw-play,.staff-btn):hover:not(:disabled){
  background:var(--cfit-page)!important; border-color:#C9CDDB!important;
}

/* 4 Careful: red outline (archive, reject; nothing in the backend deletes) */
html.cfit-look :is(button,a):is(.danger,.reject){
  background:var(--cfit-white)!important; background-image:none!important; color:var(--cfit-problem)!important;
  border:1px solid #E7B7B7!important; box-shadow:none!important;
}

/* disabled buttons look disabled */
html.cfit-look button:disabled{opacity:.5!important; cursor:not-allowed!important; filter:none!important}

/* keyboard focus: a small gold ring (a small highlight) */
html.cfit-look :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--cfit-gold)!important; outline-offset:2px!important}

/* step 2: "waiting" labels are light grey (set in each page) with a small gold dot */
html.cfit-look :is(.badge.pending,.badge.draft,.vw-cls.waiting,.vw-rv-tag.wait)::before{
  content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--cfit-gold); margin-right:6px; vertical-align:1px;
}

/* step 3: gold is a small accent only. No solid gold (or navy) buttons: nearly every button is white with a navy label and a
   thin grey line. Tabs and the menu keep their own "you are here" fill. */
html.cfit-look :is(button,a,label,input[type=submit]):is(.gold,.primary,.ok,.business-jump):not(#cfit-menu *),
html.cfit-look body :is(button,a).cmd-btn.gold{
  background:#FFFFFF!important; background-image:none!important; color:#0F1133!important;
  border:1px solid #E1E4EE!important; box-shadow:none!important;
}
/* solid navy buttons become white too (Business "Show queue" and draft buttons, the dashboard's sign-in buttons) */
html.cfit-look body :is(.cfit-queue-toggle,.cfit-draft-btn,#staffLoginButton,#staffForgotSendButton,#staffResetSavePassword):not(#cfit-menu *){
  background:#FFFFFF!important; background-image:none!important; color:#0F1133!important; border:1px solid #E1E4EE!important; box-shadow:none!important;
}
html.cfit-look .department-nav .approval-dept-btn:hover{background:#F5F6FA!important; color:#0F1133!important}
/* the smaller pages' plain buttons (gold or mint today); Scout's two navy buttons too. Tabs keep their own style. */
html.cfit-look:not(:has(.cfit-unified-main)):not(:has(.app>.sidebar)) button:not([class]):not(#cfit-menu *):not([data-cfm-out]):not([data-cfm-more]),
html.cfit-look:has(#signinCard) main button:not([class]){
  background:#FFFFFF!important; color:#0F1133!important; border:1px solid #E1E4EE!important; box-shadow:none!important;
}
/* the single key action of a page: white, navy label, thin grey line, plus a small gold swoosh hugging the top-left corner:
   thickest at the corner, tapering to nothing along the top edge (to the right) and down the left edge */
html.cfit-look body :is(#vwUpOpen,#addLeadToggle,#approve,#scoutChooseBtn,#createExercise,#create,#stage,#analyze,#render):not(#cfit-menu *){
  background:#FFFFFF!important; color:#0F1133!important; border:1px solid #E1E4EE!important; box-shadow:none!important;
  position:relative!important; overflow:hidden!important;
}
/* the corner: follows the button's own rounding */
html.cfit-look body :is(#vwUpOpen,#addLeadToggle,#approve,#scoutChooseBtn,#createExercise,#create,#stage,#analyze,#render):not(#cfit-menu *)::before{
  content:""; position:absolute; inset:0; box-sizing:border-box; border-radius:inherit; pointer-events:none; border:0 solid #F2BE50; border-top-width:4px; border-left-width:4px;
  -webkit-mask:linear-gradient(#000 0 0) 0 0/22px 22px no-repeat; mask:linear-gradient(#000 0 0) 0 0/22px 22px no-repeat;
}
/* the two tapering tails: along the top and down the left edge */
html.cfit-look body :is(#vwUpOpen,#addLeadToggle,#approve,#scoutChooseBtn,#createExercise,#create,#stage,#analyze,#render):not(#cfit-menu *)::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 4' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100C62 0 26 1 0 4Z' fill='%23F2BE50'/%3E%3C/svg%3E") 22px 0/min(calc(58% - 22px),100px) 4px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0V100C0 62 1 26 4 0Z' fill='%23F2BE50'/%3E%3C/svg%3E") 0 22px/4px calc(100% - 22px) no-repeat;
}
/* the round INT button: white with a navy star and the same gold swoosh, curved around its top-left (no moving gold) */
html.cfit-look #cfitIntLauncher{background:#FFFFFF!important; border:1px solid #E1E4EE!important; box-shadow:0 8px 20px rgba(15,17,51,0.16)!important}
html.cfit-look #cfitIntLauncher::before{
  inset:0; box-sizing:border-box; background:none; animation:none; border-radius:50%;
  border:0 solid #F2BE50; border-top-width:3px; border-left-width:3px;
}
