/* Classic view / New view (Sean 11/15) - see assets/view_mode.js.
 * 1. the header switch (always shown)
 * 2. the New view: every rule starts with `html.skv-new` so Classic stays exactly as it is. */

/* ---------- 1. the switch ---------- */
.skv-toggle {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 2px; margin-left: 6px; background: #f8fafc;
}
.skv-toggle button {
  border: 0; background: transparent; font: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #64748b; padding: 7px 10px; border-radius: 8px; cursor: pointer; line-height: 1;
}
.skv-toggle button:hover { color: #4f46e5; }
.skv-toggle button.on { background: #4f46e5; color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .15); }

/* ---------- 2. the New view (Sean picks the screens; add rules below) ---------- */

/* Clients (Sean 11/15: "only the search for client bar. do not load clients") - on the Clients screen only the search bar;
   the list appears once a name is typed (assets/view_new.js). The page title / totals / Add Client row, the client count and
   the New 1-on-1 / New Outreach buttons are hidden here (Add Client + New 1-on-1 stay in the Actions menu). */
html.skv-new[data-skas-tab="clients"] #reportSection > div > header { display: none !important; }
/* Sean 11/30 "client management system please take off in new view on each page clean it up like the client page is":
   the same header is hidden on EVERY page in the New view; the company logo + name + Powered by SKAS show in its place (assets/co_brand_hdr.js). */
html.skv-new #reportSection > div > header { display: none !important; }
html.skv-new #tabContentClients #statUniqueClients,
html.skv-new #tabContentClients #new1on1BtnClients,
html.skv-new #tabContentClients #newOutreachBtnClients { display: none !important; }
html.skv-new #tabContentClients > div:first-child > div:not(:first-child) { display: none !important; }
html.skv-new #tabContentClients > div:first-child { padding: 20px 24px; margin-bottom: 16px; }
html.skv-new #tabContentClients #clientSearchInput { font-size: 16px; padding: 16px 20px; }
html.skv-new #tabContentClients.skv-idle > div:nth-child(2) table { display: none; }
html.skv-new #tabContentClients.skv-idle > div:nth-child(2) { border-style: dashed; box-shadow: none; }
html.skv-new #tabContentClients.skv-idle #clientsEmpty { padding: 40px 20px; }

/* To Do in the Tools menu (Sean 11/15: the status box moves to Tools in the New view) - assets/view_new.js */
html.skv-new.skv-todo-menu #actionItemsPanel { display: none !important; }
html:not(.skv-new) .skv-todo-item { display: none !important; }
.skv-todo-item { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800 !important; }
.skv-todo-count { background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 7px; line-height: 1.3; }
html.skv-new .sk-menu.skv-todo-has > button { position: relative; }
html.skv-new .sk-menu.skv-todo-has > button::after { content: ''; position: absolute; top: 4px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; }
#skvTodo { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 9999; display: flex; align-items: flex-start; justify-content: center; padding: 90px 16px; }
#skvTodo .skv-todo-box { background: #fff; border-radius: 18px; padding: 18px 20px; width: min(440px, 100%); box-shadow: 0 20px 40px rgba(15, 23, 42, .2); }
#skvTodo .skv-todo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 16px; color: #1e293b; }
#skvTodo .skv-todo-x { border: 0; background: none; font-size: 24px; line-height: 1; color: #94a3b8; cursor: pointer; }
#skvTodo .skv-todo-line { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: #fef2f2; color: #b91c1c; font: inherit; font-size: 14px; font-weight: 800; padding: 11px 14px; border-radius: 12px; margin-top: 6px; cursor: pointer; }
#skvTodo .skv-todo-line:hover { background: #fee2e2; }
#skvTodo .skv-todo-dot { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; flex: none; }
#skvTodo .skv-todo-none { color: #64748b; font-size: 14px; padding: 8px 2px; }

/* Green + Add Client beside the search bar (Sean 11/15) - assets/view_new.js; only with btn_addClient (.skv-can) */
#skvAddClient { display: none; }
html.skv-new #tabContentClients .skv-search-row { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
html.skv-new #tabContentClients .skv-search-row > label,
html.skv-new #tabContentClients .skv-search-row > #spFindBtn { grid-column: 1 / -1; }
html.skv-new #tabContentClients .skv-search-row > #spFindBtn { justify-self: start; margin: 8px 0 0 0; }
html.skv-new #tabContentClients .skv-search-row > #clientSearchInput { grid-column: 1; }
html.skv-new #skvAddClient.skv-can { display: inline-flex; grid-column: 2; grid-row: 2; align-items: center; justify-content: center; width: 54px; height: 54px;
  border: 0; border-radius: 16px; background: #16a34a; color: #fff; cursor: pointer; box-shadow: 0 4px 10px rgba(22, 163, 74, .25); transition: background .15s, transform .1s; }
html.skv-new #skvAddClient.skv-can:hover { background: #15803d; }
html.skv-new #skvAddClient.skv-can:active { transform: scale(.96); }

/* Client profile: Client Overview tab (Sean 11/15) - assets/view_new.js. The tab button exists in both views; Classic hides it. */
html:not(.skv-new) #spTab-overview { display: none !important; }
#spSection-overview > div { padding-left: 0 !important; padding-right: 0 !important; }
#spSection-overview > div + div { margin-top: 4px; }
#spSection-overview.skv-ov-empty::before { content: 'Nothing to show for this client yet.'; display: block; color: #94a3b8; font-size: 13px; font-weight: 700; padding: 8px 0; }
.skv-ov-on > button:not(#spTab-overview) { border-bottom-color: transparent !important; color: #94a3b8 !important; }
#spTab-overview.skv-on { border-bottom-color: #4f46e5 !important; color: #4f46e5 !important; }

/* Client profile: tabs + sub-tabs stay put while scrolling (Sean 11/15) - assets/view_new.js stickyMark / stickyMeasure */
html.skv-new #spCard .skv-sp-body { overflow: visible !important; }
html.skv-new #spCard .skv-sp-tabs { position: sticky; top: 0; z-index: 30; background: #fff; }
html.skv-new #spCard .skv-subrow { position: sticky; z-index: 25; background: #fff; }   /* top set per row by view_new.js */

/* Client profile: no conflicts badge in the New view; the ⚠ Conflicts tab stays (Sean 11/15) */
html.skv-new #spConflictBadge { display: none !important; }

/* #466 (Sean 11/24 clean-up meeting: "Classic view exactly as is"): the left menu sections fold / unfold in the NEW view only.
   Classic shows every section open, headings plain (a folded state saved in the New view is not used in Classic). */
html:not(.skv-new) #skSidebar .sk-group-items.closed { display: block !important; }
html:not(.skv-new) #skSidebar .sk-group-toggle { pointer-events: none; cursor: default; }
html:not(.skv-new) #skSidebar .sk-group-toggle .sk-group-caret { display: none; }
