/* MOKADI / WorkFlow W005. Loaded only by SerwisFlow; no shared portal styles. */
:root.sf-w005 {
  --sf-brand: #00dccb;
  --accent: #00dccb;
  --accent-ink: #102c2a;
  --sf-dialog: var(--panel);
  --sf-shadow: 0 18px 64px #0005;
}
html.sf-w005[data-sf-theme="night-graphite"] {
  color-scheme: dark;
  --bg: #19191c;
  --header: #151518;
  --panel: #232326;
  --raised: #2c2c30;
  --field: #1c1c1f;
  --border: #454549;
  --text: #f6f5f3;
  --muted: #b8b8bf;
  --sf-dialog: #242427;
}
html.sf-w005[data-sf-theme^="day-"] {
  --accent: #006b62;
  --sf-shadow: 0 18px 64px #17171c30;
}
html.sf-w005 body { background: var(--bg); }
html.sf-w005 body > header {
  background: #151518;
  color: #f6f5f3;
  border-bottom: 1px solid #39393e;
  padding: 14px max(24px, calc((100vw - 1240px)/2));
  min-height: 84px;
  gap: 16px;
}
html.sf-w005 .sf-brand-group { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
html.sf-w005 .brand { gap: 11px; font-size: 25px; line-height: 1.2; }
html.sf-w005 .brand small { color: #b8b8bf; font-size: 11px; margin-top: 5px; }
html.sf-w005 .sf-module-name { white-space: nowrap; letter-spacing: -.6px; }
html.sf-w005 .sf-module-name > span { color: var(--sf-brand); }
html.sf-w005 .sf-module-mark { display: block; flex: 0 0 auto; width: 44px; height: 44px; }
html.sf-w005 .sf-mokadi-logo { display: block; width: 76px; height: 55px; padding-left: 22px; border-left: 1px solid #454549; object-fit: contain; box-sizing: content-box; }
html.sf-w005 #profile { justify-content: flex-end; min-width: 0; gap: 10px 18px; }
html.sf-w005 #identity { color: #d1d1d6; font-size: 12px; }
html.sf-w005 .sf-profile-actions button { background: #232326; color: #f6f5f3; border-color: #454549; font-size: 12px; min-height: 38px; }
html.sf-w005 .sf-profile-actions button:hover { border-color: var(--sf-brand); background: #2b2b30; }
html.sf-w005 #logout:hover { border-color: #c55370; color: #ffa1b8; }
html.sf-w005 .sf-theme-dot { background: var(--sf-brand); }
html.sf-w005 header :focus-visible { outline-color: var(--sf-brand); }
html.sf-w005 main { padding-top: 24px; }
html.sf-w005 #workspace > nav { gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
html.sf-w005 #workspace > nav button { font-size: 12px; font-weight: 650; padding: 9px 13px; }
html.sf-w005 #workspace > nav button[aria-current="page"],
html.sf-w005 .directory-tabs button[aria-pressed="true"] {
  color: var(--accent); border-color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--sf-brand);
}
html.sf-w005 .heading { margin: 24px 0 20px; gap: 18px; }
html.sf-w005 h1 { font-size: 28px; letter-spacing: -.6px; }
html.sf-w005 .heading .muted { font-size: 13px; }
html.sf-w005 .panel { border-radius: 12px; padding: 22px; box-shadow: 0 3px 14px #00000008; }
html.sf-w005 .stats { gap: 12px; margin: 20px 0; }
html.sf-w005 .stats article { border-radius: 12px; padding: 18px; border-top: 2px solid var(--sf-brand); }
html.sf-w005 .stats article[role="button"]:hover { background: var(--hover); border-color: var(--accent); }
html.sf-w005 .stats strong { font-size: 30px; line-height: 1.2; margin-top: 10px; }
html.sf-w005 .stats article small { font-size: 11px; line-height: 1.45; }
html.sf-w005 #my-tasks .empty { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; text-align: left; padding: 10px 0 2px; }
html.sf-w005 #my-tasks .empty-icon { grid-row: 1 / 3; align-self: center; }
html.sf-w005 #my-tasks .empty h3 { margin: 0; font-size: 15px; }
html.sf-w005 #my-tasks .empty p { margin: 3px 0 0; font-size: 13px; }
html.sf-w005 button, html.sf-w005 input, html.sf-w005 select, html.sf-w005 textarea { border-radius: 8px; }
html.sf-w005 button { min-height: 40px; }
html.sf-w005 .primary { background: var(--sf-brand); color: #102c2a; border-color: var(--sf-brand); }
html.sf-w005 .primary:hover { background: #64ecde; border-color: #64ecde; }
html.sf-w005 input::placeholder, html.sf-w005 textarea::placeholder { color: var(--muted); opacity: .85; }
html.sf-w005 input[type="checkbox"], html.sf-w005 input[type="radio"] { accent-color: var(--accent); }
html.sf-w005 a:not(.brand) { color: var(--accent); text-underline-offset: 3px; }
html.sf-w005 .claims-table { margin-top: 18px; }
html.sf-w005 .claims-table th { background: var(--raised); font-size: 11px; padding: 10px; }
html.sf-w005 .claims-table td { padding: 14px 10px; }
html.sf-w005 .claim-link { min-height: 24px; }
html.sf-w005 .claims-table tbody tr:focus-within { background: var(--hover); }
html.sf-w005 .claims-table tr:last-child td { border-bottom: 0; }
html.sf-w005 dialog, html.sf-w005 #detail-dialog, html.sf-w005 #sf-theme-dialog,
html.sf-w005 .sf-area-dialog, html.sf-w005 .sf-producer-dialog {
  background: var(--sf-dialog); color: var(--text); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--sf-shadow);
}
html.sf-w005 dialog::backdrop { background: #111114b8; backdrop-filter: blur(3px); }
html.sf-w005 dialog > .dialog-header { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
html.sf-w005 dialog .dialog-header :is(h1,h2) { font-size: 23px; line-height: 1.3; letter-spacing: -.35px; }
html.sf-w005 .sf-area-dialog > .dialog-header,
html.sf-w005 .sf-producer-dialog > .dialog-header { background: var(--sf-dialog); }
html.sf-w005 .form-actions { background: var(--sf-dialog); }
html.sf-w005 .sf-next { background: var(--accent-soft); box-shadow: none; border-left-color: var(--sf-brand); }
html.sf-w005 .sf-next h2 { font-size: 23px; }
html.sf-w005 .sf-tile { min-height: 195px; }
html.sf-w005 .sf-theme-choice { border-radius: 10px; }
html.sf-w005 .sf-theme-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
html.sf-w005 .login { border-top: 3px solid #811c37; }
html.sf-w005 footer { border-top: 1px solid var(--border); padding: 20px; margin-top: 12px; }
/* Keep paper/signature canvases white: they are document input, not app chrome. */
@media (max-width: 900px) {
  html.sf-w005 .sf-brand-group { gap: 12px; }
  html.sf-w005 .sf-mokadi-logo { width: 68px; height: 50px; padding-left: 12px; }
  html.sf-w005 #profile { flex-direction: column; align-items: flex-end; gap: 6px; }
}
@media (max-width: 700px) {
  html.sf-w005 .claims-table td { padding: 7px 0; }
  html.sf-w005 dialog .dialog-header :is(h1,h2) { font-size: 21px; }
}
@media (max-width: 560px) {
  html.sf-w005 body > header { padding: 12px 16px; gap: 12px; }
  html.sf-w005 .sf-brand-group { justify-content: space-between; width: 100%; gap: 10px; }
  html.sf-w005 .brand { font-size: 23px; }
  html.sf-w005 .sf-module-mark { width: 38px; height: 38px; }
  html.sf-w005 .sf-mokadi-logo { width: 62px; height: 45px; padding-left: 12px; }
  html.sf-w005 #profile { flex-direction: row; justify-content: space-between; align-items: center; }
  html.sf-w005 #identity { flex: 1; min-width: 110px; }
  html.sf-w005 .sf-profile-actions { gap: 6px; }
  html.sf-w005 .sf-profile-actions button { padding: 8px 10px; min-height: 40px; }
  html.sf-w005 main { padding: 18px 14px; }
  html.sf-w005 #workspace > nav { gap: 6px; padding-bottom: 14px; }
  html.sf-w005 #workspace > nav button { flex: 1 1 auto; padding: 9px 10px; font-size: 11px; min-height: 42px; }
  html.sf-w005 .heading { margin: 20px 0 16px; gap: 12px; }
  html.sf-w005 h1 { font-size: 25px; }
  html.sf-w005 .panel { padding: 16px; }
  html.sf-w005 .stats { gap: 10px; margin: 16px 0; }
  html.sf-w005 .stats article { padding: 14px; }
  html.sf-w005 .stats strong { font-size: 28px; }
  html.sf-w005 .stats article:last-child { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
  html.sf-w005 .stats article:last-child strong { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  html.sf-w005 .stats article:last-child small { margin: 0; }
}
