/* ==========================================================================
   Fiori Horizon theme layer
   Loaded last; restyles the Wojo components in the look of SAP S/4HANA
   (Morning Horizon / Evening Horizon). Selectors are prefixed with
   [data-theme] so they win over the legacy dark-theme rules in style.css.
   ========================================================================== */
@font-face {
  font-family: '72';
  src: url('../fonts/72-Light-full.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '72';
  src: url('../fonts/72-Regular-full.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '72';
  src: url('../fonts/72-Semibold-full.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '72';
  src: url('../fonts/72-Bold-full.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* == Tokens: Morning Horizon == */
:root,
[data-theme="light"] {
  --f-brand: #0070f2;
  --f-brand-hover: #0064d9;
  --f-brand-active: #0057bd;
  --f-link: #0064d9;
  --f-bg: #f5f6f7;
  --f-shell: #ffffff;
  --f-surface: #ffffff;
  --f-surface-alt: #f5f6f7;
  --f-text: #1d2d3e;
  --f-text-secondary: #556b82;
  --f-text-muted: #6a6d70;
  --f-border: #e5e5e5;
  --f-border-strong: #a8b2bd;
  --f-field-bg: #ffffff;
  --f-field-border: #556b81;
  --f-field-hover-bg: #f5f6f7;
  --f-field-placeholder: #556b82;
  --f-hover: #eaecee;
  --f-active: #dee2e5;
  --f-selected: #ebf8ff;
  --f-selected-border: #0064d9;
  --f-focus: #0032a5;
  --f-btn-bg: #ffffff;
  --f-btn-border: #bcc3ca;
  --f-btn-text: #0064d9;
  --f-positive: #256f3a;
  --f-positive-bg: #f5fae5;
  --f-positive-border: #30914c;
  --f-negative: #aa0808;
  --f-negative-bg: #ffeaf4;
  --f-negative-border: #e90b0b;
  --f-critical: #b44f00;
  --f-critical-bg: #fff8d6;
  --f-critical-border: #dd6100;
  --f-info: #0064d9;
  --f-info-bg: #e1f4ff;
  --f-info-border: #0070f2;
  --f-neutral: #556b82;
  --f-neutral-bg: #eff1f2;
  --f-shadow-0: 0 0 0.125rem 0 rgba(34, 53, 72, 0.15), 0 0.125rem 0.25rem 0 rgba(34, 53, 72, 0.15);
  --f-shadow-1: 0 0 0.125rem 0 rgba(34, 53, 72, 0.15), 0 0.5rem 1rem 0 rgba(34, 53, 72, 0.15);
  --f-shadow-2: 0 0 0.125rem 0 rgba(34, 53, 72, 0.15), 0 1rem 2rem 0 rgba(34, 53, 72, 0.15);
  --f-radius-s: 4px;
  --f-radius-m: 8px;
  --f-radius-l: 12px;
  --f-shell-h: 52px;
  --f-nav-w: 248px;
  --f-nav-w-collapsed: 56px;

  /* legacy Wojo tokens mapped onto Horizon */
  --gutter: 16px;
  --gutter-compensation: -16px;
  --body-color: var(--f-text);
  --body-bg-color: var(--f-bg);
  --primary-color: var(--f-brand);
  --primary-color-hover: var(--f-brand-hover);
  --primary-color-inverted: var(--f-selected);
  --primary-color-shadow: rgba(0, 112, 242, 0.12);
  --secondary-color: #7858ff;
  --secondary-color-hover: #6a46ff;
  --secondary-color-inverted: #f1ecff;
  --positive-color: #30914c;
  --positive-color-hover: #256f3a;
  --positive-color-inverted: var(--f-positive-bg);
  --negative-color: #d20a0a;
  --negative-color-hover: #aa0808;
  --negative-color-inverted: var(--f-negative-bg);
  --alert-color: #e76500;
  --alert-color-hover: #b44f00;
  --alert-color-inverted: var(--f-critical-bg);
  --info-color: var(--f-brand);
  --info-color-hover: var(--f-brand-hover);
  --info-color-inverted: var(--f-info-bg);
  --dark-color: var(--f-text);
  --dark-color-hover: #0b1a2a;
  --dark-color-inverted: var(--f-neutral-bg);
  --light-color: #f5f6f7;
  --shadow-color: rgba(34, 53, 72, 0.12);
  --grey-color: var(--f-text-secondary);
  --grey-color-100: var(--f-surface-alt);
  --grey-color-300: var(--f-border);
  --grey-color-500: #a8b2bd;
  --grey-color-700: var(--f-text-secondary);
  --font-family-sans-serif: "72", "72full", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* == Tokens: Evening Horizon == */
[data-theme="dark"] {
  --f-brand: #0070f2;
  --f-brand-hover: #0064d9;
  --f-brand-active: #0057bd;
  --f-link: #4db1ff;
  --f-bg: #12171c;
  --f-shell: #1d232a;
  --f-surface: #1d232a;
  --f-surface-alt: #242c33;
  --f-text: #f5f6f7;
  --f-text-secondary: #a9b4be;
  --f-text-muted: #8396a8;
  --f-border: #354250;
  --f-border-strong: #5b738b;
  --f-field-bg: #242c33;
  --f-field-border: #8396a8;
  --f-field-hover-bg: #2b343d;
  --f-field-placeholder: #a9b4be;
  --f-hover: #2b343d;
  --f-active: #354250;
  --f-selected: #1c3d5b;
  --f-selected-border: #4db1ff;
  --f-focus: #4db1ff;
  --f-btn-bg: #1d232a;
  --f-btn-border: #5b738b;
  --f-btn-text: #4db1ff;
  --f-positive: #6ccd8b;
  --f-positive-bg: #0f2e18;
  --f-positive-border: #30914c;
  --f-negative: #ff8888;
  --f-negative-bg: #3b0a0a;
  --f-negative-border: #ff5050;
  --f-critical: #ffb87c;
  --f-critical-bg: #3a2408;
  --f-critical-border: #ff8b2c;
  --f-info: #4db1ff;
  --f-info-bg: #0b2b4a;
  --f-info-border: #4db1ff;
  --f-neutral: #a9b4be;
  --f-neutral-bg: #2b343d;
  --f-shadow-0: 0 0 0.125rem 0 rgba(0, 0, 0, 0.6), 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.45);
  --f-shadow-1: 0 0 0.125rem 0 rgba(0, 0, 0, 0.6), 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.5);
  --f-shadow-2: 0 0 0.125rem 0 rgba(0, 0, 0, 0.6), 0 1rem 2rem 0 rgba(0, 0, 0, 0.55);

  --body-color: var(--f-text);
  --body-bg-color: var(--f-bg);
  --primary-color: var(--f-link);
  --primary-color-hover: #7dc7ff;
  --primary-color-inverted: var(--f-selected);
  --dark-color: var(--f-text);
  --dark-color-inverted: var(--f-neutral-bg);
  --light-color: #f5f6f7;
  --shadow-color: rgba(0, 0, 0, 0.35);
  --light-color-shadow: rgba(255, 255, 255, 0.08);
  --grey-color: var(--f-text-secondary);
  --grey-color-100: var(--f-surface-alt);
  --grey-color-300: var(--f-border);
  --grey-color-700: var(--f-text-secondary);
}

/* == Base typography == */
html,
body {
  font-size: 14px;
}
body,
[data-theme] {
  font-family: "72", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--f-text);
  background-color: var(--f-bg);
  line-height: 1.43;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background-color: var(--f-brand);
  color: #fff;
}
[data-theme] h1,
[data-theme] h2,
[data-theme] h3,
[data-theme] h4,
[data-theme] h5,
[data-theme] h6 {
  font-family: inherit;
  color: var(--f-text);
  font-weight: 700;
  letter-spacing: 0;
}
[data-theme] h1 { font-size: 1.75rem; line-height: 2.25rem; }
[data-theme] h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
[data-theme] h3 { font-size: 1.375rem; line-height: 1.75rem; }
[data-theme] h4 { font-size: 1.143rem; line-height: 1.5rem; }
[data-theme] h5 { font-size: 1rem; line-height: 1.375rem; }
[data-theme] h6 { font-size: 0.929rem; line-height: 1.25rem; }
[data-theme] a,
[data-theme] a:hover,
[data-theme] a:focus {
  transition: color .1s ease, background-color .1s ease;
}
[data-theme] a { color: var(--f-link); }
[data-theme] a:hover,
[data-theme] a:focus { color: var(--f-link); text-decoration: underline; }
[data-theme] a.grey,
[data-theme] a.dark { color: var(--f-text); }
[data-theme] a.grey:hover,
[data-theme] a.dark:hover { color: var(--f-link); }
[data-theme] a.wojo.button:hover,
[data-theme] a.item:hover,
[data-theme] .f-shell a:hover,
[data-theme] .f-nav a:hover,
[data-theme] .f-tile:hover { text-decoration: none; }
[data-theme] :focus-visible {
  outline: 2px solid var(--f-focus);
  outline-offset: 1px;
}
[data-theme] .wojo.grey.text,
[data-theme] .wojo.dimmed.text { color: var(--f-text-secondary); }
[data-theme] .wojo.primary.text { color: var(--f-link); }
[data-theme] .wojo.positive.text { color: var(--f-positive); }
[data-theme] .wojo.negative.text { color: var(--f-negative); }
[data-theme] .wojo.alert.text { color: var(--f-critical); }

/* ==========================================================================
   Shell bar
   ========================================================================== */
.f-shell {
  position: fixed;
  z-index: 600;
  top: 0;
  left: 0;
  right: 0;
  height: var(--f-shell-h);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px 0 8px;
  background: var(--f-shell);
  box-shadow: var(--f-shadow-0);
}
.f-shell .f-shell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--f-radius-m);
  background: transparent;
  color: var(--f-text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
}
.f-shell .f-shell-btn:hover {
  background: var(--f-hover);
  color: var(--f-text);
}
.f-shell .f-shell-btn .status {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--f-shell);
}
.f-shell .f-shell-btn .status.negative { background: var(--negative-color); }
.f-shell .f-shell-btn .status.positive { display: none; }
.f-shell .f-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--f-radius-m);
  color: var(--f-text);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.f-shell .f-brand:hover { background: var(--f-hover); color: var(--f-text); }
.f-shell .f-brand img { height: 26px; width: auto; display: block; }
.f-shell .f-brand .f-brand-sep {
  width: 1px;
  height: 20px;
  background: var(--f-border-strong);
  opacity: .6;
}
.f-shell .f-brand .f-brand-title { font-weight: 700; }
.f-shell .f-brand .f-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0070f2 0%, #1b90ff 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.f-shell .f-spacer { flex: 1 1 auto; }
.f-shell .f-shell-tag {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--f-info-bg);
  color: var(--f-info);
  font-size: .786rem;
  font-weight: 700;
  white-space: nowrap;
}
.f-shell .f-search {
  flex: 0 1 420px;
  display: flex;
  align-items: center;
  height: 36px;
  margin: 0 8px;
  padding: 0 4px 0 12px;
  border-radius: 18px;
  background: var(--f-surface-alt);
  border: 1px solid transparent;
  color: var(--f-text-secondary);
  transition: border-color .1s ease, background-color .1s ease;
}
.f-shell .f-search:focus-within {
  border-color: var(--f-field-border);
  background: var(--f-field-bg);
}
.f-shell .f-search { position: relative; }
[data-theme] .f-shell .f-search .f-search-results {
  top: 42px;
  left: 0;
  right: 0;
  min-width: 0;
  max-height: 60vh;
  overflow-y: auto;
}
[data-theme] .f-shell .f-search .f-search-results:not(.active) { top: -5000px; }
.f-shell .f-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--f-text);
  font: inherit;
  padding: 0 8px;
}
.f-shell .f-search input::placeholder { color: var(--f-field-placeholder); }
.f-shell .f-search kbd {
  font-family: inherit;
  font-size: .75rem;
  color: var(--f-text-secondary);
  border: 1px solid var(--f-border-strong);
  border-radius: 4px;
  padding: 0 5px;
  margin-right: 6px;
  line-height: 18px;
}
.f-shell .f-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  border-radius: 50%;
  background: #7858ff;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--f-shell), 0 0 0 3px var(--f-border);
}
.f-shell .f-avatar img { width: 100%; height: 100%; object-fit: cover; }
.f-shell .f-avatar:hover { box-shadow: 0 0 0 2px var(--f-shell), 0 0 0 3px var(--f-brand); }

/* user / settings popovers inside the shell */
[data-theme] .f-shell .wojo.dropdown { min-width: 240px; }
.f-usercard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--f-border);
}
.f-usercard .f-avatar { margin: 0; box-shadow: none; cursor: default; width: 40px; height: 40px; font-size: .95rem; }
.f-usercard .f-usercard-name { font-weight: 700; color: var(--f-text); }
.f-usercard .f-usercard-mail { font-size: .857rem; color: var(--f-text-secondary); }

/* ==========================================================================
   Side navigation
   ========================================================================== */
.f-nav {
  position: fixed;
  z-index: 550;
  top: var(--f-shell-h);
  bottom: 0;
  left: 0;
  width: var(--f-nav-w);
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--f-shell);
  border-right: 1px solid var(--f-border);
  overflow-x: hidden;
  overflow-y: auto;
  transition: width .18s ease, transform .18s ease;
}
.f-nav .f-nav-group { display: flex; flex-direction: column; gap: 2px; }
.f-nav .f-nav-group + .f-nav-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--f-border);
}
.f-nav .f-nav-fixed { margin-top: auto; }
.f-nav .f-nav-label {
  padding: 8px 12px 4px;
  font-size: .786rem;
  font-weight: 700;
  color: var(--f-text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.f-nav a.f-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--f-radius-m);
  color: var(--f-text);
  font-size: 1rem;
  white-space: nowrap;
  position: relative;
}
.f-nav a.f-nav-item i.icon {
  flex: 0 0 20px;
  font-size: 1.15rem;
  color: var(--f-text-secondary);
}
.f-nav a.f-nav-item:hover { background: var(--f-hover); color: var(--f-text); }
.f-nav a.f-nav-item.active {
  background: var(--f-selected);
  color: var(--f-link);
  font-weight: 700;
}
.f-nav a.f-nav-item.active i.icon { color: var(--f-link); }
.f-nav a.f-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--f-selected-border);
}
.f-nav .f-nav-text { overflow: hidden; text-overflow: ellipsis; }

body.f-nav-collapsed .f-nav { width: var(--f-nav-w-collapsed); }
body.f-nav-collapsed .f-nav .f-nav-text,
body.f-nav-collapsed .f-nav .f-nav-label { display: none; }
body.f-nav-collapsed .f-nav a.f-nav-item { padding: 0; justify-content: center; }

/* ==========================================================================
   Page layout
   ========================================================================== */
.f-app {
  padding-top: var(--f-shell-h);
  padding-left: var(--f-nav-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: padding-left .18s ease;
}
body.f-nav-collapsed .f-app { padding-left: var(--f-nav-w-collapsed); }
.f-pagehead {
  background: var(--f-shell);
  padding: 12px 32px 0;
  box-shadow: inset 0 -1px 0 var(--f-border);
}
.f-pagehead .wojo.breadcrumb { margin: 0; }
.f-pagehead .f-pagehead-spacer { height: 12px; }
[data-theme] .wojo.breadcrumb {
  text-transform: none;
  font-weight: 400;
  font-size: .929rem;
  margin-bottom: 0;
}
[data-theme] .wojo.breadcrumb a.section { color: var(--f-link); font-weight: 400; }
[data-theme] .wojo.breadcrumb .active.section { color: var(--f-text-secondary); }
[data-theme] .wojo.breadcrumb .divider { color: var(--f-text-muted); margin: 0 6px; flex: 0 0 auto; }
.f-content {
  flex: 1 0 auto;
  padding: 24px 32px 32px;
}
.f-content > main { margin: 0; min-height: 0; }
.f-footer {
  padding: 16px 32px;
  font-size: .857rem;
  color: var(--f-text-muted);
  border-top: 1px solid var(--f-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.f-scrim { display: none; }

/* page title block used by templates (".wojo heading message") */
[data-theme] .wojo.heading.message {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 0 16px;
}
[data-theme] .wojo.heading.message h3,
[data-theme] main > h3:first-child,
[data-theme] main > h2:first-child {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  margin: 0 0 2px;
}
[data-theme] .wojo.heading.message p,
[data-theme] .wojo.heading.message .wojo.small.text {
  color: var(--f-text-secondary);
  font-size: 1rem;
}
[data-theme] main > h3:first-child { margin-bottom: 16px; }
/* toolbars directly above content (button groups, action rows) */
[data-theme] main > .wojo.buttons,
[data-theme] main > .row.gutters { margin-bottom: 16px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
[data-theme] .wojo.button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  min-height: 36px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: var(--f-radius-m);
  border: 1px solid var(--f-btn-border);
  background: var(--f-btn-bg);
  color: var(--f-btn-text);
  box-shadow: none;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  transition: background-color .1s ease, border-color .1s ease, color .1s ease;
}
[data-theme] .wojo.button:hover,
[data-theme] .wojo.button:focus {
  background: var(--f-hover);
  border-color: var(--f-btn-border);
  color: var(--f-btn-text);
}
[data-theme] .wojo.button:active,
[data-theme] .wojo.button.active {
  background: var(--f-selected);
  border-color: var(--f-selected-border);
  color: var(--f-link);
}
[data-theme] .wojo.button i.icon { margin: 0; font-size: 1rem; }
/* emphasized */
[data-theme] .wojo.primary.button,
[data-theme] .wojo.primary.buttons .button,
[data-theme] .wojo.info.button {
  background: var(--f-brand);
  border-color: var(--f-brand);
  color: #fff;
}
[data-theme] .wojo.primary.button:hover,
[data-theme] .wojo.primary.button:focus,
[data-theme] .wojo.primary.buttons .button:hover,
[data-theme] .wojo.info.button:hover {
  background: var(--f-brand-hover);
  border-color: var(--f-brand-hover);
  color: #fff;
}
[data-theme] .wojo.primary.button:active,
[data-theme] .wojo.primary.button.active {
  background: var(--f-brand-active);
  border-color: var(--f-brand-active);
  color: #fff;
}
/* semantic */
[data-theme] .wojo.positive.button {
  background: var(--f-positive-bg);
  border-color: var(--f-positive-border);
  color: var(--f-positive);
}
[data-theme] .wojo.positive.button:hover { background: var(--f-positive-border); color: #fff; }
[data-theme] .wojo.negative.button {
  background: var(--f-negative-bg);
  border-color: var(--f-negative-border);
  color: var(--f-negative);
}
[data-theme] .wojo.negative.button:hover { background: var(--negative-color); border-color: var(--negative-color); color: #fff; }
[data-theme] .wojo.secondary.button,
[data-theme] .wojo.alert.button {
  background: var(--f-critical-bg);
  border-color: var(--f-critical-border);
  color: var(--f-critical);
}
[data-theme] .wojo.dark.button {
  background: var(--f-text);
  border-color: var(--f-text);
  color: var(--f-surface);
}
/* inverted / basic / simple / transparent = Fiori "transparent" button */
[data-theme] .wojo.inverted.button,
[data-theme] .wojo.inverted.buttons .button,
[data-theme] .wojo.basic.button,
[data-theme] .wojo.basic.buttons .button,
[data-theme] .wojo.simple.button,
[data-theme] .wojo.simple.buttons .button,
[data-theme] .wojo.transparent.button {
  background: transparent;
  border-color: transparent;
  color: var(--f-btn-text);
  box-shadow: none;
}
[data-theme] .wojo.inverted.button:hover,
[data-theme] .wojo.inverted.buttons .button:hover,
[data-theme] .wojo.basic.button:hover,
[data-theme] .wojo.basic.buttons .button:hover,
[data-theme] .wojo.simple.button:hover,
[data-theme] .wojo.simple.buttons .button:hover,
[data-theme] .wojo.transparent.button:hover {
  background: var(--f-hover);
  border-color: transparent;
  color: var(--f-btn-text);
}
[data-theme] .wojo.inverted.positive.button,
[data-theme] .wojo.basic.positive.button,
[data-theme] .wojo.simple.positive.button { color: var(--f-positive); }
[data-theme] .wojo.inverted.negative.button,
[data-theme] .wojo.basic.negative.button,
[data-theme] .wojo.simple.negative.button { color: var(--f-negative); }
[data-theme] .wojo.basic.disabled.button,
[data-theme] .wojo.disabled.button,
[data-theme] .wojo.button:disabled {
  opacity: .4;
  cursor: default;
}
/* white / light = standard (bordered) button */
[data-theme] .wojo.white.button,
[data-theme] .wojo.white.buttons .button,
[data-theme] .wojo.light.button,
[data-theme] .wojo.light.buttons .button {
  background: var(--f-btn-bg);
  border-color: var(--f-btn-border);
  color: var(--f-btn-text);
  box-shadow: none;
}
[data-theme] .wojo.white.button:hover,
[data-theme] .wojo.white.buttons .button:hover,
[data-theme] .wojo.light.button:hover,
[data-theme] .wojo.light.buttons .button:hover {
  background: var(--f-hover);
  border-color: var(--f-btn-border);
  color: var(--f-btn-text);
}
/* sizes */
[data-theme] .wojo.small.button,
[data-theme] .wojo.small.buttons .button {
  font-size: 1rem;
  min-height: 32px;
  padding: 0 12px;
}
[data-theme] .wojo.mini.button,
[data-theme] .wojo.mini.buttons .button {
  font-size: .857rem;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
}
[data-theme] .wojo.large.button { min-height: 44px; padding: 0 20px; font-size: 1.072rem; }
[data-theme] .wojo.icon.button { padding: 0; width: 36px; min-width: 36px; }
[data-theme] .wojo.small.icon.button { width: 32px; min-width: 32px; }
[data-theme] .wojo.mini.icon.button { width: 26px; min-width: 26px; }
[data-theme] .wojo.circular.button { border-radius: 50%; }
/* button groups -> Fiori toolbar / segmented */
[data-theme] .wojo.buttons {
  gap: 8px;
  box-shadow: none;
  flex-wrap: wrap;
}
[data-theme] .wojo.buttons .button,
[data-theme] .wojo.buttons.stacked .button,
[data-theme] .wojo.buttons .button:first-child,
[data-theme] .wojo.buttons .button:last-child {
  border-radius: var(--f-radius-m);
  margin: 0;
  box-shadow: none;
}
[data-theme] .wojo.stacked.buttons .button { border-width: 1px; }

/* ==========================================================================
   Cards / segments (Fiori cards, 12px radius)
   ========================================================================== */
[data-theme] .wojo.segment,
[data-theme] .wojo.card,
[data-theme] .wojo.cards .card {
  background: var(--f-surface);
  border: 0;
  border-radius: var(--f-radius-l);
  box-shadow: var(--f-shadow-0);
}
[data-theme] .wojo.segment,
[data-theme] .wojo.card { margin: 0 0 16px; }
[data-theme] .wojo.segment { padding: 20px 24px; }
[data-theme] .wojo.fitted.segment,
[data-theme] .wojo.fitted.card { padding: 0; }
[data-theme] .wojo.segment.gutters,
[data-theme] .wojo.segment.gutters > .content:not(.notes) { padding: 20px 24px 4px; }
[data-theme] .wojo.fitted.gutters.segment { padding: 0; }
[data-theme] .wojo.card > .header,
[data-theme] .wojo.card > .footer,
[data-theme] .wojo.segment > .header,
[data-theme] .wojo.segment > .footer {
  padding: 14px 20px;
}
[data-theme] .wojo.card > .header.divided,
[data-theme] .wojo.segment > .header.divided { border-bottom: 1px solid var(--f-border); }
[data-theme] .wojo.card > .footer.divided,
[data-theme] .wojo.segment > .footer.divided { border-top: 1px solid var(--f-border); }
[data-theme] .wojo.card > .content:not(.notes),
[data-theme] .wojo.segment > .content:not(.notes) { padding: 16px 20px; }
[data-theme] .wojo.card > .header h4,
[data-theme] .wojo.segment > .header h4,
[data-theme] .wojo.card > .header h5,
[data-theme] .wojo.segment > .header h5 {
  font-size: 1.072rem;
  line-height: 1.5rem;
  font-weight: 700;
  margin: 0;
}
[data-theme] .wojo.card > .header h4 a.grey,
[data-theme] .wojo.segment > .header h4 a.grey { color: var(--f-text); }
[data-theme] .wojo.segment .wojo.segment,
[data-theme] .wojo.card .wojo.segment {
  box-shadow: none;
  border: 1px solid var(--f-border);
}
[data-theme] .wojo.basic.segment,
[data-theme] .wojo.basic.card { box-shadow: none; background: transparent; }
[data-theme] .wojo.cards { gap: 0; }
[data-theme] .wojo.cards .card { transition: box-shadow .15s ease; }
[data-theme] .wojo.cards .card:hover { box-shadow: var(--f-shadow-1); }

/* ==========================================================================
   Fields
   ========================================================================== */
[data-theme] .wojo.form textarea,
[data-theme] .wojo.file > input,
[data-theme] .wojo.form input:not([type]),
[data-theme] .wojo.form input[type="date"],
[data-theme] .wojo.form input[type="datetime-local"],
[data-theme] .wojo.form input[type="email"],
[data-theme] .wojo.form input[type="number"],
[data-theme] .wojo.form input[type="password"],
[data-theme] .wojo.form input[type="search"],
[data-theme] .wojo.form input[type="tel"],
[data-theme] .wojo.form input[type="time"],
[data-theme] .wojo.form input[type="text"],
[data-theme] .wojo.form input[type="url"],
[data-theme] .wojo.form select {
  font-family: inherit;
  font-size: 1rem;
  height: 36px;
  padding: 0 10px;
  line-height: 34px;
  color: var(--f-text);
  background-color: var(--f-field-bg);
  border: 1px solid var(--f-field-border);
  border-radius: var(--f-radius-s);
  box-shadow: none;
  transition: background-color .1s ease, border-color .1s ease, box-shadow .1s ease;
}
[data-theme] .wojo.form select {
  padding-right: 32px;
  background: var(--f-field-bg) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23556b82' d='M6 8 0 1.4 1.3 0 6 5.2 10.7 0 12 1.4z'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 11px 8px;
}
[data-theme] .wojo.form textarea {
  height: auto;
  min-height: 6em;
  padding: 8px 10px;
  line-height: 1.43;
}
[data-theme] .wojo.form textarea:not([rows]) { height: 9em; }
[data-theme] .wojo.form textarea:hover,
[data-theme] .wojo.form input:hover,
[data-theme] .wojo.form select:hover {
  background-color: var(--f-field-hover-bg);
  border-color: var(--f-brand-hover);
}
[data-theme] .wojo.form textarea:focus,
[data-theme] .wojo.form input:not([type]):focus,
[data-theme] .wojo.form input[type="date"]:focus,
[data-theme] .wojo.form input[type="datetime-local"]:focus,
[data-theme] .wojo.form input[type="email"]:focus,
[data-theme] .wojo.form input[type="number"]:focus,
[data-theme] .wojo.form input[type="password"]:focus,
[data-theme] .wojo.form input[type="search"]:focus,
[data-theme] .wojo.form input[type="tel"]:focus,
[data-theme] .wojo.form input[type="time"]:focus,
[data-theme] .wojo.form input[type="text"]:focus,
[data-theme] .wojo.form input[type="url"]:focus,
[data-theme] .wojo.form select:focus {
  color: var(--f-text);
  background-color: var(--f-field-bg);
  border-color: var(--f-field-border);
  border-radius: var(--f-radius-s);
  box-shadow: none;
  outline: 2px solid var(--f-focus);
  outline-offset: -1px;
}
[data-theme] .wojo.form ::placeholder,
[data-theme] .wojo.input ::placeholder {
  color: var(--f-field-placeholder);
  font-style: italic;
  opacity: 1;
}
[data-theme] .wojo.form label,
[data-theme] .wojo.form .field > label {
  font-size: .929rem;
  font-weight: 400;
  color: var(--f-text-secondary);
  margin-bottom: 4px;
}
[data-theme] .wojo.form .field > label {
  text-transform: none;
  letter-spacing: 0;
}
[data-theme] .wojo.form .field.labeled > label { margin: 0; }
[data-theme] .wojo.basic.table th,
[data-theme] .wojo.calendar .content .actions .button,
[data-theme] .wojo.time.picker .actions .button {
  text-transform: none;
}
[data-theme] .wojo.form .field > label i.icon.asterisk {
  color: var(--f-negative);
  font-size: .5rem;
  vertical-align: top;
}
/* input groups (icon / action inputs) */
[data-theme] .wojo.input {
  background: var(--f-field-bg);
  border: 1px solid var(--f-field-border);
  border-radius: var(--f-radius-s);
  box-shadow: none;
  min-height: 36px;
  align-items: center;
  overflow: hidden;
}
[data-theme] .wojo.input:hover { border-color: var(--f-brand-hover); background: var(--f-field-hover-bg); }
[data-theme] .wojo.input.focus,
[data-theme] .wojo.input:focus-within {
  outline: 2px solid var(--f-focus);
  outline-offset: -1px;
  border-color: var(--f-field-border);
  background: var(--f-field-bg);
}
[data-theme] .wojo.input input,
[data-theme] .wojo.form .wojo.input input,
[data-theme] .wojo.form .wojo.input input:hover,
[data-theme] .wojo.form .wojo.input input:focus {
  height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
}
[data-theme] .wojo.icon.input > i.icon { color: var(--f-text-secondary); padding: 0 10px; }
[data-theme] .wojo.action.input > .button {
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--f-border);
  min-height: 34px;
  height: 34px;
  background: transparent;
  color: var(--f-btn-text);
}
[data-theme] .wojo.action.input > .button:hover { background: var(--f-hover); }
/* checkboxes / radios / toggles */
[data-theme] .wojo.checkbox label::before,
[data-theme] .wojo.radio label::before {
  border: 1px solid var(--f-field-border);
  background-color: var(--f-field-bg);
  border-radius: 4px;
}
[data-theme] .wojo.radio label::before { border-radius: 50%; }
[data-theme] .wojo.checkbox input:checked ~ label::before,
[data-theme] .wojo.radio input:checked ~ label::before { border-color: var(--f-brand); }
[data-theme] .wojo.toggle.checkbox input:checked ~ label::before {
  background-color: var(--f-brand);
  border-color: var(--f-brand);
}

/* ==========================================================================
   Tables (responsive table look)
   ========================================================================== */
[data-theme] .wojo.table {
  background: var(--f-surface);
  border: 0;
  border-radius: var(--f-radius-l);
  box-shadow: var(--f-shadow-0);
  overflow: hidden;
  font-size: 1rem;
}
[data-theme] .wojo.segment .wojo.table,
[data-theme] .wojo.card .wojo.table { box-shadow: none; border-radius: 0; }
[data-theme] .wojo.table thead th {
  background: var(--f-surface);
  color: var(--f-text-secondary);
  font-size: .929rem;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--f-border-strong);
  white-space: nowrap;
}
[data-theme] .wojo.table thead tr:first-child > th:first-child,
[data-theme] .wojo.table thead tr:first-child > th:last-child { border-radius: 0; }
[data-theme] .wojo.table td {
  padding: 10px 12px;
  height: 44px;
  border-top: 1px solid var(--f-border);
  color: var(--f-text);
}
[data-theme] .wojo.table tbody tr:first-child td { border-top: 0; }
[data-theme] .wojo.table tbody tr:hover td { background: var(--f-hover); }
[data-theme] .wojo.table tr.active td,
[data-theme] .wojo.table tr.selected td { background: var(--f-selected); }
[data-theme] .wojo.table tfoot th {
  background: var(--f-surface-alt);
  border-top: 1px solid var(--f-border-strong);
  color: var(--f-text);
  font-weight: 700;
}
[data-theme] .wojo.basic.table { box-shadow: none; background: transparent; }
[data-theme] .wojo.basic.table tr td { border-top: 1px solid var(--f-border); }

/* ==========================================================================
   Lists & items
   ========================================================================== */
[data-theme] .wojo.divided.items > .item,
[data-theme] .wojo.items.divided > .item {
  border-top: 1px solid var(--f-border);
}
[data-theme] .wojo.items > .item {
  padding: 10px 20px;
  min-height: 48px;
  align-items: center;
  transition: background-color .1s ease;
}
[data-theme] .wojo.items > .item:hover { background: var(--f-hover); }
[data-theme] .wojo.items > .item > .columns { padding: 4px 6px; }
[data-theme] .wojo.items > .item > .columns:first-child { padding-left: 0; }
[data-theme] .wojo.items > .item > .columns:last-child { padding-right: 0; }
[data-theme] .wojo.items > .item > .columns { white-space: normal; }
[data-theme] .wojo.items > .item .header { font-weight: 700; color: var(--f-text); }
[data-theme] .wojo.items > .item .description { color: var(--f-text-secondary); }
[data-theme] .wojo.divided.list:not(.horizontal) > .item,
[data-theme] .wojo.celled.list:not(.horizontal) > .item {
  border-top-color: var(--f-border);
}
[data-theme] .wojo.list > .item { color: var(--f-text); }
[data-theme] .wojo.list > .item.active { color: var(--f-link); font-weight: 700; }
[data-theme] .wojo.divided.horizontal.list > .item::before,
[data-theme] .wojo.celled.horizontal.list > .item::before { border-left-color: var(--f-border); }

/* ==========================================================================
   Labels -> Fiori object status / tags
   ========================================================================== */
[data-theme] .wojo.label {
  font-family: inherit;
  font-size: .857rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--f-neutral);
  background: var(--f-neutral-bg);
  color: var(--f-neutral);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}
[data-theme] .wojo.primary.label,
[data-theme] .wojo.info.label {
  background: var(--f-info-bg);
  border-color: var(--f-info-border);
  color: var(--f-info);
}
[data-theme] .wojo.positive.label {
  background: var(--f-positive-bg);
  border-color: var(--f-positive-border);
  color: var(--f-positive);
}
[data-theme] .wojo.negative.label {
  background: var(--f-negative-bg);
  border-color: var(--f-negative-border);
  color: var(--f-negative);
}
[data-theme] .wojo.alert.label,
[data-theme] .wojo.secondary.label {
  background: var(--f-critical-bg);
  border-color: var(--f-critical-border);
  color: var(--f-critical);
}
[data-theme] .wojo.basic.label,
[data-theme] .wojo.inverted.label {
  background: transparent;
}
[data-theme] .wojo.initials.label,
[data-theme] .wojo.circular.label {
  border-radius: 50%;
  border: 0;
  color: #fff;
}
[data-theme] .wojo.initials.label {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: .8rem;
  background-color: #7858ff;
}
.f-group-title {
  padding: 12px 20px 4px;
  font-size: .857rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.f-group-title a { color: var(--f-text-secondary); }
[data-theme] .wojo.category.image { border-radius: 50%; }

/* ==========================================================================
   Messages -> Fiori message strips
   ========================================================================== */
[data-theme] .wojo.message:not(.heading) {
  border-radius: var(--f-radius-m);
  border: 1px solid var(--f-info-border);
  background: var(--f-info-bg);
  color: var(--f-text);
  box-shadow: none;
  padding: 10px 14px;
}
[data-theme] .wojo.positive.message { border-color: var(--f-positive-border); background: var(--f-positive-bg); }
[data-theme] .wojo.negative.message { border-color: var(--f-negative-border); background: var(--f-negative-bg); }
[data-theme] .wojo.alert.message { border-color: var(--f-critical-border); background: var(--f-critical-bg); }
[data-theme] .wojo.note {
  border-radius: var(--f-radius-m);
}

/* ==========================================================================
   Popovers (dropdowns) & dialogs (modals)
   ========================================================================== */
[data-theme] .wojo.dropdown {
  background: var(--f-surface);
  border: 0;
  border-radius: var(--f-radius-m);
  box-shadow: var(--f-shadow-1);
  padding: 6px;
}
[data-theme] .wojo.dropdown .pointer { display: none; }
[data-theme] .wojo.dropdown a.item,
[data-theme] .wojo.dropdown .item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--f-text);
  font-size: 1rem;
  font-weight: 400;
}
[data-theme] .wojo.dropdown a.item i.icon { color: var(--f-text-secondary); width: 18px; }
[data-theme] .wojo.dropdown a.item:hover,
[data-theme] .wojo.dropdown a.item.active {
  background: var(--f-hover);
  color: var(--f-text);
}
[data-theme] .wojo.dropdown .divider,
[data-theme] .wojo.dropdown .basic.divider {
  border-top: 1px solid var(--f-border);
  margin: 6px 0;
}
[data-theme] .wojo.dropdown .demi.text { color: var(--f-negative); }
[data-theme] .wojo.modal .dialog > .content {
  background: var(--f-surface);
  border: 0;
  border-radius: var(--f-radius-l);
  box-shadow: var(--f-shadow-2);
  overflow: hidden;
}
[data-theme] .wojo.modal .dialog > .content > .header {
  padding: 14px 20px;
  font-size: 1.143rem;
  font-weight: 700;
  border-bottom: 1px solid var(--f-border);
  background: var(--f-surface);
}
[data-theme] .wojo.modal .dialog > .content > .footer {
  padding: 10px 16px;
  border-top: 1px solid var(--f-border);
  background: var(--f-surface);
  gap: 8px;
}
[data-theme] .wojo.modal .dialog > .content > .header > button {
  background: transparent;
  color: var(--f-text-secondary);
  border-radius: var(--f-radius-m);
}
[data-theme] .wojo.modal .dialog > .content > .header > button:hover { background: var(--f-hover); }

/* ==========================================================================
   Tabs, pagination, misc
   ========================================================================== */
[data-theme] .wojo.tabs .nav li a,
[data-theme] .wojo.navs .nav li a {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--f-text);
  font-weight: 400;
  padding: 10px 14px;
}
[data-theme] .wojo.tabs .nav li a:hover,
[data-theme] .wojo.navs .nav li a:hover { color: var(--f-link); text-decoration: none; }
[data-theme] .wojo.tabs .nav li.active a,
[data-theme] .wojo.navs .nav li.active a {
  color: var(--f-link);
  font-weight: 700;
  border-bottom-color: var(--f-link);
  background: transparent;
  box-shadow: none;
}
[data-theme] .wojo.navs,
[data-theme] .wojo.secondary.navs,
[data-theme] .wojo.primary.navs {
  background: var(--f-surface);
  border-radius: var(--f-radius-l);
  box-shadow: var(--f-shadow-0);
  padding: 0 8px;
  margin-bottom: 16px;
}
[data-theme] .wojo.navs .nav li a { padding: 14px 14px 11px; color: var(--f-text); }
[data-theme] .wojo.secondary.navs .nav li a,
[data-theme] .wojo.primary.navs .nav li a { background: transparent; border-color: transparent; }
[data-theme] .wojo.navs .nav li.active a { color: var(--f-link); }
[data-theme] .wojo.tabs .tab {
  background: var(--f-surface);
  border: 0;
  border-radius: var(--f-radius-l);
  box-shadow: var(--f-shadow-0);
}
[data-theme] .wojo.pagination .item {
  min-width: 32px;
  height: 32px;
  border-radius: var(--f-radius-m);
  color: var(--f-text);
}
[data-theme] .wojo.pagination .item:hover { background: var(--f-hover); }
[data-theme] .wojo.pagination .item.active {
  background: var(--f-selected);
  color: var(--f-link);
  font-weight: 700;
}
[data-theme] .wojo.divider { border-color: var(--f-border); }
[data-theme] .wojo.progress { background: var(--f-neutral-bg); border-radius: 4px; }
[data-theme] .wojo.progress .bar { border-radius: 4px; }
[data-theme] .wojo.accordion section { border: 1px solid var(--f-border); border-radius: var(--f-radius-m); }
[data-theme] .wojo.mcalendar .weeks .cell { background: var(--f-surface); border-left: 1px solid var(--f-border); }
[data-theme] .wojo.mcalendar .header,
[data-theme] .wojo.mcalendar .weeks { border-color: var(--f-border); }
[data-theme] .wojo.calendar .content,
[data-theme] .wojo.time.picker .content {
  background: var(--f-surface);
  border-radius: var(--f-radius-m);
  box-shadow: var(--f-shadow-1);
}
[data-theme] .wojo.editable { background: var(--f-surface-alt); color: var(--f-text); }
[data-theme] .highlite { background-color: var(--f-selected) !important; color: var(--f-text); }
[data-theme] .wojo.loading.segment::before,
[data-theme] .wojo.loading.form::before,
[data-theme] .wojo.loading.card::before { background: color-mix(in srgb, var(--f-surface) 80%, transparent); }

/* empty-state illustrations: tone down the line art */
[data-theme] main .center.aligned > img,
[data-theme] main img[src*="/images/"][src$=".svg"]:not(.f-tile img) { opacity: .85; }
[data-theme="dark"] main .center.aligned > img { filter: invert(.85) hue-rotate(180deg); opacity: .7; }

/* notifications side panel */
#notifyPanel {
  top: var(--f-shell-h);
  height: calc(100% - var(--f-shell-h));
  width: 360px;
  background: var(--f-surface);
  box-shadow: var(--f-shadow-2);
  border-left: 1px solid var(--f-border);
  z-index: 700;
}
[data-theme] #notifyPanel { background: var(--f-surface); }
#notifyPanel > .row { padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--f-border); margin: 0; }
#notifyPanel h4 { border: 0; padding: 0; font-size: 1.072rem; }

/* ==========================================================================
   My Work (launchpad-like overview)
   ========================================================================== */
.f-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.f-tile {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 16px;
  border-radius: var(--f-radius-l);
  background: var(--f-surface);
  box-shadow: var(--f-shadow-0);
  color: var(--f-text);
  transition: box-shadow .15s ease, transform .15s ease;
}
[data-theme] a.f-tile { color: var(--f-text); }
.f-tile:hover { box-shadow: var(--f-shadow-1); transform: translateY(-1px); }
.f-tile .f-tile-title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.f-tile .f-tile-sub { color: var(--f-text-secondary); font-size: .929rem; margin-top: 2px; }
.f-tile .f-tile-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.f-tile .f-tile-kpi { font-size: 2.25rem; line-height: 1; font-weight: 300; color: var(--f-link); }
.f-tile .f-tile-unit { font-size: .857rem; color: var(--f-text-secondary); margin-left: 4px; }
.f-tile .f-tile-icon { font-size: 1.75rem; color: var(--f-text-secondary); }
.f-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
}
.f-section-title h4 { margin: 0; font-size: 1.143rem; }
.f-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.f-grid-2 > .wojo.segment { margin: 0; }
.f-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  color: var(--f-text-secondary);
  text-align: center;
}
.f-empty i.icon { font-size: 2rem; color: var(--f-border-strong); }
.f-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 10px;
  background: var(--f-neutral-bg);
  color: var(--f-text-secondary);
  font-size: .786rem;
  font-weight: 700;
  vertical-align: middle;
}

/* ==========================================================================
   Dashboard (KPIs & charts)
   Series colors validated (light vs #fff, dark vs #1d232a): blue/orange pair.
   ========================================================================== */
:root,
[data-theme="light"] {
  --viz-s1: #0070f2;
  --viz-s2: #c87b00;
  --viz-muted: #a8b2bd;
  --viz-grid: #e5e5e5;
  --viz-axis: #a8b2bd;
  --viz-good: #30914c;
  --viz-warn: #e76500;
  --viz-bad: #d20a0a;
  --viz-track: #eff1f2;
}
[data-theme="dark"] {
  --viz-s1: #2e8cf0;
  --viz-s2: #cc7e00;
  --viz-muted: #5b738b;
  --viz-grid: #2b343d;
  --viz-axis: #5b738b;
  --viz-good: #3fa45b;
  --viz-warn: #ff8b2c;
  --viz-bad: #ff5050;
  --viz-track: #2b343d;
}
.f-dsh-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.f-dsh-head .wojo.heading.message { margin: 0; }
.f-segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--f-radius-m);
  background: var(--f-surface);
  box-shadow: var(--f-shadow-0);
}
[data-theme] .f-segmented a {
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--f-text);
  font-weight: 400;
  white-space: nowrap;
}
[data-theme] .f-segmented a:hover { background: var(--f-hover); text-decoration: none; }
[data-theme] .f-segmented a.active {
  background: var(--f-selected);
  color: var(--f-link);
  font-weight: 700;
}
.f-range {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
[data-theme] .f-segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--f-text);
  font: inherit;
  cursor: pointer;
}
[data-theme] .f-segmented button:hover { background: var(--f-hover); }
[data-theme] .f-segmented button.active {
  background: var(--f-selected);
  color: var(--f-link);
  font-weight: 700;
}
.f-range-custom {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--f-radius-m);
  background: var(--f-surface);
  box-shadow: var(--f-shadow-0);
}
.f-range-custom[hidden] { display: none; }
.f-range-custom label { display: flex; flex-direction: column; gap: 2px; font-size: .857rem; color: var(--f-text-secondary); }
.f-range-custom input {
  height: 32px;
  padding: 0 8px;
  font: inherit;
  color: var(--f-text);
  background: var(--f-field-bg);
  border: 1px solid var(--f-field-border);
  border-radius: var(--f-radius-s);
  color-scheme: light dark;
}
.f-range-custom input:focus { outline: 2px solid var(--f-focus); outline-offset: -1px; }
.f-range-label { font-size: .857rem; color: var(--f-text-secondary); }
.f-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.f-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
  padding: 16px 18px;
  border-radius: var(--f-radius-l);
  background: var(--f-surface);
  box-shadow: var(--f-shadow-0);
  color: var(--f-text);
}
[data-theme] a.f-kpi { color: var(--f-text); transition: box-shadow .15s ease; }
[data-theme] a.f-kpi:hover { box-shadow: var(--f-shadow-1); text-decoration: none; }
.f-kpi-label {
  color: var(--f-text-secondary);
  font-size: .929rem;
  cursor: help;
  align-self: flex-start;
}
.f-kpi-value {
  font-size: 1.857rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
}
.f-kpi-unit {
  font-size: .929rem;
  font-weight: 400;
  color: var(--f-text-secondary);
  margin-left: 4px;
}
.f-kpi-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .857rem;
}
.f-kpi-note { color: var(--f-text-secondary); font-size: .857rem; }
.f-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.f-delta i.icon { font-size: .8rem; }
.f-delta.good { background: var(--f-positive-bg); color: var(--f-positive); }
.f-delta.bad { background: var(--f-negative-bg); color: var(--f-negative); }
.f-delta.neutral { background: var(--f-neutral-bg); color: var(--f-text-secondary); }
.f-delta-note { color: var(--f-text-muted); }
.f-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: .857rem;
  white-space: nowrap;
}
.f-status i.icon { font-size: .9rem; }
.f-status.small { font-size: .786rem; font-weight: 400; }
.f-status.good { color: var(--f-positive); }
.f-status.warning { color: var(--f-critical); }
.f-status.critical { color: var(--f-negative); }
.f-status.neutral { color: var(--f-text-secondary); font-weight: 400; }
/* meter: fill carries severity, track is a lighter step */
.f-meter {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--viz-track);
}
.f-meter.small { height: 6px; flex: 1 1 auto; }
.f-meter > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--viz-s1);
}
.f-meter.good > span { background: var(--viz-good); }
.f-meter.warn > span { background: var(--viz-warn); }
.f-meter.bad > span { background: var(--viz-bad); }
.f-meter > i {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--f-text);
}
.f-meter-pct {
  min-width: 44px;
  text-align: right;
  font-size: .857rem;
  font-variant-numeric: tabular-nums;
  color: var(--f-text-secondary);
}
.f-dsh-row {
  display: grid;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.f-dsh-row > .wojo.segment { margin: 0; }
.f-dsh-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.f-dsh-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-theme] .f-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.f-card-sub { color: var(--f-text-secondary); font-size: .857rem; margin-top: 2px; }
.f-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: .857rem;
  color: var(--f-text-secondary);
}
.f-legend span { display: inline-flex; align-items: center; gap: 6px; }
.f-key { display: inline-block; flex: 0 0 auto; }
.f-key.bar { width: 10px; height: 10px; border-radius: 2px; }
.f-key.line { width: 14px; height: 2px; border-radius: 1px; }
.f-key.s1 { background: var(--viz-s1); }
.f-key.s2 { background: var(--viz-s2); }
.f-key.muted { background: var(--viz-muted); }
.f-key.none { width: 10px; }
.f-chart { width: 100%; min-height: 260px; }
.f-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.f-chart .f-grid { stroke: var(--viz-grid); stroke-width: 1; }
.f-chart .f-axis { stroke: var(--viz-axis); stroke-width: 1; }
.f-chart .f-tick { fill: var(--f-text-secondary); font-size: 11px; font-variant-numeric: tabular-nums; }
.f-chart .f-endlabel { fill: var(--f-text); font-size: 12px; font-weight: 700; }
.f-chart .f-mark.s1 { fill: var(--viz-s1); }
.f-chart .f-mark.muted { fill: var(--viz-muted); }
.f-chart .f-col { transition: opacity .1s ease; }
.f-chart .f-col.dim { opacity: .45; }
.f-chart .f-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.f-chart .f-line.s2 { stroke: var(--viz-s2); }
.f-chart .f-dot { stroke: var(--f-surface); stroke-width: 2; }
.f-chart .f-dot.s2 { fill: var(--viz-s2); }
.f-chart .f-cross { stroke: var(--f-text-muted); stroke-width: 1; opacity: 0; }
.f-chart .f-cross.active { opacity: .6; }
.f-chart .f-hit { fill: transparent; cursor: crosshair; outline: none; }
.f-chart .f-hit:focus-visible { stroke: var(--f-focus); stroke-width: 2; }
.f-tip {
  position: fixed;
  z-index: 900;
  pointer-events: none;
  min-width: 160px;
  padding: 8px 10px;
  border-radius: var(--f-radius-m);
  background: var(--f-surface);
  box-shadow: var(--f-shadow-1);
  color: var(--f-text);
  font-size: .857rem;
  opacity: 0;
  transition: opacity .08s ease;
}
.f-tip.active { opacity: 1; }
.f-tip-title { color: var(--f-text-secondary); margin-bottom: 4px; }
.f-tip-row { display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.f-tip-row strong { font-variant-numeric: tabular-nums; }
.f-tip-row span { color: var(--f-text-secondary); }
/* horizontal bars (aging, top clients) */
.f-hbars { display: flex; flex-direction: column; gap: 12px; }
.f-hbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  grid-template-areas: "label value" "track track";
  gap: 4px 12px;
  align-items: center;
}
.f-hbar-label {
  grid-area: label;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.f-hbar-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--f-neutral-bg);
  color: var(--f-text-secondary);
  font-size: .786rem;
  text-align: center;
}
.f-hbar-value {
  grid-area: value;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.f-hbar-track { grid-area: track; height: 10px; }
.f-hbar-fill {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--viz-s1);
}
.f-hbar-fill.neutral { background: var(--viz-muted); }
.f-hbar-fill.warn { background: var(--viz-warn); }
.f-hbar-fill.bad { background: var(--viz-bad); }
.f-aging-total {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.f-aging-sum { font-size: 1.571rem; font-weight: 700; line-height: 1.2; }
/* tables & lists */
.f-table-wrap { overflow-x: auto; }
[data-theme] .f-table { border-radius: 0; }
[data-theme] .f-table th { padding-left: 20px; }
[data-theme] .f-table td { padding-left: 20px; vertical-align: middle; }
.f-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-strong { font-weight: 700; }
.f-col-meter { width: 22%; min-width: 160px; }
.f-col-meter .f-meter,
.f-team-meter .f-meter { display: inline-block; width: calc(100% - 56px); vertical-align: middle; }
.f-col-meter .f-meter-pct,
.f-team-meter .f-meter-pct { display: inline-block; vertical-align: middle; }
.f-team { display: flex; flex-direction: column; }
.f-team-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(120px, 40%);
  gap: 12px;
  align-items: center;
  padding: 10px 20px;
  border-top: 1px solid var(--f-border);
}
.f-team-row:first-child { border-top: 0; }
.f-footnote { color: var(--f-text-muted); font-size: .857rem; margin: 4px 0 0; }

/* ==========================================================================
   Kanban boards (task board & sales pipeline)
   ========================================================================== */
.f-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.f-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.f-field select,
.f-field input {
  height: 36px;
  padding: 0 10px;
  font: inherit;
  color: var(--f-text);
  background: var(--f-field-bg);
  border: 1px solid var(--f-field-border);
  border-radius: var(--f-radius-s);
  outline: none;
}
.f-field select { padding-right: 28px; max-width: 280px; }
.f-field select:focus,
.f-field input:focus { outline: 2px solid var(--f-focus); outline-offset: -1px; }
.f-field-search {
  position: relative;
  flex: 0 1 280px;
  margin-left: auto;
}
.f-field-search i.icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--f-text-secondary);
}
.f-field-search input { width: 100%; padding-left: 32px; }
.f-kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(272px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: start;
  scroll-snap-type: x proximity;
}
.f-kanban-6 { grid-auto-columns: minmax(172px, 1fr); gap: 10px; }
.f-kanban-6 .f-kcol-body { padding: 4px 8px 12px; }
/* legacy style.css paints every <header>/<footer>; reset inside boards & dialogs */
.f-kcol-head,
.f-dialog-head,
.f-dialog-foot {
  background: none;
  text-align: left;
  font-size: inherit;
}
.f-kcol {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  max-height: calc(100vh - 230px);
  border-radius: var(--f-radius-l);
  background: color-mix(in srgb, var(--f-text) 4%, var(--f-bg));
  border: 1px solid var(--f-border);
  scroll-snap-align: start;
  transition: background-color .1s ease, border-color .1s ease;
}
.f-kcol.over {
  background: var(--f-selected);
  border-color: var(--f-selected-border);
}
.f-kcol.closed { background: transparent; }
.f-kcol-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 6px;
  font-weight: 700;
}
.f-kcol-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.f-kcol-dot.neutral { background: var(--viz-muted); }
.f-kcol-dot.info { background: var(--viz-s1); }
.f-kcol-dot.warning { background: var(--viz-warn); }
.f-kcol-dot.good { background: var(--viz-good); }
.f-kcol-dot.critical { background: var(--viz-bad); }
.f-kcol-count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--f-neutral-bg);
  color: var(--f-text-secondary);
  font-size: .786rem;
  line-height: 20px;
  text-align: center;
}
.f-kcol-hint { margin-left: auto; color: var(--f-text-muted); cursor: help; }
.f-kcol-sum {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 14px 8px;
  font-variant-numeric: tabular-nums;
}
.f-kcol-value { font-size: 1.072rem; }
.f-kcol-weighted { color: var(--f-text-secondary); font-size: .857rem; }
.f-kcol-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 10px 12px;
  overflow-y: auto;
  min-height: 80px;
}
.f-kcol-empty {
  padding: 20px 8px;
  border: 1px dashed var(--f-border-strong);
  border-radius: var(--f-radius-m);
  color: var(--f-text-muted);
  text-align: center;
  font-size: .857rem;
}
.f-kdrop {
  height: 4px;
  border-radius: 2px;
  background: var(--f-brand);
  margin: -2px 0;
}
.f-kcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--f-radius-m);
  background: var(--f-surface);
  box-shadow: var(--f-shadow-0);
  cursor: grab;
  transition: box-shadow .12s ease, opacity .12s ease, transform .12s ease;
}
.f-kcard:hover { box-shadow: var(--f-shadow-1); }
.f-kcard:focus-visible { outline: 2px solid var(--f-focus); outline-offset: 1px; }
.f-kcard.dragging { opacity: .4; transform: rotate(1deg); }
.f-kcard.saving { opacity: .6; pointer-events: none; }
.f-kcard-top {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.f-kcard-ctx {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--f-text-secondary);
  font-size: .786rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.f-kcard-move {
  flex: 0 0 auto;
  width: 26px;
  height: 22px;
  margin: -3px -6px 0 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--f-text-secondary);
  cursor: pointer;
  opacity: .55;
}
.f-kcard:hover .f-kcard-move,
.f-kcard:focus-within .f-kcard-move { opacity: 1; }
.f-kcard-move:hover { background: var(--f-hover); }
[data-theme] a.f-kcard-title {
  color: var(--f-text);
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
[data-theme] a.f-kcard-title:hover { color: var(--f-link); }
.f-kcol[data-stage="3"] .f-kcard-title { text-decoration: line-through; text-decoration-color: var(--f-text-muted); }
#dealBoard .f-kcol[data-stage="3"] .f-kcard-title { text-decoration: none; }
.f-kcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 24px;
}
.f-kcard-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.f-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .786rem;
  line-height: 18px;
  white-space: nowrap;
  background: var(--f-neutral-bg);
  color: var(--f-text-secondary);
}
.f-tag i.icon { font-size: .75rem; }
.f-tag.critical { background: var(--f-negative-bg); color: var(--f-negative); font-weight: 700; }
.f-tag.warning { background: var(--f-critical-bg); color: var(--f-critical); font-weight: 700; }
.f-tag.info { background: var(--f-info-bg); color: var(--f-info); }
.f-kcol[data-stage="3"] .f-tag.critical,
.f-kcol[data-stage="3"] .f-tag.warning { background: var(--f-neutral-bg); color: var(--f-text-secondary); font-weight: 400; }
#dealBoard .f-kcol[data-stage="3"] .f-tag.critical { background: var(--f-negative-bg); color: var(--f-negative); font-weight: 700; }
.f-kavatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7858ff;
  color: #fff;
  font-size: .643rem;
  font-weight: 700;
}
.f-kavatar.empty { background: var(--f-neutral-bg); color: var(--f-text-muted); }
.f-kmenu {
  position: absolute;
  z-index: 50;
  top: 30px;
  right: 6px;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 6px;
  border-radius: var(--f-radius-m);
  background: var(--f-surface);
  box-shadow: var(--f-shadow-2);
}
.f-kmenu button {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--f-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.f-kmenu button:hover:enabled,
.f-kmenu button:focus-visible { background: var(--f-hover); outline: none; }
.f-kmenu button:disabled { color: var(--f-text-muted); cursor: default; font-weight: 700; }
.f-kadd { padding: 0 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.f-kadd select,
.f-kadd input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  font: inherit;
  color: var(--f-text);
  background: var(--f-field-bg);
  border: 1px solid var(--f-border-strong);
  border-radius: var(--f-radius-s);
  outline: none;
}
.f-kadd input:focus,
.f-kadd select:focus { border-color: var(--f-field-border); outline: 2px solid var(--f-focus); outline-offset: -1px; }
.f-kadd-row { display: flex; gap: 6px; }
.f-kadd-row input { flex: 1 1 auto; min-width: 0; }
[data-theme] .f-kadd .wojo.button { min-height: 32px; }
/* deals */
.f-deal-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.f-deal-prob { color: var(--f-text-secondary); font-size: .857rem; }
.f-kcard-links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
[data-theme] .f-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid var(--f-border);
  color: var(--f-link);
  font-size: .786rem;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme] .f-chip.good { border-color: var(--f-positive-border); color: var(--f-positive); }
[data-theme] .f-chip:hover { background: var(--f-hover); text-decoration: none; }
[data-theme] .f-deal-convert { align-self: flex-start; }
.f-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.f-kpis-5 .f-kpi { min-height: 108px; }
/* dialogs */
.f-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--f-radius-l);
  background: var(--f-surface);
  color: var(--f-text);
  box-shadow: var(--f-shadow-2);
}
.f-dialog:not([open]) { display: none; }
.f-dialog-small { width: min(420px, calc(100vw - 32px)); }
.f-dialog::backdrop { background: rgba(0, 0, 0, .35); }
.f-dialog > form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.f-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--f-border);
}
.f-dialog-head h4 { margin: 0; }
.f-dialog-body { padding: 16px 20px; overflow-y: auto; }
.f-dialog-body .field { margin-bottom: 12px; }
.f-dialog-body .field > label { display: block; }
.f-dialog-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--f-border);
}
.f-dialog-foot .f-spacer { flex: 1 1 auto; }
.f-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}
.f-form-grid .f-span-2 { grid-column: 1 / -1; }
[data-theme] .wojo.form .f-form-grid .field { margin-bottom: 12px; }
.f-confirm-title { margin: 0 0 6px; }
.f-confirm-text { color: var(--f-text-secondary); margin: 0 0 12px; }
.f-confirm-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font: inherit;
  color: var(--f-text);
  background: var(--f-field-bg);
  border: 1px solid var(--f-field-border);
  border-radius: var(--f-radius-s);
}

.f-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-doc-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 12px 0 16px;
  border: 1px dashed var(--f-border-strong);
  border-radius: var(--f-radius-m);
}
.f-doc-current > i.icon { font-size: 1.6rem; color: var(--f-text-secondary); }
.f-doc-remove { margin-left: auto; font-size: .857rem; color: var(--f-negative); white-space: nowrap; }
.f-check { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; cursor: pointer; }
[data-theme] .wojo.form input.f-color { width: 64px; padding: 2px; height: 36px; cursor: pointer; }
.f-doc-actions { display: flex; justify-content: flex-end; }
[data-theme] .wojo.form input[type="file"] {
  font: inherit;
  color: var(--f-text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .f-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .f-dsh-2-1,
  .f-dsh-1-1 { grid-template-columns: minmax(0, 1fr); }
  .f-content { padding: 16px; }
  .f-pagehead { padding: 10px 16px 0; }
  .f-footer { padding: 12px 16px; }
  .f-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .f-shell .f-search,
  .f-shell .f-brand .f-brand-sep,
  .f-shell .f-brand .f-brand-title { display: none; }
  .f-app,
  body.f-nav-collapsed .f-app { padding-left: 0; }
  .f-nav,
  body.f-nav-collapsed .f-nav {
    width: var(--f-nav-w);
    transform: translateX(-100%);
    box-shadow: var(--f-shadow-2);
  }
  body.f-nav-collapsed .f-nav .f-nav-text,
  body.f-nav-collapsed .f-nav .f-nav-label { display: initial; }
  body.f-nav-collapsed .f-nav a.f-nav-item { padding: 0 12px; justify-content: flex-start; }
  body.f-nav-open .f-nav { transform: none; }
  body.f-nav-open .f-scrim {
    display: block;
    position: fixed;
    inset: var(--f-shell-h) 0 0 0;
    background: rgba(0, 0, 0, .3);
    z-index: 540;
  }
  #notifyPanel { width: 100%; }
  .f-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .f-tile { min-height: 116px; padding: 12px; }
  .f-tile .f-tile-kpi { font-size: 1.75rem; }
  .f-tile .f-tile-icon { font-size: 1.4rem; }
  .f-kpis { gap: 12px; }
  .f-kpi { min-height: 116px; padding: 12px 14px; }
  .f-kpi-value { font-size: 1.5rem; }
  .f-dsh-row .wojo.items,
  .f-grid-2 .wojo.items { display: block; overflow: visible; }
  .f-team-row { grid-template-columns: 32px minmax(0, 1fr); }
  .f-team-meter { grid-column: 2; }
  .f-kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-range { align-items: stretch; width: 100%; }
  .f-segmented { flex-wrap: wrap; }
  .f-range-custom { flex-wrap: wrap; }
  .f-kanban,
  .f-kanban-6 { grid-auto-columns: 82%; }
  .f-kcol { max-height: none; }
  .f-field-search { flex-basis: 100%; margin-left: 0; }
  .f-form-grid { grid-template-columns: 1fr; }
  .f-form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Help center (side panel) and guided tours
   ========================================================================== */
.f-shell .f-shell-btn.f-help-new::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--f-brand);
  animation: f-help-pulse 2s ease-out infinite;
}
@keyframes f-help-pulse {
  0% { opacity: .9; transform: scale(.8); }
  100% { opacity: 0; transform: scale(1.35); }
}
.f-help {
  position: fixed;
  top: var(--f-shell-h);
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  background: var(--f-surface);
  border-left: 1px solid var(--f-border);
  box-shadow: var(--f-shadow-2);
  z-index: 710;
  transform: translateX(100%);
  transition: transform .2s ease;
}
.f-help.open { transform: none; }
.f-help[hidden] { display: none; }
.f-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--f-border);
}
.f-help-head h4 { margin: 0; padding: 0; border: 0; font-size: 1.072rem; display: flex; align-items: center; gap: 8px; }
.f-help-head h4 .f-help-icon { color: var(--f-brand); }
.f-help-icon { width: 20px; height: 20px; display: block; }
.f-help .f-shell-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border: 0; border-radius: var(--f-radius-m);
  background: transparent; color: var(--f-text-secondary); cursor: pointer;
}
.f-help .f-shell-btn:hover { background: var(--f-hover); color: var(--f-text); }
.f-help-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 4px;
  padding: 0 10px;
  height: 36px;
  border: 1px solid var(--f-field-border);
  border-radius: var(--f-radius-m);
  background: var(--f-field-bg);
  color: var(--f-text-secondary);
}
.f-help-search:focus-within { outline: 2px solid var(--f-focus); outline-offset: 1px; }
[data-theme] .f-help .f-help-search input,
[data-theme] .f-help .f-help-search input:focus {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--f-text);
  font: inherit;
  padding: 0 !important;
  box-shadow: none !important;
}
.f-help-body { flex: 1; overflow-y: auto; padding: 4px 8px 16px; }
.f-help-sec { padding: 8px 0; }
.f-help-sec[hidden] { display: none; }
.f-help-sec h5 {
  margin: 8px 8px 6px;
  font-size: .786rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--f-text-secondary);
}
.f-help-here { background: var(--f-info-bg); border-radius: var(--f-radius-l); margin: 8px 0; padding: 4px 4px 8px; }
.f-help-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: var(--f-radius-m);
  background: transparent;
  color: var(--f-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.f-help-item[hidden] { display: none; }
a.f-help-item, a.f-help-item:hover { color: var(--f-text); text-decoration: none; }
.f-help-item:hover { background: var(--f-hover); }
.f-help-here .f-help-item:hover { background: rgba(255, 255, 255, .6); }
.f-help-item:focus-visible { outline: 2px solid var(--f-focus); outline-offset: -2px; }
.f-help-ico {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--f-radius-m);
  background: var(--f-selected);
  color: var(--f-brand);
}
.f-help-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.f-help-what { font-weight: 600; }
.f-help-where { font-size: .857rem; color: var(--f-text-secondary); line-height: 1.35; }
.f-help-play {
  flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .786rem; color: var(--f-link); white-space: nowrap;
}
.f-help-map .f-help-item { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; }
.f-help-guide { display: block; padding: 0; }
.f-help-guide:hover { background: transparent; }
.f-help-guide summary {
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px;
  border-radius: var(--f-radius-m);
  font-weight: 600;
}
.f-help-guide summary::-webkit-details-marker { display: none; }
.f-help-guide summary::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-right: 2px solid var(--f-text-secondary);
  border-bottom: 2px solid var(--f-text-secondary);
  transform: rotate(-45deg);
  transition: transform .15s;
  margin: 0 4px;
}
.f-help-guide[open] summary::before { transform: rotate(45deg); }
.f-help-guide summary:hover { background: var(--f-hover); }
.f-help-guide-body { padding: 0 12px 8px 30px; color: var(--f-text); font-size: .929rem; line-height: 1.5; }
.f-help-guide-body ol { margin: 4px 0; padding-left: 18px; }
.f-help-guide-body p { margin: 4px 0; }
.f-help-empty { padding: 16px; color: var(--f-text-secondary); text-align: center; }
.f-help-keys { margin: 8px; padding-top: 12px; border-top: 1px solid var(--f-border); font-size: .786rem; color: var(--f-text-secondary); }
.f-help kbd, .f-tour-pop kbd {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  border: 1px solid var(--f-border-strong);
  border-bottom-width: 2px;
  border-radius: var(--f-radius-s);
  background: var(--f-surface-alt);
  font-weight: 600; font-family: inherit; font-size: .75rem; line-height: 1.4;
  text-align: center;
}

/* tour: spotlight cuts a hole into the dimmed page */
.f-tour-spot {
  position: fixed;
  z-index: 1000;
  border-radius: var(--f-radius-m);
  box-shadow: 0 0 0 3px var(--f-brand), 0 0 0 9999px rgba(15, 25, 40, .5);
  pointer-events: none;
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}
.f-tour-shade { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 25, 40, .5); }
.f-tour-spot[hidden], .f-tour-shade[hidden], .f-tour-pop[hidden] { display: none; }
.f-tour-pop {
  position: fixed;
  z-index: 1001;
  width: min(360px, calc(100vw - 24px));
  padding: 14px 16px 12px;
  border-radius: var(--f-radius-l);
  background: var(--f-surface);
  color: var(--f-text);
  box-shadow: var(--f-shadow-2);
  transition: left .25s ease, top .25s ease;
}
.f-tour-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.f-tour-count { font-size: .786rem; font-weight: 600; color: var(--f-text-secondary); }
.f-tour-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: -4px -6px 0 0;
  border: 0; border-radius: var(--f-radius-m);
  background: transparent; color: var(--f-text-secondary); cursor: pointer;
}
.f-tour-x:hover { background: var(--f-hover); color: var(--f-text); }
.f-tour-pop h5 { margin: 6px 0 4px; font-size: 1rem; font-weight: 700; color: var(--f-text); }
.f-tour-pop p { margin: 0 0 12px; line-height: 1.5; font-size: .929rem; }
.f-tour-bar { display: flex; align-items: center; gap: 8px; }
.f-tour-dots { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.f-tour-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--f-border-strong); }
.f-tour-dots span.on { width: 16px; border-radius: 3px; background: var(--f-brand); }
@media (max-width: 768px) {
  .f-help { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .f-help, .f-tour-spot, .f-tour-pop { transition: none; }
  .f-shell .f-shell-btn.f-help-new::after { animation: none; opacity: 1; }
}
[data-theme="dark"] .f-help-here .f-help-item:hover { background: var(--f-hover); }

/* link cards (reports overview): the whole card is the link */
.f-linkgroup { margin-bottom: 24px; }
[data-theme] .f-linkgroup-title { margin: 0 0 10px; padding: 0; border: 0; font-size: 1rem; font-weight: 700; color: var(--f-text); }
.f-linkcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
[data-theme] a.f-linkcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--f-radius-l);
  background: var(--f-surface);
  box-shadow: var(--f-shadow-0);
  color: var(--f-text);
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
[data-theme] a.f-linkcard:hover { box-shadow: var(--f-shadow-1); transform: translateY(-1px); }
[data-theme] a.f-linkcard:focus-visible { outline: 2px solid var(--f-focus); outline-offset: 2px; }
.f-linkcard-icon {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--f-radius-m);
  background: var(--f-selected);
  color: var(--f-brand);
  font-size: 1.25rem;
}
.f-linkcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.f-linkcard-title { font-weight: 700; color: var(--f-link); }
.f-linkcard-sub { font-size: .857rem; color: var(--f-text-secondary); line-height: 1.4; }
.f-linkcard-go { flex: none; color: var(--f-text-secondary); font-size: .85rem; }

/* file preview dialog */
.f-dialog.f-preview {
  width: min(1100px, calc(100vw - 32px));
  height: calc(100vh - 48px);
  max-height: none;
  overflow: hidden;
}
.f-dialog.f-preview[open] { display: flex; flex-direction: column; }
.f-preview .f-dialog-head { flex: none; gap: 12px; }
.f-preview .f-dialog-head h4 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-preview-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.f-preview-actions .button .icon { margin-right: 6px; }
.f-preview-body { flex: 1; min-height: 0; background: var(--f-surface-alt); }
.f-preview-body iframe { display: block; width: 100%; height: 100%; border: 0; }
.f-preview-body[data-type="text"] iframe { background: #fff; }
.f-preview-body[data-type="image"] { display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.f-preview-body img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: var(--f-shadow-1); }
[data-theme] a.f-file-open { display: block; color: inherit; text-decoration: none; }
[data-theme] a.f-file-open:hover p { color: var(--f-link); text-decoration: underline; }

/* file type icons (assets/images/filetypes) */
[data-theme] main img[src*="/filetypes/"] { opacity: 1; filter: none; }
[data-theme] .wojo.mason img[src*="/filetypes/"].medium.image { width: 64px; height: auto; margin: 8px auto 4px; }
[data-theme] img[src*="/filetypes/"].small.image { width: 36px; height: auto; box-shadow: none; border-radius: 0; }
[data-theme] img[src*="/filetypes/"].default.image { width: 40px; height: auto; border-radius: 0; }

/* Fiori messages (fiori.js overrides $.wNotice): Message Toast and Message Strip, no animation */
.f-toasts {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.f-toast {
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: var(--f-radius-m);
  background: rgba(29, 45, 62, .92);
  color: #fff;
  font-size: .929rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--f-shadow-1);
  pointer-events: auto;
}
.f-strips {
  position: fixed;
  top: calc(var(--f-shell-h, 52px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  width: min(640px, calc(100vw - 32px));
}
.f-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 8px 10px 14px;
  border: 1px solid;
  border-radius: var(--f-radius-m);
  font-size: .929rem;
  line-height: 1.45;
  box-shadow: var(--f-shadow-1);
}
.f-strip.negative { background: var(--f-negative-bg); border-color: var(--f-negative-border); color: var(--f-text); }
.f-strip.negative > .icon { color: var(--f-negative); }
.f-strip.critical { background: var(--f-critical-bg); border-color: var(--f-critical-border); color: var(--f-text); }
.f-strip.critical > .icon { color: var(--f-critical); }
.f-strip > .icon { margin-top: 2px; }
.f-strip-text { flex: 1; min-width: 0; }
.f-strip-close {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin: -3px 0;
  border: 0; border-radius: var(--f-radius-s);
  background: transparent; color: var(--f-text-secondary); cursor: pointer; font-size: .75rem;
}
.f-strip-close:hover { background: rgba(0, 0, 0, .06); color: var(--f-text); }
/* busy buttons: no spinner, just disabled (Fiori shows no animation for quick saves) */
[data-theme] .wojo.loading.loading.button { color: inherit; opacity: .55; cursor: progress; pointer-events: none; }
[data-theme] .wojo.loading.button::after { display: none; animation: none; }

/* ==========================================================================
   Calendar (agenda.js)
   ========================================================================== */
.f-cal { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
[data-theme] .f-cal > .segment { margin: 0; }
.f-cal-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--f-border); flex-wrap: wrap; }
.f-cal-nav { display: flex; gap: 2px; }
[data-theme] .f-cal-title { flex: 1; margin: 0; padding: 0; border: 0; font-size: 1.143rem; font-weight: 700; text-transform: capitalize; }
.f-cal .f-segmented { box-shadow: none; background: var(--f-surface-alt); }
.f-cal-body[aria-busy="true"] { opacity: .6; }

.f-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.f-cal-head {
  padding: 8px 10px;
  font-size: .786rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  color: var(--f-text-secondary);
  border-bottom: 1px solid var(--f-border);
}
.f-cal-cell {
  position: relative;
  min-height: 116px;
  padding: 4px 6px 6px;
  border-right: 1px solid var(--f-border);
  border-bottom: 1px solid var(--f-border);
  cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.f-cal-cell:nth-child(7n) { border-right: 0; }
.f-cal-cell:hover { background: color-mix(in srgb, var(--f-hover) 45%, transparent); }
.f-cal-cell.weekend { background: color-mix(in srgb, var(--f-surface-alt) 60%, transparent); }
.f-cal-cell.other .f-cal-day { color: var(--f-text-muted); opacity: .6; }
.f-cal-cell.over { background: var(--f-selected); box-shadow: inset 0 0 0 2px var(--f-selected-border); }
.f-cal-body[data-view="week"] .f-cal-cell { min-height: 420px; }
.f-cal-day {
  align-self: flex-start;
  min-width: 26px; height: 26px; padding: 0 6px;
  border: 0; border-radius: 13px;
  background: transparent; color: var(--f-text);
  font-weight: 600; font-family: inherit; font-size: .857rem; line-height: 26px; cursor: pointer;
}
.f-cal-day:hover { background: var(--f-hover); }
.f-cal-cell.today .f-cal-day { background: var(--f-brand); color: #fff; }
.f-cal-items { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* item chips: colored bar + tinted background; text stays in text tokens */
.f-cal-item {
  --cal-color: var(--f-neutral);
  display: flex; align-items: baseline; gap: 6px;
  width: 100%; min-width: 0;
  padding: 2px 6px 2px 8px;
  border: 0; border-left: 3px solid var(--cal-color); border-radius: 4px;
  background: color-mix(in srgb, var(--cal-color) 12%, var(--f-surface));
  color: var(--f-text);
  font-family: inherit; font-size: .786rem; line-height: 1.5; text-align: left;
  cursor: pointer;
}
.f-cal-item:hover { background: color-mix(in srgb, var(--cal-color) 22%, var(--f-surface)); }
.f-cal-item:focus-visible { outline: 2px solid var(--f-focus); outline-offset: 1px; }
.f-cal-item.dragging { opacity: .4; }
.f-cal-item[draggable="true"] { cursor: grab; }
.f-cal-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-cal-time { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.f-cal-sub { display: block; flex-basis: 100%; color: var(--f-text-secondary); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-cal-task { --cal-color: #5b6b7c; }
.f-cal-invoice { --cal-color: #d0621b; }
.f-cal-deal { --cal-color: #8a4fd1; }
.f-cal-item.overdue { --cal-color: var(--f-negative-border); }
.f-cal-item.priority .f-cal-label { font-weight: 700; }
.f-cal-body[data-view="week"] .f-cal-item,
.f-cal-list .f-cal-item { flex-wrap: wrap; padding: 4px 8px 4px 10px; }
.f-cal-more {
  align-self: flex-start;
  padding: 0 6px; border: 0; border-radius: 4px;
  background: transparent; color: var(--f-link);
  font-weight: 600; font-family: inherit; font-size: .75rem; line-height: 1.6; cursor: pointer;
}
.f-cal-more:hover { background: var(--f-hover); }

.f-cal-list { padding: 8px 16px 16px; }
.f-cal-group { padding: 8px 0; border-bottom: 1px solid var(--f-border); display: flex; flex-direction: column; gap: 4px; }
.f-cal-group:last-child { border-bottom: 0; }
[data-theme] .f-cal-group-head { margin: 4px 0; padding: 0; border: 0; font-size: .857rem; font-weight: 700; color: var(--f-text-secondary); }
.f-cal-group.today .f-cal-group-head { color: var(--f-link); }
.f-cal-list .f-cal-item { font-size: .875rem; }
.f-cal-empty { padding: 32px 0; text-align: center; color: var(--f-text-secondary); }

/* side panel */
[data-theme] .f-cal-side-title { margin: 0 0 6px; padding: 0; border: 0; font-size: .786rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--f-text-secondary); }
.f-cal-side .content { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.f-cal-side-title ~ .f-cal-side-title { margin-top: 14px; }
.f-cal-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: .929rem; }
.f-cal-check input { accent-color: var(--f-brand); width: 16px; height: 16px; margin: 0; }
.f-cal-check.f-cal-sub { padding-left: 24px; font-size: .857rem; color: var(--f-text-secondary); }
.f-cal-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--f-brand); }
.f-cal-dot.f-cal-event { background: var(--f-brand); }
.f-cal-dot.f-cal-task { background: #5b6b7c; }
.f-cal-dot.f-cal-invoice { background: #d0621b; }
.f-cal-dot.f-cal-deal { background: #8a4fd1; }
.f-cal-newcal { display: flex; gap: 6px; margin-top: 6px; }
[data-theme] .f-cal-newcal input[type="text"] { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--f-field-border); border-radius: var(--f-radius-s); background: var(--f-field-bg); color: var(--f-text); font: inherit; font-size: .857rem; }
.f-cal-newcal input[type="color"] { width: 32px; height: 32px; padding: 2px; border: 1px solid var(--f-border); border-radius: var(--f-radius-s); background: var(--f-surface); }
.f-cal-hint { margin: 14px 0 0; font-size: .786rem; color: var(--f-text-secondary); line-height: 1.45; }

/* dialog fields */
.f-cal-dt { display: flex; gap: 6px; }
.f-cal-dt input[type="date"] { flex: 1.4; min-width: 0; }
.f-cal-dt input[type="time"] { flex: 1; min-width: 0; }
.f-cal-allday { display: flex; align-items: flex-end; padding-bottom: 8px; }

@media (max-width: 1100px) {
  .f-cal { grid-template-columns: 1fr; }
  .f-cal-side .content { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .f-cal-side-title { flex-basis: 100%; }
  .f-cal-hint { flex-basis: 100%; }
}
@media (max-width: 768px) {
  .f-cal-bar { gap: 8px; }
  .f-cal-title { order: -1; flex-basis: 100%; }
  .f-cal-cell { min-height: 64px; padding: 2px; }
  .f-cal-body[data-view="month"] .f-cal-item { font-size: 0; height: 6px; padding: 0; border-left-width: 0; background: var(--cal-color); }
  .f-cal-body[data-view="month"] .f-cal-item .f-cal-time { display: none; }
  .f-cal-body[data-view="week"] .f-cal-grid { grid-template-columns: 1fr; }
  .f-cal-body[data-view="week"] .f-cal-cell { min-height: 0; border-right: 0; }
  .f-cal-body[data-view="week"] .f-cal-head { display: none; }
}
.f-cal-body[data-view="week"] .f-cal-label,
.f-cal-list .f-cal-label { white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.f-cal-body[data-view="week"] .f-cal-time { flex-basis: 100%; font-size: .75rem; }
@media (max-width: 768px) {
  .f-cal-body[data-view="month"] .f-cal-item,
  .f-cal-body[data-view="month"] .f-cal-more { pointer-events: none; }
}
.f-cal-wd { display: none; }
@media (max-width: 768px) {
  .f-cal-body[data-view="week"] .f-cal-wd { display: inline; }
}

/* ==========================================================================
   Notes (documents), rich text, mentions
   ========================================================================== */
.f-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
  background: #7858ff; color: #fff; font-size: .75rem; font-weight: 700;
}
.f-avatar.small { width: 24px; height: 24px; font-size: .68rem; }
.f-avatar img { width: 100%; height: 100%; object-fit: cover; }

.f-note-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.f-note-kicker { display: block; font-size: .786rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--f-text-secondary); }
[data-theme] .f-note-project { display: inline-flex; align-items: center; gap: 8px; font-size: 1.143rem; font-weight: 700; color: var(--f-text); }
[data-theme] .f-note-project:hover { color: var(--f-link); text-decoration: none; }
.f-note-bar .wojo.buttons { margin: 0; }
.f-note-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.f-note-paper {
  min-height: 60vh;
  padding: 36px clamp(20px, 5vw, 64px) 48px;
  border-radius: var(--f-radius-l);
  border-top: 4px solid var(--note-color, var(--f-surface));
  background: var(--f-surface);
  box-shadow: var(--f-shadow-0);
}
.f-note-paper > * { max-width: 860px; margin-left: auto; margin-right: auto; }
[data-theme] .f-note-title,
[data-theme] .wojo.form input.f-note-title {
  display: block; width: 100%;
  margin-top: 0; margin-bottom: 0; padding: 0;
  border: 0; border-radius: 0; box-shadow: none; outline: none; background: transparent;
  color: var(--f-text); font-weight: 700; font-family: inherit; font-size: 2rem; line-height: 1.25;
}
[data-theme] .wojo.form input.f-note-title::placeholder { color: var(--f-text-muted); opacity: .6; }
.f-note-title .icon { font-size: 1rem; color: var(--f-text-secondary); vertical-align: middle; }
.f-note-meta { margin-top: 8px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--f-border); font-size: .857rem; color: var(--f-text-secondary); }

/* document typography: reading view and editor share it */
.f-note-content,
[data-theme] .f-rte-box .trumbowyg-editor { color: var(--f-text); font-size: 1rem; line-height: 1.7; }
.f-note-content > :first-child,
[data-theme] .f-rte-box .trumbowyg-editor > :first-child { margin-top: 0; }
.f-note-content h1, .f-note-content h2,
[data-theme] .f-rte-box .trumbowyg-editor h1, [data-theme] .f-rte-box .trumbowyg-editor h2 { margin: 1.6em 0 .5em; padding: 0; border: 0; font-size: 1.43rem; font-weight: 700; line-height: 1.3; }
.f-note-content h3, .f-note-content h4,
[data-theme] .f-rte-box .trumbowyg-editor h3, [data-theme] .f-rte-box .trumbowyg-editor h4 { margin: 1.4em 0 .4em; padding: 0; border: 0; font-size: 1.14rem; font-weight: 700; line-height: 1.35; }
.f-note-content p, [data-theme] .f-rte-box .trumbowyg-editor p { margin: 0 0 .9em; }
.f-note-content ul, .f-note-content ol,
[data-theme] .f-rte-box .trumbowyg-editor ul, [data-theme] .f-rte-box .trumbowyg-editor ol { margin: 0 0 .9em; padding-left: 1.5em; }
.f-note-content ul, [data-theme] .f-rte-box .trumbowyg-editor ul { list-style: disc; }
.f-note-content ol, [data-theme] .f-rte-box .trumbowyg-editor ol { list-style: decimal; }
.f-note-content li, [data-theme] .f-rte-box .trumbowyg-editor li { margin: .2em 0; }
.f-note-content blockquote,
[data-theme] .f-rte-box .trumbowyg-editor blockquote { margin: 1em 0; padding: .6em 1em; border-left: 3px solid var(--f-brand); border-radius: 0 var(--f-radius-s) var(--f-radius-s) 0; background: var(--f-surface-alt); color: var(--f-text-secondary); }
.f-note-content table,
[data-theme] .f-rte-box .trumbowyg-editor table { width: 100%; margin: 1em 0; border-collapse: collapse; font-size: .929rem; }
.f-note-content th, .f-note-content td,
[data-theme] .f-rte-box .trumbowyg-editor th, [data-theme] .f-rte-box .trumbowyg-editor td { padding: 6px 10px; border: 1px solid var(--f-border); text-align: left; vertical-align: top; }
.f-note-content th, [data-theme] .f-rte-box .trumbowyg-editor th { background: var(--f-surface-alt); font-weight: 700; }
.f-note-content hr, [data-theme] .f-rte-box .trumbowyg-editor hr { margin: 1.6em 0; border: 0; border-top: 1px solid var(--f-border); }
.f-note-content a, [data-theme] .f-rte-box .trumbowyg-editor a { color: var(--f-link); text-decoration: underline; }
.f-note-content code, [data-theme] .f-rte-box .trumbowyg-editor code { padding: 0 4px; border-radius: 4px; background: var(--f-surface-alt); font-size: .9em; }
.f-note-empty { color: var(--f-text-muted); }

/* mentions */
.f-mention {
  display: inline-block; padding: 0 6px; border-radius: 10px;
  background: var(--f-info-bg); color: var(--f-link);
  font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.f-mention-pop {
  position: fixed; z-index: 1200; display: none;
  min-width: 240px; max-height: 280px; overflow-y: auto; padding: 4px;
  border-radius: var(--f-radius-m); background: var(--f-surface); box-shadow: var(--f-shadow-2);
}
.f-mention-pop.open { display: block; }
.f-mention-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--f-text); font-size: .929rem; cursor: pointer; }
.f-mention-opt.active, .f-mention-opt:hover { background: var(--f-selected); }
.f-mention-empty { padding: 8px; color: var(--f-text-secondary); font-size: .857rem; }

/* editor: toolbar sticks under the shell bar, no ruled paper */
[data-theme] .trumbowyg-box.f-rte-box { margin: 0; border: 0; background: transparent; min-height: 0; box-shadow: none; }
[data-theme] .f-rte-box .trumbowyg-button-pane {
  position: sticky; top: calc(var(--f-shell-h) + 8px); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  min-height: 0; padding: 4px; border: 1px solid var(--f-border); border-radius: var(--f-radius-m);
  background: var(--f-surface); box-shadow: var(--f-shadow-0);
}
[data-theme] .f-rte-box .trumbowyg-button-pane::after { display: none; }
[data-theme] .f-rte-box .trumbowyg-button-group { display: flex; gap: 2px; margin: 0; padding: 0 4px; border-right: 1px solid var(--f-border); }
[data-theme] .f-rte-box .trumbowyg-button-group:last-child { border-right: 0; margin-left: auto; }
[data-theme] .f-rte-box .trumbowyg-button-group::after { display: none; }
[data-theme] .f-rte-box .trumbowyg-button-group button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: 0; padding: 0;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--f-text-secondary); font-size: .95rem;
}
[data-theme] .f-rte-box .trumbowyg-button-group button:hover { background: var(--f-hover); color: var(--f-text); }
[data-theme] .f-rte-box .trumbowyg-button-group button.trumbowyg-active { background: var(--f-selected); color: var(--f-link); }
.f-rte-box button.trumbowyg-p-button::before { content: "¶"; font-family: inherit; font-weight: 700; }
.f-rte-box button.trumbowyg-h2-button::before { content: "H2"; font-family: inherit; font-weight: 700; font-size: .8rem; }
.f-rte-box button.trumbowyg-h3-button::before { content: "H3"; font-family: inherit; font-weight: 700; font-size: .8rem; }
.f-rte-box button.trumbowyg-quote-button::before { content: "\ea14"; }
.f-rte-box button.trumbowyg-createLink-button::before { content: "\ea69"; }
.f-rte-box button.trumbowyg-table-button::before { content: "\e9af"; }
.f-rte-box button.trumbowyg-mention-button::before { content: "@"; font-family: inherit; font-weight: 700; font-size: 1.05rem; }
[data-theme] .f-rte-box .trumbowyg-editor {
  min-height: 320px; padding: 20px 2px 8px; border: 0; outline: none; background: transparent;
}
[data-theme] .f-rte-box .trumbowyg-editor[placeholder]:empty::before { content: attr(placeholder); color: var(--f-text-muted); opacity: .7; }
[data-theme] .f-rte-box.trumbowyg-fullscreen { z-index: 1100; background: var(--f-surface); padding: 16px 24px; }
[data-theme] .f-rte-box.trumbowyg-fullscreen .trumbowyg-button-pane { top: 0; }
/* smaller editors (comments) */
[data-theme] .f-rte-box.basic .trumbowyg-editor { min-height: 120px; padding: 12px 4px; }
[data-theme] .f-rte-box .trumbowyg-modal-box { border-radius: var(--f-radius-m); background: var(--f-surface); box-shadow: var(--f-shadow-2); }

/* note side panel */
.f-note-side .content { padding: 16px; }
.f-note-side > .segment { margin: 0 0 16px; }
[data-theme] .f-note-side-title { margin: 0 0 8px; padding: 0; border: 0; font-size: .786rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--f-text-secondary); }
.f-note-hint { margin: -4px 0 8px; font-size: .786rem; color: var(--f-text-secondary); }
.f-note-field { display: block; margin-top: 10px; }
.f-note-label { display: block; margin-bottom: 6px; font-size: .857rem; color: var(--f-text-secondary); }
.f-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.f-swatch {
  width: 24px; height: 24px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--f-border-strong); background: var(--sw);
}
.f-swatch[data-color=""] { background: linear-gradient(135deg, transparent 45%, var(--f-negative-border) 45% 55%, transparent 55%); }
.f-swatch.active { box-shadow: 0 0 0 2px var(--f-surface), 0 0 0 4px var(--f-brand); }
.f-people { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.f-person { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .929rem; cursor: pointer; }
.f-person input, .f-note-side .f-check input { accent-color: var(--f-brand); width: 16px; height: 16px; margin: 0; }
[data-theme] .f-note-upload { margin: 0 0 8px; padding: 0; border: 0; background: none; }
[data-theme] .f-note-upload label {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border: 1px dashed var(--f-border-strong); border-radius: var(--f-radius-m);
  color: var(--f-link); font-weight: 600; cursor: pointer;
}
[data-theme] .f-note-upload label:hover { background: var(--f-hover); }
.f-note-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.f-attach-list { display: flex; flex-direction: column; gap: 2px; }
[data-theme] a.f-attach { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 6px; color: var(--f-text); text-decoration: none; }
[data-theme] a.f-attach:hover { background: var(--f-hover); }
.f-attach img { width: 26px; flex: none; }
.f-attach > span { display: flex; flex-direction: column; min-width: 0; }
.f-attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .929rem; }
.f-attach-size { font-size: .75rem; color: var(--f-text-secondary); }

/* notes overview */
.f-note-tools { display: flex; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.f-note-tools .f-field-search { flex: 1 1 280px; max-width: 420px; margin-left: 0; }
.f-note-tools .f-field-search input { height: 36px; border: 1px solid var(--f-field-border); border-radius: var(--f-radius-s); background: var(--f-field-bg); color: var(--f-text); font: inherit; }
.f-note-tools > .button { margin-left: auto; }
.f-note-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.f-note-card {
  display: flex; flex-direction: column; min-height: 190px;
  border-radius: var(--f-radius-l); border-top: 4px solid var(--note-color, var(--f-border));
  background: var(--f-surface); box-shadow: var(--f-shadow-0);
  transition: box-shadow .15s;
}
.f-note-card:hover { box-shadow: var(--f-shadow-1); }
.f-note-card[hidden] { display: none; }
[data-theme] .f-note-card-link { flex: 1; padding: 16px 16px 8px; color: var(--f-text); text-decoration: none; }
[data-theme] .f-note-card-link h4 { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.071rem; font-weight: 700; }
[data-theme] .f-note-card-link:hover h4 { color: var(--f-link); }
.f-note-excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--f-text-secondary); font-size: .875rem; line-height: 1.5; }
.f-note-card-foot { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-top: 1px solid var(--f-border); }
.f-note-card-meta { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .786rem; color: var(--f-text-secondary); }
.f-note-none { padding: 24px; text-align: center; color: var(--f-text-secondary); }

@media (max-width: 1024px) {
  .f-note-layout { grid-template-columns: 1fr; }
}
@media print {
  .f-shell, .f-nav, .f-pagehead, .f-footer, .f-note-bar, .f-note-side, #fHelp, #fNotify { display: none !important; }
  .f-app { margin: 0 !important; padding: 0 !important; }
  .f-note-layout { display: block; }
  .f-note-paper { box-shadow: none; border-top: 0; padding: 0; }
}

/* notification panel and badge */
.f-shell .f-shell-btn .f-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--f-negative-border); color: #fff;
  font-size: .64rem; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px var(--f-shell);
}
.f-shell .f-shell-btn .f-badge[hidden] { display: none; }
.f-notify-actions { display: flex; align-items: center; gap: 4px; }
.f-notify-all { padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--f-link); font: inherit; font-size: .857rem; cursor: pointer; }
.f-notify-all:hover { background: var(--f-hover); }
.f-notify-all[hidden] { display: none; }
.f-notify-list { padding: 8px; }
[data-theme] a.f-notify-item { position: relative; display: flex; gap: 10px; padding: 12px 22px 12px 10px; border-radius: var(--f-radius-m); color: var(--f-text); text-decoration: none; }
[data-theme] a.f-notify-item:hover { background: var(--f-hover); }
.f-notify-item.unread::after { content: ""; position: absolute; top: 18px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--f-brand); }
.f-notify-item:not(.unread) .f-notify-msg { color: var(--f-text-secondary); }
.f-notify-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.f-notify-msg { font-size: .929rem; line-height: 1.4; }
.f-notify-msg b { font-weight: 700; }
.f-notify-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-left: 8px; border-left: 2px solid var(--f-border); color: var(--f-text-secondary); font-size: .857rem; }
.f-notify-when { font-size: .75rem; color: var(--f-text-muted); }

/* global search results */
[data-theme] .f-shell .f-search .f-search-results { max-height: min(70vh, 560px); padding: 4px; }
.f-search-group { padding: 10px 10px 4px; font-size: .714rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--f-text-secondary); }
[data-theme] .f-search-results a.item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 6px; }
[data-theme] .f-search-results a.item > .icon { margin-top: 2px; color: var(--f-text-secondary); }
.f-search-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.f-search-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--f-text); }
.f-search-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .786rem; color: var(--f-text-secondary); }
.f-search-snippet { font-size: .786rem; color: var(--f-text-muted); white-space: normal; }
.f-search-results mark { padding: 0 1px; border-radius: 2px; background: #fff0a8; color: inherit; }
[data-theme="dark"] .f-search-results mark { background: rgba(255, 214, 0, .3); }
.f-search-state { padding: 10px; color: var(--f-text-secondary); font-size: .857rem; }

/* empty states (Fiori "illustrated message"): spot-size illustration, centred text */
[data-theme] main img[src*="_empty.svg"] { width: 160px !important; height: auto; margin: 24px auto 8px; opacity: 1 !important; filter: none !important; }
[data-theme] main .center.aligned:has(> img[src*="_empty.svg"]) { padding: 16px 16px 32px; }
[data-theme] main .center.aligned:has(> img[src*="_empty.svg"]) p { max-width: 520px; margin: 0 auto; color: var(--f-text-secondary); font-size: 1rem; }
[data-theme="dark"] main img[src*="_empty.svg"] { filter: brightness(.85) !important; }

/* ==========================================================================
   Loose controls (filter bars, boards, calendar, notes) share the Fiori field look
   ========================================================================== */
[data-theme] .f-filterbar select, [data-theme] .f-filterbar input:not([type="checkbox"]):not([type="radio"]):not([type="search"]),
[data-theme] .f-field select, [data-theme] .f-field input:not([type="checkbox"]):not([type="radio"]):not([type="search"]),
[data-theme] .f-kadd select, [data-theme] .f-kadd input,
[data-theme] .f-cal-newcal input[type="text"] {
  -webkit-appearance: none; appearance: none;
  height: 36px; padding: 0 10px;
  border: 1px solid var(--f-field-border); border-radius: var(--f-radius-s);
  background-color: var(--f-field-bg); color: var(--f-text);
  font-family: inherit; font-size: .929rem;
  box-shadow: none; outline: none;
  transition: border-color .1s ease, background-color .1s ease;
}
[data-theme] .f-filterbar select, [data-theme] .f-field select, [data-theme] .f-kadd select {
  padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23556b82' d='M6 8 0 1.4 1.3 0 6 5.2 10.7 0 12 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 11px 8px;
}
[data-theme] .f-filterbar select { min-width: 180px; }
[data-theme] .f-kadd select, [data-theme] .f-kadd input { height: 32px; }
[data-theme] .f-filterbar select:hover, [data-theme] .f-filterbar input:hover,
[data-theme] .f-field select:hover, [data-theme] .f-field input:hover,
[data-theme] .f-kadd select:hover, [data-theme] .f-kadd input:hover,
[data-theme] .f-cal-newcal input[type="text"]:hover { border-color: var(--f-brand-hover); background-color: var(--f-field-hover-bg); }
[data-theme] .f-filterbar select:focus, [data-theme] .f-filterbar input:focus,
[data-theme] .f-field select:focus, [data-theme] .f-field input:focus,
[data-theme] .f-kadd select:focus, [data-theme] .f-kadd input:focus,
[data-theme] .f-cal-newcal input[type="text"]:focus { border-color: var(--f-field-border); background-color: var(--f-field-bg); outline: 2px solid var(--f-focus); outline-offset: -1px; }
[data-theme] .f-filterbar ::placeholder, [data-theme] .f-kadd ::placeholder, [data-theme] .f-field ::placeholder,
[data-theme] .f-cal-newcal ::placeholder { color: var(--f-field-placeholder); font-style: italic; opacity: 1; }

/* search fields: Horizon search field, matching the shell bar search */
[data-theme] .f-field-search { position: relative; display: block; }
[data-theme] .f-field-search input,
[data-theme] .f-note-tools .f-field-search input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 36px; padding: 0 14px 0 36px;
  border: 1px solid var(--f-border-strong); border-radius: 18px;
  background: var(--f-field-bg); color: var(--f-text);
  font-family: inherit; font-size: .929rem; box-shadow: none; outline: none;
  transition: border-color .1s ease, box-shadow .1s ease;
}
[data-theme] .f-field-search input:hover { border-color: var(--f-brand-hover); }
[data-theme] .f-field-search input:focus { border-color: var(--f-brand); box-shadow: 0 0 0 1px var(--f-brand); }
[data-theme] .f-field-search input::placeholder { color: var(--f-field-placeholder); font-style: italic; opacity: 1; }
[data-theme] .f-field-search input::-webkit-search-cancel-button { cursor: pointer; }
[data-theme] .f-field-search i.icon { left: 14px; font-size: .857rem; color: var(--f-text-secondary); pointer-events: none; }

/* people: date filter and A–Z bar */
.f-filter-card { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--f-radius-l); background: var(--f-surface); box-shadow: var(--f-shadow-0); }
.f-filter-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0; }
.f-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.f-field-label { font-size: .857rem; color: var(--f-text-secondary); }
.f-date { position: relative; display: block; }
[data-theme] .f-date input { width: 150px; padding-right: 32px !important; cursor: pointer; }
.f-date .icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--f-text-secondary); pointer-events: none; }
.f-alpha { display: flex; flex-wrap: wrap; gap: 2px; }
[data-theme] .f-alpha a.item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 28px; padding: 0 6px; border-radius: 6px;
  color: var(--f-text-secondary); font-size: .857rem; font-weight: 600; text-decoration: none;
}
[data-theme] .f-alpha a.item:hover { background: var(--f-hover); color: var(--f-text); }
[data-theme] .f-alpha a.item.active { background: var(--f-selected); color: var(--f-link); }
[data-theme] .f-alpha a.item:last-child { margin-left: 6px; padding: 0 10px; color: var(--f-link); }

/* date picker (global.js wDate): Fiori dialog look */
[data-theme] .wojo.calendar.active { background-color: rgba(15, 25, 40, .35); }
[data-theme] .wojo.calendar .container {
  top: 50%; bottom: auto; min-width: 0;
  border-radius: var(--f-radius-l);
  background: var(--f-surface);
  box-shadow: var(--f-shadow-2);
  transform: translate(-50%, -48%); transition: none;
}
[data-theme] .wojo.calendar.active .container { transform: translate(-50%, -50%); }
[data-theme] .wojo.calendar .header { padding: 14px 18px 10px; background: var(--f-surface); color: var(--f-text); border-bottom: 1px solid var(--f-border); }
[data-theme] .wojo.calendar .header .current.year { font-size: .857rem; font-weight: 400; color: var(--f-link); }
[data-theme] .wojo.calendar .header .current.year:hover { color: var(--f-brand-hover); text-decoration: underline; }
[data-theme] .wojo.calendar .header .current.date { font-size: 1.143rem; font-weight: 700; color: var(--f-text); }
[data-theme] .wojo.calendar .content { width: 320px; background: var(--f-surface); }
[data-theme] .wojo.calendar .content .prev.link, [data-theme] .wojo.calendar .content .next.link { color: var(--f-text-secondary); border-radius: 6px; }
[data-theme] .wojo.calendar .content .prev.link:hover, [data-theme] .wojo.calendar .content .next.link:hover { background: var(--f-hover); color: var(--f-text); }
[data-theme] .wojo.calendar .sections .heading { padding: 12px 0 8px; font-size: .929rem; font-weight: 700; color: var(--f-link); }
[data-theme] .wojo.calendar .sections .weekdays { margin: 0 8px 4px; padding: 4px 0; background: none; border: 0; }
[data-theme] .wojo.calendar .sections .weekdays span { font-size: .75rem; font-weight: 400; color: var(--f-text-secondary); text-transform: none; }
[data-theme] .wojo.calendar .sections .week { padding: 0 8px; }
[data-theme] .wojo.calendar .sections .week .item {
  margin: 1px 0; padding: 0; height: 36px; line-height: 36px;
  border-radius: var(--f-radius-m); color: var(--f-text); font-size: .875rem;
  transition: none;
}
[data-theme] .wojo.calendar .sections .week .item.pm, [data-theme] .wojo.calendar .sections .week .item.nm { color: var(--f-text-muted); opacity: .6; }
[data-theme] .wojo.calendar .sections .week .item:not(.disabled):not(.selected):hover { background: var(--f-hover); }
[data-theme] .wojo.calendar .sections .week .item.current { background: none; color: var(--f-link); font-weight: 700; box-shadow: inset 0 0 0 1px var(--f-brand); }
[data-theme] .wojo.calendar .sections .week .item.selected { background: var(--f-brand); color: #fff; font-weight: 700; border-radius: var(--f-radius-m); }
[data-theme] .wojo.calendar .sections .week .item.selected::before { display: none; }
[data-theme] .wojo.calendar .months .month.selected, [data-theme] .wojo.calendar .years .year.selected { background: var(--f-brand); color: #fff; }
[data-theme] .wojo.calendar .content .actions { justify-content: flex-end; gap: 6px; padding: 10px 12px 12px; margin-top: 6px; border-top: 1px solid var(--f-border); }
[data-theme] .wojo.calendar .content .actions .button {
  height: 32px; line-height: 30px; padding: 0 12px; min-width: 0;
  border: 1px solid transparent; border-radius: var(--f-radius-m);
  background: transparent; color: var(--f-link);
  font-size: .875rem; font-weight: 600; text-transform: none;
}
[data-theme] .wojo.calendar .content .actions .button:hover { background: var(--f-hover); }
[data-theme] .wojo.calendar .content .actions .button.clear { color: var(--f-negative); margin-right: auto; }
[data-theme] .wojo.calendar .content .actions .button.today { color: var(--f-link); }
[data-theme] .wojo.calendar .content .actions .button.ok { background: var(--f-brand); color: #fff; }
[data-theme] .wojo.calendar .content .actions .button.ok:hover { background: var(--f-brand-hover); }
.f-doc-paylink { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--f-radius-m); background: var(--f-info-bg); color: var(--f-text); font-size: .929rem; }
.f-doc-paylink .icon { color: var(--f-info); }

/* not available / 404 */
.f-notfound { max-width: 560px; margin: 48px auto; padding: 32px 24px; text-align: center; }
.f-notfound img { width: 180px; margin-bottom: 16px; }
[data-theme] .f-notfound h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.43rem; font-weight: 700; color: var(--f-text); }
.f-notfound p { margin: 0 0 20px; color: var(--f-text-secondary); font-size: 1rem; line-height: 1.5; }
.f-notfound-detail { font-family: monospace; font-size: .786rem !important; }
.f-notfound-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* card pagination (fiori.js data-paginate) */
.f-pager { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--f-border); }
.f-pager-info { margin-right: 8px; font-size: .857rem; color: var(--f-text-secondary); font-variant-numeric: tabular-nums; }
.f-pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: var(--f-radius-m);
  background: transparent; color: var(--f-link); font-size: .8rem; cursor: pointer;
}
.f-pager-btn:hover:not(:disabled) { background: var(--f-hover); }
.f-pager-btn:disabled { color: var(--f-text-muted); opacity: .45; cursor: default; }
[data-paginate] .item[hidden], [data-paginate] .wojo.divided.items[hidden], [data-paginate] .f-group-title[hidden] { display: none !important; }

/* deal dialog with history column */
.f-dialog.f-deal-dialog { width: min(1100px, calc(100vw - 32px)); }
.f-deal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; max-height: calc(100vh - 48px); }
.f-deal-layout > form#dealForm { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 48px); }
.f-deal-layout > form#dealForm .f-dialog-body { flex: 1; overflow-y: auto; }
.f-deal-history { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 48px); border-left: 1px solid var(--f-border); background: var(--f-surface-alt); }
.f-deal-history-head { padding: 14px 16px 10px; background: none; text-align: left; font-size: inherit; }
[data-theme] .f-deal-history-head h4 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; font-size: 1rem; font-weight: 700; }
.f-deal-history-head h4 .icon { color: var(--f-text-secondary); }
.f-upd-form { margin: 0 16px 8px; padding: 10px; border: 1px solid var(--f-border); border-radius: var(--f-radius-m); background: var(--f-surface); }
.f-upd-kinds { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.f-upd-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-upd-kind span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 14px; border: 1px solid var(--f-border-strong); color: var(--f-text-secondary); font-size: .786rem; cursor: pointer; }
.f-upd-kind span .icon { font-size: .75rem; }
.f-upd-kind input:checked + span { background: var(--f-selected); border-color: var(--f-selected-border); color: var(--f-link); font-weight: 600; }
.f-upd-kind input:focus-visible + span { outline: 2px solid var(--f-focus); outline-offset: 1px; }
[data-theme] .f-upd-form textarea {
  width: 100%; min-height: 72px; padding: 8px 10px; resize: vertical;
  border: 1px solid var(--f-field-border); border-radius: var(--f-radius-s);
  background: var(--f-field-bg); color: var(--f-text); font-family: inherit; font-size: .929rem; line-height: 1.45;
}
[data-theme] .f-upd-form textarea:focus { outline: 2px solid var(--f-focus); outline-offset: -1px; }
.f-upd-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.f-upd-hint { font-size: .75rem; color: var(--f-text-muted); }
.f-upd-list { flex: 1; overflow-y: auto; padding: 4px 16px 16px; }
.f-upd { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--f-border); }
.f-upd:last-child { border-bottom: 0; }
.f-upd-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--f-neutral-bg); color: var(--f-text-secondary); font-size: .7rem; }
.f-upd-main { flex: 1; min-width: 0; }
.f-upd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .786rem; color: var(--f-text-secondary); }
.f-upd-meta strong { color: var(--f-text); font-weight: 600; }
.f-upd-badge { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 10px; background: var(--f-info-bg); color: var(--f-link); font-weight: 600; }
.f-upd.call .f-upd-badge { background: var(--f-positive-bg); color: var(--f-positive); }
.f-upd.meeting .f-upd-badge { background: #f3ecff; color: #6b3fbf; }
.f-upd.email .f-upd-badge { background: var(--f-critical-bg); color: var(--f-critical); }
.f-upd-badge .icon { font-size: .7rem; }
.f-upd-del { margin-left: auto; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--f-text-muted); cursor: pointer; opacity: 0; font-size: .75rem; }
.f-upd:hover .f-upd-del, .f-upd-del:focus { opacity: 1; }
.f-upd-del:hover { background: var(--f-hover); color: var(--f-negative); }
.f-upd-body { margin-top: 3px; font-size: .929rem; line-height: 1.5; color: var(--f-text); overflow-wrap: anywhere; }
.f-upd.system .f-upd-body { font-size: .857rem; color: var(--f-text-secondary); }
.f-upd-none, .f-upd-newhint { margin: 8px 16px; font-size: .857rem; color: var(--f-text-secondary); }
.f-deal-dialog:not(.is-new) .f-upd-newhint { display: none; }
.f-deal-dialog.is-new .f-upd-form, .f-deal-dialog.is-new .f-upd-list { display: none; }
.f-deal-upd { margin-left: auto; }
@media (max-width: 860px) {
  .f-deal-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .f-deal-layout > form#dealForm, .f-deal-history { max-height: none; }
  .f-deal-history { border-left: 0; border-top: 1px solid var(--f-border); }
}

/* search results: the keyboard-highlighted entry (.active) must stay clickable (dropdown.css disables active items) */
[data-theme] .f-shell .f-search .f-search-results a.item,
[data-theme] .f-shell .f-search .f-search-results a.item.active { pointer-events: auto; }
